]> git.ipfire.org Git - thirdparty/openwrt.git/commit
build: fixup version.date creation for source archives 23756/head
authorPaul Spooren <mail@aparcar.org>
Fri, 12 Jun 2026 14:49:44 +0000 (16:49 +0200)
committerPaul Spooren <mail@aparcar.org>
Fri, 12 Jun 2026 15:41:09 +0000 (17:41 +0200)
commit8ba4c5e99396bdde32480ccbe615427b9f28c648
tree531922eab191df7f4af02e0f2c7e5790abba17ec
parent5575e4a97f119f682223a090c4a78c0913f906f5
build: fixup version.date creation for source archives

Published sources archives may contain a mixture of MTIMEs, so taking the time
of the first file found varies based on filesystem order. To fix this, sort all
MTIMEs and take the latest.

Since piping into a file directly creates that file, we also need to
specifically tell `find` to ignore `version.date`.

Furthermore, move this prior to the ./src copy step, since for some packages,
the OpenWrt build system ships extra ./src files, which would introduce the
wrong timestamps again.

Fix: e36c2946b7b build: derive PKG_SOURCE_DATE_EPOCH from the unpacked source tree
Link: https://github.com/openwrt/openwrt/pull/23756
Signed-off-by: Paul Spooren <mail@aparcar.org>
include/package-defaults.mk