[debhelper-devel] Bug#829142: debhelper: dh_strip triggers fatal lintian error for packages with multiple hardlinks
Sven Joachim
svenjoac at gmx.de
Thu Jun 30 22:05:17 UTC 2016
Package: debhelper
Version: 9.20160618.1
Severity: serious
For packages which ship files with multiple hardlinks, dh_strip produces
broken -dbgsym packages that trigger the
library-in-debug-or-profile-should-not-be-stripped lintian error, which
unfortunately leads to auto-rejection by the FTP masters and cannot be
overridden. To reproduce the problem:
- Find a suitable source package, say "apt-get source ed".
- Edit debian/rules and add this override to it to produce a file with
two hardlinks:
override_dh_strip:
ln debian/ed/bin/ed debian/ed/bin/ed2
dh_strip
- Build the package, this already produces a warning from objcopy:
,----
| make[1]: Verzeichnis „/tmp/ed-1.10“ wird betreten
| ln debian/ed/bin/ed debian/ed/bin/ed2
| dh_strip
| install -d debian/.debhelper/ed/dbgsym-root/usr/lib/debug/.build-id/d8
| objcopy --only-keep-debug --compress-debug-sections debian/ed/bin/ed2 debian/.debhelper/ed/dbgsym-root/usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug
| chmod 0644 debian/.debhelper/ed/dbgsym-root/usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug
| strip --remove-section=.comment --remove-section=.note debian/ed/bin/ed2
| objcopy --add-gnu-debuglink debian/.debhelper/ed/dbgsym-root/usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug debian/ed/bin/ed2
| objcopy --only-keep-debug --compress-debug-sections debian/ed/bin/ed debian/.debhelper/ed/dbgsym-root/usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug
| chmod 0644 debian/.debhelper/ed/dbgsym-root/usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug
| strip --remove-section=.comment --remove-section=.note debian/ed/bin/ed
| objcopy --add-gnu-debuglink debian/.debhelper/ed/dbgsym-root/usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug debian/ed/bin/ed
| objcopy: debian/ed/bin/stNvhs2Q: debuglink section already exists
`----
- Run lintian on the -dbgsym package, this gives an error and a warning:
,----
| E: ed-dbgsym: library-in-debug-or-profile-should-not-be-stripped usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug
| W: ed-dbgsym: debug-file-with-no-debug-symbols usr/lib/debug/.build-id/d8/571320f0b57dd55598aaff154e79dfca08cae2.debug
`----
Today, the mesa 12.0.0~rc4-1 upload has been auto-rejected because of
this problem: https://lists.debian.org/debian-x/2016/06/msg00204.html.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 4.6.3-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages debhelper depends on:
ii autotools-dev 20160430.1
ii binutils 2.26.1-1
ii dh-autoreconf 12
ii dh-strip-nondeterminism 0.019-1
ii dpkg 1.18.8
ii dpkg-dev 1.18.7
ii file 1:5.28-2
ii libdpkg-perl 1.18.7
ii man-db 2.7.5-1
ii perl 5.22.2-1
ii po-debconf 1.0.19
debhelper recommends no packages.
Versions of packages debhelper suggests:
ii dh-make 2.201606
-- no debconf information
More information about the debhelper-devel
mailing list