diff mbox series

[wrynose] systemd-systemctl-native: disable libpam meson option

Message ID 20260629084157.299017-1-daniel.turull@ericsson.com
State New
Headers show
Series [wrynose] systemd-systemctl-native: disable libpam meson option | expand

Commit Message

Daniel Turull June 29, 2026, 8:41 a.m. UTC
From: Daniel Turull <daniel.turull@ericsson.com>

When building on rhel8.10 we got the following crash during do_compile

systemctl-259.5/src/shared/pam-util.c
| ../sources/systemd-systemctl-259.5/src/shared/pam-util.c:3:10: fatal error: security/pam_ext.h: No such file or directory
|     3 | #include <security/pam_ext.h>
|       |          ^~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| INFO: autodetecting backend as ninja

libpam is not needed for systemctl task done by bitbake, therfore
disable MESON option.

Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
---
 meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb | 1 +
 1 file changed, 1 insertion(+)

Comments

Yoann Congal June 29, 2026, 9:51 a.m. UTC | #1
Le lun. 29 juin 2026 à 10:42, Daniel Turull via lists.openembedded.org
<daniel.turull=ericsson.com@lists.openembedded.org> a écrit :

> From: Daniel Turull <daniel.turull@ericsson.com>
>
> When building on rhel8.10 we got the following crash during do_compile
>
> systemctl-259.5/src/shared/pam-util.c
> | ../sources/systemd-systemctl-259.5/src/shared/pam-util.c:3:10: fatal
> error: security/pam_ext.h: No such file or directory
> |     3 | #include <security/pam_ext.h>
> |       |          ^~~~~~~~~~~~~~~~~~~~
> | compilation terminated.
> | ninja: build stopped: subcommand failed.
> | INFO: autodetecting backend as ninja
>
> libpam is not needed for systemctl task done by bitbake, therfore
> disable MESON option.
>
> Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
>

Hello,

What would be the corresponding master commit? "systemd: upgrade to 261"?

Regards,


> ---
>  meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
> b/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
> index 3d01d60e9c..3c0dcd35a3 100644
> --- a/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
> +++ b/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
> @@ -12,6 +12,7 @@ MESON_TARGET = "systemctl:executable"
>  MESON_INSTALL_TAGS = "systemctl"
>  EXTRA_OEMESON += "-Dlink-systemctl-shared=false"
>  EXTRA_OEMESON += "-Dsysvinit-path= -Dsysvrcnd-path="
> +EXTRA_OEMESON += "-Dpam=disabled"
>
>  # Systemctl is supposed to operate on target, but the target sysroot is
> not
>  # determined at run-time, but rather set during configure
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#239737):
> https://lists.openembedded.org/g/openembedded-core/message/239737
> Mute This Topic: https://lists.openembedded.org/mt/120027421/4316185
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> yoann.congal@smile.fr]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Daniel Turull June 29, 2026, 10:12 a.m. UTC | #2
On Mon, 2026-06-29 at 11:51 +0200, Yoann Congal via
lists.openembedded.org wrote:
> 
> 
> Le lun. 29 juin 2026 à 10:42, Daniel Turull via
> lists.openembedded.org
> <daniel.turull=ericsson.com@lists.openembedded.org> a écrit :
> > From: Daniel Turull <daniel.turull@ericsson.com>
> > 
> > When building on rhel8.10 we got the following crash during
> > do_compile
> > 
> > systemctl-259.5/src/shared/pam-util.c
> > | ../sources/systemd-systemctl-259.5/src/shared/pam-util.c:3:10:
> > fatal error: security/pam_ext.h: No such file or directory
> > |     3 | #include <security/pam_ext.h>
> > |       |          ^~~~~~~~~~~~~~~~~~~~
> > | compilation terminated.
> > | ninja: build stopped: subcommand failed.
> > | INFO: autodetecting backend as ninja
> > 
> > libpam is not needed for systemctl task done by bitbake, therfore
> > disable MESON option.
> > 
> > Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
> 
> 
> Hello,
> 
> What would be the corresponding master commit? "systemd: upgrade to
> 261"?
> 

Yes. 

I have tested the CVE fix in the rhel8 machine and I found the same
issue that when I did the systemd upgrade


Regards,

Daniel 
>  
> >
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb b/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
index 3d01d60e9c..3c0dcd35a3 100644
--- a/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
+++ b/meta/recipes-core/systemd/systemd-systemctl-native_259.5.bb
@@ -12,6 +12,7 @@  MESON_TARGET = "systemctl:executable"
 MESON_INSTALL_TAGS = "systemctl"
 EXTRA_OEMESON += "-Dlink-systemctl-shared=false"
 EXTRA_OEMESON += "-Dsysvinit-path= -Dsysvrcnd-path="
+EXTRA_OEMESON += "-Dpam=disabled"
 
 # Systemctl is supposed to operate on target, but the target sysroot is not
 # determined at run-time, but rather set during configure