summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg
diff options
context:
space:
mode:
authorAustin Lund <austin.lund@gmail.com>2019-07-30 07:01:41 +0200
committerAllan McRae <allan@archlinux.org>2019-08-05 12:28:09 +0200
commit75837a2717c3b5654149393d6ec0e0977a7ddc2f (patch)
treef8c4c7594884e1ee387a19430fd8c256a8a24beb /scripts/libmakepkg
parent0318e84546cb368361b94412d0861f9d3971d6b2 (diff)
downloadpacman-75837a2717c3b5654149393d6ec0e0977a7ddc2f.tar.gz
pacman-75837a2717c3b5654149393d6ec0e0977a7ddc2f.tar.xz
makepkg: Ignore "<artificial>" source files
An artificial symbol can be produced when requesting debugging symbols and the compiler has inlined a function. These symbols will give spurious results when listing source files for inclusion in debug packages. This will ignore these symbols and avoid an error that can be generated when creating a debug package. Signed-off-by: Austin Lund <austin.lund@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg')
-rw-r--r--scripts/libmakepkg/tidy/strip.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in
index 5937e13c..5bc0a842 100644
--- a/scripts/libmakepkg/tidy/strip.sh.in
+++ b/scripts/libmakepkg/tidy/strip.sh.in
@@ -37,7 +37,7 @@ build_id() {
source_files() {
LANG=C readelf "$1" --debug-dump | \
- awk '/DW_AT_name +:/{name=$8}/DW_AT_comp_dir +:/{{if (name !~ /^\//) {printf "%s/", $8}}{print name}}'
+ awk '/DW_AT_name +:/{name=$8}/DW_AT_comp_dir +:/{{if (name == "<artificial>") next}{if (name !~ /^[<\/]/) {printf "%s/", $8}}{print name}}'
}
strip_file() {