abuild: preserve all xattrs

by default getfattr omits system xattrs like security.capability
This commit is contained in:
Timo Teräs 2015-04-09 08:47:56 +03:00
parent 248e9bb408
commit a664181714
1 changed files with 1 additions and 1 deletions

View File

@ -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