openwrt-pf/include
Paul Spooren b0b4bf6ea0
build: don't store timestamps in APK packages
This commit statically sets SOURCE_DATE_EPOCH to 0, which causes `apk mkpkg` to
drop the date from generated packages. This improves reproducibility while
leaving package specific SOURCE_DATE_EPOCH untouched. The latter can be
interesting for i.e. packages like busybox, which prominently show that date on
the login shell.

Without this commit, packages that live inside feed repositories (openwrt.git,
packages.git etc) like `mtd` or `attendedsysupgrade-common` would have random
timestamps since no "full" git log was available.

Below an example with different source dates (0, 1):

│  0755  root:wheel    -                           -  /
│  0755  root:wheel    -                           -  lib/
│  0755  root:wheel    -                           -  lib/apk/
│  0755  root:wheel    -                           -  lib/apk/packages/
│ -0644  root:wheel    1970-01-01T00:00:01Z       10  lib/apk/packages/mtd.list
│ +0644  root:wheel    -                          10  lib/apk/packages/mtd.list
│  0755  root:wheel    -                           -  sbin/
│ -0755  root:wheel    1970-01-01T00:00:01Z    24595  sbin/mtd
│ +0755  root:wheel    -                       24595  sbin/mtd

Link: https://github.com/openwrt/openwrt/pull/24005
Signed-off-by: Paul Spooren <mail@aparcar.org>
2026-06-30 18:53:03 +02:00
..
site
autotools.mk
bpf.mk
cmake.mk build: pass CPPFLAGS to cmake build 2026-02-17 01:29:57 +01:00
debug.mk
default-packages.mk
depends.mk
device_table.txt
download.mk build: fix recipe line break in wrap_mirror fallback path 2026-06-04 21:12:27 +02:00
feeds.mk build: fix apk_package_files wildcard for packages without ABI version 2026-05-22 14:54:34 +02:00
hardened-ld-pie.specs
hardening.mk toolchain: gcc: add fanalyzer config option 2025-11-23 09:33:15 +01:00
host-build.mk
image-commands.mk filogic: add support for D-Link AQUILA PRO AI E30 2026-04-13 01:52:29 +02:00
image.mk image: fix per device targz rootfs wrong suffix and redundant images 2026-05-29 13:10:23 +02:00
kernel-build.mk
kernel-defaults.mk kernel: fix lz4 initramfs creation 2026-05-07 18:14:58 +02:00
kernel-version.mk
kernel.mk kernel: don't disable stack validation in cross builds 2026-06-04 20:00:36 +02:00
logo.png
logo.svg
meson.mk
netfilter.mk kernel: split nf-nathelper-extra into individual packages 2026-06-24 13:26:32 +02:00
nls.mk
openssl-module.mk openssl: add MODULES_DIR MACRO for provider 2025-11-11 23:58:54 +01:00
optee-os.mk
package-bin.mk
package-defaults.mk build: fixup version.date creation for source archives 2026-06-12 17:41:09 +02:00
package-dumpinfo.mk
package-pack.mk build: don't store timestamps in APK packages 2026-06-30 18:53:03 +02:00
package-seccomp.mk
package.mk build: derive PKG_SOURCE_DATE_EPOCH from the unpacked source tree 2026-06-02 11:51:00 +02:00
prereq-build.mk prereq-build/u-boot: add Python 3.14 support 2026-06-16 12:51:01 +02:00
prereq.mk
quilt.mk kernel: move .quilt_used to quilt.mk 2025-11-27 20:26:37 +01:00
rootfs.mk treewide: drop CVS support 2026-02-13 15:40:13 +01:00
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk treewide: remove unused archs leftovers 2026-05-07 10:58:47 +02:00
toolchain-build.mk
toplevel.mk build: depend on tools/zstd for download 2025-12-10 19:04:44 +01:00
trusted-firmware-a.mk
u-boot.mk prereq-build/u-boot: add Python 3.14 support 2026-06-16 12:51:01 +02:00
uclibc++.mk
unpack.mk
verbose.mk
version.mk