mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 07:22:53 +00:00
abuild: preserve all xattrs
by default getfattr omits system xattrs like security.capability
This commit is contained in:
parent
248e9bb408
commit
a664181714
@ -1679,7 +1679,7 @@ stripbin() {
|
||||
scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \
|
||||
| sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \
|
||||
| while read filename; do
|
||||
XATTR=$(getfattr -d "${filename}")
|
||||
XATTR=$(getfattr --match="*" --dump "${filename}")
|
||||
${CROSS_COMPILE}strip "${filename}"
|
||||
[ -n "$XATTR" ] && (echo "$XATTR" | setfattr --restore=-)
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user