sagemath: update to 10.5#51902
Conversation
7b24a6d to
377d7d9
Compare
|
I tried to crosscompile sagemath from aarch64 to x86_64: it looks like we should add to hostmakedepends "python3-gmpy2 python3-memory_allocator python3-numpy ecl python3-cypari2 python3-cysignals python3-devel". Makes sense? |
Sure, but we still don't have cross for ntl and others, does it make sense to bother with this? |
|
True. It's still useful to know in general, and it could be useful later, if we decide e.g. to use qemu to build ntl etc. |
|
@dkwo is something like this enough to cross-compile: --- a/srcpkgs/sagemath/template
+++ b/srcpkgs/sagemath/template
@@ -6,7 +6,9 @@ _pypi_version=${version/.beta/b}
_pypi_version=${_pypi_version/.rc/rc}
build_style=python3-pep517
hostmakedepends="pkg-config python3-Cython python3-Jinja2
- python3-pkgconfig python3-setuptools python3-wheel"
+ python3-pkgconfig python3-setuptools python3-wheel
+ python3-gmpy2 python3-memory_allocator python3-numpy ecl
+ python3-cypari2 python3-cysignals python3-devel"
makedepends="boost-devel brial-devel cliquer-devel ecl eclib-devel
ecm-devel fflas-ffpack flintlib-devel gap-devel gd-devel giac-devel glpk-devel
gsl-devel iml-devel lcalc-devel libbraiding-devel libhomfly-devel libmpc-devel |
e58e92b to
dee54ce
Compare
|
Yes, that should be enough. |
👍 I pushed that change here.
Nice, at some point we may want to debug that so tests pass. Can you post the failure?
That's weird. The second error is expected from the first (because What's up with |
|
For me, that file is only readable to root: |
|
If I chmod it by hand, then everything works and that test fails like this: |
|
it seems that's just an ordering issue? |
This probably means that the file in your void-packages repo is already 600 and we I think we can do something like: --- a/srcpkgs/sagemath/template
+++ b/srcpkgs/sagemath/template
@@ -51,7 +51,7 @@ post_install() {
mv -T ${DESTDIR}/usr/bin ${DESTDIR}/usr/libexec/sagemath
# copy configuration
- cp ${FILESDIR}/sage-env-config ${DESTDIR}/usr/libexec/sagemath
+ vinstall ${FILESDIR}/sage-env-config 644 usr/libexec/sagemath
# symlink main binary
vmkdir usr/binto make sure the permissions are 644 regardless. |
Yes, I'll try to adjust so the ordering doesn't affect the test. |
|
@dkwo both issues should be fixed now 🤞 |
|
Thanks a lot! Everything works for me now on |
This now includes:
There's more stuff to update, but I want to start small. This includes two difficult updates: python 3.13 and pari 2.17.
Testing the changes
@dkwo