openwrt-pf/include
Paul Spooren e36c2946b7 build: derive PKG_SOURCE_DATE_EPOCH from the unpacked source tree
Previously PKG_SOURCE_DATE_EPOCH came from a git log on the OpenWrt
package directory. That fails in shallow feed clones and in the SDK
(no .git), collapsing to the script's mtime and breaking .apk
reproducibility across SDK rebuilds and between buildbot and SDK.

With this comment, PKG_UNPACK generates a version.date file, later used to
determine a reproducible SOURCE_DATE_EPOCH. Since unpack happens after
download, the evaluation of SOURCE_DATE_EPOCH is now lazy, invoking the
`get_source_date_epoch.sh` script on every use.

While at it, drop export of PKG_SOURCE_DATE_EPOCH and clean it from the
ipkg-build script.

Link: https://github.com/openwrt/openwrt/issues/21579
Link: https://github.com/openwrt/openwrt/pull/21587

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Link: https://github.com/openwrt/openwrt/pull/23576
Signed-off-by: Paul Spooren <mail@aparcar.org>
2026-06-02 11:51:00 +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 treewide: drop CVS support 2026-02-13 15:40:13 +01: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
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 treewide: remove unused archs leftovers 2026-05-07 10:58:47 +02:00
logo.png
logo.svg
meson.mk
netfilter.mk netfilter: remove nf-conntrack6 2026-01-21 22:42:20 +01:00
nls.mk
openssl-module.mk
optee-os.mk
package-bin.mk
package-defaults.mk build: derive PKG_SOURCE_DATE_EPOCH from the unpacked source tree 2026-06-02 11:51:00 +02:00
package-dumpinfo.mk
package-pack.mk build: derive PKG_SOURCE_DATE_EPOCH from the unpacked source tree 2026-06-02 11:51:00 +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.mk
quilt.mk
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
trusted-firmware-a.mk
u-boot.mk treewide: update u-boot URL 2026-01-02 18:07:02 +01:00
uclibc++.mk
unpack.mk
verbose.mk
version.mk