All of lore.kernel.org
 help / color / mirror / Atom feed
* coreutils over uutils-coreutils when selinux in DISTRO_FEATURES
@ 2023-12-31  1:29 Vincent Davis Jr
  2023-12-31 23:18 ` Vincent Davis Jr
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Davis Jr @ 2023-12-31  1:29 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

Hello all,

Currently using coreutils over busybox and systemd over sysvinit via:

> 
> 
> 
> 
> SKIP_RECIPE[busybox] = "Don't build this"
> DISTRO_FEATURES_BACKFILL_CONSIDERED:append = " sysvinit"
> VIRTUAL-RUNTIME_syslog = ""
> VIRTUAL-RUNTIME_initscripts = ""
> VIRTUAL-RUNTIME_init_manager = "systemd"
> VIRTUAL-RUNTIME_dev_manager = "udev"
> VIRTUAL-RUNTIME_login_manager = "shadow-base"
> VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
> VIRTUAL-RUNTIME_base-utils-hwclock = "util-linux-hwclock"
> VIRTUAL-RUNTIME_base-utils-syslog = ""
> VIRTUAL-RUNTIME_vim = "vim"
> PREFERRED_PROVIDER_udev = "systemd"
> PREFERRED_PROVIDER_udev-utils = "systemd"
> PREFERRED_PROVIDER_virtual/base-utils = "packagegroup-core-base-utils"
> PREFERRED_PROVIDER_coreutils = "coreutils"
> 
> 

Need help determining how to use coreutils over uutils-coreutils?
uutils-coreutils only gets built when I include "selinux" in *DISTRO_FEATURES.
* Thus it leads me to

ERROR: Nothing PROVIDES 'clang-native'
ERROR: Nothing RPROVIDES 'uutils-coreutils'

Of course happens because I'm not including meta-clang.

I've bypassed error by including:

SKIP_RECIPE[uutils-coreutils] = "Don't build this"
BBMASK += "/meta-oe/recipes-core/uutils-coreutils"

Which builds, but doesn't include required tools into target system image
sed,which.

I have tried removing SKIP_RECIPE,BBMASK and set

PREFERRED_PROVIDER_coreutils = "coreutils"

Still wants to build uutils-coreutils over coreutils.

I would like to not include meta-clang and of course not use uutils-coreutils over coreutils.

[-- Attachment #2: Type: text/html, Size: 1778 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coreutils over uutils-coreutils when selinux in DISTRO_FEATURES
  2023-12-31  1:29 coreutils over uutils-coreutils when selinux in DISTRO_FEATURES Vincent Davis Jr
@ 2023-12-31 23:18 ` Vincent Davis Jr
  2024-10-10 20:06   ` Clayton Casciato
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Davis Jr @ 2023-12-31 23:18 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

Hello for future readers,

Issue with target system not containing coreutils was fixed via

SKIP_RECIPE[uutils-coreutils] = "Don't build this"

IMAGE_INSTALL:append = " packagegroup-selinux-minimal"

[-- Attachment #2: Type: text/html, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coreutils over uutils-coreutils when selinux in DISTRO_FEATURES
  2023-12-31 23:18 ` Vincent Davis Jr
@ 2024-10-10 20:06   ` Clayton Casciato
  2024-11-03 17:13     ` Vincent Davis Jr
  0 siblings, 1 reply; 6+ messages in thread
From: Clayton Casciato @ 2024-10-10 20:06 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

Thanks for posting this, Vincent!

I solved this in a uutils-coreutils-%.bbappend:
PROVIDES:remove = "coreutils"
RPROVIDES:${PN}:remove = "coreutils"

