Control: tags -1 patch

Hi,

as Adrian indicated, the setuptools issue is now fixed and the 
dt-reorder-cython-setuptools-import.patch is not needed anymore.
However, there are now several unrelated problems causing sagemath to FTBFS.

First of all giac.h can't be compiled, as uchar is not defined.
Workaround: Add '#define uchar u_char' at the beginning of 
/usr/include/giac/giac.h.

Then debian/rules needs to be adapted to Python 3.11:
$ sed -i 's/python3.10/python3.11/' debian/rules

Further backporting some patches from upstream (on top of what is currently in 
git) is necessary:
# Python 3.11
de38bac21e2 src/sage: Apply python-3.11.patch from 
https://github.com/void-linux/void-packages/commit/6229f313450ecae88743b4d5e99da2ed4de44e07
9eb08f3afde inspect.ArgSpec -> inspect.FullArgSpec
8955607c71c dict_del_by_value: move python internal definitions to a separate 
file
76040803c8a dict_del_by_value: add internal definitions for python 3.11
014c2ac9a6f deprecated uu -> base64
dc8e155994a sage.misc.fpickle: fix for python 3.11
fd4d6975790 src/sage/misc/fpickle.pyx: Fix docstring markup
8b0dac2322d Fix FullArgSpec usage after 9eb08f3afde3266bbd667e196513240a0fe245f4
db45aebfd6b warnings: ignore deprecation for 'import cgi' in cython
664fc008ed5 warnings: ignore deprecation for 'import sre_constants' in pyparsing
0f63cce4ed1 src/sage/repl/display/formatter.py: Replace use of SAGE_EXTCODE in 
doctest by importlib.resources
08e1161c23c warnings: ignore deprecation of importlib.resources.path/read_binary
ed9fe6746f9 remove traces of # py3 and some # py2
44480f4827e doctests: fixes due to ArgSpec -> FullArgSpec change
482dd1ac3d2 doctests: AssertionError message changed in python 3.11
7b6fa565f42 doctests: message added more info in python 3.11
c928c2c7978 src/sage/all.py: Filter out imghdr deprecation warnings
ac0105e720d Filter out locale DeprecationWarning

# Sphinx 5.2
3ee509aec95 remove unused, and removed from sphinx 5, imported 
get_module_members
18c92459b33 fix syntax so extlinks stop complaining
c27e4e4c979 migrate from filename_set to record_dependencies as suggested in 
https://www.sphinx-doc.org/en/master/extdev/deprecated.html
c2e610cfba0 Fix build with sphinx 5.2

# Matplotlib 3.6
5501e0de0dc Support matplotlib 3.6
4645a0d0c10 Removing faulty plot
f0a77039bb2 Add back doctest
8371dd75013 Missing part of the fix
a8741d8c60d Edit the doctest
64589686c26 More edis of the doctest

# SymPy 1.10
609dd9deaea sage.manifolds: Update doctests for SymPy 1.10

# SciPy 1.8
9c8235e44ff Fix deprecation warning with scipy 1.8

# Singular 4.3.1p3
42342b90043 Apply 
https://github.com/archlinux/svntogit-community/blob/packages/sagemath/trunk/sagemath-singular-4.3.1.p3.patch
6e03fbe3161 Singular supports larger exponents now, adapt tests
267177af61d Fix one more test
d2b0016b838 Account for different bahavior of pTakeOutComp and pTakeOutComp1

This makes it possible to compile sagemath, but then 138 tests fail, which is 
larger then the threshold of 100.
Many are due to new deprecation warnings that can simply be ignored for now, 
e.g. with the attached dt-ignore-deprecation-warnings.patch.
With that patch only 97 tests fail, so building sagemath works again!

Best regards,
Rogo
Description: ignore some deprecation warnings
Author: Rogo <rog...@proton.me>

--- a/sage/src/sage/all.py
+++ b/sage/src/sage/all.py
@@ -126,6 +126,18 @@ warnings.filterwarnings('ignore', category=DeprecationWarning,
                         message=r"Use setlocale\(\), getencoding\(\) and getlocale\(\) instead",
                         module='docutils.io')
 
+# ignore some deprecation warnings
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+                        message="msvccompiler is deprecated and slated to be removed in the future. Please discontinue use or file an issue with pypa/distutils describing your use case.")
+warnings.filterwarnings('ignore', category=FutureWarning,
+                        message=r"In the future `np.(bool|bytes)` will be defined as the corresponding NumPy scalar.  \(This may have returned Python scalars in past versions.")
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+                        message="'imghdr' is deprecated and slated for removal in Python 3.13")
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+                        message="'cgi' is deprecated and slated for removal in Python 3.13")
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+                        message=r"Passing unrecognized arguments to super\(ToggleButtons\).__init__\(style=\{'button_width': 'initial'\}\).")
+
 ################ end setup warnings ###############################
 
 

Reply via email to