]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
build: fix stale package install stamps for unselected variants
authorFelix Fietkau <nbd@nbd.name>
Tue, 13 Jan 2026 12:37:50 +0000 (12:37 +0000)
committerFelix Fietkau <nbd@nbd.name>
Thu, 22 Jan 2026 10:20:17 +0000 (10:20 +0000)
When a package variant changes from =y to =m, its .install stamp file
was not being cleaned up, causing both variants to appear in the
package install list.

Fix by making compile depend on prepare-package-install, ensuring
the stamp file is always cleared. Only =y packages recreate it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/package.mk

index a8278d067209999f68e5f29001eaba7d97f7ff4b..2bb4ecb4886ea926c209d3ea3032a42e296e9557 100644 (file)
@@ -395,7 +395,7 @@ prepare-package-install:
 $(PACKAGE_DIR):
        mkdir -p $@
 
-compile:
+compile: prepare-package-install
 .install: .compile
 install: compile