| Message ID | 20251203062704.138197-1-changqing.li@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | [V2] shadow: disable econf for native | expand |
On Tue, Dec 2, 2025 at 10:27 PM Changqing Li via lists.openembedded.org < changqing.li=windriver.com@lists.openembedded.org> wrote: > From: Changqing Li <changqing.li@windriver.com> > > 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> > --- > meta/recipes-extended/shadow/shadow_4.18.0.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/recipes-extended/shadow/shadow_4.18.0.bb > b/meta/recipes-extended/shadow/shadow_4.18.0.bb > index ba65fc7196..42d0d54b3a 100644 > --- a/meta/recipes-extended/shadow/shadow_4.18.0.bb > +++ b/meta/recipes-extended/shadow/shadow_4.18.0.bb > @@ -46,6 +46,8 @@ EXTRA_OECONF += " \ > --without-sssd \ > ${NSCDOPT}" > > +CACHED_CONFIGUREVARS:class-native += "ac_cv_lib_econf_econf_readDirs=no" > + > I think it would be good to add it to all shadow recipe classes. > CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY" > > NSCDOPT = "" > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#227201): > https://lists.openembedded.org/g/openembedded-core/message/227201 > Mute This Topic: https://lists.openembedded.org/mt/116590532/1997914 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ > raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >
On 12/4/25 00:55, Khem Raj wrote: > ** > *CAUTION: This email comes from a non Wind River email account!* > Do not click links or open attachments unless you recognize the sender > and know the content is safe. > > > On Tue, Dec 2, 2025 at 10:27 PM Changqing Li via > lists.openembedded.org > <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs23DoWkFg$> > <changqing.li > <https://urldefense.com/v3/__http://changqing.li__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs03k4UVTA$>=windriver.com@lists.openembedded.org> > wrote: > > From: Changqing Li <changqing.li@windriver.com> > > 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> > --- > meta/recipes-extended/shadow/shadow_4.18.0.bb > <https://urldefense.com/v3/__http://shadow_4.18.0.bb__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs1eR7BugQ$> > | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/recipes-extended/shadow/shadow_4.18.0.bb > <https://urldefense.com/v3/__http://shadow_4.18.0.bb__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs1eR7BugQ$> > b/meta/recipes-extended/shadow/shadow_4.18.0.bb > <https://urldefense.com/v3/__http://shadow_4.18.0.bb__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs1eR7BugQ$> > index ba65fc7196..42d0d54b3a 100644 > --- a/meta/recipes-extended/shadow/shadow_4.18.0.bb > <https://urldefense.com/v3/__http://shadow_4.18.0.bb__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs1eR7BugQ$> > +++ b/meta/recipes-extended/shadow/shadow_4.18.0.bb > <https://urldefense.com/v3/__http://shadow_4.18.0.bb__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs1eR7BugQ$> > @@ -46,6 +46,8 @@ EXTRA_OECONF += " \ > --without-sssd \ > ${NSCDOPT}" > > +CACHED_CONFIGUREVARS:class-native += > "ac_cv_lib_econf_econf_readDirs=no" > + > > > I think it would be good to add it to all shadow recipe classes. Yes, I ignored shadow also has nativesdk class. I will send a V3. //Changqing > CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY" > > NSCDOPT = "" > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#227201): > https://lists.openembedded.org/g/openembedded-core/message/227201 > <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/227201__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs0G7lZ7PA$> > Mute This Topic: > https://lists.openembedded.org/mt/116590532/1997914 > <https://urldefense.com/v3/__https://lists.openembedded.org/mt/116590532/1997914__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs3EtiUgkw$> > Group Owner: openembedded-core+owner@lists.openembedded.org > <mailto:openembedded-core%2Bowner@lists.openembedded.org> > Unsubscribe: > https://lists.openembedded.org/g/openembedded-core/unsub > <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!ez9gin12PukVO1Esf8fELc2tQLbBMY3RUaK_JL55cLnhqppNa2WEVir3LZ0hiDMIVDKoDVsjf0D_cs0QaBOZYw$> > [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta/recipes-extended/shadow/shadow_4.18.0.bb b/meta/recipes-extended/shadow/shadow_4.18.0.bb index ba65fc7196..42d0d54b3a 100644 --- a/meta/recipes-extended/shadow/shadow_4.18.0.bb +++ b/meta/recipes-extended/shadow/shadow_4.18.0.bb @@ -46,6 +46,8 @@ EXTRA_OECONF += " \ --without-sssd \ ${NSCDOPT}" +CACHED_CONFIGUREVARS:class-native += "ac_cv_lib_econf_econf_readDirs=no" + CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY" NSCDOPT = ""