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 <mail@aparcar.org>
This commit is contained in:
Paul Spooren
2026-06-10 17:18:37 +02:00
parent 631d74d1b7
commit 353e23dfbc
@@ -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()