Conversation
There was a problem hiding this comment.
What needs to be fixed here?
There was a problem hiding this comment.
To determine where the dependencies come from. The dependency to gaic is explicitly mentioned in the official document:
The packages giacpy_sage and sage_brial have been merged into sagelib as sage.libs.giac and sage.rings.polynomial.pbori.
However, I have no idea about SQLite and Boehm GC (libgc). libgc especially smells; there might be a lack of build-time configuration or something. That is why I marked here.
Surely they are not clear to others, I will add some more words. Thank you for your comment!
|
I'm having trouble getting this to build locally, but here are a couple things I noticed so far.
|
|
@yurrriq Thank you for your report! It helps me much. |
|
@omasanori Please rebase the PR on master to fix the eval django_2_2 borg eval error. |
|
@SuperSandro2000 Done. Thanks! |
|
Breaking news: SageMath 9.2 was just released! 🎉 |
|
@omasanori Can you rebase again to fix |
|
No problem. |
38d0d84 to
43b8201
Compare
|
@omasanori ; this is awesome! Does the testsuite pass? |
|
@jcumming Thank you for your interest! |
faf9509 to
3abcffc
Compare
|
While looking at the failing test stack trace, I saw that the test is calling libpynac which in turn is calling libpython2.7. For one, the appearance of python 2.7 seem suspicious. As you can see at the stack frame #4, the signal handler is called directly after the libpython2.7 call. I'll try to make pynac work with python 3.8. |
|
Moving pynac to python3 fixed to crash mentioned above. I tried opening sage repl and a jupyter notebook and both worked. However, it looked like some tests failed and one in particular hanged. Do you think we should add the commit to this PR or make a new PR for pynac? You can find the code there. |
|
Excellent! Would you make a new dedicated PR for your changes, @refnil? |
|
Thank you for your efforts :). I am a nix-noob, but would like to help to test this PR. |
|
Thank you for your interest, @vale981! In general, See https://nixos.org/manual/nixpkgs/unstable/#chap-reviewing-contributions for more description. |
|
So, thanks to helps from all of you, now |
|
I am getting: Looks like an incompatible python version. |
|
@vale981 Thank you for testing! |
|
Is it normal that there isn't any cpu activity for long stretches of time while running the tests? |
|
I guess it is not, but I am not sure as I am also a new member trying to fix the package with help from veterans. Any thoughts? @timokau |
It might help to run the test in isolation.
No, at least I never noticed that. And I think I would have. If I had to guess, I'd say sage is waiting for some external process that isn't giving the expected reply. It uses You can re-enable timeouts in the test-suite in |
|
According to https://trac.sagemath.org/ticket/22191#comment:237, ECL needs to be patched to fix the SIGFPE crashes. The sage repository also has a few other ECL patches that were added after it was upgraded to version 20.4.24: https://git.sagemath.org/sage.git/log/build/pkgs/ecl/patches |
|
With this commit on top of the current PR, I get some "file not found" errors from the doctest harness and some failing tests but mostly the testsuite runs fine. Feel free to use anything from this commit. Here's the full output of the test run. 11 files have failing tests. Based on timokau's suggestion, here's a command to only run tests from failing files, together with possible causes for the failures: The above command takes under 2 minutes to run on my old laptop, so testing should be fast. |
TODO: Write description here. Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com>
|
An update: https://github.com/collares/nixpkgs/tree/sage-update has only three failing test files at the moment:
@omasanori If I fix the remaining failures before the weekend, is it OK for me to submit a new PR for review? You did most of the work and of course I would mention that in the PR. It would be completely understandable if you wanted to submit it yourself, so I am fine with waiting too. |
|
No problem, please go ahead open a new PR. I will be truly glad to test and review your changes. |
|
Superseded by #105615 |
Motivation for this change
This change updates SageMath to the latest version, migrates to Python 3, and gets rid of most of the current workarounds.
Depends on:
pythonPackages.rpy2: 3.2.6 -> 3.3.6, fix test etc. #101327linbox: backport upstream fixes #101382maxima: various cleanups #101830maxima: 5.42.2 -> 5.44.0 #101876Part of #101964
TODO:
env-locations,sage-envandsage-with-envsuitable with the new upstream scripts.env-locations: patchsrc/bin/sage-env-config.inandbuild/pkgs/sage_conf/src/sage_conf.pyinstead (?)sage-env: use upstreamsage-envinstead (?)sage-with-env: TBD.nixfiles if more cleanup and/or simplification is possible.This is work-in-progress, but any comments or suggestions are welcome!
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)