Skip to contentSkip to conversation

uutils-coreutils: drop (filtered) "selinux" from PACKAGECONFIG ?=

PATCH In review Clayton Casciato 3 participants 3 messages Mar 26 – Apr 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uutils-coreutils: drop (filtered) "selinux" from PACKAGECONFIG ?=

"selinux" adds a dependency on clang-native.

clang-native is provided by meta-clang.

If meta-clang is not included, this surfaces parse-time errors such as:
ERROR: Nothing PROVIDES 'clang-native' (but [...]/uutils-coreutils_0.0.28.bb DEPENDS on or otherwise requires it)

This is an issue in the default case - where uutils-coreutils is not enabled.

---
Sponsor: 21SoftWare LLC

OE-C whinlatter and master include clang-native:
https://git.openembedded.org/openembedded-core/commit/meta/recipes-devtools/clang?h=whinlatter&id=d77e398095228b34851762858a76640e3c2cb0ab

Discussion:
https://lists.openembedded.org/g/openembedded-devel/topic/103440861

 .../recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb +1 -1
index 76cecac5a6..41e4f1d831 100644
@@ -22,7 +22,7 @@ require ${BPN}-crates.inc
 PROVIDES = "coreutils"
 RPROVIDES:${PN} = "coreutils"
 
-PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
+PACKAGECONFIG ?= ""
 
 PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
#1 lore raw

Hi Clayton,

I agree to merge this patch.

Étienne

Quoted 43 lines · Clayton Casciato

"selinux" adds a dependency on clang-native.

clang-native is provided by meta-clang.

If meta-clang is not included, this surfaces parse-time errors such as:
ERROR: Nothing PROVIDES 'clang-native' (but [...]/uutils-coreutils_0.0.28.bb DEPENDS on or otherwise requires it)

This is an issue in the default case - where uutils-coreutils is not enabled.

---
Sponsor: 21SoftWare LLC

OE-C whinlatter and master include clang-native:

https://urldefense.proofpoint.com/v2/url?u=https-3A__git.openembedded.org_openembedded-2Dcore_commit_meta_recipes-2Ddevtools_clang-3Fh-3Dwhinlatter-26id-3Dd77e398095228b34851762858a76640e3c2cb0ab&d=DwICaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=4qaMdrtGvkWreWnK7doGMkiFb-BtHVU_UOlvQ23LpOTa-jYEEQoeNRs0MiX43C0B&s=TJh5AjJaNJ4637qYkkSev7d0Jfdmsnw4EdVbI7lfbZA&e=

Discussion:

https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_topic_103440861&d=DwICaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=4qaMdrtGvkWreWnK7doGMkiFb-BtHVU_UOlvQ23LpOTa-jYEEQoeNRs0MiX43C0B&s=TzTRDBWSUS36fXqwJJT-NpSGXwehEtgi7MHzNUcEjec&e=

 .../recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

uutils-coreutils_0.0.28.bb b/meta-oe/recipes-core/uutils-coreutils/ uutils-coreutils_0.0.28.bb
index 76cecac5a6..41e4f1d831 100644

meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb +1 -1
@@ -22,7 +22,7 @@ require ${BPN}-crates.inc
 PROVIDES = "coreutils"
 RPROVIDES:${PN} = "coreutils"
 
-PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
+PACKAGECONFIG ?= ""
 
 PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
#2 lore raw
In reply to Clayton Casciato
Quoted 14 lines · Clayton Casciato via lists.openembedded.org

"selinux" adds a dependency on clang-native.

clang-native is provided by meta-clang.

If meta-clang is not included, this surfaces parse-time errors such as:
ERROR: Nothing PROVIDES 'clang-native' (but [...]/uutils-coreutils_0.0.28.bb DEPENDS on or otherwise requires it)

This is an issue in the default case - where uutils-coreutils is not enabled.

Quoted 8 lines

---
Sponsor: 21SoftWare LLC

OE-C whinlatter and master include clang-native:
https://git.openembedded.org/openembedded-core/commit/meta/recipes-devtools/clang?h=whinlatter&id=d77e398095228b34851762858a76640e3c2cb0ab

Discussion:
https://lists.openembedded.org/g/openembedded-devel/topic/103440861

Thank you for linking to the discussion. This changes behaviour for scarthgap and in my opinion, not an appropriate change for that branch.

Thanks,

Anuj