From: Paul Spooren Date: Wed, 10 Jun 2026 15:18:37 +0000 (+0200) Subject: package: make APK embedded help gzip reproducible X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=353e23dfbc15feb9557bf09095cf54ab77f3042b;p=thirdparty%2Fopenwrt.git package: make APK embedded help gzip reproducible APK compresses it's helptext using LUA and require `zlib`, which isn't available on the Buildbots. It thens falls back to `gzip`, which embeds the MTIME, making the binary itself unreproducible. This commits adds a downstream patch to run `gzip` with `-n`, setting the time to 0. Link: https://github.com/openwrt/openwrt/pull/23736 Signed-off-by: Paul Spooren --- diff --git a/package/system/apk/patches/0011-genhelp-reproducible-gzip.patch b/package/system/apk/patches/0011-genhelp-reproducible-gzip.patch new file mode 100644 index 00000000000..f6684f29e6f --- /dev/null +++ b/package/system/apk/patches/0011-genhelp-reproducible-gzip.patch @@ -0,0 +1,11 @@ +--- a/src/genhelp.lua ++++ b/src/genhelp.lua +@@ -168,7 +168,7 @@ function scapp:compress(data) + f:write(data) + f:close() + +- local p = io.popen(('gzip -%d < %s'):format(level, tmp), 'r') ++ local p = io.popen(('gzip -n%d < %s'):format(level, tmp), 'r') + if p ~= nil then + ret = p:read("*all") + p:close()