[openwrt/openwrt] build: fix missing PKG_INFO_DIR

LEDE Commits lede-commits at lists.infradead.org
Wed Dec 24 10:39:58 PST 2025


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/eaeae068cccf549acf2c296e7e1ad0e331def102

commit eaeae068cccf549acf2c296e7e1ad0e331def102
Author: George Sapkin <george at sapk.in>
AuthorDate: Wed Dec 24 04:28:49 2025 +0200

    build: fix missing PKG_INFO_DIR
    
    If the first built package has an ABI, PKG_INFO_DIR might not exist, so
    ensure it does.
    
    Signed-off-by: George Sapkin <george at sapk.in>
    Link: https://github.com/openwrt/openwrt/pull/21265
    (cherry picked from commit 56bc4a0d894f18933c6de2b65a042d4f34f50cd9)
    Link: https://github.com/openwrt/openwrt/pull/21253
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 include/package-pack.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/package-pack.mk b/include/package-pack.mk
index 980fe29f69..b38000ca97 100644
--- a/include/package-pack.mk
+++ b/include/package-pack.mk
@@ -191,6 +191,7 @@ endif
     $(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(PKG_BUILD_DIR)/.pkgdir/$(1).installed
 	mkdir -p $(STAGING_DIR_ROOT)/stamp
 	$(if $(ABI_VERSION),echo '$(ABI_VERSION)' | cmp -s - $(PKG_INFO_DIR)/$(1).version || { \
+		mkdir -p $(PKG_INFO_DIR); \
 		echo '$(ABI_VERSION)' > $(PKG_INFO_DIR)/$(1).version; \
 		$(foreach pkg,$(filter-out $(1),$(PROVIDES)), \
 			cp $(PKG_INFO_DIR)/$(1).version $(PKG_INFO_DIR)/$(pkg).version; \




More information about the lede-commits mailing list