Open kiwifb opened 1 month ago
Similar cython errors show up in sage/matroids/flats_matroid.pyx
, sage/matroids/matroid.pyx
, sage/matroids/union_matroid.pyx
, sage/matroids/graphic_matroid.pyx
, sage/matroids/linear_matroid.pyx
and sage/sets/disjoint_set.pyx
And sage/matroids/basis_exchange_matroid.pyx
. I cannot exclude missing a few others.
sage with cython-3.0.11
and the regression patch https://github.com/void-linux/void-packages/commit/b5926bd0342911d1547f37a862082ab73ee1644e does build. However, the regression patch does not appear under https://github.com/cython/cython/commits/master/
I have a patch in the vbraun branch and we are working on something a bit better upstream. sage needs to get rid of those things anyway. Fun fact, cypari2 from the main tree is also failing to build with cython 3.0.11 from the tree - 2.2.0 which I am pushing, does not have the problem.
OK, my work on getting cython 3.0.11 to work with sage is merged and officially out in the current dev branch. I am experimenting with a new way to distribute patches from upstream PR so once I merge my current development branch sage 10.4 will have support for cython 3.0.11 (you may have to update cypari2 to 2.0.0 as well). The way I distribute the patch is experimental, report issues please The merge will be done in the next hour.
After a length system update I see:
* Applying sagemath-standard-10.4b-neutering.patch ...
[ ok ]
* Build system packages:
* dev-python/gpep517 : 16
* dev-python/installer : 0.7.0
* dev-python/cython : 3.0.11
* dev-python/setuptools : 72.2.0
* dev-python/setuptools-rust : 1.10.1
* dev-python/setuptools-scm : 8.1.0
* dev-python/wheel : 0.44.0
/var/tmp/portage/sci-mathematics/sagemath-standard-9999/temp/environment: line 4998: /var/tmp/portage/sci-mathematics/sagemath-standard-9999/distdir/38113_proc.patch: Permission denied
* ERROR: sci-mathematics/sagemath-standard-9999::sage-on-gentoo failed (prepare phase):
* patch for PR 38113 not found
*
* Call stack:
* ebuild.sh, line 136: Called src_prepare
* environment, line 5046: Called distutils-r1_src_prepare
* environment, line 2211: Called python_prepare_all
* environment, line 4815: Called sage-git-patch_patch
* environment, line 4998: Called die
* The specific snippet of code:
* filterdiff -i '*/${tree}/*' "${DISTDIR}/sagemath_PR${patch}.patch" > "${DISTDIR}/${patch}_proc.patch" || die "patch for PR ${patch} not found";
Perhaps the patch file had been misnamed?
# ls -al /var/tmp/portage/sci-mathematics/sagemath-standard-9999/distdir/
total 2
drwxr-xr-x 2 root portage 1024 Sep 4 14:52 .
drwx------ 8 portage portage 1024 Sep 4 14:53 ..
lrwxrwxrwx 1 root root 43 Sep 4 14:52 sagemath_PR38113.patch -> /var/cache/distfiles/sagemath_PR38113.patch
Looks like I may have done something stupid, but I should have caught it. Let me check all that.
Yes, I try to process the patch somewhere I should not have. I need to update the eclass.
OK, I have updated the eclass, it should take about 15mn for the gentoo mirror to update.
sagemath-standard-9999
now builds but sage-doc-9999
fails.
As the title says. The final error is reminiscent of #783 but in the end quite different in its causes.
but in fact this starts much earlier during cythonizing
this works perfectly with cython 3.0.10.