#1106590 dwz: produce stripped .debug file

Package:
dwz
Source:
dwz
Description:
DWARF compression tool
Submitter:
Gilles Filippini
Date:
2025-05-26 17:53:02 UTC
Severity:
normal
#1106590#5
Date:
2025-05-26 17:45:13 UTC
From:
To:
Hi,

I've had lintian reporting the tag 'stripped-library' on a dbgsym package. After
looking at the commands involved to generate this package I understand that the
one involved is dwz whic produces a stripped .debug file after two untripped
libraries.

Please find attached the said libraries. They are unstripped:

$ file *
libhdf5_serial_hl_f90cstub.so.310.0.5: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a16a6f1a18b5ce5344699068fff83fc74941bfc5, with debug_info, not stripped
libhdf5_serial_hl_fortran.so.310.0.5:  ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=8bb5d23880f27419e7424bf4d0441cbc9ed5a197, with debug_info, not stripped

I then use this dwz command which I found from 'dh_dmz -v':

$ dwz -mlibhdf5-hl-fortran-310.debug -M/usr/lib/debug/.dwz/x86_64-linux-gnu/libhdf5-hl-fortran-310.debug -- libhdf5_serial_hl_f90cstub.so.310.0.5 libhdf5_serial_hl_fortran.so.310.0.5

And the resulting .debug file is stripped:

$ file *
libhdf5-hl-fortran-310.debug:          ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=10b2917253ebfbe1bd839171225679996c725be8, stripped
libhdf5_serial_hl_f90cstub.so.310.0.5: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a16a6f1a18b5ce5344699068fff83fc74941bfc5, with debug_info, not stripped
libhdf5_serial_hl_fortran.so.310.0.5:  ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=8bb5d23880f27419e7424bf4d0441cbc9ed5a197, with debug_info, not stripped

Thans in advance,
_g.

- -- System Information:
Debian Release: 12.0
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-28-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dwz depends on:
ii  libc6    2.36-9+deb12u10
ii  libelf1  0.188-2.1

dwz recommends no packages.

dwz suggests no packages.

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAmg0qJ4ACgkQ7+hsbH/+
z4M//wf+O4BRyoRc+eOswkxGrKKifDJQV8z+idms3Fa8jfKp4+YogiR9jBTUhmfX
GOZKcbMfm/Kc0gTQ5qWK4Sor0bnA2owIZqOcbnPmrHinXTFPVPi2nzhIiMc3Huhy
02YxHOTHX7IAhaNOjwWcDfvUNyEt2EENe+aSP2X4T1RgB9i+r8spxfgheLlA8pLh
cm68NBkXcGWfeLZeLmuTspfaAGA23vQgcAgn3lfhIOpqDvY/ISR+TD02HtRfPEzw
D3icbGBgW/QeB9figo44djvW2UBqAbqZ7KJBlECm24W49LpGFnQmwUhMKDfXqs81
BGDBZ7tNi04hSanAL1KZogeWdeCpfw==
=oUZX
-----END PGP SIGNATURE-----