New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The cliquer spkg is patching upstream #14349
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Replying to @SnarkBoojum:
Please clarify how you would add these functions to Sage? They need access to the cliquer internals, so they cannot simply be added to Sage. |
comment:5
I don't remember the details, but I think it was a case of bad use of static variables ; so probably helping upstream get around that is a better route. (That involves putting those variables in a params structure which gets passed around. Perhaps with some getter/setter api for the new structure.) |
comment:6
Good luck convincing upstream, I'm not going to do it... |
Attachment: 0001-reduce-cliquer-patching.patch.gz |
comment:7
Would somebody please help getting rid of the other one (cl.c.patch)? |
comment:8
Most of the "global variables" aren't global but local to the compilation unit of the command line parser and only used to keep track of command line options. Its likely that one could just move the additional Maybe we should get a GSoC student working on the build system to clean that up? :-P Unless there is some action on this ticket soon I'll just take the current patch, add all currently untracked files to the repo, and use that for #14781 |
comment:9
Replying to @vbraun:
seems to work. i'll test and upload the patch as soon as i'm done with gap. |
comment:10
Felix, are you still working on this ticket? We need to resolve this ticket one way or another for #14781 |
comment:11
Still stuck with gap. My cliquer patch needs to be sorted out/rebased/ported, I don't know whether that makes much sense right now. please do with this tiket whatever seems appropriate. (sorry i don't understand #14781) |
comment:12
What it your problem with gap? Does it have ticket number? |
Dependencies: #14892 |
Commit: |
comment:16
A patch removing the patches is now ready on top of sage 5.12beta3 (build_system). It does not address #9870. |
Branch: u/felixs/14349 |
comment:17
Hellooooooooo !!! This patch probably needs to be rebased atop the nice additions of #15410, but would it also be possible to not create those two cl.c and cl.h files right inside of the graphs/ folder ? Could it be put inside of a cliquer/ folder, and couldn't it even stay inside of the spkg, even if it is not used to patch the sources but (nicely) imported at compile-time ? The trick is nice and efficient, thanks for this patch Nathann |
comment:18
I don't understand your question. In any case, upstream sources go into |
comment:19
Well, then it would be cool if the cl.c and cl.h files could all be moved inside of a cliquer/ folder, for the graphs/ folder is already quite messy. Especially when these two cl.c and cl.h files are not documented in any way Would it make sense to get rid of the .c files automatically compiled by Cython for each .pyx file by the way ? Nathann |
comment:20
You can move them into There is a ticket for in-place cythonization somewhere. Obviously the cython output c files must be somewhere for the compiler to find them. |
comment:21
Yep, that would be cool.
I guess, but they just don't have to stay there afterwards Nathann |
comment:22
At u/ncohen/14349 you will find three commits atop of this ticket's branch, which rebase it on top of #15410 and 5.13.beta4, plus moves cl.c and cl.h to a new cliquer/ directory. Nathann |
comment:23
ping ? |
Changed branch from u/felixs/14349 to public/14349 |
comment:24
Okay, let's forget about #15410 for the moment as it is not in Nathann |
Changed commit from |
Commit: |
comment:26
i'd prefer fewer directories. but i agree with 6253068. consider these changes positively reviewed. |
Reviewer: Nathann Cohen |
comment:27
Well.. I prefer to have the least amount of mess in the graph/ folder. And cl.c/cl.h files do not fit in the picture Thank you fo the review ! Nathann |
comment:28
Further clean-up of cliquer at #9870... |
Author: Felix Salfelder |
This spkg does the following:
make
instead of$MAKE
.spkg-install
instead ofspkg-check
.Depends on #14892
CC: @kiwifb
Component: packages: standard
Author: Felix Salfelder
Branch/Commit: public/14349 @
6253068
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/14349
The text was updated successfully, but these errors were encountered: