Skip to content
Snippets Groups Projects
Commit e0ba924f authored by nbd's avatar nbd
Browse files

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: default avatarReiner Herrmann <reiner@reiner-h.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46026 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 7e9ba2af
No related branches found
No related tags found
No related merge requests found
......@@ -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:]]*//"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment