mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
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
This commit is contained in:
parent
535f58c362
commit
949d7e30e4
@ -13,6 +13,7 @@ version=1.0
|
|||||||
FIND="$(which find)"
|
FIND="$(which find)"
|
||||||
FIND="${FIND:-$(which gfind)}"
|
FIND="${FIND:-$(which gfind)}"
|
||||||
TAR="${TAR:-$(which tar)}"
|
TAR="${TAR:-$(which tar)}"
|
||||||
|
export GZIP="-n"
|
||||||
|
|
||||||
ipkg_extract_value() {
|
ipkg_extract_value() {
|
||||||
sed -e "s/^[^:]*:[[:space:]]*//"
|
sed -e "s/^[^:]*:[[:space:]]*//"
|
||||||
|
Loading…
Reference in New Issue
Block a user