mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 17:29:52 +00:00
abuild: assume GNU tar and store xattrs
This commit is contained in:
parent
fd6f259cc2
commit
18594ff66c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user