FS#40095 - [glib2] Please enable debug symbols, fixes pretty printer

Attached to Project: Arch Linux
Opened by Peter Wu (Lekensteyn) - Friday, 25 April 2014, 21:45 GMT
Last edited by Jan Alexander Steffens (heftig) - Saturday, 26 February 2022, 15:33 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
The current glib2 package does not have debugging symbols enabled. This makes the GDB python pretty printer useless.

Please remove these two lines...
# Our gdb does not ship the required python modules, so remove it
rm -rf "$pkgdir/usr/share/gdb/"

... and enable the debug option. The debug package only costs 10 MiB disk space (2.4 MiB .pkg.tar.xz) but helps greatly in debugging glib2 applications. The "libc" package has a "!strip" option. Would it be much asked to add "debug !strip" (or at least "debug") to the glib2 options?

The attached PKGBUILD shows how to enable it. Without s/options=/options+=/, the debug option gets overwritten.

Some stats for current build, debug+strip, debug+!strip:

current
Name : glib2
Compressed Size: 2086.12 KiB
Installed Size : 12357.00 KiB

debug+strip
Name : glib2
Compressed Size: 2089.44 KiB
Installed Size : 12366.00 KiB
Name : glib2-debug
Compressed Size: 2367.23 KiB
Installed Size : 10287.00 KiB

debug+!strip
Name : glib2
Compressed Size: 4448.23 KiB
Installed Size : 22609.00 KiB


Additional info:
* glib2 2.40.0-1
* gdb 7.7-1
* python 3.4.0-2


Steps to reproduce:
See https://bugzilla.gnome.org/show_bug.cgi?id=728980 for a testcase.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Saturday, 26 February 2022, 15:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  glib2 2.70.4-2
Comment by mattia (nTia89) - Saturday, 26 February 2022, 15:02 GMT
Does this[1] have fixed the issue?

1: [https://archlinux.org/news/debug-packages-and-debuginfod/]

Loading...