mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 09:19:40 +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" . \
|
scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \
|
||||||
| sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \
|
| sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \
|
||||||
| while read filename; do
|
| while read filename; do
|
||||||
XATTR=$(getfattr -d "${filename}")
|
XATTR=$(getfattr --match="*" --dump "${filename}")
|
||||||
${CROSS_COMPILE}strip "${filename}"
|
${CROSS_COMPILE}strip "${filename}"
|
||||||
[ -n "$XATTR" ] && (echo "$XATTR" | setfattr --restore=-)
|
[ -n "$XATTR" ] && (echo "$XATTR" | setfattr --restore=-)
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user