On Mon Jul 13, 2026 at 5:01 PM CEST, Ishaan Desai wrote:
> The recipe unconditionally declared RDEPENDS on 'systemd', which is an
> init manager, not an installable package. On distros like poky that do
> not enable the systemd DISTRO_FEATURE, the dependency resolver cannot
> satisfy this, causing the recipe and anything that inherits
> memory-control.bbclass to become unbuildable in a world build:
>
> ERROR: Nothing RPROVIDES 'systemd'
> NOTE: Runtime target 'memory-control' is unbuildable
>
> Fix by adding 'inherit features_check' and REQUIRED_DISTRO_FEATURES =
> "systemd" to the recipe so it is cleanly skipped on non-systemd distros,
> removing 'systemd' from RDEPENDS:${PN} in the recipe (the tool shells out
> to systemctl at runtime, but systemd is an init manager present on the
> running system, not a package dependency to install), and guarding the
> RDEPENDS injection in memory-control.bbclass with bb.utils.contains so
> recipes that inherit the class do not pull in the memory-control package
> on non-systemd distros. Also add the missing RECIPE_MAINTAINER entry to
> maintainers.inc.
>
> Reported-by: Mathieu Dubois-Briand <[email protected]>
> AI-Generated: Uses IBM Bob
>
> Signed-off-by: Ishaan Desai <[email protected]>
> ---
Hi Ishaan,
The first version was not merged, so please squash your changes in it.
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#240851):
https://lists.openembedded.org/g/openembedded-core/message/240851
Mute This Topic: https://lists.openembedded.org/mt/120250712/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-