mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 04:38:14 +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>
(cherry picked from commit 353e23dfbc)
Link: https://github.com/openwrt/openwrt/pull/23846
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
1 parent
98134ee1a3
commit
9243f9e181
1 file changed
+11
@@ -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