Package: debhelper Version: 12 Severity: normal Control: found -1 10.10.6 Dear Maintainer,
While changing build environment from Debian 9 to Debian 10, a package
that does cross compilation now fails to run dh_strip.
The debhelper compat level has not changed, it stayed at level 8.
The log says:
DEB_HOST_GNU_TYPE=x86_64-w64-mingw32 dh_strip -Xi686-w64-mingw32
Subroutine install_dir redefined at /usr/bin/dh_strip line 14.
dh_strip: package objcopy is not in control info
Use of uninitialized value $command in concatenation (.) or string at
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 2217.
dh_strip: package strip is not in control info
Use of uninitialized value $command in concatenation (.) or string at
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 2217.
dh_strip: package objdump is not in control info
Use of uninitialized value $command in concatenation (.) or string at
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 2217.
dh_strip: Compatibility levels before 9 are deprecated (level 8 in use)
x86_64-w64-mingw32- --strip-debug --remove-section=.comment
--remove-section=.note
debian/lzo-mingw-w64-x86-64-dev/usr/x86_64-w64-mingw32/lib/liblzo2.a
Can't exec "x86_64-w64-mingw32-": No such file or directory at
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 475.
The package (which builds 2 binary packages) is doing:
override_dh_strip:
DEB_HOST_GNU_TYPE=x86_64-w64-mingw32 dh_strip -Xi686-w64-mingw32
DEB_HOST_GNU_TYPE=i686-w64-mingw32 dh_strip -Xx86_64-w64-mingw32
I believe what's happening is that dh_strip now calls cross_command
from the foreach $packages loop, but the "package" variable is empty
and thus it calls cross_command( , "objcopy") which then, I think, perl
squashes as package="objcopy", which then causes package_cross_type to
print that error about control info, and then given $command is empty
it just returns "-".
Any suggestion? Adding -p does not seem to help, the same error happens
(eg: ... dh_strip -pfoo ... dh_strip -pbar ...)
--
Kind regards,
Luca Boccassi
signature.asc
Description: This is a digitally signed message part

