From: George Sapkin Date: Wed, 24 Dec 2025 02:28:49 +0000 (+0200) Subject: build: fix missing PKG_INFO_DIR X-Git-Tag: v25.12.0-rc2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaeae068cccf549acf2c296e7e1ad0e331def102;p=thirdparty%2Fopenwrt.git 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 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 --- diff --git a/include/package-pack.mk b/include/package-pack.mk index 980fe29f695..b38000ca970 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; \