Source: protobuf
Version: 3.21.12-9
Severity: serious
Tags: ftbfs
Justification: FTBFS
User: debian-pyt...@lists.debian.org
Usertags: setup.py-test

Dear maintainer,

During a test rebuild for packages affected by setuptools 72, protobuf
failed to rebuild.

FWIW: I think these bugs were all caused by setuptools v72 dropping
support for the "test" command, so dh-python has fallen back to
distutils / other test plugins.

If you're trying to figure out how to fix the bug, look at the
implementation of test_suite in setup.py to see what magic it does for
test setup.

-------------------------------------------------------------------------------
[...]
PASS: google/protobuf/io/gzip_stream_unittest.sh
PASS: google/protobuf/compiler/zip_output_unittest.sh
PASS: protobuf-test
============================================================================
Testsuite summary for Protocol Buffers 3.21.12
============================================================================
# TOTAL: 7
# PASS:  7
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
set -e; \
export LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/src/.libs; \
cd python3 && for PYTHON in python3.12; do \
        $PYTHON setup.py test --cpp_implementation; \
done
/<<PKGBUILDDIR>>/python3/setup.py:11: 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/setuptools/_distutils/dist.py:268: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/dist.py:653: 
SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
!!

        
********************************************************************************
        Please replace its usage with implicit namespaces (PEP 420).

        See 
https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
 for details.
        
********************************************************************************

!!
  ep.load()(self, ep.name, value)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'test'
make[1]: *** [debian/rules:101: override_dh_auto_test-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:22: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-08-28T03:46:52Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/552871/

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/9784/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,

Stefano

Reply via email to