abuild: set fixed atime and ctime in tar
This commit is contained in:
parent
d5826968b7
commit
660f793d6d
16
abuild.in
16
abuild.in
@ -1609,7 +1609,11 @@ create_apks() {
|
|||||||
# normalize timestamps
|
# normalize timestamps
|
||||||
find . -exec touch -h -d "@$SOURCE_DATE_EPOCH" {} +
|
find . -exec touch -h -d "@$SOURCE_DATE_EPOCH" {} +
|
||||||
|
|
||||||
tar --xattrs -f - -c "$@" | abuild-tar --hash | $gzip -9 >"$dir"/data.tar.gz
|
tar --xattrs \
|
||||||
|
--format=posix \
|
||||||
|
--pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0 \
|
||||||
|
--mtime="@${SOURCE_DATE_EPOCH}" \
|
||||||
|
-f - -c "$@" | abuild-tar --hash | $gzip -n -9 >"$dir"/data.tar.gz
|
||||||
|
|
||||||
msg "Create checksum..."
|
msg "Create checksum..."
|
||||||
# append the hash for data.tar.gz
|
# append the hash for data.tar.gz
|
||||||
@ -1619,8 +1623,12 @@ create_apks() {
|
|||||||
|
|
||||||
# control.tar.gz
|
# control.tar.gz
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
tar -f - -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
|
tar \
|
||||||
| $gzip -9 > control.tar.gz
|
--format=posix \
|
||||||
|
--pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0 \
|
||||||
|
--mtime="@${SOURCE_DATE_EPOCH}" \
|
||||||
|
-f - -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
|
||||||
|
| $gzip -n -9 > control.tar.gz
|
||||||
abuild-sign -q control.tar.gz || exit 1
|
abuild-sign -q control.tar.gz || exit 1
|
||||||
|
|
||||||
msg "Create $apk"
|
msg "Create $apk"
|
||||||
@ -1754,7 +1762,7 @@ default_doc() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
[ $islink -eq 0 ] && $gzip -9 "$name"
|
[ $islink -eq 0 ] && $gzip -n -9 "$name"
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -f "$subpkgdir/usr/share/info/dir"
|
rm -f "$subpkgdir/usr/share/info/dir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user