Commit 234058c0 authored by Cyril Brulebois's avatar Cyril Brulebois
Browse files

Make gen-tarball use pigz if available.

Same logic as in build/Makefile
parent 0b025d7f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -28,4 +28,7 @@ fi
# https://wiki.debian.org/ReproducibleBuilds/FileOrderInTarballs
# and without timestamp in the gzip header, see
# https://wiki.debian.org/ReproducibleBuilds/TimestampsInGzipHeaders
( cd "$SOURCE_DIR" && find . -print0 | LC_ALL=C sort -z | tar --no-recursion --null -T - -I 'gzip -n' -cvf -) > "$OUTPUT_FILE"
(
	gzip=$(which pigz >/dev/null 2>&1 && echo "pigz -9 -n -T" || echo "gzip -9 -n")
	cd "$SOURCE_DIR" && find . -print0 | LC_ALL=C sort -z | tar --no-recursion --null -T - -I "$gzip" -cvf -
) > "$OUTPUT_FILE"
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ debian-installer (20190119) UNRELEASED; urgency=medium
    fontconfig's cache and xorriso calls.
  * gen-tarball: specify the complete gzip command through a tar option
    instead of using the now-deprecated GZIP environment variable.
  * gen-tarball: use pigz if available, reducing build time.

  [ Chris Lamb ]
  * Set BUILD_DATE based on SOURCE_DATE_EPOCH, rather than the other way