1
0
mirror of https://gitlab.alpinelinux.org/alpine/abuild.git synced 2025-04-19 06:42:18 +03:00

abuild-sign: use apk_tar

Fixes issues with abuild-sign using GNU tar extensions for mtime that
can't be parsed by apk-tools.

This happens for dates after 2242-03-16T12:56:31+00:00 (in octal 77777777777)
This commit is contained in:
Sertonix 2025-03-26 17:13:41 +01:00 committed by Natanael Copa
parent 6627a52596
commit 3040818473

View File

@ -39,7 +39,7 @@ do_sign() {
fi
tmptargz=$(mktemp)
tar --owner=0 --group=0 --numeric-owner -f - -c "$sig" | abuild-tar --cut | $gzip -n -9 > "$tmptargz"
apk_tar --owner=0 --group=0 --numeric-owner "$sig" | abuild-tar --cut | $gzip -n -9 > "$tmptargz"
tmpsigned=$(mktemp)
cat "$tmptargz" "$i" > "$tmpsigned"
rm -f "$tmptargz" "$sig"