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>
This commit is contained in:
parent
0318e84546
commit
75837a2717
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ build_id() {
|
||||||
|
|
||||||
source_files() {
|
source_files() {
|
||||||
LANG=C readelf "$1" --debug-dump | \
|
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() {
|
strip_file() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue