Package: src:python-ciso8601
Version: 2.3.1-2
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with python3 --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.12 setup.py config
/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/_distutils/dist.py:268: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
/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/_distutils/dist.py:268: UserWarning: 
Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ciso8601/build/ciso8601
copying ciso8601/__init__.pyi -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ciso8601/build/ciso8601
copying ciso8601/py.typed -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ciso8601/build/ciso8601
running build_ext
building 'ciso8601' extension
creating build
creating build/temp.linux-x86_64-cpython-312
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security 
-fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCISO8601_VERSION=2.3.1 
-DCISO8601_CACHING_ENABLED=1 -I/usr/include/python3.12 -c isocalendar.c -o 
build/temp.linux-x86_64-cpython-312/isocalendar.o
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security 
-fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCISO8601_VERSION=2.3.1 
-DCISO8601_CACHING_ENABLED=1 -I/usr/include/python3.12 -c module.c -o 
build/temp.linux-x86_64-cpython-312/module.o
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security 
-fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCISO8601_VERSION=2.3.1 
-DCISO8601_CACHING_ENABLED=1 -I/usr/include/python3.12 -c timezone.c -o 
build/temp.linux-x86_64-cpython-312/timezone.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro 
-Wl,-z,now -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection 
-Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-cpython-312/isocalendar.o build/temp.linux-x86_64-cpython-312/module.o 
build/temp.linux-x86_64-cpython-312/timezone.o -L/usr/lib/x86_64-linux-gnu -o 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ciso8601/build/ciso8601.cpython-312-x86_64-linux-gnu.so
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ciso8601/build; 
python3.12 -m unittest discover -v
test_dst (tests.test_timezone.TimezoneTestCase.test_dst) ... ok
test_fromutc (tests.test_timezone.TimezoneTestCase.test_fromutc) ... ok
test_fromutc_fails_if_given_non_datetime 
(tests.test_timezone.TimezoneTestCase.test_fromutc_fails_if_given_non_datetime) 
... ok
test_fromutc_fails_if_tzinfo_is_none 
(tests.test_timezone.TimezoneTestCase.test_fromutc_fails_if_tzinfo_is_none) ... 
ok
test_fromutc_fails_if_tzinfo_is_some_other_offset 
(tests.test_timezone.TimezoneTestCase.test_fromutc_fails_if_tzinfo_is_some_other_offset)
 ... ok
test_fromutc_straddling_a_day_boundary 
(tests.test_timezone.TimezoneTestCase.test_fromutc_straddling_a_day_boundary) 
... ok
test_tzname (tests.test_timezone.TimezoneTestCase.test_tzname) ... ok
test_utcoffset (tests.test_timezone.TimezoneTestCase.test_utcoffset) ... ok
tests.tests (unittest.loader._FailedTest.tests.tests) ... ERROR

======================================================================
ERROR: tests.tests (unittest.loader._FailedTest.tests.tests)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.tests
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in 
_get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ciso8601/build/tests/tests.py", line 
12, in <module>
    from generate_test_timestamps import generate_valid_timestamp_and_datetime, 
generate_invalid_timestamp
ModuleNotFoundError: No module named 'generate_test_timestamps'


----------------------------------------------------------------------
Ran 9 tests in 0.028s

FAILED (errors=1)
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ciso8601/build; python3.12 -m unittest 
discover -v
dh_auto_test: error: pybuild --test -i python{version} -p 3.12 returned exit 
code 13
make: *** [debian/rules:12: 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/202408/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large 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