Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: "Ishaan Desai" <Ishaan.Desai@ibm.com>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] memory-control: fix build failure on non-systemd distros
Date: Mon, 13 Jul 2026 19:18:53 +0200	[thread overview]
Message-ID: <DJXM5HO042KD.3TA2WKNMM5UKS@bootlin.com> (raw)
In-Reply-To: <20260713150121.3809558-1-Ishaan.Desai@ibm.com>

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 <mathieu.dubois-briand@bootlin.com>
> AI-Generated: Uses IBM Bob
>
> Signed-off-by: Ishaan Desai <Ishaan.Desai@ibm.com>
> ---

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



      reply	other threads:[~2026-07-13 17:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-13 15:01 [PATCH] memory-control: fix build failure on non-systemd distros Ishaan Desai
2026-07-13 17:18 ` Mathieu Dubois-Briand [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DJXM5HO042KD.3TA2WKNMM5UKS@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=Ishaan.Desai@ibm.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox