All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] systemd-systemctl-native: disable meson's auto-features
@ 2025-04-23 13:52 Trevor Woerner
  2025-04-23 15:00 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 3+ messages in thread
From: Trevor Woerner @ 2025-04-23 13:52 UTC (permalink / raw)
  To: openembedded-core

Disable meson's ability to analyze the entire host's system to determine which
features to enable. Which features are enabled should be limited to the
features that are explicitly enabled, not simply discovered.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb b/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
index 041a040a2654..591a1747d63a 100644
--- a/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
+++ b/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
@@ -8,7 +8,7 @@ inherit pkgconfig meson native
 
 MESON_TARGET = "systemctl:executable"
 MESON_INSTALL_TAGS = "systemctl"
-EXTRA_OEMESON += "-Dlink-systemctl-shared=false"
+EXTRA_OEMESON += "-Dlink-systemctl-shared=false --auto-features=disabled"
 
 # Systemctl is supposed to operate on target, but the target sysroot is not
 # determined at run-time, but rather set during configure
-- 
2.44.0.501.g19981daefd7c



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

* Re: [OE-core] [PATCH] systemd-systemctl-native: disable meson's auto-features
  2025-04-23 13:52 [PATCH] systemd-systemctl-native: disable meson's auto-features Trevor Woerner
@ 2025-04-23 15:00 ` Alexander Kanavin
  2025-04-25 16:42   ` Trevor Woerner
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2025-04-23 15:00 UTC (permalink / raw)
  To: twoerner; +Cc: openembedded-core

This sounds like something that should be in meson.bbclass, rather
than one specific recipe?

Alex

On Wed, 23 Apr 2025 at 15:52, Trevor Woerner via
lists.openembedded.org <twoerner=gmail.com@lists.openembedded.org>
wrote:
>
> Disable meson's ability to analyze the entire host's system to determine which
> features to enable. Which features are enabled should be limited to the
> features that are explicitly enabled, not simply discovered.
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
>  meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb b/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
> index 041a040a2654..591a1747d63a 100644
> --- a/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
> +++ b/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
> @@ -8,7 +8,7 @@ inherit pkgconfig meson native
>
>  MESON_TARGET = "systemctl:executable"
>  MESON_INSTALL_TAGS = "systemctl"
> -EXTRA_OEMESON += "-Dlink-systemctl-shared=false"
> +EXTRA_OEMESON += "-Dlink-systemctl-shared=false --auto-features=disabled"
>
>  # Systemctl is supposed to operate on target, but the target sysroot is not
>  # determined at run-time, but rather set during configure
> --
> 2.44.0.501.g19981daefd7c
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#215309): https://lists.openembedded.org/g/openembedded-core/message/215309
> Mute This Topic: https://lists.openembedded.org/mt/112414248/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [OE-core] [PATCH] systemd-systemctl-native: disable meson's auto-features
  2025-04-23 15:00 ` [OE-core] " Alexander Kanavin
@ 2025-04-25 16:42   ` Trevor Woerner
  0 siblings, 0 replies; 3+ messages in thread
From: Trevor Woerner @ 2025-04-25 16:42 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core

On Wed 2025-04-23 @ 05:00:42 PM, Alexander Kanavin wrote:
> This sounds like something that should be in meson.bbclass, rather
> than one specific recipe?

As an experiment I moved the --auto-features=disabled flag to the
meson.bbclass. Unsurprisingly when doing a world build of oe-core a bunch of
additional recipes fail. Surprisingly the list is not as long as I would have
thought:
	gconf (+native)
	efivar
	libfm
	consolekit
	cairo (+native)
	pulseaudio

I'm working through the list to discover which features are being
auto-detected rather than explicitly set. For each feature I'm adding a
PACKAGECONFIG, then enabling it by default.

If I can get through the above list successfully then I'll have a v2 to send.
Realistically I should do the same exercise with meta-oe before sending a v2.

> Alex
> 
> On Wed, 23 Apr 2025 at 15:52, Trevor Woerner via
> lists.openembedded.org <twoerner=gmail.com@lists.openembedded.org>
> wrote:
> >
> > Disable meson's ability to analyze the entire host's system to determine which
> > features to enable. Which features are enabled should be limited to the
> > features that are explicitly enabled, not simply discovered.
> >
> > Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> > ---
> >  meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb b/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
> > index 041a040a2654..591a1747d63a 100644
> > --- a/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
> > +++ b/meta/recipes-core/systemd/systemd-systemctl-native_257.5.bb
> > @@ -8,7 +8,7 @@ inherit pkgconfig meson native
> >
> >  MESON_TARGET = "systemctl:executable"
> >  MESON_INSTALL_TAGS = "systemctl"
> > -EXTRA_OEMESON += "-Dlink-systemctl-shared=false"
> > +EXTRA_OEMESON += "-Dlink-systemctl-shared=false --auto-features=disabled"
> >
> >  # Systemctl is supposed to operate on target, but the target sysroot is not
> >  # determined at run-time, but rather set during configure
> > --
> > 2.44.0.501.g19981daefd7c
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#215309): https://lists.openembedded.org/g/openembedded-core/message/215309
> > Mute This Topic: https://lists.openembedded.org/mt/112414248/1686489
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


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

end of thread, other threads:[~2025-04-25 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 13:52 [PATCH] systemd-systemctl-native: disable meson's auto-features Trevor Woerner
2025-04-23 15:00 ` [OE-core] " Alexander Kanavin
2025-04-25 16:42   ` Trevor Woerner

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.