[-- Attachment #2: Type: text/html, Size: 209 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: coreutils over uutils-coreutils when selinux in DISTRO_FEATURES
  2024-10-10 20:06   ` Clayton Casciato
@ 2024-11-03 17:13     ` Vincent Davis Jr
  2026-03-25 23:30       ` [oe] " Clayton Casciato
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Davis Jr @ 2024-11-03 17:13 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

Hey Clayton, Thanks for post append! Forgot I wanted to append more info to post.
I added bellow into distro config

# Replaces busybox,uutils-coreutils with coreutils
SKIP_RECIPE[uutils-coreutils] = "Don't build this"
SKIP_RECIPE[busybox] = "Don't build this"
VIRTUAL-RUNTIME_syslog = ""
VIRTUAL-RUNTIME_login_manager = "shadow-base"
VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
VIRTUAL-RUNTIME_base-utils-hwclock = "util-linux-hwclock"
VIRTUAL-RUNTIME_base-utils-syslog = ""
VIRTUAL-RUNTIME_vim = "vim"
PREFERRED_PROVIDER_virtual/base-utils = "packagegroup-core-base-utils"
PREFERRED_PROVIDER_coreutils = "coreutils"
PREFERRED_PROVIDER_uutils-coreutils = "coreutils"
RDEPENDS:packagegroup-core-base-utils:remove = " parted"

[-- Attachment #2: Type: text/html, Size: 857 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] coreutils over uutils-coreutils when selinux in DISTRO_FEATURES
  2024-11-03 17:13     ` Vincent Davis Jr
@ 2026-03-25 23:30       ` Clayton Casciato
  2026-03-26  0:53         ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Clayton Casciato @ 2026-03-25 23:30 UTC (permalink / raw)
  To: Vincent Davis Jr, openembedded-devel, raj.khem

Vincent-
I changed my workaround to BBMASK
"meta-openembedded/meta-oe/recipes-core/uutils-coreutils/".

Raj/all-

This is an issue at parse time:
uutils-coreutils has a conditional dependency ("selinux") on
"clang-native" [1], which is provided by meta-clang [2] 

This issue could likely be resolved via BBFILES_DYNAMIC[3].

[1] https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb?h=scarthgap&id=cc425a989b68fc9b52ab37d5178d13d21ee92f39#n32
[2] https://github.com/kraj/meta-clang/blob/b9ef02282197380ef05edbd0eb852e1934ceb59b/recipes-devtools/clang/clang_git.bb#L306
[3] https://docs.yoctoproject.org/scarthgap/ref-manual/variables.html#term-BBFILES_DYNAMIC

Clayton Casciato


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] coreutils over uutils-coreutils when selinux in DISTRO_FEATURES
  2026-03-25 23:30       ` [oe] " Clayton Casciato
@ 2026-03-26  0:53         ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2026-03-26  0:53 UTC (permalink / raw)
  To: Clayton Casciato; +Cc: Vincent Davis Jr, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

On Wed, Mar 25, 2026 at 4:30 PM Clayton Casciato <
majortomtosourcecontrol@gmail.com> wrote:

> Vincent-
> I changed my workaround to BBMASK
> "meta-openembedded/meta-oe/recipes-core/uutils-coreutils/".
>
> Raj/all-
>
> This is an issue at parse time:
> uutils-coreutils has a conditional dependency ("selinux") on
> "clang-native" [1], which is provided by meta-clang [2]
>
> This issue could likely be resolved via BBFILES_DYNAMIC[3].
>

I think we can also disable selinux packageconfig by default. I think if
you do not need selinux then I Would suggest to toggle this packageconfig


>
> [1]
> https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.28.bb?h=scarthgap&id=cc425a989b68fc9b52ab37d5178d13d21ee92f39#n32
> [2]
> https://github.com/kraj/meta-clang/blob/b9ef02282197380ef05edbd0eb852e1934ceb59b/recipes-devtools/clang/clang_git.bb#L306
> [3]
> https://docs.yoctoproject.org/scarthgap/ref-manual/variables.html#term-BBFILES_DYNAMIC
>
> Clayton Casciato
>

[-- Attachment #2: Type: text/html, Size: 2151 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-26  0:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-31  1:29 coreutils over uutils-coreutils when selinux in DISTRO_FEATURES Vincent Davis Jr
2023-12-31 23:18 ` Vincent Davis Jr
2024-10-10 20:06   ` Clayton Casciato
2024-11-03 17:13     ` Vincent Davis Jr
2026-03-25 23:30       ` [oe] " Clayton Casciato
2026-03-26  0:53         ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.