Source: sagemath
Version: 9.5-6
Severity: minor
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-binary-20230816 ftbfs-binary-after-build
User: [email protected]
Usertags: qa-doublebuild

Hi,

This package fails to do build a binary-only build (not source) after a
successful build (dpkg-buildpackage ; dpkg-buildpackage -b).

This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.

More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/DoubleBuild

Relevant part of the build log:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env 
> -us -uc -rfakeroot -b
> ---------------------------------------------------------------------------------------------------------------------
> 
> dpkg-buildpackage: info: source package sagemath
> dpkg-buildpackage: info: source version 9.5-6
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Tobias Hansen <[email protected]>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
> dpkg-source: info: using options from sagemath-9.5/debian/source/options: 
> --extend-diff-ignore=^sage/(m4/sage_spkg_configures.m4|src/doc/en/installation/.*\.txt|build/bin/sage-build-env-config|build/pkgs/sage_conf/src/sage_conf.py|build/pkgs/sage_conf/src/setup.cfg)
>  debian/rules clean
> dh clean --with=python3,sphinxdoc --buildsystem=pybuild 
> --sourcedir=sage/pkgs/sagemath-standard
>    dh_autoreconf_clean -O--buildsystem=pybuild 
> -O--sourcedir=sage/pkgs/sagemath-standard
>    debian/rules override_dh_clean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> rm -rf .sage .texlive2021 debian/python3-sage-dbg
> rm -f sage/pkgs/sagemath-standard/sage_conf.py
> dh_clean
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>  debian/rules binary
> dh binary --with=python3,sphinxdoc --buildsystem=pybuild 
> --sourcedir=sage/pkgs/sagemath-standard
>    debian/rules install
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh install --with=python3,sphinxdoc --buildsystem=pybuild 
> --sourcedir=sage/pkgs/sagemath-standard
>    debian/rules build
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> dh build --with=python3,sphinxdoc --buildsystem=pybuild 
> --sourcedir=sage/pkgs/sagemath-standard
>    dh_update_autotools_config -O--buildsystem=pybuild 
> -O--sourcedir=sage/pkgs/sagemath-standard
>    dh_autoreconf -O--buildsystem=pybuild 
> -O--sourcedir=sage/pkgs/sagemath-standard
>    debian/rules override_dh_auto_configure
> make[3]: Entering directory '/<<PKGBUILDDIR>>'
> cd sage/pkgs/sage-setup && python3 setup.py build
> running build
> running build_py
> cd sage/pkgs/sage-setup && python3 setup.py install 
> --root=/<<PKGBUILDDIR>>/debian/tmp0 --install-layout=deb
> running install
> /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: 
> SetuptoolsDeprecationWarning: setup.py install is deprecated.
> !!
> 
>         
> ********************************************************************************
>         Please avoid running ``setup.py`` directly.
>         Instead, use pypa/build, pypa/installer or other
>         standards-based tools.
> 
>         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html 
> for details.
>         
> ********************************************************************************
> 
> !!
>   self.initialize_options()
> running build
> running build_py
> running install_lib
> running install_egg_info
> running egg_info
> writing sage_setup.egg-info/PKG-INFO
> writing dependency_links to sage_setup.egg-info/dependency_links.txt
> writing requirements to sage_setup.egg-info/requires.txt
> writing top-level names to sage_setup.egg-info/top_level.txt
> reading manifest file 'sage_setup.egg-info/SOURCES.txt'
> writing manifest file 'sage_setup.egg-info/SOURCES.txt'
> removing 
> '/<<PKGBUILDDIR>>/debian/tmp0/usr/lib/python3/dist-packages/sage_setup-9.5.egg-info'
>  (and everything under it)
> Copying sage_setup.egg-info to 
> /<<PKGBUILDDIR>>/debian/tmp0/usr/lib/python3/dist-packages/sage_setup-9.5.egg-info
> Skipping SOURCES.txt
> running install_scripts
> export PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp0/usr/lib/python3/dist-packages 
> && dh_auto_configure
> I: pybuild base:291: python3.11 setup.py config 
> /bin/sh: 1: --version: not found
> distributions = ['']
> Discovering Python/Cython source code....
> Discovered Python/Cython sources, time: 0.20 seconds.
> running config
> I: pybuild base:291: python3.11-dbg setup.py config 
> /bin/sh: 1: --version: not found
> distributions = ['']
> Discovering Python/Cython source code....
> Discovered Python/Cython sources, time: 0.50 seconds.
> running config
> make[3]: Leaving directory '/<<PKGBUILDDIR>>'
>    debian/rules override_dh_auto_build-arch
> make[3]: Entering directory '/<<PKGBUILDDIR>>'
> cp -f debian/sage_conf.py sage/pkgs/sagemath-standard/
> cd sage/build/pkgs/sagelib && SAGE_ROOT=/<<PKGBUILDDIR>>/sage 
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/<<PKGBUILDDIR>>/sage/build/bin
>  ./bootstrap
> sed -i '/sage-conf/d' sage/src/setup.cfg
> export PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp0/usr/lib/python3/dist-packages 
> && dh_auto_build
> I: pybuild base:291: /usr/bin/python3 setup.py build 
> /bin/sh: 1: --version: not found
> distributions = ['']
> Discovering Python/Cython source code....
> Discovered Python/Cython sources, time: 0.20 seconds.
> running build
> Generating auto-generated sources
> Building interpreters for fast_callable
> running build_cython
> Enabling Cython debugging support
> INFO: Disabling color, you really want to install colorlog.
> Disabling color, you really want to install colorlog.
> /usr/lib/python3/dist-packages/pythran/tables.py:4530: FutureWarning: In the 
> future `np.bool` will be defined as the corresponding NumPy scalar.
>   if not hasattr(numpy, method):
> /usr/lib/python3/dist-packages/pythran/tables.py:4563: FutureWarning: In the 
> future `np.bytes` will be defined as the corresponding NumPy scalar.
>   obj = getattr(themodule, elem)
> Executing 0 commands (using 1 thread)
> Time to execute 0 commands: 0.05 seconds.
> Total time spent compiling C/C++ extensions: 0.11 seconds.
> I: pybuild base:291: /usr/bin/python3-dbg setup.py build 
> /bin/sh: 1: --version: not found
> distributions = ['']
> Discovering Python/Cython source code....
> Discovered Python/Cython sources, time: 0.52 seconds.
> running build
> Generating auto-generated sources
> Building interpreters for fast_callable
> running build_cython
> Enabling Cython debugging support
> /<<PKGBUILDDIR>>/debian/tmp0/usr/lib/python3/dist-packages/sage_setup/command/sage_build_cython.py:163:
>  ResourceWarning: unclosed file <_io.TextIOWrapper 
> name='build/cythonized/.cython_version' mode='r' encoding='UTF-8'>
>   if open(self._version_file).read() == self._version_stamp:
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> INFO: Disabling color, you really want to install colorlog.
> Disabling color, you really want to install colorlog.
> /usr/lib/python3/dist-packages/pythran/config.py:8: DeprecationWarning: 
> 
>   `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
>   of the deprecation of `distutils` itself. It will be removed for
>   Python >= 3.12. For older Python versions it will remain present.
>   It is recommended to use `setuptools < 60.0` for those Python versions.
>   For more details, see:
>     https://numpy.org/devdocs/reference/distutils_status_migration.html 
> 
> 
>   import numpy.distutils.system_info as numpy_sys
> /usr/lib/python3/dist-packages/setuptools/_distutils/msvccompiler.py:66: 
> DeprecationWarning: 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.warn(
> /usr/lib/python3/dist-packages/pythran/tables.py:4530: FutureWarning: In the 
> future `np.bool` will be defined as the corresponding NumPy scalar.
>   if not hasattr(numpy, method):
> /usr/lib/python3/dist-packages/pythran/tables.py:4563: FutureWarning: In the 
> future `np.bytes` will be defined as the corresponding NumPy scalar.
>   obj = getattr(themodule, elem)
> /usr/lib/python3/dist-packages/setuptools/sandbox.py:13: DeprecationWarning: 
> pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>   import pkg_resources
> /usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('mpl_toolkits')`.
> Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>   declare_namespace(pkg)
> Executing 0 commands (using 1 thread)
> Time to execute 0 commands: 0.06 seconds.
> Total time spent compiling C/C++ extensions: 0.28 seconds.
> export PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp0/usr/lib/python3/dist-packages 
> && dh_auto_install
> I: pybuild base:291: /usr/bin/python3 setup.py install --root 
> /<<PKGBUILDDIR>>/debian/python3-sage 
> /bin/sh: 1: --version: not found
> distributions = ['']
> Discovering Python/Cython source code....
> Discovered Python/Cython sources, time: 0.22 seconds.
> running install
> running build
> Generating auto-generated sources
> Building interpreters for fast_callable
> running build_cython
> Enabling Cython debugging support
> INFO: Disabling color, you really want to install colorlog.
> Disabling color, you really want to install colorlog.
> /usr/lib/python3/dist-packages/pythran/tables.py:4530: FutureWarning: In the 
> future `np.bool` will be defined as the corresponding NumPy scalar.
>   if not hasattr(numpy, method):
> /usr/lib/python3/dist-packages/pythran/tables.py:4563: FutureWarning: In the 
> future `np.bytes` will be defined as the corresponding NumPy scalar.
>   obj = getattr(themodule, elem)
> Executing 0 commands (using 1 thread)
> Time to execute 0 commands: 0.03 seconds.
> Total time spent compiling C/C++ extensions: 0.09 seconds.
> warning: no files found matching '*.hh' anywhere in distribution
> warning: no files found matching '*.inc' anywhere in distribution
> no previously-included directories found matching '.tox'
> warning: no directories found matching 'sage/libs/gap/test'
> no previously-included directories found matching 'sage_setup'
> I: pybuild base:291: /usr/bin/python3-dbg setup.py install --root 
> /<<PKGBUILDDIR>>/debian/python3-sage-dbg 
> /bin/sh: 1: --version: not found
> distributions = ['']
> Discovering Python/Cython source code....
> Discovered Python/Cython sources, time: 0.56 seconds.
> running install
> /usr/lib/python3/dist-packages/setuptools/_distutils/util.py:230: 
> DeprecationWarning: shell/Perl-style substitutions are deprecated
>   warnings.warn(
> running build
> Generating auto-generated sources
> Building interpreters for fast_callable
> running build_cython
> Enabling Cython debugging support
> /<<PKGBUILDDIR>>/debian/tmp0/usr/lib/python3/dist-packages/sage_setup/command/sage_build_cython.py:163:
>  ResourceWarning: unclosed file <_io.TextIOWrapper 
> name='build/cythonized/.cython_version' mode='r' encoding='UTF-8'>
>   if open(self._version_file).read() == self._version_stamp:
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> INFO: Disabling color, you really want to install colorlog.
> Disabling color, you really want to install colorlog.
> /usr/lib/python3/dist-packages/pythran/config.py:8: DeprecationWarning: 
> 
>   `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
>   of the deprecation of `distutils` itself. It will be removed for
>   Python >= 3.12. For older Python versions it will remain present.
>   It is recommended to use `setuptools < 60.0` for those Python versions.
>   For more details, see:
>     https://numpy.org/devdocs/reference/distutils_status_migration.html 
> 
> 
>   import numpy.distutils.system_info as numpy_sys
> /usr/lib/python3/dist-packages/setuptools/_distutils/msvccompiler.py:66: 
> DeprecationWarning: 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.warn(
> /usr/lib/python3/dist-packages/pythran/tables.py:4530: FutureWarning: In the 
> future `np.bool` will be defined as the corresponding NumPy scalar.
>   if not hasattr(numpy, method):
> /usr/lib/python3/dist-packages/pythran/tables.py:4563: FutureWarning: In the 
> future `np.bytes` will be defined as the corresponding NumPy scalar.
>   obj = getattr(themodule, elem)
> /usr/lib/python3/dist-packages/setuptools/sandbox.py:13: DeprecationWarning: 
> pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>   import pkg_resources
> /usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('mpl_toolkits')`.
> Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>   declare_namespace(pkg)
> Executing 0 commands (using 1 thread)
> Time to execute 0 commands: 0.05 seconds.
> Total time spent compiling C/C++ extensions: 0.23 seconds.
> warning: no files found matching '*.hh' anywhere in distribution
> warning: no files found matching '*.inc' anywhere in distribution
> no previously-included directories found matching '.tox'
> warning: no directories found matching 'sage/libs/gap/test'
> no previously-included directories found matching 'sage_setup'
> mkdir -p debian/tmp
> mv debian/python3-sage/usr debian/tmp/
> rm -rf debian/python3-sage
> mkdir -p debian/tmp/usr/lib/python3.11/dist-packages/
> cp -f debian/sage_conf.py debian/tmp/usr/lib/python3.11/dist-packages/
> dh override_dh_auto_build-arch --with=python3,sphinxdoc --buildsystem=pybuild 
> --sourcedir=sage/pkgs/sagemath-standard
> make[3]: Leaving directory '/<<PKGBUILDDIR>>'
>    debian/rules override_dh_auto_build-indep
> make[3]: Entering directory '/<<PKGBUILDDIR>>'
> cd sage && SAGE_ROOT=/<<PKGBUILDDIR>>/sage 
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/<<PKGBUILDDIR>>/sage/build/bin
>  src/doc/bootstrap
> mv sage/src/sage sage/src/sage.bak # Use the installed sage, not the one from 
> the source tree
> cd sage/src && \
> export 
> PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3.11/dist-packages \
>        SAGE_SRC=/<<PKGBUILDDIR>>/sage/src \
>        SAGE_DOC_SRC=/<<PKGBUILDDIR>>/sage/src/doc \
>        SAGE_DOC=/<<PKGBUILDDIR>>/sage/src/doc \
>        MATHJAX_DIR=/usr/share/javascript/mathjax \
>        LANG=C && \
> python3 -m sage_docbuild --no-pdf-links --mathjax all html
> /<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py:1728: DeprecationWarning: 
> avoid using "sage --docbuild all html" and "sage --docbuild all pdf"; use 
> "make doc" and "make doc-pdf" instead, if available.
> See https://trac.sagemath.org/31948 for details.
>   builder = getattr(get_builder(name), typ)
> 
> Building reference manual, first pass.
> 
> [reference] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 1 added, 0 changed, 0 removed
> [reference] The inventory files are in doc/inventory/en/reference/references.
> Build finished. The built documents can be found in 
> /<<PKGBUILDDIR>>/sage/src/doc/inventory/en/reference/references
> 0.00s - Debugger warning: It seems that frozen modules are being used, which 
> may
> 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
> 0.00s - to python to disable frozen modules.
> 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to 
> disable this validation.
> [repl     ] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 36 added, 0 changed, 0 removed
> [tensor_fr] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 19 added, 0 changed, 0 removed
> [spkg     ] building [inventory]: targets for 355 source files that are out 
> of date
> [spkg     ] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 355 added, 0 changed, 0 removed
> [dynamics ] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 16 added, 0 changed, 0 removed
> [polynomia] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 62 added, 0 changed, 0 removed
> [algebras ] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 99 added, 0 changed, 0 removed
> [manifolds] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 84 added, 0 changed, 0 removed
> [tensor_fr] The inventory files are in 
> doc/inventory/en/reference/tensor_free_modules.
> Build finished. The built documents can be found in 
> /<<PKGBUILDDIR>>/sage/src/doc/inventory/en/reference/tensor_free_modules
> [repl     ] The inventory files are in doc/inventory/en/reference/repl.
> Build finished. The built documents can be found in 
> /<<PKGBUILDDIR>>/sage/src/doc/inventory/en/reference/repl
> [spkg     ] 
> /<<PKGBUILDDIR>>/sage/src/doc/en/reference/spkg/index_alph.rst:362: WARNING: 
> Explicit markup ends without a blank line; unexpected unindent.
> [plot3d   ] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 20 added, 0 changed, 0 removed
> [arithgrou] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 12 added, 0 changed, 0 removed
> [combinat ] updating environment: [config changed 
> ('autodoc_builtin_argspec')] 369 added, 0 changed, 0 removed
> [dynamics ] The inventory files are in doc/inventory/en/reference/dynamics.
> Build finished. The built documents can be found in 
> /<<PKGBUILDDIR>>/sage/src/doc/inventory/en/reference/dynamics
> [arithgrou] The inventory files are in doc/inventory/en/reference/arithgroup.
> Build finished. The built documents can be found in 
> /<<PKGBUILDDIR>>/sage/src/doc/inventory/en/reference/arithgroup
> [spkg     ] The inventory files are in doc/inventory/en/reference/spkg.
> Error building the documentation.
> Traceback (most recent call last):
>   File "<frozen runpy>", line 198, in _run_module_as_main
>   File "<frozen runpy>", line 88, in _run_code
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__main__.py", line 2, in 
> <module>
>     main()
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 1729, in 
> main
>     builder()
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 348, in 
> _wrapper
>     getattr(get_builder(document), 'inventory')(*args, **kwds)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 537, in 
> _wrapper
>     self._build_everything_except_bibliography(format, *args, **kwds)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 521, in 
> _build_everything_except_bibliography
>     build_many(build_ref_doc, non_references)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/__init__.py", line 299, in 
> build_many
>     _build_many(target, args, processes=processes)
>   File "/<<PKGBUILDDIR>>/sage/src/sage_docbuild/utils.py", line 289, in 
> build_many
>     raise worker_exc.original_exception
> OSError: /<<PKGBUILDDIR>>/sage/src/doc/en/reference/spkg/index_alph.rst:362: 
> WARNING: Explicit markup ends without a blank line; unexpected unindent.
> 
>     Note: incremental documentation builds sometimes cause spurious
>     error messages. To be certain that these are real errors, run
>     "make doc-clean doc-uninstall" first and try again.
> make[3]: *** [debian/rules:84: override_dh_auto_build-indep] Error 1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>'
> make[2]: *** [debian/rules:39: build] Error 2
> make[2]: Leaving directory '/<<PKGBUILDDIR>>'
> make[1]: *** [debian/rules:39: install] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:39: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 
> 2
> 
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage 
> --sanitize-env -us -uc -rfakeroot -b' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/16/sagemath_9.5-6_unstable.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to