]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
shadow: disable econf
authorChangqing Li <changqing.li@windriver.com>
Thu, 4 Dec 2025 01:55:41 +0000 (09:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Dec 2025 17:54:25 +0000 (17:54 +0000)
When libeconf is installed on the host and GCC from extended buildtools
is used, the host’s libeconf is detected and -DUSE_ECONF=1 gets enabled.
However, the buildtools GCC cannot see the host header files, causing
the shadow-native do_compile fail with error:
../../shadow-4.17.3/lib/getdef.c:22:10: fatal error: libeconf.h: No such file or directory

This patch disable econf to workaround above issue.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/shadow/shadow_4.18.0.bb

index ba65fc7196734d12c998adebcaa7fdd6c72cbe97..d9a49d8ccf6615d874456418682a4c77089ddb8e 100644 (file)
@@ -46,6 +46,8 @@ EXTRA_OECONF += " \
                  --without-sssd \
                  ${NSCDOPT}"
 
+CACHED_CONFIGUREVARS += "ac_cv_lib_econf_econf_readDirs=no"
+
 CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY"
 
 NSCDOPT = ""