Package: dh-elpa Version: 1.11~bpo9+1 Severity: normal This might actually be a libdebian-source-perl bug. Please reassign this bug to that package if this is the case.
To reproduce: git clone ssh://git.debian.org/git/pkg-emacsen/pkg/elpy.git cd elpy && git checkout reproduce-elpa-bug build the package ... writing manifest file 'elpy.egg-info/SOURCES.txt' debian/rules override_dh_elpa_test make[1]: Entering directory '/build/elpy-1.17.0' dh_elpa_test Invalid field given (X_Python3_Version) at /usr/share/perl5/Debian/Control.pm line 122. debian/rules:16: recipe for target 'override_dh_elpa_test' failed make[1]: *** [override_dh_elpa_test] Error 255 make[1]: Leaving directory '/build/elpy-1.17.0' debian/rules:7: recipe for target 'build' failed make: *** [build] Error 2 ... If dh_elpa_test is overridden to not run dh_elpa_test, then the error does not occur. Resolution: I think libdebian-source-perl needs to be taught about the X-Python3-Version/X_Python3_Version field, and that this will allow dh_elpa_test to execute for packages that use --with elpa,python3. For completeness, supporting X-Python-Version (eg: python2) might also be nice. -- System Information: Debian Release: 9.1 APT prefers stable-debug APT policy: (500, 'stable-debug'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.102.20171125 (SMP w/4 CPU cores; PREEMPT) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dh-elpa depends on: ii debhelper 10.2.5 ii dh-make-perl 0.94 ii emacs25 25.1+1-4+deb9u1 ii libarray-utils-perl 0.5-1 ii libconfig-tiny-perl 2.23-1 ii libdebian-source-perl 0.94 ii libdpkg-perl 1.18.24 ii libfile-find-rule-perl 0.34-1 ii libtext-glob-perl 0.10-1 ii perl 5.24.1-3+deb9u2 dh-elpa recommends no packages. dh-elpa suggests no packages. -- no debconf information Regards, Nicholas