Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

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) - Wednesday, 04 March 2020, 00:05 GMT
Task Type Bug Report
Category makepkg
Status Assigned
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version git
Due in Version 6.0.0
Due Date Undecided
Percent Complete 0%
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

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...