Package: src:python-dmidecode Version: 3.12.2-8 Severity: serious Tags: ftbfs
Dear maintainer: I tried to build this package in sid with "dpkg-buildpackage -A" but it failed: -------------------------------------------------------------------------------- [...] debian/rules build-indep dh build-indep --with python2,python3 dh_update_autotools_config -i dh_autoreconf -i dh_auto_configure -i debian/rules override_dh_auto_build make[1]: Entering directory '/<<PKGBUILDDIR>>' pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions pyversions: missing debian/pyversions file, fall back to supported versions set -e ;\ for python in python2.7 python3.7; do \ /usr/bin/make PY_BIN=$python ; \ /usr/bin/make PY_BIN=$python-dbg ; \ done [... snipped ...] In file included from /usr/include/python3.7dm/Python.h:118, from src/dmidecodemodule.c:42: /usr/include/python3.7dm/pycapsule.h:28:24: note: expected 'PyCapsule_Destructor' {aka 'void (*)(struct _object *)'} but argument is of type 'void (*)(void *)' PyAPI_FUNC(PyObject *) PyCapsule_New( ^~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/util.c -o build/temp.linux-x86_64-3.7-pydebug/src/util.o x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/dmioem.c -o build/temp.linux-x86_64-3.7-pydebug/src/dmioem.o x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/dmidecode.c -o build/temp.linux-x86_64-3.7-pydebug/src/dmidecode.o src/dmidecode.c: In function 'dmi_additional_info': src/dmidecode.c:3907:42: warning: variable 'str_n' set but not used [-Wunused-but-set-variable] xmlNode *data_n = NULL, *str_n = NULL, *val_n = NULL; ^~~~~ x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/dmixml.c -o build/temp.linux-x86_64-3.7-pydebug/src/dmixml.o src/dmixml.c: In function 'dmixml_buildstr': src/dmixml.c:68:33: warning: pointer targets in passing argument 3 of 'xmlStrVPrintf' differ in signedness [-Wpointer-sign] xmlStrVPrintf(ret, len, xmlfmt, ap); ^~~~~~ In file included from /usr/include/libxml2/libxml/tree.h:18, from src/dmixml.c:40: /usr/include/libxml2/libxml/xmlstring.h:103:17: note: expected 'const char *' but argument is of type 'xmlChar *' {aka 'unsigned char *'} xmlStrVPrintf (xmlChar *buf, ^~~~~~~~~~~~~ x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/dmierror.c -o build/temp.linux-x86_64-3.7-pydebug/src/dmierror.o x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/dmilog.c -o build/temp.linux-x86_64-3.7-pydebug/src/dmilog.o x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/xmlpythonizer.c -o build/temp.linux-x86_64-3.7-pydebug/src/xmlpythonizer.o x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/efi.c -o build/temp.linux-x86_64-3.7-pydebug/src/efi.o x86_64-linux-gnu-gcc -pthread -g -Og -Wall -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -UNDEBUG -I/usr/include/libxml2 -I/usr/include/python3.7dm -c src/dmidump.c -o build/temp.linux-x86_64-3.7-pydebug/src/dmidump.o creating build/lib.linux-x86_64-3.7-pydebug x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7-pydebug/src/dmidecodemodule.o build/temp.linux-x86_64-3.7-pydebug/src/util.o build/temp.linux-x86_64-3.7-pydebug/src/dmioem.o build/temp.linux-x86_64-3.7-pydebug/src/dmidecode.o build/temp.linux-x86_64-3.7-pydebug/src/dmixml.o build/temp.linux-x86_64-3.7-pydebug/src/dmierror.o build/temp.linux-x86_64-3.7-pydebug/src/dmilog.o build/temp.linux-x86_64-3.7-pydebug/src/xmlpythonizer.o build/temp.linux-x86_64-3.7-pydebug/src/efi.o build/temp.linux-x86_64-3.7-pydebug/src/dmidump.o -L/usr/lib/python3/dist-packages -L/usr/lib/pymodules/python3.7 -lxml2 -o build/lib.linux-x86_64-3.7-pydebug/dmidecodemod.cpython-37dm-x86_64-linux-gnu.so creating /<<PKGBUILDDIR>>/debian/python3-dmidecode-dbg creating /<<PKGBUILDDIR>>/debian/python3-dmidecode-dbg/usr creating /<<PKGBUILDDIR>>/debian/python3-dmidecode-dbg/usr/lib creating /<<PKGBUILDDIR>>/debian/python3-dmidecode-dbg/usr/lib/python3 creating /<<PKGBUILDDIR>>/debian/python3-dmidecode-dbg/usr/lib/python3/dist-packages copying build/lib.linux-x86_64-3.7-pydebug/dmidecodemod.cpython-37dm-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/debian/python3-dmidecode-dbg/usr/lib/python3/dist-packages make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_install -i debian/rules override_dh_installdocs make[1]: Entering directory '/<<PKGBUILDDIR>>' dh_installdocs -ppython-dmidecode-dbg --link-doc=python-dmidecode dh_installdocs: No packages to build. Architecture mismatch: amd64, want: all any dh_installdocs -ppython3-dmidecode-dbg --link-doc=python3-dmidecode dh_installdocs: No packages to build. Architecture mismatch: amd64, want: all any dh_installdocs -ppython-dmidecode README doc/AUTHORS doc/changelog doc/README.types doc/AUTHORS.upstream doc/README.upstream dh_installdocs: No packages to build. Architecture mismatch: amd64, want: all any dh_installdocs -ppython3-dmidecode README doc/AUTHORS doc/changelog doc/README.types doc/AUTHORS.upstream doc/README.upstream dh_installdocs: No packages to build. Architecture mismatch: amd64, want: all any mkdir -p /<<PKGBUILDDIR>>/debian/python-dmidecode-data/usr/share/doc/ cp -r /<<PKGBUILDDIR>>/debian/python-dmidecode/usr/share/doc/python-dmidecode /<<PKGBUILDDIR>>/debian/python-dmidecode-data/usr/share/doc/python-dmidecode-data cp: cannot stat '/<<PKGBUILDDIR>>/debian/python-dmidecode/usr/share/doc/python-dmidecode': No such file or directory make[1]: *** [debian/rules:46: override_dh_installdocs] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:11: binary-indep] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary-indep subprocess returned exit status 2 -------------------------------------------------------------------------------- The build was made in my autobuilder with "dpkg-buildpackage -A". Plain "dpkg-buildpackage" seems to work, but "dpkg-buildpackage -B" seems to fail in every architecture: https://buildd.debian.org/status/package.php?p=python%2ddmidecode Hint: Try splitting override_dh_installdocs into override_dh_installdocs-arch and override_dh_installdocs-indep. While we are at it, please consider uploading in source-only form (dpkg-buildpackage -S) so that these kind of bugs are easier to track. Thanks.