mirror of
https://github.com/openwrt/openwrt.git
synced 2026-07-20 16:11:59 +04:00
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:
@@ -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()
|
||||
Reference in New Issue
Block a user