]> git.ipfire.org Git - thirdparty/openwrt.git/commit
include: make APK packing mtime reproducible
authorPaul Spooren <mail@aparcar.org>
Tue, 30 Sep 2025 12:17:11 +0000 (14:17 +0200)
committerPaul Spooren <mail@aparcar.org>
Tue, 30 Sep 2025 12:48:13 +0000 (14:48 +0200)
commit16416782f194d1850a9d9accf02f04832a7fcea4
tree2aff480a99fd81a0ec7e516af4f9db85dca4e962
parentc68a41818e05c5bb6eb90f0121486657cb4d3b3f
include: make APK packing mtime reproducible

APK kindly stores the mtime of each containing file in created packages,
breaking reproducibility. As a fix, touch all files of the package with the
timestamp of PKGSOURCE_DATE_EPOCH, which contains the timestamp based on the
last package modification.

Over at OPKG, something similar is done by setting mtime in the tar command,
see the `ipkg-build` script.

To tackle this in APK directly, some changes are suggested. However until this
is merged, we should fix it downstream.
https://gitlab.alpinelinux.org/alpine/apk-tools/-/merge_requests/348

Signed-off-by: Paul Spooren <mail@aparcar.org>
include/package-pack.mk