Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1016122: dh_strip: will not strip shared library under a debug/ directory

46 views
Skip to first unread message

Antonio Terceiro

unread,
Jul 27, 2022, 11:10:03 AM7/27/22
to
Package: debhelper
Version: 13.8
Severity: normal
File: /usr/bin/dh_strip

Dear Maintainer,

While running lintian against a ruby3.1 build, I was presented with an
error tag from lintian:

E: libruby3.1: unstripped-binary-or-object [usr/lib/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/debug-1.4.0/debug/debug.so]
N:
N: The package installs an unstripped binary or object file.
N:
N: Please note, that shared libraries have to be stripped with the --strip-unneeded option.
N:
N: Please refer to Binaries (Section 10.1) in the Debian Policy Manual and Libraries (Section 10.2) in
N: the Debian Policy Manual for details.
N:
N: Visibility: error
N: Show-Always: no
N: Check: binaries/debug-symbols

In dh_strip, I could find this:

# Is it a debug library in a debug subdir?
return if $fn=~m{debug/.*\.so};
return if $fn=~m{/guile/.*\.go$};

So, this is an heuristic for excluding debug libraries, but in this case
the shared library in question is a debugger extension for Ruby, and it
could be stripped just fine.

I understand this is a corner case, but it would be nice if I could pass
some option to ensure this checks could be avoided and the file in
question could be stripped, i.e. the reverse of the -X option.

-- System Information:
Debian Release: bookworm/sid
APT prefers testing-debug
APT policy: (900, 'testing-debug'), (900, 'testing'), (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debhelper depends on:
ii autotools-dev 20220109.1
ii dh-autoreconf 20
ii dh-strip-nondeterminism 1.13.0-1
ii dpkg 1.21.9
ii dpkg-dev 1.21.9
ii dwz 0.14-1
ii file 1:5.41-4
ii libdebhelper-perl 13.8
ii libdpkg-perl 1.21.9
ii man-db 2.10.2-1
ii perl 5.34.0-5
ii po-debconf 1.0.21+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii dh-make 2.202202

-- no debconf information
signature.asc
0 new messages