summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-06-18 06:41:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-06-18 06:41:45 +0000
commit949d7e30e418ad2197f2ffe14e701b56b9d9ea4e (patch)
tree21ca88075bf85fc7a6a7d56ea6e37b3c99b87071 /scripts
parent535f58c362a0c3bd8112aa1af9e5a2a90c4265c4 (diff)
downloadmtk-20170518-949d7e30e418ad2197f2ffe14e701b56b9d9ea4e.zip
mtk-20170518-949d7e30e418ad2197f2ffe14e701b56b9d9ea4e.tar.gz
mtk-20170518-949d7e30e418ad2197f2ffe14e701b56b9d9ea4e.tar.bz2
ipkg-build: suppress timestamps in gzip headers
When creating control.tar.gz, data.tar.gz and $package.ipk tar compresses them with default gzip options. This includes build timestamps in their gzip headers. By setting the GZIP env variable to -n, gzip no longer embeds them, which is a step towards reproducibility. See also [1] for more detailed motivations. [1]: https://wiki.debian.org/ReproducibleBuilds/About Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> SVN-Revision: 46026
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ipkg-build1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index c466f28..6787ed4 100755
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -13,6 +13,7 @@ version=1.0
FIND="$(which find)"
FIND="${FIND:-$(which gfind)}"
TAR="${TAR:-$(which tar)}"
+export GZIP="-n"
ipkg_extract_value() {
sed -e "s/^[^:]*:[[:space:]]*//"