<div dir="ltr">--without-included-glib seems to cause configure to find glib from the host:<div><br></div><div>ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.</div><div><br><div>gettext/0.19.8.1-r0/build/gettext-tools/config.log:cc1: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation [-Wpoison-system-directories]<br></div></div><div><br></div><div>I'm testing it with added --with-libglib-2.0-prefix to see if it fixes the issue. I've added the same to other added PACKAGECONFIGs:</div><div><div>-PACKAGECONFIG[croco] = "--without-included-libcroco,--with-included-libcroco,libcroco"</div><div>-PACKAGECONFIG[glib] = "--without-included-glib,--with-included-glib,glib-2.0"</div><div>-PACKAGECONFIG[libxml] = "--without-included-libxml,--with-included-libxml,libxml2"</div><div>-PACKAGECONFIG[libunistring] = "--without-included-libunistring,--with-included-libunistring,libunistring"</div><div>+PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/.. --without-included-libcroco,--with-included-libcroco,libcroco"</div><div>+PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/.. --without-included-glib,--with-included-glib,glib-2.0"</div><div>+PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/.. --without-included-libxml,--with-included-libxml,libxml2"</div><div>+PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/.. --without-included-libunistring,--with-included-libunistring,libunistring"</div></div><div><br></div><div>Not sure if it's worth adding other prefixes for curses related PACKAGECONFIG</div><div>PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses,"<br></div><div><br></div><div><div> --with-libncurses-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib</div><div> --without-libncurses-prefix don't search for PACKLIBS in includedir and libdir</div><div> --with-libxcurses-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib</div><div> --without-libxcurses-prefix don't search for PACKLIBS in includedir and libdir</div><div> --with-libcurses-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib</div><div> --without-libcurses-prefix don't search for PACKLIBS in includedir and libdir</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 8, 2018 at 5:00 PM, Ross Burton <span dir="ltr"><<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">gettext has optional dependencies on libxml2, glib, libcroco and libunistring.<br>
If they're not available then gettext will use internal copies, but it can also<br>
use system libraries.<br>
<br>
For gettext-native continue to use the internal copies to get this building<br>
sooner rather than later, but for target use the system shared libraries.<br>
<br>
Also gettext 0.19.7 onwards swapped expat for libxm2, so remove the build<br>
dependency on expat.<br>
<br>
Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>><br>
---<br>
meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">gett<wbr>ext_0.19.8.1.bb</a> | 14 +++++++++-----<br>
1 file changed, 9 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">ge<wbr>ttext_0.19.8.1.bb</a> b/meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">ge<wbr>ttext_0.19.8.1.bb</a><br>
index 46ea68ff5b5..25ff601a6be 100644<br>
--- a/meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">ge<wbr>ttext_0.19.8.1.bb</a><br>
+++ b/meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">ge<wbr>ttext_0.19.8.1.bb</a><br>
@@ -8,7 +8,7 @@ SECTION = "libs"<br>
LICENSE = "GPLv3+ & LGPL-2.1+"<br>
LIC_FILES_CHKSUM = "file://COPYING;md5=<wbr>d32239bcb673463ab874e80d47fae5<wbr>04"<br>
<br>
-DEPENDS = "gettext-native virtual/libiconv expat"<br>
+DEPENDS = "gettext-native virtual/libiconv"<br>
DEPENDS_class-native = "gettext-minimal-native"<br>
PROVIDES = "virtual/libintl virtual/gettext"<br>
PROVIDES_class-native = "virtual/gettext-native"<br>
@@ -33,18 +33,22 @@ EXTRA_OECONF += "--without-lispdir \<br>
--disable-native-java \<br>
--disable-openmp \<br>
--disable-acl \<br>
- --with-included-glib \<br>
--without-emacs \<br>
--without-cvs \<br>
--without-git \<br>
- --with-included-libxml \<br>
- --with-included-libcroco \<br>
- --with-included-libunistring \<br>
"<br>
EXTRA_OECONF_append_class-<wbr>target = " \<br>
--with-bisonlocaledir=${<wbr>datadir}/locale \<br>
"<br>
<br>
+PACKAGECONFIG ??= "croco glib libxml libunistring"<br>
+PACKAGECONFIG_class-native = ""<br>
+<br>
+PACKAGECONFIG[croco] = "--without-included-libcroco,-<wbr>-with-included-libcroco,<wbr>libcroco"<br>
+PACKAGECONFIG[glib] = "--without-included-glib,--<wbr>with-included-glib,glib-2.0"<br>
+PACKAGECONFIG[libxml] = "--without-included-libxml,--<wbr>with-included-libxml,libxml2"<br>
+PACKAGECONFIG[libunistring] = "--without-included-<wbr>libunistring,--with-included-<wbr>libunistring,libunistring"<br>
+<br>
acpaths = '-I ${S}/gettext-runtime/m4 \<br>
-I ${S}/gettext-tools/m4'<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.11.0<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>