shadow: Fix build failure on Ubuntu-20.04
PATCH 1/1 shadow: Fix build failure on Ubuntu-20.04
Don't use systemd features for native build, otherwise it failes with following error:
../../shadow-4.14.2/lib/logind.c: In function ‘active_sessions_count’:../../shadow-4.14.2/lib/logind.c:38:55: error: parameter name omitted
38 | unsigned long active_sessions_count(const char *name, unsigned long unused)
--- meta/recipes-extended/shadow/shadow.inc | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-extended/shadow/shadow.inc +6 -0
@@ -43,6 +43,7 @@ EXTRA_OECONF += "--without-libcrack \ --with-group-name-max-length=24 \ --enable-subordinate-ids=yes \ --without-sssd \ + ${LOGINDOPT} \ ${NSCDOPT}" CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY"
@@ -52,6 +53,11 @@ NSCDOPT:class-native = "--without-nscd" NSCDOPT:class-nativesdk = "--without-nscd" NSCDOPT:libc-glibc = "--with-nscd" +LOGINDOPT = "" +LOGINDOPT:class-native = "--disable-logind" +LOGINDOPT:class-nativesdk = "--disable-logind" +LOGINDOPT:libc-glibc = "--enable-logind" + PAM_PLUGINS = "libpam-runtime \ pam-plugin-faildelay \ pam-plugin-securetty \
Signature · 1 line
2.25.1
This isn’t correct as the option still checks for systemd when enabled and disables itself if that is not found. My patch is better.
Alex
Quoted 53 lines · Vyacheslav Yurkov
Don't use systemd features for native build, otherwise it failes with following error:
../../shadow-4.14.2/lib/logind.c: In function ‘active_sessions_count’:../../shadow-4.14.2/lib/logind.c:38:55: error: parameter name omitted
38 | unsigned long active_sessions_count(const char *name, unsigned
long unused)Signed-off-by Vyacheslav Yurkov <[email protected]>--- meta/recipes-extended/shadow/shadow.inc | 6 ++++++ 1 file changed, 6 insertions(+)meta/recipes-extended/shadow/shadow.inc +6
-1@@ -43,6 +43,7 @@ EXTRA_OECONF += "--without-libcrack \ --with-group-name-max-length=24 \ --enable-subordinate-ids=yes \ --without-sssd \ + ${LOGINDOPT} \ ${NSCDOPT}" CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY"@@ -52,6 +53,11 @@ NSCDOPT:class-native = "--without-nscd" NSCDOPT:class-nativesdk = "--without-nscd" NSCDOPT:libc-glibc = "--with-nscd" +LOGINDOPT = "" +LOGINDOPT:class-native = "--disable-logind" +LOGINDOPT:class-nativesdk = "--disable-logind" +LOGINDOPT:libc-glibc = "--enable-logind" + PAM_PLUGINS = "libpam-runtime \ pam-plugin-faildelay \ pam-plugin-securetty \ --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#195175):
https://lists.openembedded.org/g/openembedded-core/message/195175
Mute This Topic: https://lists.openembedded.org/mt/104245489/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-