diff options
author | Leah Rowe <leah@libreboot.org> | 2024-05-15 00:48:08 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-05-15 00:48:08 +0100 |
commit | 36d45474c0ddde8da030f8a482829c9379b8097a (patch) | |
tree | 3bfb04c109b7de23fd4e7569a2de1817719ce9ee /include | |
parent | f0b604fc9591c1679c9470f747abcf471fddb162 (diff) |
option.sh: don't bother checking for GNU tar
releases aren't reproducible anyway. we were
using options available in gnu tar for this.
it will be revisited at a later date. however, the next
time this is done, we will use another method because
there are in fact portable ways to create tarballs
reproducibly, documented on reproducible-builds.org
to be revisited, at a later date. for now, remove bloat.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/option.sh | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/option.sh b/include/option.sh index eea50101..f5b07b49 100755 --- a/include/option.sh +++ b/include/option.sh @@ -184,21 +184,11 @@ mktar_release() mktarball() { - # preserve timestamps for reproducible tarballs - tar_implementation=$(tar --version | head -n1) || : - [ "${2%/*}" = "${2}" ] || \ mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\"" printf "\nCreating archive: %s\n\n" "$2" - if [ "${tar_implementation% *}" = "tar (GNU tar)" ]; then - tar --sort=name --owner=root:0 --group=root:0 \ - --mtime="UTC 2024-05-04" -c "$1" | xz -T$threads -9e \ - > "$2" || $err "mktarball 1, ${1}" - else - # TODO: reproducible tarballs on non-GNU systems - tar -c "$1" | xz -T$threads -9e > "$2" || \ - $err "mktarball 2, $1" - fi + tar -c "$1" | xz -T$threads -9e > "$2" || \ + $err "mktarball 2, $1" mksha512sum "${2}" "${2##*/}.sha512" } |