diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-11-01 17:09:34 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-04-08 10:52:34 +0300 |
commit | 18594ff66c6b7bb28c62b6397b81f295eec8a5fb (patch) | |
tree | 71d7394a9bc1042859d8e0561cc7c4b9b738207f /abuild.in | |
parent | fd6f259cc21ca49138af71beae1b05f8c7e54780 (diff) | |
download | abuild-18594ff66c6b7bb28c62b6397b81f295eec8a5fb.tar.gz abuild-18594ff66c6b7bb28c62b6397b81f295eec8a5fb.tar.bz2 abuild-18594ff66c6b7bb28c62b6397b81f295eec8a5fb.tar.xz abuild-18594ff66c6b7bb28c62b6397b81f295eec8a5fb.zip |
abuild: assume GNU tar and store xattrs
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |