diff mbox series

[9/9] gettext: rationalise optional dependencies

Message ID 20180108160021.4715-9-ross.burton@intel.com
State New
Headers show
Series [1/9] psmisc: improve autopoint-enabling | expand

Commit Message

Ross Burton Jan. 8, 2018, 4 p.m. UTC
gettext has optional dependencies on libxml2, glib, libcroco and libunistring.
If they're not available then gettext will use internal copies, but it can also
use system libraries.

For gettext-native continue to use the internal copies to get this building
sooner rather than later, but for target use the system shared libraries.

Also gettext 0.19.7 onwards swapped expat for libxm2, so remove the build
dependency on expat.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/recipes-core/gettext/gettext_0.19.8.1.bb | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Martin Jansa Jan. 21, 2018, 3:30 p.m. UTC | #1
--without-included-glib seems to cause configure to find glib from the host:

ERROR: This autoconf log indicates errors, it looked at host include and/or
library paths while determining system capabilities.

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]

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:
-PACKAGECONFIG[croco] =
"--without-included-libcroco,--with-included-libcroco,libcroco"
-PACKAGECONFIG[glib] =
"--without-included-glib,--with-included-glib,glib-2.0"
-PACKAGECONFIG[libxml] =
"--without-included-libxml,--with-included-libxml,libxml2"
-PACKAGECONFIG[libunistring] =
"--without-included-libunistring,--with-included-libunistring,libunistring"
+PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/..
--without-included-libcroco,--with-included-libcroco,libcroco"
+PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/..
--without-included-glib,--with-included-glib,glib-2.0"
+PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/..
--without-included-libxml,--with-included-libxml,libxml2"
+PACKAGECONFIG[libunistring] =
"--with-libunistring-prefix=${STAGING_LIBDIR}/..
--without-included-libunistring,--with-included-libunistring,libunistring"

Not sure if it's worth adding other prefixes for curses related
PACKAGECONFIG
PACKAGECONFIG[msgcat-curses] =
"--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses,"

  --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include and
DIR/lib
  --without-libncurses-prefix     don't search for PACKLIBS in includedir
and libdir
  --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and
DIR/lib
  --without-libxcurses-prefix     don't search for PACKLIBS in includedir
and libdir
  --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and
DIR/lib
  --without-libcurses-prefix     don't search for PACKLIBS in includedir
and libdir



On Mon, Jan 8, 2018 at 5:00 PM, Ross Burton <ross.burton@intel.com> wrote:

> gettext has optional dependencies on libxml2, glib, libcroco and

> libunistring.

> If they're not available then gettext will use internal copies, but it can

> also

> use system libraries.

>

> For gettext-native continue to use the internal copies to get this building

> sooner rather than later, but for target use the system shared libraries.

>

> Also gettext 0.19.7 onwards swapped expat for libxm2, so remove the build

> dependency on expat.

>

> Signed-off-by: Ross Burton <ross.burton@intel.com>

> ---

>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 14 +++++++++-----

>  1 file changed, 9 insertions(+), 5 deletions(-)

>

> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> index 46ea68ff5b5..25ff601a6be 100644

> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> @@ -8,7 +8,7 @@ SECTION = "libs"

>  LICENSE = "GPLv3+ & LGPL-2.1+"

>  LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

>

> -DEPENDS = "gettext-native virtual/libiconv expat"

> +DEPENDS = "gettext-native virtual/libiconv"

>  DEPENDS_class-native = "gettext-minimal-native"

>  PROVIDES = "virtual/libintl virtual/gettext"

>  PROVIDES_class-native = "virtual/gettext-native"

> @@ -33,18 +33,22 @@ EXTRA_OECONF += "--without-lispdir \

>                   --disable-native-java \

>                   --disable-openmp \

>                   --disable-acl \

> -                 --with-included-glib \

>                   --without-emacs \

>                   --without-cvs \

>                   --without-git \

> -                 --with-included-libxml \

> -                 --with-included-libcroco \

> -                 --with-included-libunistring \

>                  "

>  EXTRA_OECONF_append_class-target = " \

>                   --with-bisonlocaledir=${datadir}/locale \

>  "

>

> +PACKAGECONFIG ??= "croco glib libxml libunistring"

> +PACKAGECONFIG_class-native = ""

> +

> +PACKAGECONFIG[croco] = "--without-included-libcroco,-

> -with-included-libcroco,libcroco"

> +PACKAGECONFIG[glib] = "--without-included-glib,--

> with-included-glib,glib-2.0"

> +PACKAGECONFIG[libxml] = "--without-included-libxml,--

> with-included-libxml,libxml2"

> +PACKAGECONFIG[libunistring] = "--without-included-

> libunistring,--with-included-libunistring,libunistring"

> +

>  acpaths = '-I ${S}/gettext-runtime/m4 \

>             -I ${S}/gettext-tools/m4'

>

> --

> 2.11.0

>

> --

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>
<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 &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,--with-included-libcroco,libcroco&quot;</div><div>-PACKAGECONFIG[glib] = &quot;--without-included-glib,--with-included-glib,glib-2.0&quot;</div><div>-PACKAGECONFIG[libxml] = &quot;--without-included-libxml,--with-included-libxml,libxml2&quot;</div><div>-PACKAGECONFIG[libunistring] = &quot;--without-included-libunistring,--with-included-libunistring,libunistring&quot;</div><div>+PACKAGECONFIG[croco] = &quot;--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/.. --without-included-libcroco,--with-included-libcroco,libcroco&quot;</div><div>+PACKAGECONFIG[glib] = &quot;--with-libglib-2.0-prefix=${STAGING_LIBDIR}/.. --without-included-glib,--with-included-glib,glib-2.0&quot;</div><div>+PACKAGECONFIG[libxml] = &quot;--with-libxml2-prefix=${STAGING_LIBDIR}/.. --without-included-libxml,--with-included-libxml,libxml2&quot;</div><div>+PACKAGECONFIG[libunistring] = &quot;--with-libunistring-prefix=${STAGING_LIBDIR}/.. --without-included-libunistring,--with-included-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=${STAGING_LIBDIR}/..,--disable-curses,ncurses,&quot;<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&#39;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&#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">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><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&#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">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">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 = &quot;libs&quot;<br>
 LICENSE = &quot;GPLv3+ &amp; LGPL-2.1+&quot;<br>
 LIC_FILES_CHKSUM = &quot;file://COPYING;md5=<wbr>d32239bcb673463ab874e80d47fae5<wbr>04&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-<wbr>target = &quot; \<br>
                  --with-bisonlocaledir=${<wbr>datadir}/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,<wbr>libcroco&quot;<br>
+PACKAGECONFIG[glib] = &quot;--without-included-glib,--<wbr>with-included-glib,glib-2.0&quot;<br>
+PACKAGECONFIG[libxml] = &quot;--without-included-libxml,--<wbr>with-included-libxml,libxml2&quot;<br>
+PACKAGECONFIG[libunistring] = &quot;--without-included-<wbr>libunistring,--with-included-<wbr>libunistring,libunistring&quot;<br>
+<br>
 acpaths = &#39;-I ${S}/gettext-runtime/m4 \<br>
            -I ${S}/gettext-tools/m4&#39;<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>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Jan. 22, 2018, 10:59 a.m. UTC | #2
Eek, thanks.

Ross

On 21 January 2018 at 15:30, Martin Jansa <martin.jansa@gmail.com> wrote:

> --without-included-glib seems to cause configure to find glib from the

> host:

>

> ERROR: This autoconf log indicates errors, it looked at host include

> and/or library paths while determining system capabilities.

>

> 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]

>

> 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:

> -PACKAGECONFIG[croco] = "--without-included-libcroco,-

> -with-included-libcroco,libcroco"

> -PACKAGECONFIG[glib] = "--without-included-glib,--

> with-included-glib,glib-2.0"

> -PACKAGECONFIG[libxml] = "--without-included-libxml,--

> with-included-libxml,libxml2"

> -PACKAGECONFIG[libunistring] = "--without-included-

> libunistring,--with-included-libunistring,libunistring"

> +PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/..

> --without-included-libcroco,--with-included-libcroco,libcroco"

> +PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/..

> --without-included-glib,--with-included-glib,glib-2.0"

> +PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/..

> --without-included-libxml,--with-included-libxml,libxml2"

> +PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/..

> --without-included-libunistring,--with-included-libunistring,libunistring"

>

> Not sure if it's worth adding other prefixes for curses related

> PACKAGECONFIG

> PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${

> STAGING_LIBDIR}/..,--disable-curses,ncurses,"

>

>   --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

> DIR/lib

>   --without-libncurses-prefix     don't search for PACKLIBS in includedir

> and libdir

>   --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

> DIR/lib

>   --without-libxcurses-prefix     don't search for PACKLIBS in includedir

> and libdir

>   --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

> DIR/lib

>   --without-libcurses-prefix     don't search for PACKLIBS in includedir

> and libdir

>

>

>

> On Mon, Jan 8, 2018 at 5:00 PM, Ross Burton <ross.burton@intel.com> wrote:

>

>> gettext has optional dependencies on libxml2, glib, libcroco and

>> libunistring.

>> If they're not available then gettext will use internal copies, but it

>> can also

>> use system libraries.

>>

>> For gettext-native continue to use the internal copies to get this

>> building

>> sooner rather than later, but for target use the system shared libraries.

>>

>> Also gettext 0.19.7 onwards swapped expat for libxm2, so remove the build

>> dependency on expat.

>>

>> Signed-off-by: Ross Burton <ross.burton@intel.com>

>> ---

>>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 14 +++++++++-----

>>  1 file changed, 9 insertions(+), 5 deletions(-)

>>

>> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> index 46ea68ff5b5..25ff601a6be 100644

>> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> @@ -8,7 +8,7 @@ SECTION = "libs"

>>  LICENSE = "GPLv3+ & LGPL-2.1+"

>>  LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

>>

>> -DEPENDS = "gettext-native virtual/libiconv expat"

>> +DEPENDS = "gettext-native virtual/libiconv"

>>  DEPENDS_class-native = "gettext-minimal-native"

>>  PROVIDES = "virtual/libintl virtual/gettext"

>>  PROVIDES_class-native = "virtual/gettext-native"

>> @@ -33,18 +33,22 @@ EXTRA_OECONF += "--without-lispdir \

>>                   --disable-native-java \

>>                   --disable-openmp \

>>                   --disable-acl \

>> -                 --with-included-glib \

>>                   --without-emacs \

>>                   --without-cvs \

>>                   --without-git \

>> -                 --with-included-libxml \

>> -                 --with-included-libcroco \

>> -                 --with-included-libunistring \

>>                  "

>>  EXTRA_OECONF_append_class-target = " \

>>                   --with-bisonlocaledir=${datadir}/locale \

>>  "

>>

>> +PACKAGECONFIG ??= "croco glib libxml libunistring"

>> +PACKAGECONFIG_class-native = ""

>> +

>> +PACKAGECONFIG[croco] = "--without-included-libcroco,-

>> -with-included-libcroco,libcroco"

>> +PACKAGECONFIG[glib] = "--without-included-glib,--wit

>> h-included-glib,glib-2.0"

>> +PACKAGECONFIG[libxml] = "--without-included-libxml,--w

>> ith-included-libxml,libxml2"

>> +PACKAGECONFIG[libunistring] = "--without-included-libunistri

>> ng,--with-included-libunistring,libunistring"

>> +

>>  acpaths = '-I ${S}/gettext-runtime/m4 \

>>             -I ${S}/gettext-tools/m4'

>>

>> --

>> 2.11.0

>>

>> --

>> _______________________________________________

>> Openembedded-core mailing list

>> Openembedded-core@lists.openembedded.org

>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>>

>

>
<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>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Jan. 22, 2018, 7:46 p.m. UTC | #3
This is causing QA errors:

ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext:
/work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/lib/gettext/hostname
contains probably-redundant RPATH /usr/lib/../lib
gettext:
/work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/lib/gettext/urlget
contains probably-redundant RPATH /usr/lib/../lib
gettext:
/work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/lib/gettext/cldr-plurals
contains probably-redundant RPATH /usr/lib/../lib
gettext:
/work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/bin/recode-sr-latin
contains probably-redundant RPATH /usr/lib/../lib [useless-rpaths]

Ross

On 22 January 2018 at 10:52, Martin Jansa <martin.jansa@gmail.com> wrote:

> * add --with-*-prefix variables to prevent configure trying to search in

> host paths

> * fixes:

>   ERROR: This autoconf log indicates errors, it looked at host include

> and/or library paths while determining system capabilities.

>   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]

>

> * not sure if it's worth adding other prefixes for curses related

> PACKAGECONFIG

>   PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${

> STAGING_LIBDIR}/..,--disable-curses,ncurses,"

>

>   --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

> DIR/lib

>   --without-libncurses-prefix     don't search for PACKLIBS in includedir

> and libdir

>   --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

> DIR/lib

>   --without-libxcurses-prefix     don't search for PACKLIBS in includedir

> and libdir

>   --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

> DIR/lib

>   --without-libcurses-prefix     don't search for PACKLIBS in includedir

> and libdir

>

> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

> ---

>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 8 ++++----

>  1 file changed, 4 insertions(+), 4 deletions(-)

>

> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> index 97083c0da2..8a8a34cca8 100644

> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

> @@ -43,10 +43,10 @@ PACKAGECONFIG ??= "croco glib libxml libunistring"

>  PACKAGECONFIG_class-native = ""

>  PACKAGECONFIG_class-nativesdk = ""

>

> -PACKAGECONFIG[croco] = "--without-included-libcroco,-

> -with-included-libcroco,libcroco"

> -PACKAGECONFIG[glib] = "--without-included-glib,--

> with-included-glib,glib-2.0"

> -PACKAGECONFIG[libxml] = "--without-included-libxml,--

> with-included-libxml,libxml2"

> -PACKAGECONFIG[libunistring] = "--without-included-

> libunistring,--with-included-libunistring,libunistring"

> +PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/..

> --without-included-libcroco,--with-included-libcroco,libcroco"

> +PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/..

> --without-included-glib,--with-included-glib,glib-2.0"

> +PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/..

> --without-included-libxml,--with-included-libxml,libxml2"

> +PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/..

> --without-included-libunistring,--with-included-libunistring,libunistring"

>  PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${

> STAGING_LIBDIR}/..,--disable-curses,ncurses,"

>

>  acpaths = '-I ${S}/gettext-runtime/m4 \

> --

> 2.15.1

>

> --

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>
<div dir="ltr">This is causing QA errors:<div><br></div><div><div>ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/lib/gettext/hostname contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/lib/gettext/urlget contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/lib/gettext/cldr-plurals contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-split/gettext/usr/bin/recode-sr-latin contains probably-redundant RPATH /usr/lib/../lib [useless-rpaths]</div></div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 10:52, 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">* add --with-*-prefix variables to prevent configure trying to search in host paths<br>
* fixes:<br>
  ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.<br>
  gettext/0.19.8.1-r0/build/<wbr>gettext-tools/config.log:cc1: warning: include location /usr/include/glib-2.0 is unsafe for cross-compilation [-Wpoison-system-directories]<br>
<br>
* not sure if it&#39;s worth adding other prefixes for curses related PACKAGECONFIG<br>
  PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${<wbr>STAGING_LIBDIR}/..,--disable-<wbr>curses,ncurses,&quot;<br>
<br>
  --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libncurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libxcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
<br>
Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;<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> | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 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 97083c0da2..8a8a34cca8 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>
@@ -43,10 +43,10 @@ PACKAGECONFIG ??= &quot;croco glib libxml libunistring&quot;<br>
 PACKAGECONFIG_class-native = &quot;&quot;<br>
 PACKAGECONFIG_class-nativesdk = &quot;&quot;<br>
<br>
-PACKAGECONFIG[croco] = &quot;--without-included-libcroco,-<wbr>-with-included-libcroco,<wbr>libcroco&quot;<br>
-PACKAGECONFIG[glib] = &quot;--without-included-glib,--<wbr>with-included-glib,glib-2.0&quot;<br>
-PACKAGECONFIG[libxml] = &quot;--without-included-libxml,--<wbr>with-included-libxml,libxml2&quot;<br>
-PACKAGECONFIG[libunistring] = &quot;--without-included-<wbr>libunistring,--with-included-<wbr>libunistring,libunistring&quot;<br>
+PACKAGECONFIG[croco] = &quot;--with-libcroco-0.6-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libcroco,--<wbr>with-included-libcroco,<wbr>libcroco&quot;<br>
+PACKAGECONFIG[glib] = &quot;--with-libglib-2.0-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-glib,--<wbr>with-included-glib,glib-2.0&quot;<br>
+PACKAGECONFIG[libxml] = &quot;--with-libxml2-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libxml,--<wbr>with-included-libxml,libxml2&quot;<br>
+PACKAGECONFIG[libunistring] = &quot;--with-libunistring-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-<wbr>libunistring,--with-included-<wbr>libunistring,libunistring&quot;<br>
 PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${<wbr>STAGING_LIBDIR}/..,--disable-<wbr>curses,ncurses,&quot;<br>
<br>
 acpaths = &#39;-I ${S}/gettext-runtime/m4 \<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.15.1<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>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Jan. 23, 2018, 12:58 a.m. UTC | #4
Hi Martin,

I've a patch at the top of poky-contrib:ross/mut which hopefully fixes
this.  It's a bit more invasive than I'd like but this is gettext and I'm
still at least partially sane, so that's a win as far as I'm concerned.

I've a build running now but touching gettext causes a rebuild of the world
so I'm going to bed whist it runs.  Would you be able to test it in your
environment too?

Cheers,
Ross

On 22 January 2018 at 19:46, Burton, Ross <ross.burton@intel.com> wrote:

> This is causing QA errors:

>

> ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext:

> /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-

> split/gettext/usr/lib/gettext/hostname contains probably-redundant RPATH

> /usr/lib/../lib

> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-

> split/gettext/usr/lib/gettext/urlget contains probably-redundant RPATH

> /usr/lib/../lib

> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-

> split/gettext/usr/lib/gettext/cldr-plurals contains probably-redundant

> RPATH /usr/lib/../lib

> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-

> split/gettext/usr/bin/recode-sr-latin contains probably-redundant RPATH

> /usr/lib/../lib [useless-rpaths]

>

> Ross

>

> On 22 January 2018 at 10:52, Martin Jansa <martin.jansa@gmail.com> wrote:

>

>> * add --with-*-prefix variables to prevent configure trying to search in

>> host paths

>> * fixes:

>>   ERROR: This autoconf log indicates errors, it looked at host include

>> and/or library paths while determining system capabilities.

>>   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]

>>

>> * not sure if it's worth adding other prefixes for curses related

>> PACKAGECONFIG

>>   PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>

>>   --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

>> DIR/lib

>>   --without-libncurses-prefix     don't search for PACKLIBS in includedir

>> and libdir

>>   --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

>> DIR/lib

>>   --without-libxcurses-prefix     don't search for PACKLIBS in includedir

>> and libdir

>>   --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

>> DIR/lib

>>   --without-libcurses-prefix     don't search for PACKLIBS in includedir

>> and libdir

>>

>> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

>> ---

>>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 8 ++++----

>>  1 file changed, 4 insertions(+), 4 deletions(-)

>>

>> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> index 97083c0da2..8a8a34cca8 100644

>> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>> @@ -43,10 +43,10 @@ PACKAGECONFIG ??= "croco glib libxml libunistring"

>>  PACKAGECONFIG_class-native = ""

>>  PACKAGECONFIG_class-nativesdk = ""

>>

>> -PACKAGECONFIG[croco] = "--without-included-libcroco,-

>> -with-included-libcroco,libcroco"

>> -PACKAGECONFIG[glib] = "--without-included-glib,--wit

>> h-included-glib,glib-2.0"

>> -PACKAGECONFIG[libxml] = "--without-included-libxml,--w

>> ith-included-libxml,libxml2"

>> -PACKAGECONFIG[libunistring] = "--without-included-libunistri

>> ng,--with-included-libunistring,libunistring"

>> +PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/..

>> --without-included-libcroco,--with-included-libcroco,libcroco"

>> +PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/..

>> --without-included-glib,--with-included-glib,glib-2.0"

>> +PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/..

>> --without-included-libxml,--with-included-libxml,libxml2"

>> +PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/..

>> --without-included-libunistring,--with-included-libunistring

>> ,libunistring"

>>  PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>

>>  acpaths = '-I ${S}/gettext-runtime/m4 \

>> --

>> 2.15.1

>>

>> --

>> _______________________________________________

>> Openembedded-core mailing list

>> Openembedded-core@lists.openembedded.org

>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>>

>

>
<div dir="ltr">Hi Martin,<div><br></div><div>I&#39;ve a patch at the top of poky-contrib:ross/mut which hopefully fixes this.  It&#39;s a bit more invasive than I&#39;d like but this is gettext and I&#39;m still at least partially sane, so that&#39;s a win as far as I&#39;m concerned.<div><br></div><div>I&#39;ve a build running now but touching gettext causes a rebuild of the world so I&#39;m going to bed whist it runs.  Would you be able to test it in your environment too?</div><div><br></div><div>Cheers,</div><div>Ross</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 19:46, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">This is causing QA errors:<div><br></div><div><div>ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext: /work/corei7-64-poky-linux/<wbr>gettext/0.19.8.1-r0/packages-<wbr>split/gettext/usr/lib/gettext/<wbr>hostname contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/<wbr>gettext/0.19.8.1-r0/packages-<wbr>split/gettext/usr/lib/gettext/<wbr>urlget contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/<wbr>gettext/0.19.8.1-r0/packages-<wbr>split/gettext/usr/lib/gettext/<wbr>cldr-plurals contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/<wbr>gettext/0.19.8.1-r0/packages-<wbr>split/gettext/usr/bin/recode-<wbr>sr-latin contains probably-redundant RPATH /usr/lib/../lib [useless-rpaths]</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Ross</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 10:52, 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">* add --with-*-prefix variables to prevent configure trying to search in host paths<br>
* fixes:<br>
  ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.<br>
  gettext/0.19.8.1-r0/build/gett<wbr>ext-tools/config.log:cc1: warning: include location /usr/include/glib-2.0 is unsafe for cross-compilation [-Wpoison-system-directories]<br>
<br>
* not sure if it&#39;s worth adding other prefixes for curses related PACKAGECONFIG<br>
  PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
  --with-libncurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libncurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libxcurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libxcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
<br>
Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com" target="_blank">Martin.Jansa@gmail.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> | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 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 97083c0da2..8a8a34cca8 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>
@@ -43,10 +43,10 @@ PACKAGECONFIG ??= &quot;croco glib libxml libunistring&quot;<br>
 PACKAGECONFIG_class-native = &quot;&quot;<br>
 PACKAGECONFIG_class-nativesdk = &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>
+PACKAGECONFIG[croco] = &quot;--with-libcroco-0.6-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libcroco,--<wbr>with-included-libcroco,libcroc<wbr>o&quot;<br>
+PACKAGECONFIG[glib] = &quot;--with-libglib-2.0-prefix=${S<wbr>TAGING_LIBDIR}/.. --without-included-glib,--with<wbr>-included-glib,glib-2.0&quot;<br>
+PACKAGECONFIG[libxml] = &quot;--with-libxml2-prefix=${STAGI<wbr>NG_LIBDIR}/.. --without-included-libxml,--wi<wbr>th-included-libxml,libxml2&quot;<br>
+PACKAGECONFIG[libunistring] = &quot;--with-libunistring-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libunistrin<wbr>g,--with-included-libunistring<wbr>,libunistring&quot;<br>
 PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
 acpaths = &#39;-I ${S}/gettext-runtime/m4 \<br>
<span class="m_2205246036956529460HOEnZb"><font color="#888888">--<br>
2.15.1<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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Martin Jansa Jan. 23, 2018, 10:29 p.m. UTC | #5
The
--without-included-libunistring=
change there

-PACKAGECONFIG[libunistring] = "--without-included-
libunistring,--with-included-libunistring,libunistring"
+PACKAGECONFIG[libunistring] = "--without-included-
libunistring=${STAGING_LIBDIR}/..,--with-included-libunistring,libunistring"

looks really strange and indeed it fails:

| configure: error: invalid package name: included-libunistring=/OE/
BUILD/work/qemux86-oe-linux/gettext/0.19.8.1-r0/recipe-sysroot/usr/lib/..

After removing this part and keeping only the added .patch I got the same
error as before:
ERROR: gettext-0.19.8.1-r0 do_configure: This autoconf log indicates
errors, it looked at host include and/or library paths while determining
system capabilities.
Rerun configure task after fixing this.

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]



On Tue, Jan 23, 2018 at 1:58 AM, Burton, Ross <ross.burton@intel.com> wrote:

> Hi Martin,

>

> I've a patch at the top of poky-contrib:ross/mut which hopefully fixes

> this.  It's a bit more invasive than I'd like but this is gettext and I'm

> still at least partially sane, so that's a win as far as I'm concerned.

>

> I've a build running now but touching gettext causes a rebuild of the

> world so I'm going to bed whist it runs.  Would you be able to test it in

> your environment too?

>

> Cheers,

> Ross

>

> On 22 January 2018 at 19:46, Burton, Ross <ross.burton@intel.com> wrote:

>

>> This is causing QA errors:

>>

>> ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext:

>> /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>> t/gettext/usr/lib/gettext/hostname contains probably-redundant RPATH

>> /usr/lib/../lib

>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>> t/gettext/usr/lib/gettext/urlget contains probably-redundant RPATH

>> /usr/lib/../lib

>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>> t/gettext/usr/lib/gettext/cldr-plurals contains probably-redundant RPATH

>> /usr/lib/../lib

>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>> t/gettext/usr/bin/recode-sr-latin contains probably-redundant RPATH

>> /usr/lib/../lib [useless-rpaths]

>>

>> Ross

>>

>> On 22 January 2018 at 10:52, Martin Jansa <martin.jansa@gmail.com> wrote:

>>

>>> * add --with-*-prefix variables to prevent configure trying to search in

>>> host paths

>>> * fixes:

>>>   ERROR: This autoconf log indicates errors, it looked at host include

>>> and/or library paths while determining system capabilities.

>>>   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]

>>>

>>> * not sure if it's worth adding other prefixes for curses related

>>> PACKAGECONFIG

>>>   PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>>

>>>   --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include

>>> and DIR/lib

>>>   --without-libncurses-prefix     don't search for PACKLIBS in

>>> includedir and libdir

>>>   --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include

>>> and DIR/lib

>>>   --without-libxcurses-prefix     don't search for PACKLIBS in

>>> includedir and libdir

>>>   --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

>>> DIR/lib

>>>   --without-libcurses-prefix     don't search for PACKLIBS in includedir

>>> and libdir

>>>

>>> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

>>> ---

>>>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 8 ++++----

>>>  1 file changed, 4 insertions(+), 4 deletions(-)

>>>

>>> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>> index 97083c0da2..8a8a34cca8 100644

>>> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>> @@ -43,10 +43,10 @@ PACKAGECONFIG ??= "croco glib libxml libunistring"

>>>  PACKAGECONFIG_class-native = ""

>>>  PACKAGECONFIG_class-nativesdk = ""

>>>

>>> -PACKAGECONFIG[croco] = "--without-included-libcroco,-

>>> -with-included-libcroco,libcroco"

>>> -PACKAGECONFIG[glib] = "--without-included-glib,--wit

>>> h-included-glib,glib-2.0"

>>> -PACKAGECONFIG[libxml] = "--without-included-libxml,--w

>>> ith-included-libxml,libxml2"

>>> -PACKAGECONFIG[libunistring] = "--without-included-libunistri

>>> ng,--with-included-libunistring,libunistring"

>>> +PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/..

>>> --without-included-libcroco,--with-included-libcroco,libcroco"

>>> +PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/..

>>> --without-included-glib,--with-included-glib,glib-2.0"

>>> +PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/..

>>> --without-included-libxml,--with-included-libxml,libxml2"

>>> +PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/..

>>> --without-included-libunistring,--with-included-libunistring

>>> ,libunistring"

>>>  PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>>

>>>  acpaths = '-I ${S}/gettext-runtime/m4 \

>>> --

>>> 2.15.1

>>>

>>> --

>>> _______________________________________________

>>> Openembedded-core mailing list

>>> Openembedded-core@lists.openembedded.org

>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>>>

>>

>>

>
<div dir="ltr"><div>The </div><div>--without-included-<wbr>libunistring=</div><div>change there</div><div><div><br></div><div>-PACKAGECONFIG[libunistring] = &quot;--without-included-<wbr>libunistring,--with-included-<wbr>libunistring,libunistring&quot;</div><div>+PACKAGECONFIG[libunistring] = &quot;--without-included-<wbr>libunistring=${STAGING_LIBDIR}<wbr>/..,--with-included-<wbr>libunistring,libunistring&quot;</div></div><div><br></div><div>looks really strange and indeed it fails:<br></div><div><br></div><div>| configure: error: invalid package name: included-libunistring=/OE/<wbr>BUILD/work/qemux86-oe-linux/<wbr>gettext/0.19.8.1-r0/recipe-<wbr>sysroot/usr/lib/..</div><div><br></div><div>After removing this part and keeping only the added .patch I got the same error as before:</div><div><div>ERROR: gettext-0.19.8.1-r0 do_configure: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.</div><div>Rerun configure task after fixing this.</div></div><div><br></div><div><div>0.19.8.1-r0/build/gettext-tools/config.log:cc1: warning: include location &quot;/usr/include/glib-2.0&quot; is unsafe for cross-compilation [-Wpoison-system-directories]</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 23, 2018 at 1:58 AM, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">Hi Martin,<div><br></div><div>I&#39;ve a patch at the top of poky-contrib:ross/mut which hopefully fixes this.  It&#39;s a bit more invasive than I&#39;d like but this is gettext and I&#39;m still at least partially sane, so that&#39;s a win as far as I&#39;m concerned.<div><br></div><div>I&#39;ve a build running now but touching gettext causes a rebuild of the world so I&#39;m going to bed whist it runs.  Would you be able to test it in your environment too?</div><div><br></div><div>Cheers,</div><div>Ross</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 19:46, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">This is causing QA errors:<div><br></div><div><div>ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/host<wbr>name contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/urlg<wbr>et contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/cldr<wbr>-plurals contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/bin/recode-sr-<wbr>latin contains probably-redundant RPATH /usr/lib/../lib [useless-rpaths]</div></div><span class="m_5579754552523759691HOEnZb"><font color="#888888"><div><br></div><div>Ross</div></font></span></div><div class="m_5579754552523759691HOEnZb"><div class="m_5579754552523759691h5"><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 10:52, 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">* add --with-*-prefix variables to prevent configure trying to search in host paths<br>
* fixes:<br>
  ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.<br>
  gettext/0.19.8.1-r0/build/gett<wbr>ext-tools/config.log:cc1: warning: include location /usr/include/glib-2.0 is unsafe for cross-compilation [-Wpoison-system-directories]<br>
<br>
* not sure if it&#39;s worth adding other prefixes for curses related PACKAGECONFIG<br>
  PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
  --with-libncurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libncurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libxcurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libxcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
<br>
Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com" target="_blank">Martin.Jansa@gmail.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> | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 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 97083c0da2..8a8a34cca8 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>
@@ -43,10 +43,10 @@ PACKAGECONFIG ??= &quot;croco glib libxml libunistring&quot;<br>
 PACKAGECONFIG_class-native = &quot;&quot;<br>
 PACKAGECONFIG_class-nativesdk = &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>
+PACKAGECONFIG[croco] = &quot;--with-libcroco-0.6-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libcroco,--<wbr>with-included-libcroco,libcroc<wbr>o&quot;<br>
+PACKAGECONFIG[glib] = &quot;--with-libglib-2.0-prefix=${S<wbr>TAGING_LIBDIR}/.. --without-included-glib,--with<wbr>-included-glib,glib-2.0&quot;<br>
+PACKAGECONFIG[libxml] = &quot;--with-libxml2-prefix=${STAGI<wbr>NG_LIBDIR}/.. --without-included-libxml,--wi<wbr>th-included-libxml,libxml2&quot;<br>
+PACKAGECONFIG[libunistring] = &quot;--with-libunistring-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libunistrin<wbr>g,--with-included-libunistring<wbr>,libunistring&quot;<br>
 PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
 acpaths = &#39;-I ${S}/gettext-runtime/m4 \<br>
<span class="m_5579754552523759691m_2205246036956529460HOEnZb"><font color="#888888">--<br>
2.15.1<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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Jan. 23, 2018, 11:09 p.m. UTC | #6
Yeah, I managed to typo.  Latest ross/mut has a new version.

Ross

On 23 January 2018 at 22:29, Martin Jansa <martin.jansa@gmail.com> wrote:

> The

> --without-included-libunistring=

> change there

>

> -PACKAGECONFIG[libunistring] = "--without-included-libunistri

> ng,--with-included-libunistring,libunistring"

> +PACKAGECONFIG[libunistring] = "--without-included-libunistri

> ng=${STAGING_LIBDIR}/..,--with-included-libunistring,libunistring"

>

> looks really strange and indeed it fails:

>

> | configure: error: invalid package name: included-libunistring=/OE/BUIL

> D/work/qemux86-oe-linux/gettext/0.19.8.1-r0/recipe-sysroot/usr/lib/..

>

> After removing this part and keeping only the added .patch I got the same

> error as before:

> ERROR: gettext-0.19.8.1-r0 do_configure: This autoconf log indicates

> errors, it looked at host include and/or library paths while determining

> system capabilities.

> Rerun configure task after fixing this.

>

> 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]

>

>

>

> On Tue, Jan 23, 2018 at 1:58 AM, Burton, Ross <ross.burton@intel.com>

> wrote:

>

>> Hi Martin,

>>

>> I've a patch at the top of poky-contrib:ross/mut which hopefully fixes

>> this.  It's a bit more invasive than I'd like but this is gettext and I'm

>> still at least partially sane, so that's a win as far as I'm concerned.

>>

>> I've a build running now but touching gettext causes a rebuild of the

>> world so I'm going to bed whist it runs.  Would you be able to test it in

>> your environment too?

>>

>> Cheers,

>> Ross

>>

>> On 22 January 2018 at 19:46, Burton, Ross <ross.burton@intel.com> wrote:

>>

>>> This is causing QA errors:

>>>

>>> ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext:

>>> /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>> t/gettext/usr/lib/gettext/hostname contains probably-redundant RPATH

>>> /usr/lib/../lib

>>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>> t/gettext/usr/lib/gettext/urlget contains probably-redundant RPATH

>>> /usr/lib/../lib

>>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>> t/gettext/usr/lib/gettext/cldr-plurals contains probably-redundant

>>> RPATH /usr/lib/../lib

>>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>> t/gettext/usr/bin/recode-sr-latin contains probably-redundant RPATH

>>> /usr/lib/../lib [useless-rpaths]

>>>

>>> Ross

>>>

>>> On 22 January 2018 at 10:52, Martin Jansa <martin.jansa@gmail.com>

>>> wrote:

>>>

>>>> * add --with-*-prefix variables to prevent configure trying to search

>>>> in host paths

>>>> * fixes:

>>>>   ERROR: This autoconf log indicates errors, it looked at host include

>>>> and/or library paths while determining system capabilities.

>>>>   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]

>>>>

>>>> * not sure if it's worth adding other prefixes for curses related

>>>> PACKAGECONFIG

>>>>   PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>>>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>>>

>>>>   --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include

>>>> and DIR/lib

>>>>   --without-libncurses-prefix     don't search for PACKLIBS in

>>>> includedir and libdir

>>>>   --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include

>>>> and DIR/lib

>>>>   --without-libxcurses-prefix     don't search for PACKLIBS in

>>>> includedir and libdir

>>>>   --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and

>>>> DIR/lib

>>>>   --without-libcurses-prefix     don't search for PACKLIBS in

>>>> includedir and libdir

>>>>

>>>> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

>>>> ---

>>>>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 8 ++++----

>>>>  1 file changed, 4 insertions(+), 4 deletions(-)

>>>>

>>>> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>> index 97083c0da2..8a8a34cca8 100644

>>>> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>> @@ -43,10 +43,10 @@ PACKAGECONFIG ??= "croco glib libxml libunistring"

>>>>  PACKAGECONFIG_class-native = ""

>>>>  PACKAGECONFIG_class-nativesdk = ""

>>>>

>>>> -PACKAGECONFIG[croco] = "--without-included-libcroco,-

>>>> -with-included-libcroco,libcroco"

>>>> -PACKAGECONFIG[glib] = "--without-included-glib,--wit

>>>> h-included-glib,glib-2.0"

>>>> -PACKAGECONFIG[libxml] = "--without-included-libxml,--w

>>>> ith-included-libxml,libxml2"

>>>> -PACKAGECONFIG[libunistring] = "--without-included-libunistri

>>>> ng,--with-included-libunistring,libunistring"

>>>> +PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/..

>>>> --without-included-libcroco,--with-included-libcroco,libcroco"

>>>> +PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/..

>>>> --without-included-glib,--with-included-glib,glib-2.0"

>>>> +PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/..

>>>> --without-included-libxml,--with-included-libxml,libxml2"

>>>> +PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/..

>>>> --without-included-libunistring,--with-included-libunistring

>>>> ,libunistring"

>>>>  PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>>>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>>>

>>>>  acpaths = '-I ${S}/gettext-runtime/m4 \

>>>> --

>>>> 2.15.1

>>>>

>>>> --

>>>> _______________________________________________

>>>> Openembedded-core mailing list

>>>> Openembedded-core@lists.openembedded.org

>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>>>>

>>>

>>>

>>

>
<div dir="ltr">Yeah, I managed to typo.  Latest ross/mut has a new version.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 January 2018 at 22:29, 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"><div>The </div><div>--without-included-libunistrin<wbr>g=</div><div>change there</div><div><div><br></div><div>-PACKAGECONFIG[libunistring] = &quot;--without-included-libunistri<wbr>ng,--with-included-libunistrin<wbr>g,libunistring&quot;</div><div>+PACKAGECONFIG[libunistring] = &quot;--without-included-libunistri<wbr>ng=${STAGING_LIBDIR}/..,--<wbr>with-included-libunistring,<wbr>libunistring&quot;</div></div><div><br></div><div>looks really strange and indeed it fails:<br></div><div><br></div><div>| configure: error: invalid package name: included-libunistring=/OE/BUIL<wbr>D/work/qemux86-oe-linux/gettex<wbr>t/0.19.8.1-r0/recipe-sysroot/<wbr>usr/lib/..</div><div><br></div><div>After removing this part and keeping only the added .patch I got the same error as before:</div><div><div>ERROR: gettext-0.19.8.1-r0 do_configure: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.</div><div>Rerun configure task after fixing this.</div></div><span class=""><div><br></div><div><div>0.19.8.1-r0/build/gettext-<wbr>tools/config.log:cc1: warning: include location &quot;/usr/include/glib-2.0&quot; is unsafe for cross-compilation [-Wpoison-system-directories]</div></div><div><br></div><div><br></div></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 23, 2018 at 1:58 AM, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">Hi Martin,<div><br></div><div>I&#39;ve a patch at the top of poky-contrib:ross/mut which hopefully fixes this.  It&#39;s a bit more invasive than I&#39;d like but this is gettext and I&#39;m still at least partially sane, so that&#39;s a win as far as I&#39;m concerned.<div><br></div><div>I&#39;ve a build running now but touching gettext causes a rebuild of the world so I&#39;m going to bed whist it runs.  Would you be able to test it in your environment too?</div><div><br></div><div>Cheers,</div><div>Ross</div></div></div><div class="m_830801128156425176HOEnZb"><div class="m_830801128156425176h5"><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 19:46, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">This is causing QA errors:<div><br></div><div><div>ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/host<wbr>name contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/urlg<wbr>et contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/cldr<wbr>-plurals contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/bin/recode-sr-la<wbr>tin contains probably-redundant RPATH /usr/lib/../lib [useless-rpaths]</div></div><span class="m_830801128156425176m_5579754552523759691HOEnZb"><font color="#888888"><div><br></div><div>Ross</div></font></span></div><div class="m_830801128156425176m_5579754552523759691HOEnZb"><div class="m_830801128156425176m_5579754552523759691h5"><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 10:52, 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">* add --with-*-prefix variables to prevent configure trying to search in host paths<br>
* fixes:<br>
  ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.<br>
  gettext/0.19.8.1-r0/build/gett<wbr>ext-tools/config.log:cc1: warning: include location /usr/include/glib-2.0 is unsafe for cross-compilation [-Wpoison-system-directories]<br>
<br>
* not sure if it&#39;s worth adding other prefixes for curses related PACKAGECONFIG<br>
  PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
  --with-libncurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libncurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libxcurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libxcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
<br>
Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com" target="_blank">Martin.Jansa@gmail.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> | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 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 97083c0da2..8a8a34cca8 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>
@@ -43,10 +43,10 @@ PACKAGECONFIG ??= &quot;croco glib libxml libunistring&quot;<br>
 PACKAGECONFIG_class-native = &quot;&quot;<br>
 PACKAGECONFIG_class-nativesdk = &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>
+PACKAGECONFIG[croco] = &quot;--with-libcroco-0.6-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libcroco,--<wbr>with-included-libcroco,libcroc<wbr>o&quot;<br>
+PACKAGECONFIG[glib] = &quot;--with-libglib-2.0-prefix=${S<wbr>TAGING_LIBDIR}/.. --without-included-glib,--with<wbr>-included-glib,glib-2.0&quot;<br>
+PACKAGECONFIG[libxml] = &quot;--with-libxml2-prefix=${STAGI<wbr>NG_LIBDIR}/.. --without-included-libxml,--wi<wbr>th-included-libxml,libxml2&quot;<br>
+PACKAGECONFIG[libunistring] = &quot;--with-libunistring-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libunistrin<wbr>g,--with-included-libunistring<wbr>,libunistring&quot;<br>
 PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
 acpaths = &#39;-I ${S}/gettext-runtime/m4 \<br>
<span class="m_830801128156425176m_5579754552523759691m_2205246036956529460HOEnZb"><font color="#888888">--<br>
2.15.1<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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Martin Jansa Jan. 24, 2018, 12:43 a.m. UTC | #7
Thanks, this version built for me on that system where it was failing
before (I haven't tried to rebuild world, just gettext).

On Wed, Jan 24, 2018 at 12:09 AM, Burton, Ross <ross.burton@intel.com>
wrote:

> Yeah, I managed to typo.  Latest ross/mut has a new version.

>

> Ross

>

> On 23 January 2018 at 22:29, Martin Jansa <martin.jansa@gmail.com> wrote:

>

>> The

>> --without-included-libunistring=

>> change there

>>

>> -PACKAGECONFIG[libunistring] = "--without-included-libunistri

>> ng,--with-included-libunistring,libunistring"

>> +PACKAGECONFIG[libunistring] = "--without-included-libunistri

>> ng=${STAGING_LIBDIR}/..,--with-included-libunistring,libunistring"

>>

>> looks really strange and indeed it fails:

>>

>> | configure: error: invalid package name: included-libunistring=/OE/BUIL

>> D/work/qemux86-oe-linux/gettext/0.19.8.1-r0/recipe-sysroot/usr/lib/..

>>

>> After removing this part and keeping only the added .patch I got the same

>> error as before:

>> ERROR: gettext-0.19.8.1-r0 do_configure: This autoconf log indicates

>> errors, it looked at host include and/or library paths while determining

>> system capabilities.

>> Rerun configure task after fixing this.

>>

>> 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]

>>

>>

>>

>> On Tue, Jan 23, 2018 at 1:58 AM, Burton, Ross <ross.burton@intel.com>

>> wrote:

>>

>>> Hi Martin,

>>>

>>> I've a patch at the top of poky-contrib:ross/mut which hopefully fixes

>>> this.  It's a bit more invasive than I'd like but this is gettext and I'm

>>> still at least partially sane, so that's a win as far as I'm concerned.

>>>

>>> I've a build running now but touching gettext causes a rebuild of the

>>> world so I'm going to bed whist it runs.  Would you be able to test it in

>>> your environment too?

>>>

>>> Cheers,

>>> Ross

>>>

>>> On 22 January 2018 at 19:46, Burton, Ross <ross.burton@intel.com> wrote:

>>>

>>>> This is causing QA errors:

>>>>

>>>> ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext:

>>>> /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>>> t/gettext/usr/lib/gettext/hostname contains probably-redundant RPATH

>>>> /usr/lib/../lib

>>>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>>> t/gettext/usr/lib/gettext/urlget contains probably-redundant RPATH

>>>> /usr/lib/../lib

>>>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>>> t/gettext/usr/lib/gettext/cldr-plurals contains probably-redundant

>>>> RPATH /usr/lib/../lib

>>>> gettext: /work/corei7-64-poky-linux/gettext/0.19.8.1-r0/packages-spli

>>>> t/gettext/usr/bin/recode-sr-latin contains probably-redundant RPATH

>>>> /usr/lib/../lib [useless-rpaths]

>>>>

>>>> Ross

>>>>

>>>> On 22 January 2018 at 10:52, Martin Jansa <martin.jansa@gmail.com>

>>>> wrote:

>>>>

>>>>> * add --with-*-prefix variables to prevent configure trying to search

>>>>> in host paths

>>>>> * fixes:

>>>>>   ERROR: This autoconf log indicates errors, it looked at host include

>>>>> and/or library paths while determining system capabilities.

>>>>>   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]

>>>>>

>>>>> * not sure if it's worth adding other prefixes for curses related

>>>>> PACKAGECONFIG

>>>>>   PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>>>>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>>>>

>>>>>   --with-libncurses-prefix[=DIR]  search for PACKLIBS in DIR/include

>>>>> and DIR/lib

>>>>>   --without-libncurses-prefix     don't search for PACKLIBS in

>>>>> includedir and libdir

>>>>>   --with-libxcurses-prefix[=DIR]  search for PACKLIBS in DIR/include

>>>>> and DIR/lib

>>>>>   --without-libxcurses-prefix     don't search for PACKLIBS in

>>>>> includedir and libdir

>>>>>   --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include

>>>>> and DIR/lib

>>>>>   --without-libcurses-prefix     don't search for PACKLIBS in

>>>>> includedir and libdir

>>>>>

>>>>> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

>>>>> ---

>>>>>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 8 ++++----

>>>>>  1 file changed, 4 insertions(+), 4 deletions(-)

>>>>>

>>>>> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>>> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>>> index 97083c0da2..8a8a34cca8 100644

>>>>> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>>> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb

>>>>> @@ -43,10 +43,10 @@ PACKAGECONFIG ??= "croco glib libxml libunistring"

>>>>>  PACKAGECONFIG_class-native = ""

>>>>>  PACKAGECONFIG_class-nativesdk = ""

>>>>>

>>>>> -PACKAGECONFIG[croco] = "--without-included-libcroco,-

>>>>> -with-included-libcroco,libcroco"

>>>>> -PACKAGECONFIG[glib] = "--without-included-glib,--wit

>>>>> h-included-glib,glib-2.0"

>>>>> -PACKAGECONFIG[libxml] = "--without-included-libxml,--w

>>>>> ith-included-libxml,libxml2"

>>>>> -PACKAGECONFIG[libunistring] = "--without-included-libunistri

>>>>> ng,--with-included-libunistring,libunistring"

>>>>> +PACKAGECONFIG[croco] = "--with-libcroco-0.6-prefix=${STAGING_LIBDIR}/..

>>>>> --without-included-libcroco,--with-included-libcroco,libcroco"

>>>>> +PACKAGECONFIG[glib] = "--with-libglib-2.0-prefix=${STAGING_LIBDIR}/..

>>>>> --without-included-glib,--with-included-glib,glib-2.0"

>>>>> +PACKAGECONFIG[libxml] = "--with-libxml2-prefix=${STAGING_LIBDIR}/..

>>>>> --without-included-libxml,--with-included-libxml,libxml2"

>>>>> +PACKAGECONFIG[libunistring] = "--with-libunistring-prefix=${STAGING_LIBDIR}/..

>>>>> --without-included-libunistring,--with-included-libunistring

>>>>> ,libunistring"

>>>>>  PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${ST

>>>>> AGING_LIBDIR}/..,--disable-curses,ncurses,"

>>>>>

>>>>>  acpaths = '-I ${S}/gettext-runtime/m4 \

>>>>> --

>>>>> 2.15.1

>>>>>

>>>>> --

>>>>> _______________________________________________

>>>>> Openembedded-core mailing list

>>>>> Openembedded-core@lists.openembedded.org

>>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>>>>>

>>>>

>>>>

>>>

>>

>
<div dir="ltr">Thanks, this version built for me on that system where it was failing before (I haven&#39;t tried to rebuild world, just gettext).</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 24, 2018 at 12:09 AM, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">Yeah, I managed to typo.  Latest ross/mut has a new version.<span class="HOEnZb"><font color="#888888"><div><br></div><div>Ross</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 23 January 2018 at 22:29, 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"><div>The </div><div>--without-included-libunistrin<wbr>g=</div><div>change there</div><div><div><br></div><div>-PACKAGECONFIG[libunistring] = &quot;--without-included-libunistri<wbr>ng,--with-included-libunistrin<wbr>g,libunistring&quot;</div><div>+PACKAGECONFIG[libunistring] = &quot;--without-included-libunistri<wbr>ng=${STAGING_LIBDIR}/..,--with<wbr>-included-libunistring,libunis<wbr>tring&quot;</div></div><div><br></div><div>looks really strange and indeed it fails:<br></div><div><br></div><div>| configure: error: invalid package name: included-libunistring=/OE/BUIL<wbr>D/work/qemux86-oe-linux/gettex<wbr>t/0.19.8.1-r0/recipe-sysroot/u<wbr>sr/lib/..</div><div><br></div><div>After removing this part and keeping only the added .patch I got the same error as before:</div><div><div>ERROR: gettext-0.19.8.1-r0 do_configure: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.</div><div>Rerun configure task after fixing this.</div></div><span><div><br></div><div><div>0.19.8.1-r0/build/gettext-tool<wbr>s/config.log:cc1: warning: include location &quot;/usr/include/glib-2.0&quot; is unsafe for cross-compilation [-Wpoison-system-directories]</div></div><div><br></div><div><br></div></span></div><div class="m_1016999681615440584HOEnZb"><div class="m_1016999681615440584h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 23, 2018 at 1:58 AM, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">Hi Martin,<div><br></div><div>I&#39;ve a patch at the top of poky-contrib:ross/mut which hopefully fixes this.  It&#39;s a bit more invasive than I&#39;d like but this is gettext and I&#39;m still at least partially sane, so that&#39;s a win as far as I&#39;m concerned.<div><br></div><div>I&#39;ve a build running now but touching gettext causes a rebuild of the world so I&#39;m going to bed whist it runs.  Would you be able to test it in your environment too?</div><div><br></div><div>Cheers,</div><div>Ross</div></div></div><div class="m_1016999681615440584m_830801128156425176HOEnZb"><div class="m_1016999681615440584m_830801128156425176h5"><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 19:46, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.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">This is causing QA errors:<div><br></div><div><div>ERROR: gettext-0.19.8.1-r0 do_package_qa: QA Issue: gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/host<wbr>name contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/urlg<wbr>et contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/lib/gettext/cldr<wbr>-plurals contains probably-redundant RPATH /usr/lib/../lib</div><div>gettext: /work/corei7-64-poky-linux/get<wbr>text/0.19.8.1-r0/packages-spli<wbr>t/gettext/usr/bin/recode-sr-la<wbr>tin contains probably-redundant RPATH /usr/lib/../lib [useless-rpaths]</div></div><span class="m_1016999681615440584m_830801128156425176m_5579754552523759691HOEnZb"><font color="#888888"><div><br></div><div>Ross</div></font></span></div><div class="m_1016999681615440584m_830801128156425176m_5579754552523759691HOEnZb"><div class="m_1016999681615440584m_830801128156425176m_5579754552523759691h5"><div class="gmail_extra"><br><div class="gmail_quote">On 22 January 2018 at 10:52, 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">* add --with-*-prefix variables to prevent configure trying to search in host paths<br>
* fixes:<br>
  ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.<br>
  gettext/0.19.8.1-r0/build/gett<wbr>ext-tools/config.log:cc1: warning: include location /usr/include/glib-2.0 is unsafe for cross-compilation [-Wpoison-system-directories]<br>
<br>
* not sure if it&#39;s worth adding other prefixes for curses related PACKAGECONFIG<br>
  PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
  --with-libncurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libncurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libxcurses-prefix[=DIR]<wbr>  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libxcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
  --with-libcurses-prefix[=DIR]  search for PACKLIBS in DIR/include and DIR/lib<br>
  --without-libcurses-prefix     don&#39;t search for PACKLIBS in includedir and libdir<br>
<br>
Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com" target="_blank">Martin.Jansa@gmail.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> | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 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 97083c0da2..8a8a34cca8 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>
@@ -43,10 +43,10 @@ PACKAGECONFIG ??= &quot;croco glib libxml libunistring&quot;<br>
 PACKAGECONFIG_class-native = &quot;&quot;<br>
 PACKAGECONFIG_class-nativesdk = &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>
+PACKAGECONFIG[croco] = &quot;--with-libcroco-0.6-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libcroco,--<wbr>with-included-libcroco,libcroc<wbr>o&quot;<br>
+PACKAGECONFIG[glib] = &quot;--with-libglib-2.0-prefix=${S<wbr>TAGING_LIBDIR}/.. --without-included-glib,--with<wbr>-included-glib,glib-2.0&quot;<br>
+PACKAGECONFIG[libxml] = &quot;--with-libxml2-prefix=${STAGI<wbr>NG_LIBDIR}/.. --without-included-libxml,--wi<wbr>th-included-libxml,libxml2&quot;<br>
+PACKAGECONFIG[libunistring] = &quot;--with-libunistring-prefix=${<wbr>STAGING_LIBDIR}/.. --without-included-libunistrin<wbr>g,--with-included-libunistring<wbr>,libunistring&quot;<br>
 PACKAGECONFIG[msgcat-curses] = &quot;--with-libncurses-prefix=${ST<wbr>AGING_LIBDIR}/..,--disable-cur<wbr>ses,ncurses,&quot;<br>
<br>
 acpaths = &#39;-I ${S}/gettext-runtime/m4 \<br>
<span class="m_1016999681615440584m_830801128156425176m_5579754552523759691m_2205246036956529460HOEnZb"><font color="#888888">--<br>
2.15.1<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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
index 46ea68ff5b5..25ff601a6be 100644
--- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb
+++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
@@ -8,7 +8,7 @@  SECTION = "libs"
 LICENSE = "GPLv3+ & LGPL-2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
-DEPENDS = "gettext-native virtual/libiconv expat"
+DEPENDS = "gettext-native virtual/libiconv"
 DEPENDS_class-native = "gettext-minimal-native"
 PROVIDES = "virtual/libintl virtual/gettext"
 PROVIDES_class-native = "virtual/gettext-native"
@@ -33,18 +33,22 @@  EXTRA_OECONF += "--without-lispdir \
                  --disable-native-java \
                  --disable-openmp \
                  --disable-acl \
-                 --with-included-glib \
                  --without-emacs \
                  --without-cvs \
                  --without-git \
-                 --with-included-libxml \
-                 --with-included-libcroco \
-                 --with-included-libunistring \
                 "
 EXTRA_OECONF_append_class-target = " \
                  --with-bisonlocaledir=${datadir}/locale \
 "
 
+PACKAGECONFIG ??= "croco glib libxml libunistring"
+PACKAGECONFIG_class-native = ""
+
+PACKAGECONFIG[croco] = "--without-included-libcroco,--with-included-libcroco,libcroco"
+PACKAGECONFIG[glib] = "--without-included-glib,--with-included-glib,glib-2.0"
+PACKAGECONFIG[libxml] = "--without-included-libxml,--with-included-libxml,libxml2"
+PACKAGECONFIG[libunistring] = "--without-included-libunistring,--with-included-libunistring,libunistring"
+
 acpaths = '-I ${S}/gettext-runtime/m4 \
            -I ${S}/gettext-tools/m4'