FS#65677 - [makepkg] not all source files get included in debug packages

Attached to Project: Pacman
Opened by Allan McRae (Allan) - Monday, 02 March 2020, 02:47 GMT
Last edited by Allan McRae (Allan) - Monday, 02 May 2022, 13:59 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version git
Due in Version 6.1.0
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info:

We currently only look at the .debug_info section of readelf's output, finding DW_AT_name/DW_AT_comp_dir pair to grab file names. That gets the main compilation units, but misses header files. Header files can contain small functions, and so would be useful in debugging.

We can additionally look in the .debug_line section. This section has a table of directories that source files come from (which can be filtered to remove system directories), and a file name table with files from each directory. This does not include the files we currently grab.

This task depends upon

Closed by  Allan McRae (Allan)
Monday, 02 May 2022, 13:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit ae2f506ddfd11d9becda7216033fe1b159536982
Comment by Allan McRae (Allan) - Monday, 02 March 2020, 02:49 GMT Comment by magiblot (magiblot) - Friday, 22 May 2020, 18:55 GMT
It would be great if a fix, even if not perfect, could be released. At least the current situation is quite bad.

I have also found cases of source files being installed to the same path they were copied from (e.g. `/tmp/qt5-base/src/...` instead of `/usr/src/debug/...`). Does the currently proposed patch also fix this?

Thanks.
Comment by Allan McRae (Allan) - Saturday, 23 May 2020, 00:32 GMT
@magiblot: that seems a completely separate bug. Please file a new bug with details.
Comment by magiblot (magiblot) - Saturday, 23 May 2020, 14:56 GMT
Thanks @Allan. Here it is: https://bugs.archlinux.org/task/66755

Loading...