summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-11-07 20:41:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-07 20:46:36 +0000
commit51d9e3bcb9fe99a67059e08d7b6fb6ca6a2b75c2 (patch)
tree3346c4b55700c12637b1e49a0a48532e7c35ee94
parent95cd15c02501ec178a69333d136207f695550044 (diff)
downloadabuild-51d9e3bcb9fe99a67059e08d7b6fb6ca6a2b75c2.tar.bz2
abuild-51d9e3bcb9fe99a67059e08d7b6fb6ca6a2b75c2.tar.xz
Revert "abuild: make built package reproducible"
The introduction of the --pax-options seems to confuse apk and resulted in `BAD archive' errors. This reverts commit f04a2ee34b28a38c4349ef1f94686a07afce730f.
-rw-r--r--abuild.in14
1 files changed, 3 insertions, 11 deletions
diff --git a/abuild.in b/abuild.in
index ad9f92b..91f9e1d 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1565,11 +1565,7 @@ create_apks() {
# normalize timestamps
find . -exec touch -h -d "@$SOURCE_DATE_EPOCH" {} +
- tar --xattrs \
- --format=posix \
- --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime,delete=mtime \
- --mtime="@${SOURCE_DATE_EPOCH}" \
- -f - -c "$@" | abuild-tar --hash | $gzip -n -9 >"$dir"/data.tar.gz
+ tar --xattrs -f - -c "$@" | abuild-tar --hash | $gzip -9 >"$dir"/data.tar.gz
msg "Create checksum..."
# append the hash for data.tar.gz
@@ -1579,12 +1575,8 @@ create_apks() {
# control.tar.gz
cd "$dir"
- tar \
- --format=posix \
- --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime,delete=mtime \
- --mtime="@${SOURCE_DATE_EPOCH}" \
- -f - -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
- | $gzip -n -9 > control.tar.gz
+ tar -f - -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
+ | $gzip -9 > control.tar.gz
abuild-sign -q control.tar.gz || exit 1
msg "Create $apk"