Skip to contentSkip to conversation

coreutils: Tweak packaging variable names for coreutils-dev

PATCH New Richard Purdie 1 participant 1 message Jun 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 coreutils: Tweak packaging variable names for coreutils-dev

PACKAGES uses ${PN}-dev so be consistent with the addition to the variable to avoid weird variable conflicts.

The flags variable used here is messy, key expansion and overrides are not supported by flags. The plain variable access does happen to work though, so leave it as is for now and note.

---
 meta/recipes-core/coreutils/coreutils_9.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

v2: Add in note about key expansion flags issues

meta/recipes-core/coreutils/coreutils_9.1.bb +2 -1
index d57e147a7e0..55663c77136 100644
@@ -171,8 +171,9 @@ RDEPENDS:${PN}-ptest += "bash findutils gawk liberror-perl make perl perl-module
 
 # -dev automatic dependencies fails as we don't want libmodule-build-perl-dev, its too heavy
 # may need tweaking if DEPENDS changes
+# Can't use ${PN}-dev here since flags with overrides and key expansion not supported
 RRECOMMENDS:coreutils-dev[nodeprrecs] = "1"
-RRECOMMENDS:coreutils-dev = "acl-dev attr-dev gmp-dev libcap-dev bash-dev findutils-dev gawk-dev shadow-dev"
+RRECOMMENDS:${PN}-dev += "acl-dev attr-dev gmp-dev libcap-dev bash-dev findutils-dev gawk-dev shadow-dev"
 
 do_install_ptest () {
     install -d ${D}${PTEST_PATH}/tests
Signature · 1 line
2.34.1