openwrt/package
Jonas Gorski a4e92f0484 build: use STAGING_DIR for special APK package versions
Removing tmp/ after having built base-files or toolchain currently
breaks rootfs generation:

$ rm -rf tmp
$ make V=w
...
 make[2] package/install
cat: .../openwrt/tmp/base-files.version: No such file or directory
cat: .../openwrt/openwrt/tmp/libc.version: No such file or directory
ERROR: 'base-files=' is not a valid world dependency, format is name(@tag)([<>~=]version)
make[2]: *** [package/Makefile💯 package/install] Error 99

The only way to recover from here is to clean toolchain and base-files via

$ make package/{base-files,toolchain}/clean

tmp is supposed to be ephemeral, so clearing it is an expected action,
which normally just triggers a regeneration of all files there.

Fix this by moving the version files to $(STAGING_DIR).

Fixes: 63e178f067 ("build: lock versions for special APK packages")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21803
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-02-01 11:16:54 +01:00
..
base-files build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00
boot uboot-mvebu: update to version 2026.01 2026-01-30 19:07:41 +01:00
devel strace: use bundled kernel headers 2026-01-21 11:41:59 +01:00
firmware linux-firmware: update to 20260110 2026-01-30 16:51:32 +01:00
kernel build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00
libs build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00
network wifi-scripts: fix ieee80211w override for psk-sae/sae-mixed 2026-01-31 18:00:50 +01:00
system uclient: provide virtual wget-any 2026-01-12 14:28:52 +01:00
utils mdadm: move init before fstab init runs 2026-01-27 01:45:10 +01:00
Makefile build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00