Package: src:python-pycdlib
Version: 1.12.0+ds1-4
Severity: important
Tags: ftbfs patch

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules binary-indep
make: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
dh binary-indep --with python3
   dh_update_autotools_config -i
   dh_autoreconf -i
   dh_auto_configure -i
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[1]: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
echo "Do nothing..."
Do nothing...
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[1]: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
echo "Do nothing..."
Do nothing...
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   create-stamp debian/debhelper-build-stamp
   dh_prep -i
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[1]: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
pkgos-dh_auto_install --no-py2 --in-tmp
+ PKGOS_IN_TMP=no
+ echo WARNING: --no-py2 is deprecated and always on.
WARNING: --no-py2 is deprecated and always on.
+ shift
+ PKGOS_IN_TMP=yes
+ shift
+ dpkg-parsechangelog -SSource
+ SRC_PKG_NAME=python-pycdlib
+ echo python-pycdlib
+ sed s/python-//
+ PY_MODULE_NAME=pycdlib
+ py3versions -vr
+ PYTHON3S=3.11
+ [ yes = yes ]
+ TARGET_DIR=tmp
+ pwd
+ python3.11 setup.py install --install-layout=deb --root 
/<<PKGBUILDDIR>>/debian/tmp
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: 
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip 
and other standards-based tools.
  warnings.warn(
running build
running build_py
creating build
creating build/lib
creating build/lib/pycdlib
copying pycdlib/isohybrid.py -> build/lib/pycdlib
copying pycdlib/pycdlibexception.py -> build/lib/pycdlib
copying pycdlib/facade.py -> build/lib/pycdlib
copying pycdlib/utils.py -> build/lib/pycdlib
copying pycdlib/inode.py -> build/lib/pycdlib
copying pycdlib/eltorito.py -> build/lib/pycdlib
copying pycdlib/pycdlib.py -> build/lib/pycdlib
copying pycdlib/headervd.py -> build/lib/pycdlib
copying pycdlib/udf.py -> build/lib/pycdlib
copying pycdlib/dr.py -> build/lib/pycdlib
copying pycdlib/path_table_record.py -> build/lib/pycdlib
copying pycdlib/pycdlibio.py -> build/lib/pycdlib
copying pycdlib/dates.py -> build/lib/pycdlib
copying pycdlib/backport_functools.py -> build/lib/pycdlib
copying pycdlib/__init__.py -> build/lib/pycdlib
copying pycdlib/rockridge.py -> build/lib/pycdlib
running build_scripts
creating build/scripts-3.11
copying and adjusting tools/pycdlib-explorer -> build/scripts-3.11
copying and adjusting tools/pycdlib-extract-files -> build/scripts-3.11
copying and adjusting tools/pycdlib-genisoimage -> build/scripts-3.11
changing mode of build/scripts-3.11/pycdlib-explorer from 644 to 755
changing mode of build/scripts-3.11/pycdlib-extract-files from 644 to 755
changing mode of build/scripts-3.11/pycdlib-genisoimage from 644 to 755
running install_lib
creating /<<PKGBUILDDIR>>/debian/tmp
creating /<<PKGBUILDDIR>>/debian/tmp/usr
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/isohybrid.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/pycdlibexception.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/facade.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/utils.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/inode.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/eltorito.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/pycdlib.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/headervd.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/udf.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/dr.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/path_table_record.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/pycdlibio.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/dates.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/backport_functools.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/__init__.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
copying build/lib/pycdlib/rockridge.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/isohybrid.py 
to isohybrid.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/pycdlibexception.py
 to pycdlibexception.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/facade.py to 
facade.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/utils.py to 
utils.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/inode.py to 
inode.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/eltorito.py 
to eltorito.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/pycdlib.py to 
pycdlib.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/headervd.py 
to headervd.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/udf.py to 
udf.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/dr.py to 
dr.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/path_table_record.py
 to path_table_record.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/pycdlibio.py 
to pycdlibio.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/dates.py to 
dates.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/backport_functools.py
 to backport_functools.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/__init__.py 
to __init__.cpython-311.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib/rockridge.py 
to rockridge.cpython-311.pyc
running install_data
creating /<<PKGBUILDDIR>>/debian/tmp/usr/share
creating /<<PKGBUILDDIR>>/debian/tmp/usr/share/man
creating /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1
copying man/pycdlib-explorer.1 -> /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1
copying man/pycdlib-extract-files.1 -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1
copying man/pycdlib-genisoimage.1 -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1
running install_egg_info
running egg_info
creating pycdlib.egg-info
writing pycdlib.egg-info/PKG-INFO
writing dependency_links to pycdlib.egg-info/dependency_links.txt
writing top-level names to pycdlib.egg-info/top_level.txt
writing manifest file 'pycdlib.egg-info/SOURCES.txt'
reading manifest file 'pycdlib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'COPYING'
writing manifest file 'pycdlib.egg-info/SOURCES.txt'
Copying pycdlib.egg-info to 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pycdlib-1.12.0.egg-info
Skipping SOURCES.txt
running install_scripts
creating /<<PKGBUILDDIR>>/debian/tmp/usr/bin
copying build/scripts-3.11/pycdlib-explorer -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/bin
copying build/scripts-3.11/pycdlib-extract-files -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/bin
copying build/scripts-3.11/pycdlib-genisoimage -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/bin
changing mode of /<<PKGBUILDDIR>>/debian/tmp/usr/bin/pycdlib-explorer to 755
changing mode of /<<PKGBUILDDIR>>/debian/tmp/usr/bin/pycdlib-extract-files to 
755
changing mode of /<<PKGBUILDDIR>>/debian/tmp/usr/bin/pycdlib-genisoimage to 755
+ pwd
+ rm -rf /<<PKGBUILDDIR>>/debian/python*/usr/lib/python*/dist-packages/*.pth
+ pwd
+ rm -rf /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python*/dist-packages/*.pth
set -e ; set -x ; for pyvers in 3.11; do \
        PATH=$PATH:/<<PKGBUILDDIR>>/debian/tmp/usr/bin 
PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages python$pyvers -m 
pytest tests ; \
done
+ 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/<<PKGBUILDDIR>>/debian/tmp/usr/bin
 PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages python3.11 -m pytest 
tests
============================= test session starts ==============================
platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack
rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
collected 1721 items

tests/integration/test_facade.py ....................................... [  2%]
..................                                                       [  3%]
tests/integration/test_hybrid.py ....................................... [  5%]
....................s................................................... [  9%]
.........s.....................                                          [ 11%]
tests/integration/test_new.py .......................................... [ 14%]
........................................................................ [ 18%]
........................................................................ [ 22%]
........................................................................ [ 26%]
......................................................ssss.............. [ 30%]
........................................................................ [ 34%]
..................................................................s      [ 38%]
tests/integration/test_parse.py ........................................ [ 41%]
....sss................................................................. [ 45%]
.....................................s.................................. [ 49%]
......s.................                                                 [ 50%]
tests/tools/test_pycdlib_genisoimage.py .ssss.                           [ 51%]
tests/unit/test_dates.py ......................F..                       [ 52%]
tests/unit/test_dr.py .........................................          [ 55%]
tests/unit/test_eltorito.py ...............................              [ 56%]
tests/unit/test_headervd.py ............................................ [ 59%]
.......                                                                  [ 59%]
tests/unit/test_inode.py .......                                         [ 60%]
tests/unit/test_isohybrid.py ........................................... [ 62%]
                                                                         [ 62%]
tests/unit/test_ptr.py ........                                          [ 63%]
tests/unit/test_rockridge.py ........................................... [ 65%]
........................................................................ [ 69%]
........................................................................ [ 74%]
.....................................................                    [ 77%]
tests/unit/test_udf.py ................................................. [ 80%]
........................................................................ [ 84%]
........................................................................ [ 88%]
........................................................................ [ 92%]
........................................................................ [ 96%]
................                                                         [ 97%]
tests/unit/test_utils.py ...................FF...................        [100%]

=================================== FAILURES ===================================
_______________________ test_volumedescdate_new_nonzero ________________________

    def test_volumedescdate_new_nonzero():
        oldtz = save_and_set_tz('US/Eastern')
test_seconds_since_epoch = 1546914300.0
        drdate = pycdlib.dates.VolumeDescriptorDate()
        drdate.new(test_seconds_since_epoch)
        assert(drdate.year == 2019)
        assert(drdate.month == 1)
      assert(drdate.dayofmonth == 7)
E       assert 8 == 7
E        +  where 8 = <pycdlib.dates.VolumeDescriptorDate object at 
0x7ffb2948a9d0>.dayofmonth

tests/unit/test_dates.py:232: AssertionError
____________________________ test_gmtoffset_from_tm ____________________________

    def test_gmtoffset_from_tm():
        oldtz = save_and_set_tz('US/Eastern')
        now = 1546914300.0
      assert(pycdlib.utils.gmtoffset_from_tm(now, time.localtime(now)) == -20)
E       AssertionError: assert 0 == -20
E        +  where 0 = <function gmtoffset_from_tm at 
0x7ffb2850da80>(1546914300.0, time.struct_time(tm_year=2019, tm_mon=1, tm_mday=8, 
tm_hour=2, tm_min=25, tm_sec=0, tm_wday=1, tm_yday=8, tm_isdst=0))
E        +    where <function gmtoffset_from_tm at 0x7ffb2850da80> = <module 'pycdlib.utils' 
from '/<<PKGBUILDDIR>>/pycdlib/utils.py'>.gmtoffset_from_tm
E        +      where <module 'pycdlib.utils' from 
'/<<PKGBUILDDIR>>/pycdlib/utils.py'> = pycdlib.utils
E        +    and   time.struct_time(tm_year=2019, tm_mon=1, tm_mday=8, tm_hour=2, 
tm_min=25, tm_sec=0, tm_wday=1, tm_yday=8, tm_isdst=0) = <built-in function 
localtime>(1546914300.0)
E        +      where <built-in function localtime> = time.localtime

tests/unit/test_utils.py:125: AssertionError
_____________________ test_gmtoffset_from_tm_day_rollover ______________________

    def test_gmtoffset_from_tm_day_rollover():
        # Setup the timezone to Tokyo
        oldtz = save_and_set_tz('Asia/Tokyo')
# This tm is carefully chosen so that the day of the week is the next day
        # in the Tokyo region.
        now = 1550417871
        local = time.localtime(now)
      assert(pycdlib.utils.gmtoffset_from_tm(now, local) == 36)
E       AssertionError: assert 0 == 36
E        +  where 0 = <function gmtoffset_from_tm at 
0x7ffb2850da80>(1550417871, time.struct_time(tm_year=2019, tm_mon=2, tm_mday=17, 
tm_hour=15, tm_min=37, tm_sec=51, tm_wday=6, tm_yday=48, tm_isdst=0))
E        +    where <function gmtoffset_from_tm at 0x7ffb2850da80> = <module 'pycdlib.utils' 
from '/<<PKGBUILDDIR>>/pycdlib/utils.py'>.gmtoffset_from_tm
E        +      where <module 'pycdlib.utils' from 
'/<<PKGBUILDDIR>>/pycdlib/utils.py'> = pycdlib.utils

tests/unit/test_utils.py:136: AssertionError
=========================== short test summary info ============================
FAILED tests/unit/test_dates.py::test_volumedescdate_new_nonzero - assert 8 == 7
FAILED tests/unit/test_utils.py::test_gmtoffset_from_tm - AssertionError: ass...
FAILED tests/unit/test_utils.py::test_gmtoffset_from_tm_day_rollover - Assert...
================= 3 failed, 1702 passed, 16 skipped in 14.67s ==================
make[1]: *** [debian/rules:19: override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary-indep] Error 2
dpkg-buildpackage: error: debian/rules binary-indep subprocess returned exit 
status 2
--------------------------------------------------------------------------------

When I try again with tzdata (which is not build-essential) inside the chroot,
the build succeeds (well, there is currently another failure in reproducible 
builds
but it is completely unrelated to this one).

Trivial patch attached.

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

About the archive rebuild: The build was made using virtual machines
from Hetzner, with enough memory, enough disk, and either one or two
CPUs, using a reduced chroot with only build-essential packages (plus
debhelper).

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.
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends:
  openstack-pkg-tools,
  python3-all,
  python3-setuptools,
+ tzdata,
 Build-Depends-Indep:
  genisoimage,
  python3-pytest,

Reply via email to