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>
--- /dev/null
+--- 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()