summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--abuild.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index 655c1a9..3e7ffaf 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1136,7 +1136,7 @@ create_apks() {
touch .dummy
set -- .dummy
fi
- tar -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
+ tar --xattrs -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
msg "Create checksum..."
# append the hash for data.tar.gz
@@ -1678,7 +1678,11 @@ stripbin() {
msg "Stripping binaries"
scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \
| sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \
- | xargs -r ${CROSS_COMPILE}strip
+ | while read filename; do
+ XATTR=$(getfattr -d "${filename}")
+ ${CROSS_COMPILE}strip "${filename}"
+ [ -n "$XATTR" ] && (echo "$XATTR" | setfattr --restore=-)
+ done
}
# simply list target apks