Source: python-magic Version: 2:0.4.15-4 Severity: serious Justification: FTBFS on amd64 Tags: bullseye sid ftbfs Usertags: ftbfs-20201125 ftbfs-bullseye
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > dpkg-buildpackage > ----------------- > > Command: dpkg-buildpackage -us -uc -sa -rfakeroot > dpkg-buildpackage: info: source package python-magic > dpkg-buildpackage: info: source version 2:0.4.15-4 > dpkg-buildpackage: info: source distribution unstable > dpkg-buildpackage: info: source changed by Christoph Biedl > <[email protected]> > dpkg-source --before-build . > dpkg-buildpackage: info: host architecture amd64 > debian/rules clean > dh clean --with python3 --buildsystem=pybuild > dh_auto_clean -O--buildsystem=pybuild > I: pybuild base:232: python3.8 setup.py clean > running clean > removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build' (and everything under > it) > 'build/bdist.linux-x86_64' does not exist -- can't clean it > 'build/scripts-3.8' does not exist -- can't clean it > I: pybuild base:232: python3.9 setup.py clean > running clean > removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build' (and everything under > it) > 'build/bdist.linux-x86_64' does not exist -- can't clean it > 'build/scripts-3.9' does not exist -- can't clean it > dh_autoreconf_clean -O--buildsystem=pybuild > dh_clean -O--buildsystem=pybuild > dpkg-source -b . > dpkg-source: info: using source format '3.0 (quilt)' > dpkg-source: info: building python-magic using existing > ./python-magic_0.4.15.orig.tar.gz > dpkg-source: info: using patch list from debian/patches/series > dpkg-source: info: building python-magic in > python-magic_0.4.15-4.debian.tar.xz > dpkg-source: info: building python-magic in python-magic_0.4.15-4.dsc > 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:232: python3.8 setup.py config > running config > I: pybuild base:232: python3.9 setup.py config > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:232: /usr/bin/python3.8 setup.py build > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/magic > copying magic/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/magic > copying magic/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/magic > I: pybuild base:232: /usr/bin/python3 setup.py build > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/magic > copying magic/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/magic > copying magic/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/magic > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:232: python3.8 setup.py test > running test > WARNING: Testing via this command is deprecated and will be removed in a > future version. Users looking for a generic test entry point independent of > test runner are encouraged to use tox. > running egg_info > creating python_magic.egg-info > writing python_magic.egg-info/PKG-INFO > writing dependency_links to python_magic.egg-info/dependency_links.txt > writing top-level names to python_magic.egg-info/top_level.txt > writing manifest file 'python_magic.egg-info/SOURCES.txt' > reading manifest file 'python_magic.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > writing manifest file 'python_magic.egg-info/SOURCES.txt' > running build_ext > test_descriptions (test.test.MagicTest) ... ok > test_errors (test.test.MagicTest) ... ok > test_from_buffer_str_and_bytes (test.test.MagicTest) ... FAIL > test_keep_going (test.test.MagicTest) ... ok > test_mime_encodings (test.test.MagicTest) ... ok > test_mime_types (test.test.MagicTest) ... FAIL > test_open_file (test.test.MagicTest) ... ok > test_rethrow (test.test.MagicTest) ... ok > test_detect_from_content (test.libmagic_test.MagicTestCase) ... ok > test_detect_from_filename (test.libmagic_test.MagicTestCase) ... ok > test_detect_from_fobj (test.libmagic_test.MagicTestCase) ... ok > > ====================================================================== > FAIL: test_from_buffer_str_and_bytes (test.test.MagicTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/<<PKGBUILDDIR>>/test/test.py", line 37, in > test_from_buffer_str_and_bytes > self.assertEqual("text/x-python", m.from_buffer(s)) > AssertionError: 'text/x-python' != 'text/x-script.python' > - text/x-python > + text/x-script.python > ? +++++++ > > > ====================================================================== > FAIL: test_mime_types (test.test.MagicTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/<<PKGBUILDDIR>>/test/test.py", line 52, in test_mime_types > self.assert_values(m, { > File "/<<PKGBUILDDIR>>/test/test.py", line 32, in assert_values > self.assertTrue(False, "no match for " + repr(expected_value)) > AssertionError: False is not true : no match for ('application/octet-stream',) > > ---------------------------------------------------------------------- > Ran 11 tests in 0.019s > > FAILED (failures=2) > Test failed: <unittest.runner.TextTestResult run=11 errors=0 failures=2> > error: Test failed: <unittest.runner.TextTestResult run=11 errors=0 > failures=2> > E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: > python3.8 setup.py test > I: pybuild base:232: python3.9 setup.py test > running test > WARNING: Testing via this command is deprecated and will be removed in a > future version. Users looking for a generic test entry point independent of > test runner are encouraged to use tox. > running egg_info > writing python_magic.egg-info/PKG-INFO > writing dependency_links to python_magic.egg-info/dependency_links.txt > writing top-level names to python_magic.egg-info/top_level.txt > reading manifest file 'python_magic.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > writing manifest file 'python_magic.egg-info/SOURCES.txt' > running build_ext > test_descriptions (test.test.MagicTest) ... ok > test_errors (test.test.MagicTest) ... ok > test_from_buffer_str_and_bytes (test.test.MagicTest) ... FAIL > test_keep_going (test.test.MagicTest) ... ok > test_mime_encodings (test.test.MagicTest) ... ok > test_mime_types (test.test.MagicTest) ... FAIL > test_open_file (test.test.MagicTest) ... ok > test_rethrow (test.test.MagicTest) ... ok > test_detect_from_content (test.libmagic_test.MagicTestCase) ... ok > test_detect_from_filename (test.libmagic_test.MagicTestCase) ... ok > test_detect_from_fobj (test.libmagic_test.MagicTestCase) ... ok > > ====================================================================== > FAIL: test_from_buffer_str_and_bytes (test.test.MagicTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/<<PKGBUILDDIR>>/test/test.py", line 37, in > test_from_buffer_str_and_bytes > self.assertEqual("text/x-python", m.from_buffer(s)) > AssertionError: 'text/x-python' != 'text/x-script.python' > - text/x-python > + text/x-script.python > ? +++++++ > > > ====================================================================== > FAIL: test_mime_types (test.test.MagicTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/<<PKGBUILDDIR>>/test/test.py", line 52, in test_mime_types > self.assert_values(m, { > File "/<<PKGBUILDDIR>>/test/test.py", line 32, in assert_values > self.assertTrue(False, "no match for " + repr(expected_value)) > AssertionError: False is not true : no match for ('application/octet-stream',) > > ---------------------------------------------------------------------- > Ran 11 tests in 0.019s > > FAILED (failures=2) > Test failed: <unittest.runner.TextTestResult run=11 errors=0 failures=2> > error: Test failed: <unittest.runner.TextTestResult run=11 errors=0 > failures=2> > E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: > python3.9 setup.py test > dh_auto_test: error: pybuild --test -i python{version} -p "3.8 3.9" returned > exit code 13 The full build log is available from: http://qa-logs.debian.net/2020/11/25/python-magic_0.4.15-4_unstable.log 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! About the archive rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services, using a clean, minimal and up-to-date chroot. Every failed build was retried once to eliminate random failures.

