pacman/scripts
Eli Schwartz 8b4be66a30 libmakepkg/tidy: fix debug sources not being properly detected sometimes
DW_AT_comp_dir is meant to contain the directory in which the compiler
was run

DW_AT_name contains the source file the compiler was told to use.

In the event that DW_AT_name is an absolute path, it is (obviously) not
meant to be computed relative to DW_AT_comp_dir. However, we did not
handle this correctly, and as a result tried to copy source files using
doubled-up filepaths.

The correct approach should be to use DW_AT_name on its own, in the
event that it is an absolute path.

See http://wiki.dwarfstd.org/index.php?title=Best_Practices.

This fixes debug package generation for many packages that use absolute
paths in their build systems... like CMake.

Reported-by: Jagannathan Tiruvallur Eachambadi <jagannathante@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2018-07-19 12:23:57 +10:00
..
completion bash_completion.in - consider option "-n --native" in operation "-Q --query" 2018-05-12 21:29:12 +10:00
libmakepkg libmakepkg/tidy: fix debug sources not being properly detected sometimes 2018-07-19 12:23:57 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po Pull updated translations from Transifex 2018-05-28 09:25:04 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg-template.pl.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg.sh.in Revert "makepkg: use the declare builtin when backing up variables to eval" 2018-07-19 12:23:25 +10:00
pacman-db-upgrade.sh.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
pacman-key.sh.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
pkgdelta.sh.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
repo-add.sh.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
wrapper.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00