<div dir="ltr">Eek, thanks.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 January 2018 at 15:30, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>gettext-tools/config.log:cc1: warning: include location &quot;/usr/include/glib-2.0&quot; is unsafe for cross-compilation [-Wpoison-system-directories]<br></div></div><div><br></div><div>I&#39;m testing it with added --with-libglib-2.0-prefix to see if it fixes the issue. I&#39;ve added the same to other added PACKAGECONFIGs:</div><div><div>-PACKAGECONFIG[croco] = &quot;--without-included-libcroco,-<wbr>-with-included-libcroco,<wbr>libcroco&quot;</div><div>-PACKAGECONFIG[glib] = &quot;--without-included-glib,--<wbr>with-included-glib,glib-2.0&quot;</div><div>-PACKAGECONFIG[libxml] = &quot;--without-included-libxml,--<wbr>with-included-libxml,libxml2&quot;</div><div>-PACKAGECONFIG[libunistring] = &quot;--without-included-<wbr>libunistring,--with-included-<wbr>libunistring,libunistring&quot;</div><div>+PACKAGECONFIG[croco] = &quot;--with-libcroco-0.6-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libcroco,--<wbr>with-included-libcroco,<wbr>libcroco&quot;</div><div>+PACKAGECONFIG[glib] = &quot;--with-libglib-2.0-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-glib,--<wbr>with-included-glib,glib-2.0&quot;</div><div>+PACKAGECONFIG[libxml] = &quot;--with-libxml2-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libxml,--<wbr>with-included-libxml,libxml2&quot;</div><div>+PACKAGECONFIG[libunistring] = &quot;--with-libunistring-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-<wbr>libunistring,--with-included-<wbr>libunistring,libunistring&quot;</div></div><div><br></div><div>Not sure if it&#39;s worth adding other prefixes for curses related PACKAGECONFIG</div><div>PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${<wbr>STAGING_LIBDIR}/..,--disable-<wbr>curses,ncurses,&quot;<br></div><div><br></div><div><div>  --with-libncurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib</div><div>  --without-libncurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir</div><div>  --with-libxcurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib</div><div>  --without-libxcurses-prefix     don&#39;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&#39;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"><div><div class="h5">On Mon, Jan 8, 2018 at 5:00 PM, Ross Burton <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">gettext has optional dependencies on libxml2, glib, libcroco and libunistring.<br>
If they&#39;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 &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
---<br>
 meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">get<wbr>text_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 = &quot;libs&quot;<br>
 LICENSE = &quot;GPLv3+ &amp; LGPL-2.1+&quot;<br>
 LIC_FILES_CHKSUM = &quot;file://COPYING;md5=d32239bcb6<wbr>73463ab874e80d47fae504&quot;<br>
<br>
-DEPENDS = &quot;gettext-native virtual/libiconv expat&quot;<br>
+DEPENDS = &quot;gettext-native virtual/libiconv&quot;<br>
 DEPENDS_class-native = &quot;gettext-minimal-native&quot;<br>
 PROVIDES = &quot;virtual/libintl virtual/gettext&quot;<br>
 PROVIDES_class-native = &quot;virtual/gettext-native&quot;<br>
@@ -33,18 +33,22 @@ EXTRA_OECONF += &quot;--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>
                 &quot;<br>
 EXTRA_OECONF_append_class-tar<wbr>get = &quot; \<br>
                  --with-bisonlocaledir=${datadi<wbr>r}/locale \<br>
 &quot;<br>
<br>
+PACKAGECONFIG ??= &quot;croco glib libxml libunistring&quot;<br>
+PACKAGECONFIG_class-native = &quot;&quot;<br>
+<br>
+PACKAGECONFIG[croco] = &quot;--without-included-libcroco,-<wbr>-with-included-libcroco,libcro<wbr>co&quot;<br>
+PACKAGECONFIG[glib] = &quot;--without-included-glib,--wit<wbr>h-included-glib,glib-2.0&quot;<br>
+PACKAGECONFIG[libxml] = &quot;--without-included-libxml,--w<wbr>ith-included-libxml,libxml2&quot;<br>
+PACKAGECONFIG[libunistring] = &quot;--without-included-libunistri<wbr>ng,--with-included-libunistrin<wbr>g,libunistring&quot;<br>
+<br>
 acpaths = &#39;-I ${S}/gettext-runtime/m4 \<br>
            -I ${S}/gettext-tools/m4&#39;<br>
</div></div><span class="HOEnZb"><font color="#888888"><span class="m_7825961928473023843HOEnZb"><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" target="_blank">Openembedded-core@lists.openem<wbr>bedded.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></font></span></blockquote></div><br></div>
</blockquote></div><br></div>