Package: src:python-libusb1
Version: 3.1.0+ds-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.13 setup.py config 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running config
I: pybuild base:311: python3.12 setup.py config 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3.13 setup.py build 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running build
running build_py
copying libusb1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1
copying usb1/_libusb1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1
copying usb1/_version.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1
copying usb1/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1
copying usb1/testUSB1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1
copying usb1/libusb1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/__pyinstaller
copying usb1/__pyinstaller/test_libusb1_packaging.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/__pyinstaller
copying usb1/__pyinstaller/hook-usb1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/__pyinstaller
copying usb1/__pyinstaller/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/__pyinstaller
UPDATING /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/_version.py
set /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/_version.py to 
'3.1.0'
I: pybuild base:311: /usr/bin/python3 setup.py build 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running build
running build_py
copying libusb1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1
copying usb1/_libusb1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1
copying usb1/_version.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1
copying usb1/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1
copying usb1/testUSB1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1
copying usb1/libusb1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller
copying usb1/__pyinstaller/test_libusb1_packaging.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller
copying usb1/__pyinstaller/hook-usb1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller
copying usb1/__pyinstaller/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller
UPDATING /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/_version.py
set /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/_version.py to 
'3.1.0'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build; 
python3.13 -m unittest discover -v 
testDefaultEnumScope (usb1.testUSB1.USBTransferTests.testDefaultEnumScope)
Enum instances must only affect the scope they are created in. ... FAIL
testDescriptors (usb1.testUSB1.USBTransferTests.testDescriptors) ... skipped 
'descriptor walk test did not complete'
testDescriptorsWithExtra 
(usb1.testUSB1.USBTransferTests.testDescriptorsWithExtra) ... skipped 
'descriptor walk test did not complete'
testExplicitEnumScope (usb1.testUSB1.USBTransferTests.testExplicitEnumScope)
Enum instances must only affect the scope they are created in. ... ok
testGetVersion (usb1.testUSB1.USBTransferTests.testGetVersion)
Just testing getVersion doesn't raise... ... ok
testHasCapability (usb1.testUSB1.USBTransferTests.testHasCapability)
Just testing hasCapability doesn't raise... ... ok
testHasVersion (usb1.testUSB1.USBTransferTests.testHasVersion) ... ok
testImplicitUSBContextOpening 
(usb1.testUSB1.USBTransferTests.testImplicitUSBContextOpening)
Test pre-1.5 API backward compatibility. ... 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/__init__.py:2092: 
DeprecationWarning: Use "with USBContext() as context:" for safer cleanup on 
interpreter shutdown. See also USBContext.open().
  warnings.warn(
ok
testSetBulk (usb1.testUSB1.USBTransferTests.testSetBulk)
Simplest test: feed some data, must not raise. ... ok
testSetControl (usb1.testUSB1.USBTransferTests.testSetControl)
Simplest test: feed some data, must not raise. ... ok
testSetGetCallback (usb1.testUSB1.USBTransferTests.testSetGetCallback) ... ok
testSetInterrupt (usb1.testUSB1.USBTransferTests.testSetInterrupt)
Simplest test: feed some data, must not raise. ... ok
testSetIsochronous (usb1.testUSB1.USBTransferTests.testSetIsochronous)
Simplest test: feed some data, must not raise. ... ok

======================================================================
FAIL: testDefaultEnumScope (usb1.testUSB1.USBTransferTests.testDefaultEnumScope)
Enum instances must only affect the scope they are created in.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build/usb1/testUSB1.py", 
line 287, in testDefaultEnumScope
    self.assertEqual(local_dict.get(ENUM_NAME), ENUM_VALUE)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: None != 42

----------------------------------------------------------------------
Ran 13 tests in 0.008s

FAILED (failures=1, skipped=2)
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_usb1/build; python3.13 -m unittest 
discover -v 
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build; 
python3.12 -m unittest discover -v 
testDefaultEnumScope (usb1.testUSB1.USBTransferTests.testDefaultEnumScope)
Enum instances must only affect the scope they are created in. ... ok
testDescriptors (usb1.testUSB1.USBTransferTests.testDescriptors) ... skipped 
'descriptor walk test did not complete'
testDescriptorsWithExtra 
(usb1.testUSB1.USBTransferTests.testDescriptorsWithExtra) ... skipped 
'descriptor walk test did not complete'
testExplicitEnumScope (usb1.testUSB1.USBTransferTests.testExplicitEnumScope)
Enum instances must only affect the scope they are created in. ... ok
testGetVersion (usb1.testUSB1.USBTransferTests.testGetVersion)
Just testing getVersion doesn't raise... ... ok
testHasCapability (usb1.testUSB1.USBTransferTests.testHasCapability)
Just testing hasCapability doesn't raise... ... ok
testHasVersion (usb1.testUSB1.USBTransferTests.testHasVersion) ... ok
testImplicitUSBContextOpening 
(usb1.testUSB1.USBTransferTests.testImplicitUSBContextOpening)
Test pre-1.5 API backward compatibility. ... 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__init__.py:2092: 
DeprecationWarning: Use "with USBContext() as context:" for safer cleanup on 
interpreter shutdown. See also USBContext.open().
  warnings.warn(
ok
testSetBulk (usb1.testUSB1.USBTransferTests.testSetBulk)
Simplest test: feed some data, must not raise. ... ok
testSetControl (usb1.testUSB1.USBTransferTests.testSetControl)
Simplest test: feed some data, must not raise. ... ok
testSetGetCallback (usb1.testUSB1.USBTransferTests.testSetGetCallback) ... ok
testSetInterrupt (usb1.testUSB1.USBTransferTests.testSetInterrupt)
Simplest test: feed some data, must not raise. ... ok
testSetIsochronous (usb1.testUSB1.USBTransferTests.testSetIsochronous)
Simplest test: feed some data, must not raise. ... ok

----------------------------------------------------------------------
Ran 13 tests in 0.008s

OK (skipped=2)
dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned 
exit code 13
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202412/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

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.

Reply via email to