From 2f4311dfff8d4f242f6ae53eb8db728aecbc2878 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 20 Oct 2026 15:58:01 +0100 Subject: [PATCH] imagebuilder: reset pkg_ver for each package FormatPackages only assigns pkg_ver when a package carries a version, so every package that follows a pinned one inherits its version. With PACKAGES="foo=1.0" all default packages then become "name=1.0" and apk fails to resolve the world. The built-in base-files, libc and kernel pins come last and hide this; user packages are listed first. Set pkg_ver for every package, empty when none is given. Fixes: 31cdd13d22dd ("imagebuilder: add ABI suffix to packages when using apk") Signed-off-by: Daniel Golle --- target/imagebuilder/files/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index 4e8f25a9347..271a30d2308 100644 --- a/target/imagebuilder/files/Makefile +++ b/target/imagebuilder/files/Makefile @@ -178,7 +178,7 @@ endef define FormatPackages $(strip $(foreach pkg,$(strip $(subst ",,$(1))), $(eval pkg_name:=$(firstword $(subst =, ,$(pkg)))) - $(if $(findstring =,$(pkg)),$(eval pkg_ver:==$(lastword $(subst =, ,$(pkg))))) + $(eval pkg_ver:=$(if $(findstring =,$(pkg)),=$(lastword $(subst =, ,$(pkg))))) $(pkg_name)$(call GetABISuffix,$(pkg_name))$(pkg_ver) )) endef