[openwrt/openwrt] build: fix stale package install stamps for unselected variants

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 22 02:27:30 PST 2026


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/bb22a514dcb7e79d6dd13e44be4d517f6ed923d0

commit bb22a514dcb7e79d6dd13e44be4d517f6ed923d0
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Jan 13 12:37:50 2026 +0000

    build: fix stale package install stamps for unselected variants
    
    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 at nbd.name>
---
 include/package.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/package.mk b/include/package.mk
index a8278d0672..2bb4ecb488 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -395,7 +395,7 @@ prepare-package-install:
 $(PACKAGE_DIR):
 	mkdir -p $@
 
-compile:
+compile: prepare-package-install
 .install: .compile
 install: compile
 




More information about the lede-commits mailing list