Debian Patches

Status for sagemath/9.5-6

Patch Description Author Forwarded Bugs Origin Last update
u0-version-pari-2.15.patch Adjust tests for pari 2.15 Antonio Rojas <arojas@archlinux.org> yes upstream 2022-09-20
u0-version-linbox-1.7.patch fix with LinBox new API =?UTF-8?q?Cl=C3=A9ment=20Pernet?= <clement.pernet@gmail.com> yes upstream 2021-12-07
u0-version-sphinx-4.3.patch Add a config value that is new in sphinx 4.3. Tobias Hansen <thansen@debian.org> yes upstream
u0-version-sphinx-4.4.patch Use roles when possible to fix warnings Antonio Rojas <arojas@archlinux.org> yes upstream 2022-02-01
u0-version-sphinx-5.2.patch [PATCH] remove unused, and removed from sphinx 5, imported get_module_members =?UTF-8?q?Fran=C3=A7ois=20Bissey?= <frp.bissey@gmail.com> yes upstream 2022-07-11
u0-version-arb-2.22.patch Add abs tol to some arb tests Antonio Rojas <arojas@archlinux.org> yes upstream 2022-01-16
u0-version-gap-4.12.patch Adapt to API changes in OpenOutputStream and CloseOutput Antonio Rojas <arojas@archlinux.org> yes upstream 2022-08-29
u0-version-python-3.11.patch Bump python_requires to >=3.8, <3.12 Matthias Koeppe <mkoeppe@math.ucdavis.edu> yes upstream 2022-08-08
u0-version-matplotlib-3.6.patch [PATCH] Support matplotlib 3.6 =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy> no 2022-10-11
u0-version-sympy-1.10.patch [PATCH] sage.manifolds: Update doctests for SymPy 1.10 Matthias Koeppe <mkoeppe@math.ucdavis.edu> no 2022-03-04
u0-version-scipy-1.8.patch [PATCH] Fix deprecation warning with scipy 1.8 Antonio Rojas <arojas@archlinux.org> no 2022-02-13
u0-version-singular-4.3.1-p3.patch Apply https://github.com/archlinux/svntogit-community/blob/packages/sagemath/trunk/sagemath-singular-4.3.1.p3.patch Matthias Koeppe <mkoeppe@math.ucdavis.edu> yes upstream 2022-12-14
u0-32bit-integer-check.patch [PATCH] Fix bug in conversion from python int to ZZ (python 3.11, 32 bit)

This affects 32 bit architectures, where the representation of python
integers changed in cpython 3.11, when compiled with gcc12.

As part of #33842, the function `sage.arith.long.integer_check_long_py()`
was rewritten to support the new representation. Unfortunately a bug
remained that triggers UB for the conversion of integers between 2^60
and 2^63-1. Alas, the undesired behaviour does not happen with gcc10;
it only started when I switched to gcc12.

The bug manifests in lots of doctests failing, but a quick way to
demonstrate the issue is

sage: ZZ ( int(1152921504606847018) ) # 2^60 + 42
42

The function `integer_check_long_py()` has good unit testing, checking
values around the word size, but this range was missing.

This commit adds a simple fix and new test cases for a few integers in
this range.

Technical explanation:

The UB is in the line

cdef long lead_3_overflow = (<long>1) << (BITS_IN_LONG - 2 * PyLong_SHIFT)

In our case we have `BITS_IN_LONG == 31` and `PyLong_SHIFT == 30` so the
computed value is `<long>1 << -29` which is UB and it happens to
evaluate to 0 with gcc10 but 8 with gcc12.

The solution is to set the value to 0 when `BITS_IN_LONG < 2 * PyLong_SHIFT`.
=?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy> yes upstream 2023-01-04
u0-fix-arm64-libgap-segfaults.patch Surround GAP_ValueGlobalVariable calls by GAP_Enter/GAP_Leave Mauricio Collares <mauricio@collares.org> yes upstream 2022-09-23
u1-ipywidgets-repr.patch Money-patch ipywidgets in the way that Sage upstream expects Sage upstream patches ipywidgets, but this is still being discussed
upstream (see Bug below). In the meantime, we can have Sage monkey-patch
ipywidgets at runtime, to prevent other users of ipywidgets being affected.
Jeroen Demeyer <jdemeyer@cage.ugent.be> yes upstream
u2-fix-sympow-cachedir.patch Set SYMPOW_CACHEDIR to be inside DOT_SAGE Otherwise tests fail in sbuild because sympow can't create HOME/.sympow Ximin Luo <infinity0@debian.org> invalid
d0-cygdb3.patch Find cygdb binary cygdb is called cygdb3 in Debian. Tobias Hansen <thansen@debian.org> no
d0-mathjax.patch Change mathjax_path _static/mathjax are symlinks to /usr/share/javascript/mathjax created in debian/rules. Tobias Hansen <thansen@debian.org> not-needed
d0-rubiks.patch Find rubiks binaries They have different names in Debian. Tobias Hansen <thansen@debian.org> no
d1-doc-docs.patch no
dt-version-ipywidgets-6-revert-31517.patch Sage output MathJax3 compatible htmls Kwankyu Lee <ekwankyu@gmail.com> no 2021-04-09
dt-version-ipywidgets-6-revert-23177.patch Upgrade to ipywidgets 7 Jeroen Demeyer <jdemeyer@cage.ugent.be> no 2017-06-08
dt-version-ipywidgets-6-tests.patch Adjust tests for ipywidgets 6 Adjust some more tests to the argument order used with ipywidgets 6. Martin von Gagern <Martin.vGagern@gmx.net> no
dt-ignore-deprecation-warnings.patch ignore some deprecation warnings Rogo <rogo95@proton.me> no

All known versions for source package 'sagemath'

Links