Package: python2 Version: 2.7.17-1 Severity: serious File: /usr/bin/dh_python2 Justification: Policy 3.5 Control: affects -1 src:dbus-python
As instructed by the py2removal mass-bug-filing templates, I have been removing references to python from packages I maintain, and replacing them with references to python2 if the Python 2 modules are still needed. This seems to have caused dbus-python to FTBFS when NMU'd for the python3.8 transition: https://buildd.debian.org/status/fetch.php?pkg=dbus-python&arch=amd64&ver=1.2.12-1%2Bb1&stamp=1573984727&raw=0 > Unpacking python2 (2.7.17-1) ... ... > Unpacking dh-python (4.20191017) ... ... > debian/rules override_dh_python2 > make[1]: Entering directory '/<<PKGBUILDDIR>>' > py3versions: no X-Python3-Version in control file, using supported versions > dh_python2 > make[1]: dh_python2: Command not found > make[1]: *** [debian/rules:214: override_dh_python2] Error 127 /usr/bin/dh_python2 is in the python2 binary package, which is installed, so this "command not found" shouldn't be caused by absence of /usr/bin/dh_python2. As far as I can work out, it's actually caused by the absence of the interpreter named in its first line, which is /usr/bin/python (shells do not make it easy to distinguish between these two failure modes). dbus-python no longer build-depends on python, so /usr/bin/python2.7 and /usr/bin/python2 exist in the build environment, but /usr/bin/python does not. I think /usr/bin/dh_python2 should now be a #!/usr/bin/python2 (or maybe #!/usr/bin/python2.7) script, instead of a #!/usr/bin/python script. Regards, smcv -------- Complete list of package versions from sbuild log: adduser_3.118 apt_1.8.4 apt-transport-https_1.8.4 autoconf_2.69-11 autoconf-archive_20190106-2 automake_1:1.16.1-4 autopoint_0.19.8.1-9 autotools-dev_20180224.1 base-files_11 base-passwd_3.5.46 bash_5.0-5 binutils_2.33.1-2 binutils-common_2.33.1-2 binutils-x86-64-linux-gnu_2.33.1-2 bsdmainutils_11.1.2+b1 bsdutils_1:2.34-0.1 build-essential_12.8 bzip2_1.0.8-2 ca-certificates_20190110 coreutils_8.30-3+b1 cpp_4:9.2.1-3.1 cpp-9_9.2.1-19 dash_0.5.10.2-6 dbus_1.12.16-2 debconf_1.5.73 debhelper_12.7.1 debian-archive-keyring_2019.1 debianutils_4.9 dh-autoreconf_19 dh-python_4.20191017 dh-strip-nondeterminism_1.6.2-1 diffutils_1:3.7-3 docbook-xml_4.5-9 docbook-xsl_1.79.1+dfsg-2 dpkg_1.19.7 dpkg-dev_1.19.7 dwz_0.13-2 e2fsprogs_1.45.4-1 fakeroot_1.24-1 fdisk_2.34-0.1 file_1:5.37-6 findutils_4.7.0-1 g++_4:9.2.1-3.1 g++-9_9.2.1-19 gcc_4:9.2.1-3.1 gcc-9_9.2.1-19 gcc-9-base_9.2.1-19 gettext_0.19.8.1-9 gettext-base_0.19.8.1-9 gir1.2-glib-2.0_1.62.0-2 gpgv_2.2.17-3 grep_3.3-1 groff-base_1.22.4-3 gzip_1.9-3+b1 hostname_3.23 init-system-helpers_1.57 intltool-debian_0.35.0+20060710.5 libacl1_2.2.53-5 libapparmor1_2.13.3-7 libapt-pkg5.0_1.8.4 libarchive-zip-perl_1.67-1 libasan5_9.2.1-19 libatomic1_9.2.1-19 libattr1_1:2.4.48-5 libaudit-common_1:2.8.5-2 libaudit1_1:2.8.5-2 libbinutils_2.33.1-2 libblkid-dev_2.34-0.1 libblkid1_2.34-0.1 libbsd0_0.10.0-1 libbz2-1.0_1.0.8-2 libc-bin_2.29-3 libc-dev-bin_2.29-3 libc6_2.29-3 libc6-dev_2.29-3 libcap-ng0_0.7.9-2.1 libcc1-0_9.2.1-19 libcom-err2_1.45.4-1 libcroco3_0.6.13-1 libdb5.3_5.3.28+dfsg1-0.6 libdbus-1-3_1.12.16-2 libdbus-1-dev_1.12.16-2 libdebconfclient0_0.250 libdebhelper-perl_12.7.1 libdpkg-perl_1.19.7 libelf1_0.176-1.1 libexpat1_2.2.9-1 libexpat1-dev_2.2.9-1 libext2fs2_1.45.4-1 libfakeroot_1.24-1 libfdisk1_2.34-0.1 libffi-dev_3.2.1-9 libffi6_3.2.1-9 libfile-stripnondeterminism-perl_1.6.2-1 libgcc-9-dev_9.2.1-19 libgcc1_1:9.2.1-19 libgcrypt20_1.8.5-3 libgdbm-compat4_1.18.1-5 libgdbm6_1.18.1-5 libgirepository-1.0-1_1.62.0-2 libglib2.0-0_2.62.2-3 libglib2.0-bin_2.62.2-3 libglib2.0-data_2.62.2-3 libglib2.0-dev_2.62.2-3 libglib2.0-dev-bin_2.62.2-3 libgmp10_2:6.1.2+dfsg-4 libgnutls30_3.6.10-4 libgomp1_9.2.1-19 libgpg-error0_1.36-7 libhogweed5_3.5.1+really3.5.1-2 libicu63_63.2-2 libidn2-0_2.2.0-2 libisl21_0.21-2 libitm1_9.2.1-19 libjs-jquery_3.3.1~dfsg-3 libjs-sphinxdoc_1.8.5-3 libjs-underscore_1.9.1~dfsg-1 liblsan0_9.2.1-19 liblz4-1_1.9.2-2 liblzma5_5.2.4-1+b1 libmagic-mgc_1:5.37-6 libmagic1_1:5.37-6 libmount-dev_2.34-0.1 libmount1_2.34-0.1 libmpc3_1.1.0-1 libmpdec2_2.4.2-2 libmpfr6_4.0.2-1 libncurses6_6.1+20191019-1 libncursesw6_6.1+20191019-1 libnettle7_3.5.1+really3.5.1-2 libp11-kit0_0.23.18.1-2 libpam-modules_1.3.1-5 libpam-modules-bin_1.3.1-5 libpam-runtime_1.3.1-5 libpam0g_1.3.1-5 libpcre16-3_2:8.39-12+b1 libpcre2-16-0_10.32-5+b1 libpcre2-32-0_10.32-5+b1 libpcre2-8-0_10.32-5+b1 libpcre2-dev_10.32-5+b1 libpcre2-posix0_10.32-5+b1 libpcre3_2:8.39-12+b1 libpcre3-dev_2:8.39-12+b1 libpcre32-3_2:8.39-12+b1 libpcrecpp0v5_2:8.39-12+b1 libperl5.30_5.30.0-9 libpipeline1_1.5.1-2 libpython2-dbg_2.7.17-1 libpython2-dev_2.7.17-1 libpython2-stdlib_2.7.17-1 libpython2.7_2.7.17-1 libpython2.7-dbg_2.7.17-1 libpython2.7-dev_2.7.17-1 libpython2.7-minimal_2.7.17-1 libpython2.7-stdlib_2.7.17-1 libpython3-all-dbg_3.7.5-3 libpython3-all-dev_3.7.5-3 libpython3-dbg_3.7.5-3 libpython3-dev_3.7.5-3 libpython3-stdlib_3.7.5-3 libpython3.7_3.7.5-2 libpython3.7-dbg_3.7.5-2 libpython3.7-dev_3.7.5-2 libpython3.7-minimal_3.7.5-2 libpython3.7-stdlib_3.7.5-2 libpython3.8_3.8.0-4 libpython3.8-dbg_3.8.0-4 libpython3.8-dev_3.8.0-4 libpython3.8-minimal_3.8.0-4 libpython3.8-stdlib_3.8.0-4 libquadmath0_9.2.1-19 libreadline8_8.0-3 libseccomp2_2.4.2-1 libselinux1_2.9-3+b1 libselinux1-dev_2.9-3+b1 libsemanage-common_2.9-3 libsemanage1_2.9-3 libsepol1_2.9-2+b2 libsepol1-dev_2.9-2+b2 libsigsegv2_2.12-2 libsmartcols1_2.34-0.1 libsqlite3-0_3.30.1-1 libss2_1.45.4-1 libssl1.1_1.1.1d-2 libstdc++-9-dev_9.2.1-19 libstdc++6_9.2.1-19 libsub-override-perl_0.09-2 libsystemd0_243-5 libtasn1-6_4.14-3 libtinfo6_6.1+20191019-1 libtool_2.4.6-11 libtsan0_9.2.1-19 libubsan1_9.2.1-19 libuchardet0_0.0.6-3 libudev1_243-5 libunistring2_0.9.10-2 libuuid1_2.34-0.1 libxml2_2.9.4+dfsg1-7+b4 libxml2-utils_2.9.4+dfsg1-7+b4 libxslt1.1_1.1.32-2.2 libzstd1_1.4.3+dfsg-1 linux-libc-dev_5.3.9-2 login_1:4.7-2 logsave_1.45.4-1 lsb-base_11.1.0 m4_1.4.18-4 make_4.2.1-1.2 man-db_2.9.0-1 mawk_1.3.3-17+b3 mime-support_3.64 mount_2.34-0.1 ncurses-base_6.1+20191019-1 ncurses-bin_6.1+20191019-1 openssl_1.1.1d-2 passwd_1:4.7-2 patch_2.7.6-6 perl_5.30.0-9 perl-base_5.30.0-9 perl-modules-5.30_5.30.0-9 pkg-config_0.29-6 po-debconf_1.0.21 policyrcd-script-zg2_0.1-3 python-gi_3.34.0-3 python-tap_2.6.2-1 python2_2.7.17-1 python2-dbg_2.7.17-1 python2-dev_2.7.17-1 python2-minimal_2.7.17-1 python2.7_2.7.17-1 python2.7-dbg_2.7.17-1 python2.7-dev_2.7.17-1 python2.7-minimal_2.7.17-1 python3_3.7.5-3 python3-all_3.7.5-3 python3-all-dbg_3.7.5-3 python3-all-dev_3.7.5-3 python3-dbg_3.7.5-3 python3-dev_3.7.5-3 python3-distutils_3.8.0-1 python3-gi_3.34.0-3 python3-lib2to3_3.8.0-1 python3-minimal_3.7.5-3 python3-tap_2.6.2-1 python3.7_3.7.5-2 python3.7-dbg_3.7.5-2 python3.7-dev_3.7.5-2 python3.7-minimal_3.7.5-2 python3.8_3.8.0-4 python3.8-dbg_3.8.0-4 python3.8-dev_3.8.0-4 python3.8-minimal_3.8.0-4 readline-common_8.0-3 sbuild-build-depends-main-dummy_0.invalid.0 sed_4.7-1 sensible-utils_0.0.12 sgml-base_1.29.1 sgml-data_2.0.11 sphinx-common_1.8.5-3 sysvinit-utils_2.96-1 tar_1.30+dfsg-6+b1 tzdata_2019c-3 util-linux_2.34-0.1 uuid-dev_2.34-0.1 xml-core_0.18+nmu1 xmlto_0.0.28-2.1 xsltproc_1.1.32-2.2 xz-utils_5.2.4-1+b1 zlib1g_1:1.2.11.dfsg-1+b1 zlib1g-dev_1:1.2.11.dfsg-1+b1