Bug#1072167: grub-pc-dbg: newly-added symbol file "..." does not provide any symbols

Ben Hutchings ben at decadent.org.uk
Sat Apr 26 14:26:22 BST 2025


Control: tag -1 confirmed patch

I confirm that grub-pc-dbg is broken - the kernel.exec and *.image files
are stripped.  Similarly in other -dbg packages:

grub-coreboot-dbg/usr/lib/grub/i386-coreboot/kernel.exec:               ELF 32-bit LSB executable, Intel i386, version 1 (SYSV), statically linked, stripped
grub-ieee1275-dbg/usr/lib/grub/i386-ieee1275/kernel.exec:               ELF 32-bit LSB executable, Intel i386, version 1 (SYSV), statically linked, stripped
grub-xen-dbg/usr/lib/grub/x86_64-xen/kernel.exec:                       ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
grub-xen-dbg/usr/lib/grub/i386-xen_pvh/kernel.exec:                     ELF 32-bit LSB executable, Intel i386, version 1 (SYSV), statically linked, stripped
grub-xen-dbg/usr/lib/grub/i386-xen/kernel.exec:                         ELF 32-bit LSB executable, Intel i386, version 1 (SYSV), statically linked, stripped

Possibly dh_strip no longer treats legacy *-dbg packages as special?

In any case, this can be fixed by adding .exec and .image to the
dh_strip exclusions.  This is what the attached patch does.

Ben.

-- 
Ben Hutchings
[W]e found...that it wasn't as easy to get programs right as we had
thought. I realized that a large part of my life from then on was going
to be spent in finding mistakes in my own programs.
                                                 - Maurice Wilkes, 1949
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug1072167.patch
Type: text/x-patch
Size: 1150 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20250426/6a3fb57c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20250426/6a3fb57c/attachment.sig>


More information about the Pkg-grub-devel mailing list