diff options
| author | Paul Spooren | 2026-06-10 15:18:37 +0000 |
|---|---|---|
| committer | Paul Spooren | 2026-06-10 18:15:15 +0000 |
| commit | 353e23dfbc15feb9557bf09095cf54ab77f3042b (patch) | |
| tree | 9b52431355586768ca4be519a9a9e6147d91c35f | |
| parent | 631d74d1b7e5c1757960c85d0a813e2bf5daa61d (diff) | |
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>
| -rw-r--r-- | package/system/apk/patches/0011-genhelp-reproducible-gzip.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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 0000000000..f6684f29e6 --- /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() |