Source: python-libzim
Version: 1.0.0+ds-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  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:239: python3.9 setup.py config 
> Using system installed library. We are assuming CFLAGS/LDFLAGS are correctly 
> set.
> Compiling libzim/libzim.pyx because it depends on 
> /usr/lib/python3/dist-packages/Cython/Includes/libcpp/utility.pxd.
> [1/1] Cythonizing libzim/libzim.pyx
> running config
> I: pybuild base:239: python3.10 setup.py config 
> Using system installed library. We are assuming CFLAGS/LDFLAGS are correctly 
> set.
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:239: /usr/bin/python3.9 setup.py build 
> Using system installed library. We are assuming CFLAGS/LDFLAGS are correctly 
> set.
> running build
> running build_py
> package init file 'libzim/__init__.py' not found (or not a regular file)
> running egg_info
> writing libzim.egg-info/PKG-INFO
> writing dependency_links to libzim.egg-info/dependency_links.txt
> writing top-level names to libzim.egg-info/top_level.txt
> reading manifest file 'libzim.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'lib/libzim.7.dylib'
> warning: no files found matching 'lib/libzim.so.7'
> warning: no files found matching 'libzim/*.cxx'
> warning: no files found matching 'libzim/*.py'
> warning: no previously-included files matching '__pycache__/*' found anywhere 
> in distribution
> adding license file 'LICENSE'
> writing manifest file 'libzim.egg-info/SOURCES.txt'
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> copying libzim/libwrapper.cpp -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> copying libzim/libwrapper.h -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> copying libzim/libzim.cpp -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> copying libzim/libzim.h -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> copying libzim/libzim.pyx -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> copying libzim/libzim_api.h -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> copying libzim/zim.pxd -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim
> running build_ext
> building 'libzim' extension
> creating build
> creating build/temp.linux-x86_64-3.9
> creating build/temp.linux-x86_64-3.9/libzim
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
> -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 
> -Werror=format-security -g -fwrapv -O2 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibzim 
> -I/usr/include/python3.9 -c libzim/libwrapper.cpp -o 
> build/temp.linux-x86_64-3.9/libzim/libwrapper.o -std=c++11 -Wall -Wextra
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
> -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 
> -Werror=format-security -g -fwrapv -O2 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibzim 
> -I/usr/include/python3.9 -c libzim/libzim.cpp -o 
> build/temp.linux-x86_64-3.9/libzim/libzim.o -std=c++11 -Wall -Wextra
> x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g 
> -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
> build/temp.linux-x86_64-3.9/libzim/libwrapper.o 
> build/temp.linux-x86_64-3.9/libzim/libzim.o -lzim -o 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build/libzim.cpython-39-x86_64-linux-gnu.so
> I: pybuild base:239: /usr/bin/python3 setup.py build 
> Using system installed library. We are assuming CFLAGS/LDFLAGS are correctly 
> set.
> running build
> running build_py
> package init file 'libzim/__init__.py' not found (or not a regular file)
> running egg_info
> writing libzim.egg-info/PKG-INFO
> writing dependency_links to libzim.egg-info/dependency_links.txt
> writing top-level names to libzim.egg-info/top_level.txt
> reading manifest file 'libzim.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'lib/libzim.7.dylib'
> warning: no files found matching 'lib/libzim.so.7'
> warning: no files found matching 'libzim/*.cxx'
> warning: no files found matching 'libzim/*.py'
> warning: no previously-included files matching '__pycache__/*' found anywhere 
> in distribution
> adding license file 'LICENSE'
> writing manifest file 'libzim.egg-info/SOURCES.txt'
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> copying libzim/libwrapper.cpp -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> copying libzim/libwrapper.h -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> copying libzim/libzim.cpp -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> copying libzim/libzim.h -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> copying libzim/libzim.pyx -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> copying libzim/libzim_api.h -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> copying libzim/zim.pxd -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim
> running build_ext
> building 'libzim' extension
> creating build/temp.linux-x86_64-3.10
> creating build/temp.linux-x86_64-3.10/libzim
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
> -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 
> -Werror=format-security -g -fwrapv -O2 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibzim 
> -I/usr/include/python3.10 -c libzim/libwrapper.cpp -o 
> build/temp.linux-x86_64-3.10/libzim/libwrapper.o -std=c++11 -Wall -Wextra
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
> -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 
> -Werror=format-security -g -fwrapv -O2 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibzim 
> -I/usr/include/python3.10 -c libzim/libzim.cpp -o 
> build/temp.linux-x86_64-3.10/libzim/libzim.o -std=c++11 -Wall -Wextra
> x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g 
> -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
> build/temp.linux-x86_64-3.10/libzim/libwrapper.o 
> build/temp.linux-x86_64-3.10/libzim/libzim.o -lzim -o 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build/libzim.cpython-310-x86_64-linux-gnu.so
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build; 
> python3.9 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
> collected 86 items
> 
> tests/test_libzim_creator.py ................................FF......... [ 
> 50%]
> ....                                                                     [ 
> 54%]
> tests/test_libzim_reader.py .ssssssssssssssssssssssssssssssssssssss      
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ____________________________ test_creator_metadata 
> _____________________________
> 
> fpath = 
> PosixPath('/tmp/pytest-of-user42/pytest-2/test_creator_metadata0/test.zim')
> lipsum_item = StaticItem(path=lorem_ipsum, title=)
> 
>     def test_creator_metadata(fpath, lipsum_item):
>         metadata = {
>             # kiwix-mandatory
>             "Name": "wikipedia_fr_football",
>             "Title": "English Wikipedia",
>             "Creator": "English speaking Wikipedia contributors",
>             "Publisher": "Wikipedia user Foobar",
>             "Date": "2009-11-21",
>             "Description": "All articles (without images) from the english 
> Wikipedia",
>             "Language": "eng",
>             # optional
>             "Longdescription": (
>                 "This ZIM file contains all articles (without images) "
>                 "from the english Wikipedia by 2009-11-10."
>                 " The topics are ..."
>             ),
>             "Licence": "CC-BY",
>             "Tags": "wikipedia;_category:wikipedia;_pictures:no;"
>             "_videos:no;_details:yes;_ftindex:yes",
>             "Flavour": "nopic",
>             "Source": "https://en.wikipedia.org/";,
>             "Counter": "image/jpeg=5;image/gif=3;image/png=2",
>             "Scraper": "sotoki 1.2.3",
>         }
>     
>         # ensure we can't add if not started
>         c = Creator(fpath)
>         with pytest.raises(RuntimeError, match="not started"):
>             key = next(iter(metadata.keys()))
>             c.add_metadata(key, metadata.get(key))
>         del c
>     
>         with Creator(fpath) as c:
>             c.add_item(lipsum_item)
>             for name, value in metadata.items():
>                 if name == "Date":
>                     continue
>                 c.add_metadata(name, value)
>     
>             mdate = datetime.date(*[int(x) for x in 
> metadata.get("Date").split("-")])
> >           c.add_metadata("Date", mdate)
> 
> tests/test_libzim_creator.py:413: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   self.c_creator.finishZimCreation()
> E   RuntimeError: Impossible to add M/Counter
> E     dirent's title to add is : Counter
> E     existing dirent's title is : Counter
> 
> libzim/libzim.pyx:355: RuntimeError
> ______________________ test_creator_metadata_nooverwrite 
> _______________________
> 
> fpath = 
> PosixPath('/tmp/pytest-of-user42/pytest-2/test_creator_metadata_nooverwr0/test.zim')
> lipsum_item = StaticItem(path=lorem_ipsum, title=)
> 
>     def test_creator_metadata_nooverwrite(fpath, lipsum_item):
>         with Creator(fpath) as c:
>             c.add_item(lipsum_item)
>             c.add_metadata("Key", "first")
>             # re-setting a value prints a warning and ignore it
> >           c.add_metadata("Key", "second")
> 
> tests/test_libzim_creator.py:425: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> libzim/libzim.pyx:485: in libzim.Creator.add_metadata
>     super().add_metadata(name=name, content=content)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   self.c_creator.addMetadata(_name, _content, _mimetype)
> E   RuntimeError: Impossible to add M/Key
> E     dirent's title to add is : Key
> E     existing dirent's title is : Key
> 
> libzim/libzim.pyx:328: RuntimeError
> ----------------------------- Captured stdout call 
> -----------------------------
> Resolve redirect
> set index
> =========================== short test summary info 
> ============================
> FAILED tests/test_libzim_creator.py::test_creator_metadata - RuntimeError: 
> Im...
> FAILED tests/test_libzim_creator.py::test_creator_metadata_nooverwrite - 
> Runt...
> =================== 2 failed, 46 passed, 38 skipped in 3.85s 
> ===================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libzim/build; python3.9 -m pytest tests
> I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build; 
> python3.10 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
> collected 86 items
> 
> tests/test_libzim_creator.py ................................FF......... [ 
> 50%]
> ....                                                                     [ 
> 54%]
> tests/test_libzim_reader.py .ssssssssssssssssssssssssssssssssssssss      
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ____________________________ test_creator_metadata 
> _____________________________
> 
> fpath = 
> PosixPath('/tmp/pytest-of-user42/pytest-3/test_creator_metadata0/test.zim')
> lipsum_item = StaticItem(path=lorem_ipsum, title=)
> 
>     def test_creator_metadata(fpath, lipsum_item):
>         metadata = {
>             # kiwix-mandatory
>             "Name": "wikipedia_fr_football",
>             "Title": "English Wikipedia",
>             "Creator": "English speaking Wikipedia contributors",
>             "Publisher": "Wikipedia user Foobar",
>             "Date": "2009-11-21",
>             "Description": "All articles (without images) from the english 
> Wikipedia",
>             "Language": "eng",
>             # optional
>             "Longdescription": (
>                 "This ZIM file contains all articles (without images) "
>                 "from the english Wikipedia by 2009-11-10."
>                 " The topics are ..."
>             ),
>             "Licence": "CC-BY",
>             "Tags": "wikipedia;_category:wikipedia;_pictures:no;"
>             "_videos:no;_details:yes;_ftindex:yes",
>             "Flavour": "nopic",
>             "Source": "https://en.wikipedia.org/";,
>             "Counter": "image/jpeg=5;image/gif=3;image/png=2",
>             "Scraper": "sotoki 1.2.3",
>         }
>     
>         # ensure we can't add if not started
>         c = Creator(fpath)
>         with pytest.raises(RuntimeError, match="not started"):
>             key = next(iter(metadata.keys()))
>             c.add_metadata(key, metadata.get(key))
>         del c
>     
> >       with Creator(fpath) as c:
> 
> tests/test_libzim_creator.py:405: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   self.c_creator.finishZimCreation()
> E   RuntimeError: Impossible to add M/Counter
> E     dirent's title to add is : Counter
> E     existing dirent's title is : Counter
> 
> libzim/libzim.pyx:355: RuntimeError
> ______________________ test_creator_metadata_nooverwrite 
> _______________________
> 
> fpath = 
> PosixPath('/tmp/pytest-of-user42/pytest-3/test_creator_metadata_nooverwr0/test.zim')
> lipsum_item = StaticItem(path=lorem_ipsum, title=)
> 
>     def test_creator_metadata_nooverwrite(fpath, lipsum_item):
>         with Creator(fpath) as c:
>             c.add_item(lipsum_item)
>             c.add_metadata("Key", "first")
>             # re-setting a value prints a warning and ignore it
> >           c.add_metadata("Key", "second")
> 
> tests/test_libzim_creator.py:425: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> libzim/libzim.pyx:485: in libzim.Creator.add_metadata
>     super().add_metadata(name=name, content=content)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> >   self.c_creator.addMetadata(_name, _content, _mimetype)
> E   RuntimeError: Impossible to add M/Key
> E     dirent's title to add is : Key
> E     existing dirent's title is : Key
> 
> libzim/libzim.pyx:328: RuntimeError
> ----------------------------- Captured stdout call 
> -----------------------------
> Resolve redirect
> set index
> =========================== short test summary info 
> ============================
> FAILED tests/test_libzim_creator.py::test_creator_metadata - RuntimeError: 
> Im...
> FAILED tests/test_libzim_creator.py::test_creator_metadata_nooverwrite - 
> Runt...
> =================== 2 failed, 46 passed, 38 skipped in 3.91s 
> ===================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_libzim/build; python3.10 -m pytest 
> tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 
> 3.10" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/05/25/python-libzim_1.0.0+ds-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking 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