<div dir="ltr"><div dir="ltr">On Thu, 28 Nov 2019 at 16:19, akuster808 &lt;<a href="mailto:akuster808@gmail.com" target="_blank">akuster808@gmail.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 11/27/19 8:39 AM, Alexander Kanavin wrote:<br>
&gt; License-Update: URLs changed from http to https<br>
&gt; Signed-off-by: Alexander Kanavin &lt;<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>&gt;<br>
<br>
This failed on the AB<br>
<br>
<a href="https://errors.yoctoproject.org/Errors/Details/288797/" rel="noreferrer" target="_blank">https://errors.yoctoproject.org/Errors/Details/288797/</a><br></blockquote><div><br></div><div>Weird this didn&#39;t fail locally for my world builds, I queued a patch to fix this.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
an for meta-mingw bbappend.<br>
<br>
<a href="https://errors.yoctoproject.org/Errors/Details/284185/" rel="noreferrer" target="_blank">https://errors.yoctoproject.org/Errors/Details/284185/</a><br></blockquote><div><br></div><div>Patch sent.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; ---<br>
&gt;  .../gettext-0.19.8.1/fix-CVE-2018-18751.patch | 141 ----<br>
&gt;  .../gettext/gettext-0.19.8.1/parallel.patch   |  23 -<br>
&gt;  .../gettext-0.19.8.1/use-pkgconfig.patch      | 321 --------<br>
&gt;  .../add-with-bisonlocaledir.patch             |   0<br>
&gt;  ...nt.c-timsort.h-fix-formatting-issues.patch |  30 +-<br>
&gt;  .../gettext/gettext-0.20.1/parallel.patch     |  32 +<br>
&gt;  .../run-ptest                                 |   0<br>
&gt;  .../serial-tests-config.patch                 |  26 +-<br>
&gt;  .../gettext-0.20.1/use-pkgconfig.patch        | 713 ++++++++++++++++++<br>
&gt;  ...{<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">gettext_0.19.8.1.bb</a> =&gt; <a href="http://gettext_0.20.1.bb" rel="noreferrer" target="_blank">gettext_0.20.1.bb</a>} |  23 +-<br>
&gt;  10 files changed, 775 insertions(+), 534 deletions(-)<br>
&gt;  delete mode 100644 meta/recipes-core/gettext/gettext-0.19.8.1/fix-CVE-2018-18751.patch<br>
&gt;  delete mode 100644 meta/recipes-core/gettext/gettext-0.19.8.1/parallel.patch<br>
&gt;  delete mode 100644 meta/recipes-core/gettext/gettext-0.19.8.1/use-pkgconfig.patch<br>
&gt;  rename meta/recipes-core/gettext/{gettext-0.19.8.1 =&gt; gettext-0.20.1}/add-with-bisonlocaledir.patch (100%)<br>
&gt;  rename meta/recipes-core/gettext/{gettext-0.19.8.1 =&gt; gettext-0.20.1}/cr-statement.c-timsort.h-fix-formatting-issues.patch (68%)<br>
&gt;  create mode 100644 meta/recipes-core/gettext/gettext-0.20.1/parallel.patch<br>
&gt;  rename meta/recipes-core/gettext/{gettext-0.19.8.1 =&gt; gettext-0.20.1}/run-ptest (100%)<br>
&gt;  rename meta/recipes-core/gettext/{gettext-0.19.8.1 =&gt; gettext-0.20.1}/serial-tests-config.patch (75%)<br>
&gt;  create mode 100644 meta/recipes-core/gettext/gettext-0.20.1/use-pkgconfig.patch<br>
&gt;  rename meta/recipes-core/gettext/{<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">gettext_0.19.8.1.bb</a> =&gt; <a href="http://gettext_0.20.1.bb" rel="noreferrer" target="_blank">gettext_0.20.1.bb</a>} (94%)<br>
&gt;<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.19.8.1/fix-CVE-2018-18751.patch b/meta/recipes-core/gettext/gettext-0.19.8.1/fix-CVE-2018-18751.patch<br>
&gt; deleted file mode 100644<br>
&gt; index 6dfe200d654..00000000000<br>
&gt; --- a/meta/recipes-core/gettext/gettext-0.19.8.1/fix-CVE-2018-18751.patch<br>
&gt; +++ /dev/null<br>
&gt; @@ -1,141 +0,0 @@<br>
&gt; -Upstream-Status: Backport [<a href="https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=dce3a16" rel="noreferrer" target="_blank">https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=dce3a16</a>]<br>
&gt; -CVE: CVE-2018-18751<br>
&gt; -<br>
&gt; -Signed-off-by: Kai Kang &lt;<a href="mailto:kai.kang@windriver.com" target="_blank">kai.kang@windriver.com</a>&gt;<br>
&gt; -<br>
&gt; -From dce3a16e5e9368245735e29bf498dcd5e3e474a4 Mon Sep 17 00:00:00 2001<br>
&gt; -From: Daiki Ueno &lt;<a href="mailto:ueno@gnu.org" target="_blank">ueno@gnu.org</a>&gt;<br>
&gt; -Date: Thu, 15 Sep 2016 13:57:24 +0200<br>
&gt; -Subject: [PATCH] xgettext: Fix crash with *.po file input<br>
&gt; -<br>
&gt; -When xgettext was given two *.po files with the same msgid_plural, it<br>
&gt; -crashed with double-free.  Problem reported by Davlet Panech in:<br>
&gt; -<a href="http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00001.html" rel="noreferrer" target="_blank">http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00001.html</a><br>
&gt; -* gettext-tools/src/po-gram-gen.y: Don&#39;t free msgid_pluralform after<br>
&gt; -calling do_callback_message, assuming that it takes ownership.<br>
&gt; -* gettext-tools/src/read-catalog.c (default_add_message): Free<br>
&gt; -msgid_plural after calling message_alloc.<br>
&gt; -* gettext-tools/tests/xgettext-po-2: New file.<br>
&gt; -* gettext-tools/tests/Makefile.am (TESTS): Add new test.<br>
&gt; ----<br>
&gt; - gettext-tools/src/po-gram-gen.y   | 13 ++++-----<br>
&gt; - gettext-tools/src/read-catalog.c  |  2 ++<br>
&gt; - gettext-tools/tests/Makefile.am   |  2 +-<br>
&gt; - gettext-tools/tests/xgettext-po-2 | 55 +++++++++++++++++++++++++++++++++++++++<br>
&gt; - 4 files changed, 63 insertions(+), 9 deletions(-)<br>
&gt; - create mode 100755 gettext-tools/tests/xgettext-po-2<br>
&gt; -<br>
&gt; -diff --git a/gettext-tools/src/po-gram-gen.y b/gettext-tools/src/po-gram-gen.y<br>
&gt; -index becf5e6..4428e77 100644<br>
&gt; ---- a/gettext-tools/src/po-gram-gen.y<br>
&gt; -+++ b/gettext-tools/src/po-gram-gen.y<br>
&gt; -@@ -221,14 +221,11 @@ message<br>
&gt; -                   check_obsolete ($1, $3);<br>
&gt; -                   check_obsolete ($1, $4);<br>
&gt; -                   if (!$1.obsolete || pass_obsolete_entries)<br>
&gt; --                    {<br>
&gt; --                      do_callback_message ($1.ctxt, string2, &amp;$1.pos, $3.string,<br>
&gt; --                                           $4.rhs.msgstr, $4.rhs.msgstr_len, &amp;$4.pos,<br>
&gt; --                                           $1.prev_ctxt,<br>
&gt; --                                           $1.prev_id, $1.prev_id_plural,<br>
&gt; --                                           $1.obsolete);<br>
&gt; --                      free ($3.string);<br>
&gt; --                    }<br>
&gt; -+                    do_callback_message ($1.ctxt, string2, &amp;$1.pos, $3.string,<br>
&gt; -+                                         $4.rhs.msgstr, $4.rhs.msgstr_len, &amp;$4.pos,<br>
&gt; -+                                         $1.prev_ctxt,<br>
&gt; -+                                         $1.prev_id, $1.prev_id_plural,<br>
&gt; -+                                         $1.obsolete);<br>
&gt; -                   else<br>
&gt; -                     {<br>
&gt; -                       free_message_intro ($1);<br>
&gt; -diff --git a/gettext-tools/src/read-catalog.c b/gettext-tools/src/read-catalog.c<br>
&gt; -index 571d18e..6af6d20 100644<br>
&gt; ---- a/gettext-tools/src/read-catalog.c<br>
&gt; -+++ b/gettext-tools/src/read-catalog.c<br>
&gt; -@@ -397,6 +397,8 @@ default_add_message (default_catalog_reader_ty *this,<br>
&gt; -          appropriate.  */<br>
&gt; -       mp = message_alloc (msgctxt, msgid, msgid_plural, msgstr, msgstr_len,<br>
&gt; -                           msgstr_pos);<br>
&gt; -+      if (msgid_plural != NULL)<br>
&gt; -+        free (msgid_plural);<br>
&gt; -       mp-&gt;prev_msgctxt = prev_msgctxt;<br>
&gt; -       mp-&gt;prev_msgid = prev_msgid;<br>
&gt; -       mp-&gt;prev_msgid_plural = prev_msgid_plural;<br>
&gt; -diff --git a/gettext-tools/tests/Makefile.am b/gettext-tools/tests/Makefile.am<br>
&gt; -index 23b09b1..0dfb4d8 100644<br>
&gt; ---- a/gettext-tools/tests/Makefile.am<br>
&gt; -+++ b/gettext-tools/tests/Makefile.am<br>
&gt; -@@ -95,7 +95,7 @@ TESTS = gettext-1 gettext-2 gettext-3 gettext-4 gettext-5 gettext-6 gettext-7 \<br>
&gt; -     xgettext-perl-1 xgettext-perl-2 xgettext-perl-3 xgettext-perl-4 \<br>
&gt; -     xgettext-perl-5 xgettext-perl-6 xgettext-perl-7 xgettext-perl-8 \<br>
&gt; -     xgettext-php-1 xgettext-php-2 xgettext-php-3 xgettext-php-4 \<br>
&gt; --    xgettext-po-1 \<br>
&gt; -+    xgettext-po-1 xgettext-po-2 \<br>
&gt; -     xgettext-properties-1 \<br>
&gt; -     xgettext-python-1 xgettext-python-2 xgettext-python-3 \<br>
&gt; -     xgettext-python-4 \<br>
&gt; -diff --git a/gettext-tools/tests/xgettext-po-2 b/gettext-tools/tests/xgettext-po-2<br>
&gt; -new file mode 100755<br>
&gt; -index 0000000..c4bd9d0<br>
&gt; ---- /dev/null<br>
&gt; -+++ b/gettext-tools/tests/xgettext-po-2<br>
&gt; -@@ -0,0 +1,55 @@<br>
&gt; -+#! /bin/sh<br>
&gt; -+. &quot;${srcdir=.}/init.sh&quot;; path_prepend_ . ../src<br>
&gt; -+<br>
&gt; -+# Test PO extractors with multiple input files.<br>
&gt; -+<br>
&gt; -+cat &lt;&lt;EOF &gt; xg-po-2-1.po<br>
&gt; -+msgid &quot;first msgid&quot;<br>
&gt; -+msgid_plural &quot;first msgid (plural)&quot;<br>
&gt; -+msgstr[0] &quot;&quot;<br>
&gt; -+msgstr[1] &quot;&quot;<br>
&gt; -+<br>
&gt; -+msgid &quot;second msgid&quot;<br>
&gt; -+msgid_plural &quot;second msgid (plural)&quot;<br>
&gt; -+msgstr[0] &quot;&quot;<br>
&gt; -+msgstr[1] &quot;&quot;<br>
&gt; -+EOF<br>
&gt; -+<br>
&gt; -+cat &lt;&lt;EOF &gt; xg-po-2-2.po<br>
&gt; -+msgid &quot;third msgid&quot;<br>
&gt; -+msgid_plural &quot;third msgid (plural)&quot;<br>
&gt; -+msgstr[0] &quot;&quot;<br>
&gt; -+msgstr[1] &quot;&quot;<br>
&gt; -+<br>
&gt; -+msgid &quot;second msgid&quot;<br>
&gt; -+msgid_plural &quot;second msgid (plural)&quot;<br>
&gt; -+msgstr[0] &quot;&quot;<br>
&gt; -+msgstr[1] &quot;&quot;<br>
&gt; -+EOF<br>
&gt; -+<br>
&gt; -+: ${XGETTEXT=xgettext}<br>
&gt; -+${XGETTEXT} --omit-header xg-po-2-1.po xg-po-2-2.po -o xg-po-2.tmp.po || Exit 1<br>
&gt; -+LC_ALL=C tr -d &#39;\r&#39; &lt; xg-po-2.tmp.po &gt; xg-po-2.po || Exit 1<br>
&gt; -+<br>
&gt; -+cat &lt;&lt;EOF &gt; xg-po-2.ok<br>
&gt; -+msgid &quot;first msgid&quot;<br>
&gt; -+msgid_plural &quot;first msgid (plural)&quot;<br>
&gt; -+msgstr[0] &quot;&quot;<br>
&gt; -+msgstr[1] &quot;&quot;<br>
&gt; -+<br>
&gt; -+msgid &quot;second msgid&quot;<br>
&gt; -+msgid_plural &quot;second msgid (plural)&quot;<br>
&gt; -+msgstr[0] &quot;&quot;<br>
&gt; -+msgstr[1] &quot;&quot;<br>
&gt; -+<br>
&gt; -+msgid &quot;third msgid&quot;<br>
&gt; -+msgid_plural &quot;third msgid (plural)&quot;<br>
&gt; -+msgstr[0] &quot;&quot;<br>
&gt; -+msgstr[1] &quot;&quot;<br>
&gt; -+EOF<br>
&gt; -+<br>
&gt; -+: ${DIFF=diff}<br>
&gt; -+${DIFF} xg-po-2.ok xg-po-2.po<br>
&gt; -+result=$?<br>
&gt; -+<br>
&gt; -+exit $result<br>
&gt; --- <br>
&gt; -1.9.1<br>
&gt; -<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.19.8.1/parallel.patch b/meta/recipes-core/gettext/gettext-0.19.8.1/parallel.patch<br>
&gt; deleted file mode 100644<br>
&gt; index c8e2c94af0e..00000000000<br>
&gt; --- a/meta/recipes-core/gettext/gettext-0.19.8.1/parallel.patch<br>
&gt; +++ /dev/null<br>
&gt; @@ -1,23 +0,0 @@<br>
&gt; -instal libgettextlib.a before removing it<br>
&gt; -<br>
&gt; -In a multiple job build, Makefile can simultaneously<br>
&gt; -be installing and removing libgettextlib.a.  We serialize<br>
&gt; -the operations.<br>
&gt; -<br>
&gt; -Upstream-Status: Pending<br>
&gt; -<br>
&gt; -Signed-off-by: Joe Slater &lt;<a href="mailto:jslater@windriver.com" target="_blank">jslater@windriver.com</a>&gt;<br>
&gt; -<br>
&gt; ---- a/gettext-tools/gnulib-lib/Makefile.am<br>
&gt; -+++ b/gettext-tools/gnulib-lib/Makefile.am<br>
&gt; -@@ -57,6 +57,10 @@ endif<br>
&gt; - # Rules generated and collected by gnulib-tool.<br>
&gt; - include Makefile.gnulib<br>
&gt; - <br>
&gt; -+# defined in Makefile.gnulib but missing this dependency<br>
&gt; -+#<br>
&gt; -+install-exec-clean: install-libLTLIBRARIES<br>
&gt; -+<br>
&gt; - # Which classes to export from the shared library.<br>
&gt; - MOOPPFLAGS += --dllexport=styled_ostream<br>
&gt; - <br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.19.8.1/use-pkgconfig.patch b/meta/recipes-core/gettext/gettext-0.19.8.1/use-pkgconfig.patch<br>
&gt; deleted file mode 100644<br>
&gt; index 6156a153f74..00000000000<br>
&gt; --- a/meta/recipes-core/gettext/gettext-0.19.8.1/use-pkgconfig.patch<br>
&gt; +++ /dev/null<br>
&gt; @@ -1,321 +0,0 @@<br>
&gt; -For reasons which I just can&#39;t fathom gnulib doesn&#39;t use the expected tools to<br>
&gt; -find libraries but badly reinvents the wheel.  This will trivially lead to host<br>
&gt; -contamination (explicit searches of /usr/lib) or incorrect RPATHs (bad<br>
&gt; -canonicalisation resulting in relative paths).<br>
&gt; -<br>
&gt; -Simply delete all the crazy, and replace with a single call to pkg-config.<br>
&gt; -<br>
&gt; -Upstream-Status: Inappropriate (upstream still refuse to consider pkg-config)<br>
&gt; -Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
&gt; -<br>
&gt; -diff --git a/gnulib-local/m4/libcroco.m4 b/gnulib-local/m4/libcroco.m4<br>
&gt; -index f79ea82f1..1f67274db 100644<br>
&gt; ---- a/gettext-tools/gnulib-m4/libcroco.m4<br>
&gt; -+++ b/gettext-tools/gnulib-m4/libcroco.m4<br>
&gt; -@@ -8,6 +8,7 @@ dnl From Bruno Haible.<br>
&gt; - <br>
&gt; - AC_DEFUN([gl_LIBCROCO],<br>
&gt; - [<br>
&gt; -+  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; -   dnl libcroco depends on libglib.<br>
&gt; -   AC_REQUIRE([gl_LIBGLIB])<br>
&gt; - <br>
&gt; -@@ -23,65 +24,10 @@ AC_DEFUN([gl_LIBCROCO],<br>
&gt; -   LTLIBCROCO=<br>
&gt; -   INCCROCO=<br>
&gt; -   if test &quot;$gl_cv_libcroco_use_included&quot; != yes; then<br>
&gt; --    dnl Figure out whether we can use a preinstalled libcroco-0.6, or have to<br>
&gt; --    dnl use the included one.<br>
&gt; --    AC_CACHE_VAL([gl_cv_libcroco], [<br>
&gt; --      gl_cv_libcroco=no<br>
&gt; --      gl_cv_LIBCROCO=<br>
&gt; --      gl_cv_LTLIBCROCO=<br>
&gt; --      gl_cv_INCCROCO=<br>
&gt; --      gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; --      dnl Search for libcroco and define LIBCROCO_0_6, LTLIBCROCO_0_6 and<br>
&gt; --      dnl INCCROCO_0_6 accordingly.<br>
&gt; --      dnl Don&#39;t use croco-0.6-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; --      dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; --      dnl one that built the library.<br>
&gt; --      AC_LIB_LINKFLAGS_BODY([croco-0.6], [glib-2.0])<br>
&gt; --      LIBS=&quot;$gl_save_LIBS $LIBCROCO_0_6&quot;<br>
&gt; --      AC_TRY_LINK([#include &lt;libcroco-config.h&gt;],<br>
&gt; --        [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; --        [gl_cv_libcroco=yes<br>
&gt; --         gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; --         gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; --        ])<br>
&gt; --      if test &quot;$gl_cv_libcroco&quot; != yes; then<br>
&gt; --        gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; --        CPPFLAGS=&quot;$CPPFLAGS $INCCROCO_0_6&quot;<br>
&gt; --        AC_TRY_LINK([#include &lt;libcroco-config.h&gt;],<br>
&gt; --          [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; --          [gl_cv_libcroco=yes<br>
&gt; --           gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; --           gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; --           gl_cv_INCCROCO=&quot;$INCCROCO_0_6&quot;<br>
&gt; --          ])<br>
&gt; --        if test &quot;$gl_cv_libcroco&quot; != yes; then<br>
&gt; --          dnl Often the include files are installed in<br>
&gt; --          dnl /usr/include/libcroco-0.6/libcroco.<br>
&gt; --          AC_TRY_LINK([#include &lt;libcroco-0.6/libcroco/libcroco-config.h&gt;],<br>
&gt; --            [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; --            [gl_ABSOLUTE_HEADER([libcroco-0.6/libcroco/libcroco-config.h])<br>
&gt; --             libcroco_include_dir=`echo &quot;$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h&quot; | sed -e &#39;s,.libcroco-config\.h$,,&#39;`<br>
&gt; --             if test -d &quot;$libcroco_include_dir&quot;; then<br>
&gt; --               gl_cv_libcroco=yes<br>
&gt; --               gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; --               gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; --               gl_cv_INCCROCO=&quot;-I$libcroco_include_dir&quot;<br>
&gt; --             fi<br>
&gt; --            ])<br>
&gt; --        fi<br>
&gt; --        CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; --      fi<br>
&gt; --      LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; --    ])<br>
&gt; --    AC_MSG_CHECKING([for libcroco])<br>
&gt; --    AC_MSG_RESULT([$gl_cv_libcroco])<br>
&gt; --    if test $gl_cv_libcroco = yes; then<br>
&gt; --      LIBCROCO=&quot;$gl_cv_LIBCROCO&quot;<br>
&gt; --      LTLIBCROCO=&quot;$gl_cv_LTLIBCROCO&quot;<br>
&gt; --      INCCROCO=&quot;$gl_cv_INCCROCO&quot;<br>
&gt; --    else<br>
&gt; --      gl_cv_libcroco_use_included=yes<br>
&gt; --    fi<br>
&gt; -+    PKG_CHECK_MODULES([CROCO], [libcroco-0.6])<br>
&gt; -+    LIBCROCO=$CROCO_LIBS<br>
&gt; -+    LTLIBCROCO=$CROCO_LIBS<br>
&gt; -+    INCCROCO=$CROCO_CFLAGS<br>
&gt; -   fi<br>
&gt; -   AC_SUBST([LIBCROCO])<br>
&gt; -   AC_SUBST([LTLIBCROCO])<br>
&gt; -diff --git a/gnulib-local/m4/libglib.m4 b/gnulib-local/m4/libglib.m4<br>
&gt; -index 42e55e6fd..ab25a5b22 100644<br>
&gt; ---- a/gettext-tools/gnulib-m4/libglib.m4<br>
&gt; -+++ b/gettext-tools/gnulib-m4/libglib.m4<br>
&gt; -@@ -8,6 +8,7 @@ dnl From Bruno Haible.<br>
&gt; - <br>
&gt; - AC_DEFUN([gl_LIBGLIB],<br>
&gt; - [<br>
&gt; -+  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; -   AC_MSG_CHECKING([whether included glib is requested])<br>
&gt; -   AC_ARG_WITH([included-glib],<br>
&gt; -     [  --with-included-glib    use the glib2 included here],<br>
&gt; -@@ -20,76 +21,10 @@ AC_DEFUN([gl_LIBGLIB],<br>
&gt; -   LTLIBGLIB=<br>
&gt; -   INCGLIB=<br>
&gt; -   if test &quot;$gl_cv_libglib_use_included&quot; != yes; then<br>
&gt; --    dnl Figure out whether we can use a preinstalled libglib-2.0, or have to use<br>
&gt; --    dnl the included one.<br>
&gt; --    AC_CACHE_VAL([gl_cv_libglib], [<br>
&gt; --      gl_cv_libglib=no<br>
&gt; --      gl_cv_LIBGLIB=<br>
&gt; --      gl_cv_LTLIBGLIB=<br>
&gt; --      gl_cv_INCGLIB=<br>
&gt; --      gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; --      dnl Search for libglib2 and define LIBGLIB_2_0, LTLIBGLIB_2_0 and<br>
&gt; --      dnl INCGLIB_2_0 accordingly.<br>
&gt; --      dnl Don&#39;t use glib-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; --      dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; --      dnl one that built the library.<br>
&gt; --      AC_LIB_LINKFLAGS_BODY([glib-2.0])<br>
&gt; --      LIBS=&quot;$gl_save_LIBS $LIBGLIB_2_0&quot;<br>
&gt; --      AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; --#ifndef G_BEGIN_DECLS<br>
&gt; --error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; --#endif<br>
&gt; --],<br>
&gt; --        [g_string_new (&quot;foo&quot;);],<br>
&gt; --        [gl_cv_libglib=yes<br>
&gt; --         gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; --         gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; --        ])<br>
&gt; --      if test &quot;$gl_cv_libglib&quot; != yes; then<br>
&gt; --        gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; --        CPPFLAGS=&quot;$CPPFLAGS $INCGLIB_2_0&quot;<br>
&gt; --        AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; --#ifndef G_BEGIN_DECLS<br>
&gt; --error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; --#endif<br>
&gt; --],<br>
&gt; --          [g_string_new (&quot;foo&quot;);],<br>
&gt; --          [gl_cv_libglib=yes<br>
&gt; --           gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; --           gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; --           gl_cv_INCGLIB=&quot;$INCGLIB_2_0&quot;<br>
&gt; --          ])<br>
&gt; --        if test &quot;$gl_cv_libglib&quot; != yes; then<br>
&gt; --          dnl Often the include files are installed in /usr/include/glib-2.0<br>
&gt; --          dnl and /usr/lib/glib-2.0/include.<br>
&gt; --          if test -n &quot;$LIBGLIB_2_0_PREFIX&quot;; then<br>
&gt; --            CPPFLAGS=&quot;$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include&quot;<br>
&gt; --            AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; --#ifndef G_BEGIN_DECLS<br>
&gt; --error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; --#endif<br>
&gt; --],<br>
&gt; --              [g_string_new (&quot;foo&quot;);],<br>
&gt; --              [gl_cv_libglib=yes<br>
&gt; --               gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; --               gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; --               gl_cv_INCGLIB=&quot;-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include&quot;<br>
&gt; --              ])<br>
&gt; --          fi<br>
&gt; --        fi<br>
&gt; --        CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; --      fi<br>
&gt; --      LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; --    ])<br>
&gt; --    AC_MSG_CHECKING([for glib])<br>
&gt; --    AC_MSG_RESULT([$gl_cv_libglib])<br>
&gt; --    if test $gl_cv_libglib = yes; then<br>
&gt; --      LIBGLIB=&quot;$gl_cv_LIBGLIB&quot;<br>
&gt; --      LTLIBGLIB=&quot;$gl_cv_LTLIBGLIB&quot;<br>
&gt; --      INCGLIB=&quot;$gl_cv_INCGLIB&quot;<br>
&gt; --    else<br>
&gt; --      gl_cv_libglib_use_included=yes<br>
&gt; --    fi<br>
&gt; -+    PKG_CHECK_MODULES([GLIB], [glib-2.0])<br>
&gt; -+    LIBGLIB=&quot;$GLIB_LIBS&quot;<br>
&gt; -+    LTLIBGLIB=&quot;$GLIB_LIBS&quot;<br>
&gt; -+    INCGLIB=&quot;$GLIB_CFLAGS&quot;<br>
&gt; -   fi<br>
&gt; -   AC_SUBST([LIBGLIB])<br>
&gt; -   AC_SUBST([LTLIBGLIB])<br>
&gt; -diff --git a/gnulib-local/m4/libxml.m4 b/gnulib-local/m4/libxml.m4<br>
&gt; -index 480c700d2..cb39309d5 100644<br>
&gt; ---- a/gettext-tools/gnulib-m4/libxml.m4<br>
&gt; -+++ b/gettext-tools/gnulib-m4/libxml.m4<br>
&gt; -@@ -8,6 +8,7 @@ dnl From Bruno Haible.<br>
&gt; -<br>
&gt; - AC_DEFUN([gl_LIBXML],<br>
&gt; - [<br>
&gt; -+  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; -   AC_REQUIRE([AM_ICONV_LINK])<br>
&gt; -<br>
&gt; -   AC_MSG_CHECKING([whether included libxml is requested])<br>
&gt; -@@ -22,100 +22,10 @@ AC_DEFUN([gl_LIBXML],<br>
&gt; -   LTLIBXML=<br>
&gt; -   INCXML=<br>
&gt; -   if test &quot;$gl_cv_libxml_use_included&quot; != yes; then<br>
&gt; --    dnl Figure out whether we can use a preinstalled libxml2, or have to use<br>
&gt; --    dnl the included one.<br>
&gt; --    AC_CACHE_VAL([gl_cv_libxml], [<br>
&gt; --      gl_cv_libxml=no<br>
&gt; --      gl_cv_LIBXML=<br>
&gt; --      gl_cv_LTLIBXML=<br>
&gt; --      gl_cv_INCXML=<br>
&gt; --      gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; --      LIBS=&quot;$LIBS $LIBICONV&quot;<br>
&gt; --      dnl Search for libxml2 and define LIBXML2, LTLIBXML2 and INCXML2<br>
&gt; --      dnl accordingly.<br>
&gt; --      dnl Don&#39;t use xml2-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; --      dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; --      dnl one that built the library.<br>
&gt; --      dnl Use a test program that tries to invoke xmlFree. On Cygwin 1.7.x,<br>
&gt; --      dnl libxml2 is built in such a way that uses of xmlFree work fine with<br>
&gt; --      dnl -Wl,--enable-auto-import but lead to a link error with<br>
&gt; --      dnl -Wl,--disable-auto-import.<br>
&gt; --      AC_LIB_LINKFLAGS_BODY([xml2])<br>
&gt; --      LIBS=&quot;$gl_save_LIBS $LIBXML2 $LIBICONV&quot;<br>
&gt; --      AC_TRY_LINK([#include &lt;libxml/xmlversion.h&gt;<br>
&gt; --                   #include &lt;libxml/xmlmemory.h&gt;<br>
&gt; --                   #include &lt;libxml/xpath.h&gt;<br>
&gt; --                  ],<br>
&gt; --        [xmlCheckVersion (0);<br>
&gt; --         xmlFree ((void *) 0);<br>
&gt; --         xmlXPathSetContextNode ((void *)0, (void *)0);<br>
&gt; --        ],<br>
&gt; --        [gl_cv_libxml=yes<br>
&gt; --         gl_cv_LIBXML=&quot;$LIBXML2 $LIBICONV&quot;<br>
&gt; --         gl_cv_LTLIBXML=&quot;$LTLIBXML2 $LTLIBICONV&quot;<br>
&gt; --        ])<br>
&gt; --      if test &quot;$gl_cv_libxml&quot; != yes; then<br>
&gt; --        gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; --        CPPFLAGS=&quot;$CPPFLAGS $INCXML2&quot;<br>
&gt; --        AC_TRY_LINK([#include &lt;libxml/xmlversion.h&gt;<br>
&gt; --                     #include &lt;libxml/xmlmemory.h&gt;<br>
&gt; --                     #include &lt;libxml/xpath.h&gt;<br>
&gt; --                    ],<br>
&gt; --          [xmlCheckVersion (0);<br>
&gt; --           xmlFree ((void *) 0);<br>
&gt; --           xmlXPathSetContextNode ((void *)0, (void *)0);<br>
&gt; --          ],<br>
&gt; --          [gl_cv_libxml=yes<br>
&gt; --           gl_cv_LIBXML=&quot;$LIBXML2 $LIBICONV&quot;<br>
&gt; --           gl_cv_LTLIBXML=&quot;$LTLIBXML2 $LTLIBICONV&quot;<br>
&gt; --           gl_cv_INCXML=&quot;$INCXML2&quot;<br>
&gt; --          ])<br>
&gt; --        if test &quot;$gl_cv_libxml&quot; != yes; then<br>
&gt; --          dnl Often the include files are installed in /usr/include/libxml2.<br>
&gt; --          dnl In libxml2-2.5, &lt;libxml/xmlversion.h&gt; is self-contained.<br>
&gt; --          dnl In libxml2-2.6, it includes &lt;libxml/xmlexports.h&gt; which is<br>
&gt; --          dnl self-contained.<br>
&gt; --          libxml2_include_dir=<br>
&gt; --          AC_TRY_CPP([#include &lt;libxml2/libxml/xmlexports.h&gt;],<br>
&gt; --            [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlexports.h])<br>
&gt; --             libxml2_include_dir=`echo &quot;$gl_cv_absolute_libxml2_libxml_xmlexports_h&quot; | sed -e &#39;s,.libxml.xmlexports\.h$,,&#39;`<br>
&gt; --            ])<br>
&gt; --          if test -z &quot;$libxml2_include_dir&quot;; then<br>
&gt; --            AC_TRY_CPP([#include &lt;libxml2/libxml/xmlversion.h&gt;],<br>
&gt; --              [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlversion.h])<br>
&gt; --               libxml2_include_dir=`echo &quot;$gl_cv_absolute_libxml2_libxml_xmlversion_h&quot; | sed -e &#39;s,.libxml.xmlversion\.h$,,&#39;`<br>
&gt; --              ])<br>
&gt; --          fi<br>
&gt; --          if test -n &quot;$libxml2_include_dir&quot; &amp;&amp; test -d &quot;$libxml2_include_dir&quot;; then<br>
&gt; --            CPPFLAGS=&quot;$gl_save_CPPFLAGS -I$libxml2_include_dir&quot;<br>
&gt; --            AC_TRY_LINK([#include &lt;libxml/xmlversion.h&gt;<br>
&gt; --                         #include &lt;libxml/xmlmemory.h&gt;<br>
&gt; --                         #include &lt;libxml/xpath.h&gt;<br>
&gt; --                        ],<br>
&gt; --              [xmlCheckVersion (0);<br>
&gt; --               xmlFree ((void *) 0);<br>
&gt; --               xmlXPathSetContextNode ((void *)0, (void *)0);<br>
&gt; --              ],<br>
&gt; --              [gl_cv_libxml=yes<br>
&gt; --               gl_cv_LIBXML=&quot;$LIBXML2 $LIBICONV&quot;<br>
&gt; --               gl_cv_LTLIBXML=&quot;$LTLIBXML2 $LTLIBICONV&quot;<br>
&gt; --               gl_cv_INCXML=&quot;-I$libxml2_include_dir&quot;<br>
&gt; --              ])<br>
&gt; --          fi<br>
&gt; --        fi<br>
&gt; --        CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; --      fi<br>
&gt; --      LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; --    ])<br>
&gt; --    AC_MSG_CHECKING([for libxml])<br>
&gt; --    AC_MSG_RESULT([$gl_cv_libxml])<br>
&gt; --    if test $gl_cv_libxml = yes; then<br>
&gt; --      LIBXML=&quot;$gl_cv_LIBXML&quot;<br>
&gt; --      LTLIBXML=&quot;$gl_cv_LTLIBXML&quot;<br>
&gt; --      INCXML=&quot;$gl_cv_INCXML&quot;<br>
&gt; --    else<br>
&gt; --      gl_cv_libxml_use_included=yes<br>
&gt; --    fi<br>
&gt; -+    PKG_CHECK_MODULES([XML], [libxml-2.0])<br>
&gt; -+    LIBXML=$XML_LIBS<br>
&gt; -+    LTLIBXML=$XML_LIBS<br>
&gt; -+    INCXML=$XML_CFLAGS<br>
&gt; -   fi<br>
&gt; -   AC_SUBST([LIBXML])<br>
&gt; -   AC_SUBST([LTLIBXML])<br>
&gt; -diff --git a/gnulib-local/lib/term-styled-ostream.oo.c b/gnulib-local/lib/term-styled-ostream.oo.c<br>
&gt; -index 81a407467..218565329 100644<br>
&gt; ---- a/gettext-tools/gnulib-lib/term-styled-ostream.oo.c<br>
&gt; -+++ b/gettext-tools/gnulib-lib/term-styled-ostream.oo.c<br>
&gt; -@@ -25,4 +25,4 @@<br>
&gt; --#include &lt;cr-om-parser.h&gt;<br>
&gt; --#include &lt;cr-sel-eng.h&gt;<br>
&gt; --#include &lt;cr-style.h&gt;<br>
&gt; --#include &lt;cr-rgb.h&gt;<br>
&gt; -+#include &lt;libcroco/cr-om-parser.h&gt;<br>
&gt; -+#include &lt;libcroco/cr-sel-eng.h&gt;<br>
&gt; -+#include &lt;libcroco/cr-style.h&gt;<br>
&gt; -+#include &lt;libcroco/cr-rgb.h&gt;<br>
&gt; -@@ -31 +31 @@<br>
&gt; --# include &lt;cr-fonts.h&gt;<br>
&gt; -+# include &lt;libcroco/cr-fonts.h&gt;<br>
&gt; -@@ -33 +33 @@<br>
&gt; --#include &lt;cr-string.h&gt;<br>
&gt; -+#include &lt;libcroco/cr-string.h&gt;<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.19.8.1/add-with-bisonlocaledir.patch b/meta/recipes-core/gettext/gettext-0.20.1/add-with-bisonlocaledir.patch<br>
&gt; similarity index 100%<br>
&gt; rename from meta/recipes-core/gettext/gettext-0.19.8.1/add-with-bisonlocaledir.patch<br>
&gt; rename to meta/recipes-core/gettext/gettext-0.20.1/add-with-bisonlocaledir.patch<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.19.8.1/cr-statement.c-timsort.h-fix-formatting-issues.patch b/meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch<br>
&gt; similarity index 68%<br>
&gt; rename from meta/recipes-core/gettext/gettext-0.19.8.1/cr-statement.c-timsort.h-fix-formatting-issues.patch<br>
&gt; rename to meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch<br>
&gt; index 6af16041987..0561ed7d32c 100644<br>
&gt; --- a/meta/recipes-core/gettext/gettext-0.19.8.1/cr-statement.c-timsort.h-fix-formatting-issues.patch<br>
&gt; +++ b/meta/recipes-core/gettext/gettext-0.20.1/cr-statement.c-timsort.h-fix-formatting-issues.patch<br>
&gt; @@ -1,4 +1,4 @@<br>
&gt; -From e546de65a333789e83f5485757967cee29ee3681 Mon Sep 17 00:00:00 2001<br>
&gt; +From f6245ef5530fc37a6243e798df34162fbbeab6f0 Mon Sep 17 00:00:00 2001<br>
&gt;  From: Robert Yang &lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;<br>
&gt;  Date: Sun, 19 Feb 2017 23:32:46 -0800<br>
&gt;  Subject: [PATCH] cr-statement.c/timsort.h: fix formatting issues<br>
&gt; @@ -15,15 +15,15 @@ gettext-tools/gnulib-lib/libxml/timsort.h:326:80: warning: format &#39;%lu&#39; expects<br>
&gt;  Upstream-Status: Pending<br>
&gt;  <br>
&gt;  Signed-off-by: Robert Yang &lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;<br>
&gt; +<br>
&gt;  ---<br>
&gt; - gettext-tools/gnulib-lib/libcroco/cr-statement.c | 10 +++++-----<br>
&gt; - gettext-tools/gnulib-lib/libxml/timsort.h        |  2 +-<br>
&gt; - 2 files changed, 6 insertions(+), 6 deletions(-)<br>
&gt; + libtextstyle/lib/libcroco/cr-statement.c | 10 +++++-----<br>
&gt; + 1 file changed, 5 insertions(+), 5 deletions(-)<br>
&gt;  <br>
&gt; -diff --git a/gettext-tools/gnulib-lib/libcroco/cr-statement.c b/gettext-tools/gnulib-lib/libcroco/cr-statement.c<br>
&gt; +diff --git a/libtextstyle/lib/libcroco/cr-statement.c b/libtextstyle/lib/libcroco/cr-statement.c<br>
&gt;  index 617520f..100104b 100644<br>
&gt; ---- a/gettext-tools/gnulib-lib/libcroco/cr-statement.c<br>
&gt; -+++ b/gettext-tools/gnulib-lib/libcroco/cr-statement.c<br>
&gt; +--- a/libtextstyle/lib/libcroco/cr-statement.c<br>
&gt; ++++ b/libtextstyle/lib/libcroco/cr-statement.c<br>
&gt;  @@ -2607,7 +2607,7 @@ cr_statement_dump_ruleset (CRStatement * a_this, FILE * a_fp, glong a_indent)<br>
&gt;           g_return_if_fail (a_fp &amp;&amp; a_this);<br>
&gt;           str = cr_statement_ruleset_to_string (a_this, a_indent);<br>
&gt; @@ -69,19 +69,3 @@ index 617520f..100104b 100644<br>
&gt;                   g_free (str) ;<br>
&gt;                   str = NULL ;<br>
&gt;           }<br>
&gt; -diff --git a/gettext-tools/gnulib-lib/libxml/timsort.h b/gettext-tools/gnulib-lib/libxml/timsort.h<br>
&gt; -index 795f272..443918a 100644<br>
&gt; ---- a/gettext-tools/gnulib-lib/libxml/timsort.h<br>
&gt; -+++ b/gettext-tools/gnulib-lib/libxml/timsort.h<br>
&gt; -@@ -323,7 +323,7 @@ static void TIM_SORT_RESIZE(TEMP_STORAGE_T *store, const size_t new_size)<br>
&gt; -     SORT_TYPE *tempstore = (SORT_TYPE *)realloc(store-&gt;storage, new_size * sizeof(SORT_TYPE));<br>
&gt; -     if (tempstore == NULL)<br>
&gt; -     {<br>
&gt; --      fprintf(stderr, &quot;Error allocating temporary storage for tim sort: need %lu bytes&quot;, sizeof(SORT_TYPE) * new_size);<br>
&gt; -+      fprintf(stderr, &quot;Error allocating temporary storage for tim sort: need %zu bytes&quot;, sizeof(SORT_TYPE) * new_size);<br>
&gt; -       exit(1);<br>
&gt; -     }<br>
&gt; -     store-&gt;storage = tempstore;<br>
&gt; --- <br>
&gt; -2.10.2<br>
&gt; -<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.20.1/parallel.patch b/meta/recipes-core/gettext/gettext-0.20.1/parallel.patch<br>
&gt; new file mode 100644<br>
&gt; index 00000000000..d96a376b7d1<br>
&gt; --- /dev/null<br>
&gt; +++ b/meta/recipes-core/gettext/gettext-0.20.1/parallel.patch<br>
&gt; @@ -0,0 +1,32 @@<br>
&gt; +From 4a2a0a93b469093b60ffd0bec55d33d1e03d4713 Mon Sep 17 00:00:00 2001<br>
&gt; +From: Joe Slater &lt;<a href="mailto:jslater@windriver.com" target="_blank">jslater@windriver.com</a>&gt;<br>
&gt; +Date: Thu, 7 Jun 2012 16:37:01 -0700<br>
&gt; +Subject: [PATCH] instal libgettextlib.a before removing it<br>
&gt; +<br>
&gt; +In a multiple job build, Makefile can simultaneously<br>
&gt; +be installing and removing libgettextlib.a.  We serialize<br>
&gt; +the operations.<br>
&gt; +<br>
&gt; +Upstream-Status: Pending<br>
&gt; +<br>
&gt; +Signed-off-by: Joe Slater &lt;<a href="mailto:jslater@windriver.com" target="_blank">jslater@windriver.com</a>&gt;<br>
&gt; +<br>
&gt; +---<br>
&gt; + gettext-tools/gnulib-lib/Makefile.am | 4 ++++<br>
&gt; + 1 file changed, 4 insertions(+)<br>
&gt; +<br>
&gt; +diff --git a/gettext-tools/gnulib-lib/Makefile.am b/gettext-tools/gnulib-lib/Makefile.am<br>
&gt; +index 2126699..d2dd7e4 100644<br>
&gt; +--- a/gettext-tools/gnulib-lib/Makefile.am<br>
&gt; ++++ b/gettext-tools/gnulib-lib/Makefile.am<br>
&gt; +@@ -58,6 +58,10 @@ endif<br>
&gt; + # Rules generated and collected by gnulib-tool.<br>
&gt; + include Makefile.gnulib<br>
&gt; + <br>
&gt; ++# defined in Makefile.gnulib but missing this dependency<br>
&gt; ++#<br>
&gt; ++install-exec-clean: install-libLTLIBRARIES<br>
&gt; ++<br>
&gt; + # OS/2 does not support a DLL name longer than 8 characters.<br>
&gt; + if OS2<br>
&gt; + libgettextlib_la_LDFLAGS += -os2dllname gtlib<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.19.8.1/run-ptest b/meta/recipes-core/gettext/gettext-0.20.1/run-ptest<br>
&gt; similarity index 100%<br>
&gt; rename from meta/recipes-core/gettext/gettext-0.19.8.1/run-ptest<br>
&gt; rename to meta/recipes-core/gettext/gettext-0.20.1/run-ptest<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.19.8.1/serial-tests-config.patch b/meta/recipes-core/gettext/gettext-0.20.1/serial-tests-config.patch<br>
&gt; similarity index 75%<br>
&gt; rename from meta/recipes-core/gettext/gettext-0.19.8.1/serial-tests-config.patch<br>
&gt; rename to meta/recipes-core/gettext/gettext-0.20.1/serial-tests-config.patch<br>
&gt; index 31ff9138a91..93f7c03334a 100644<br>
&gt; --- a/meta/recipes-core/gettext/gettext-0.19.8.1/serial-tests-config.patch<br>
&gt; +++ b/meta/recipes-core/gettext/gettext-0.20.1/serial-tests-config.patch<br>
&gt; @@ -1,4 +1,4 @@<br>
&gt; -From c4b1f3a0c7b7c40b343be9b95deb84e0485643be Mon Sep 17 00:00:00 2001<br>
&gt; +From ed64a5724ef7d6eb4e9a876f817ea266a536e195 Mon Sep 17 00:00:00 2001<br>
&gt;  From: &quot;Hongjun.Yang&quot; &lt;<a href="mailto:hongjun.yang@windriver.com" target="_blank">hongjun.yang@windriver.com</a>&gt;<br>
&gt;  Date: Thu, 28 Jul 2016 12:36:15 +0800<br>
&gt;  Subject: [PATCH] fix for ptest<br>
&gt; @@ -8,6 +8,7 @@ Add serial-tests support, ptest need it<br>
&gt;  Upstream-Status: Inappropriate [oe specific]<br>
&gt;  <br>
&gt;  Signed-off-by: Changqing Li &lt;<a href="mailto:changqing.li@windriver.com" target="_blank">changqing.li@windriver.com</a>&gt;<br>
&gt; +<br>
&gt;  ---<br>
&gt;   <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a>                 | 2 +-<br>
&gt;   gettext-runtime/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 2 +-<br>
&gt; @@ -15,24 +16,24 @@ Signed-off-by: Changqing Li &lt;<a href="mailto:changqing.li@windriver.com" target="_blank">changqing.li@windriver.com</a>&gt;<br>
&gt;   3 files changed, 3 insertions(+), 3 deletions(-)<br>
&gt;  <br>
&gt;  diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt; -index 5e996fa..880581f 100644<br>
&gt; +index 38db6fd..f019ae0 100644<br>
&gt;  --- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt;  +++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt; -@@ -23,7 +23,7 @@ AC_INIT([gettext],<br>
&gt; -     [<a href="mailto:bug-gnu-gettext@gnu.org" target="_blank">bug-gnu-gettext@gnu.org</a>])<br>
&gt; +@@ -22,7 +22,7 @@ AC_INIT([gettext],<br>
&gt; +     [<a href="mailto:bug-gettext@gnu.org" target="_blank">bug-gettext@gnu.org</a>])<br>
&gt;   AC_CONFIG_SRCDIR([gettext-tools/src/msgfmt.c])<br>
&gt;   AC_CONFIG_AUX_DIR([build-aux])<br>
&gt; --AM_INIT_AUTOMAKE([1.13 silent-rules parallel-tests dist-xz dist-lzip])<br>
&gt; -+AM_INIT_AUTOMAKE([1.13 silent-rules serial-tests dist-xz dist-lzip])<br>
&gt; +-AM_INIT_AUTOMAKE([1.13 silent-rules parallel-tests tar-ustar])<br>
&gt; ++AM_INIT_AUTOMAKE([1.13 silent-rules serial-tests tar-ustar])<br>
&gt;   <br>
&gt;   dnl Override automake&#39;s tar command used for creating distributions.<br>
&gt; - am__tar=&#39;${AMTAR} chof - --owner=root --group=root &quot;$$tardir&quot;&#39;<br>
&gt; + am__tar=&#39;${AMTAR} chf - --format=ustar --owner=root --group=root &quot;$$tardir&quot;&#39;<br>
&gt;  diff --git a/gettext-runtime/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/gettext-runtime/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt; -index e9299b6..d4f5528 100644<br>
&gt; +index de203e7..138a07f 100644<br>
&gt;  --- a/gettext-runtime/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt;  +++ b/gettext-runtime/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt;  @@ -22,7 +22,7 @@ AC_INIT([gettext-runtime],<br>
&gt; -     [<a href="mailto:bug-gnu-gettext@gnu.org" target="_blank">bug-gnu-gettext@gnu.org</a>])<br>
&gt; +     [<a href="mailto:bug-gettext@gnu.org" target="_blank">bug-gettext@gnu.org</a>])<br>
&gt;   AC_CONFIG_SRCDIR([intl/dcigettext.c])<br>
&gt;   AC_CONFIG_AUX_DIR([../build-aux])<br>
&gt;  -AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])<br>
&gt; @@ -41,11 +42,11 @@ index e9299b6..d4f5528 100644<br>
&gt;   <br>
&gt;   dnl Installation directories.<br>
&gt;  diff --git a/gettext-tools/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/gettext-tools/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt; -index 920eeb6..c507434 100644<br>
&gt; +index cf1dd73..b544d6d 100644<br>
&gt;  --- a/gettext-tools/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt;  +++ b/gettext-tools/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
&gt;  @@ -22,7 +22,7 @@ AC_INIT([gettext-tools],<br>
&gt; -     [<a href="mailto:bug-gnu-gettext@gnu.org" target="_blank">bug-gnu-gettext@gnu.org</a>])<br>
&gt; +     [<a href="mailto:bug-gettext@gnu.org" target="_blank">bug-gettext@gnu.org</a>])<br>
&gt;   AC_CONFIG_SRCDIR([src/msgfmt.c])<br>
&gt;   AC_CONFIG_AUX_DIR([../build-aux])<br>
&gt;  -AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])<br>
&gt; @@ -53,6 +54,3 @@ index 920eeb6..c507434 100644<br>
&gt;   AC_CONFIG_HEADERS([config.h])<br>
&gt;   <br>
&gt;   dnl Installation directories.<br>
&gt; --- <br>
&gt; -2.1.4<br>
&gt; -<br>
&gt; diff --git a/meta/recipes-core/gettext/gettext-0.20.1/use-pkgconfig.patch b/meta/recipes-core/gettext/gettext-0.20.1/use-pkgconfig.patch<br>
&gt; new file mode 100644<br>
&gt; index 00000000000..d1b2603779b<br>
&gt; --- /dev/null<br>
&gt; +++ b/meta/recipes-core/gettext/gettext-0.20.1/use-pkgconfig.patch<br>
&gt; @@ -0,0 +1,713 @@<br>
&gt; +From ef414b06be80c6f605731abc9e674e396b80ec9e Mon Sep 17 00:00:00 2001<br>
&gt; +From: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
&gt; +Date: Tue, 23 Jan 2018 00:54:13 +0000<br>
&gt; +Subject: [PATCH] gettext: beat library detection into shape<br>
&gt; +<br>
&gt; +For reasons which I just can&#39;t fathom gnulib doesn&#39;t use the expected tools to<br>
&gt; +find libraries but badly reinvents the wheel.  This will trivially lead to host<br>
&gt; +contamination (explicit searches of /usr/lib) or incorrect RPATHs (bad<br>
&gt; +canonicalisation resulting in relative paths).<br>
&gt; +<br>
&gt; +Simply delete all the crazy, and replace with a single call to pkg-config.<br>
&gt; +<br>
&gt; +Upstream-Status: Inappropriate (upstream still refuse to consider pkg-config)<br>
&gt; +Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
&gt; +<br>
&gt; +---<br>
&gt; + gettext-tools/gnulib-m4/libxml.m4             |  99 +----------------<br>
&gt; + .../gnulib-local/lib/term-styled-ostream.oo.c |  12 +-<br>
&gt; + libtextstyle/gnulib-local/m4/libcroco.m4      |  99 +++--------------<br>
&gt; + libtextstyle/gnulib-local/m4/libglib.m4       | 104 +++---------------<br>
&gt; + libtextstyle/gnulib-m4/libcroco.m4            |  99 +++--------------<br>
&gt; + libtextstyle/gnulib-m4/libglib.m4             | 104 +++---------------<br>
&gt; + libtextstyle/lib/term-styled-ostream.c        |  12 +-<br>
&gt; + libtextstyle/lib/term-styled-ostream.oo.c     |  12 +-<br>
&gt; + 8 files changed, 87 insertions(+), 454 deletions(-)<br>
&gt; +<br>
&gt; +diff --git a/gettext-tools/gnulib-m4/libxml.m4 b/gettext-tools/gnulib-m4/libxml.m4<br>
&gt; +index 05b9550..031ee65 100644<br>
&gt; +--- a/gettext-tools/gnulib-m4/libxml.m4<br>
&gt; ++++ b/gettext-tools/gnulib-m4/libxml.m4<br>
&gt; +@@ -13,6 +13,7 @@ dnl gl_LIBXML(FORCE-INCLUDED)<br>
&gt; + dnl   forces the use of the included or an external libxml.<br>
&gt; + AC_DEFUN([gl_LIBXML],<br>
&gt; + [<br>
&gt; ++  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; +   AC_REQUIRE([AM_ICONV_LINK])<br>
&gt; + <br>
&gt; +   ifelse([$1], , [<br>
&gt; +@@ -30,100 +31,10 @@ AC_DEFUN([gl_LIBXML],<br>
&gt; +   INCXML=<br>
&gt; +   ifelse([$1], [yes], , [<br>
&gt; +     if test &quot;$gl_cv_libxml_use_included&quot; != yes; then<br>
&gt; +-      dnl Figure out whether we can use a preinstalled libxml2, or have to use<br>
&gt; +-      dnl the included one.<br>
&gt; +-      AC_CACHE_VAL([gl_cv_libxml], [<br>
&gt; +-        gl_cv_libxml=no<br>
&gt; +-        gl_cv_LIBXML=<br>
&gt; +-        gl_cv_LTLIBXML=<br>
&gt; +-        gl_cv_INCXML=<br>
&gt; +-        gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; +-        LIBS=&quot;$LIBS $LIBICONV&quot;<br>
&gt; +-        dnl Search for libxml2 and define LIBXML2, LTLIBXML2 and INCXML2<br>
&gt; +-        dnl accordingly.<br>
&gt; +-        dnl Don&#39;t use xml2-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; +-        dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; +-        dnl one that built the library.<br>
&gt; +-        dnl Use a test program that tries to invoke xmlFree. On Cygwin 1.7.x,<br>
&gt; +-        dnl libxml2 is built in such a way that uses of xmlFree work fine with<br>
&gt; +-        dnl -Wl,--enable-auto-import but lead to a link error with<br>
&gt; +-        dnl -Wl,--disable-auto-import.<br>
&gt; +-        AC_LIB_LINKFLAGS_BODY([xml2])<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS $LIBXML2 $LIBICONV&quot;<br>
&gt; +-        AC_TRY_LINK([#include &lt;libxml/xmlversion.h&gt;<br>
&gt; +-                     #include &lt;libxml/xmlmemory.h&gt;<br>
&gt; +-                     #include &lt;libxml/xpath.h&gt;<br>
&gt; +-                    ],<br>
&gt; +-          [xmlCheckVersion (0);<br>
&gt; +-           xmlFree ((void *) 0);<br>
&gt; +-           xmlXPathSetContextNode ((void *)0, (void *)0);<br>
&gt; +-          ],<br>
&gt; +-          [gl_cv_libxml=yes<br>
&gt; +-           gl_cv_LIBXML=&quot;$LIBXML2 $LIBICONV&quot;<br>
&gt; +-           gl_cv_LTLIBXML=&quot;$LTLIBXML2 $LTLIBICONV&quot;<br>
&gt; +-          ])<br>
&gt; +-        if test &quot;$gl_cv_libxml&quot; != yes; then<br>
&gt; +-          gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; +-          CPPFLAGS=&quot;$CPPFLAGS $INCXML2&quot;<br>
&gt; +-          AC_TRY_LINK([#include &lt;libxml/xmlversion.h&gt;<br>
&gt; +-                       #include &lt;libxml/xmlmemory.h&gt;<br>
&gt; +-                       #include &lt;libxml/xpath.h&gt;<br>
&gt; +-                      ],<br>
&gt; +-            [xmlCheckVersion (0);<br>
&gt; +-             xmlFree ((void *) 0);<br>
&gt; +-             xmlXPathSetContextNode ((void *)0, (void *)0);<br>
&gt; +-            ],<br>
&gt; +-            [gl_cv_libxml=yes<br>
&gt; +-             gl_cv_LIBXML=&quot;$LIBXML2 $LIBICONV&quot;<br>
&gt; +-             gl_cv_LTLIBXML=&quot;$LTLIBXML2 $LTLIBICONV&quot;<br>
&gt; +-             gl_cv_INCXML=&quot;$INCXML2&quot;<br>
&gt; +-            ])<br>
&gt; +-          if test &quot;$gl_cv_libxml&quot; != yes; then<br>
&gt; +-            dnl Often the include files are installed in /usr/include/libxml2.<br>
&gt; +-            dnl In libxml2-2.5, &lt;libxml/xmlversion.h&gt; is self-contained.<br>
&gt; +-            dnl In libxml2-2.6, it includes &lt;libxml/xmlexports.h&gt; which is<br>
&gt; +-            dnl self-contained.<br>
&gt; +-            libxml2_include_dir=<br>
&gt; +-            AC_TRY_CPP([#include &lt;libxml2/libxml/xmlexports.h&gt;],<br>
&gt; +-              [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlexports.h])<br>
&gt; +-               libxml2_include_dir=`echo &quot;$gl_cv_absolute_libxml2_libxml_xmlexports_h&quot; | sed -e &#39;s,.libxml.xmlexports\.h$,,&#39;`<br>
&gt; +-              ])<br>
&gt; +-            if test -z &quot;$libxml2_include_dir&quot;; then<br>
&gt; +-              AC_TRY_CPP([#include &lt;libxml2/libxml/xmlversion.h&gt;],<br>
&gt; +-                [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlversion.h])<br>
&gt; +-                 libxml2_include_dir=`echo &quot;$gl_cv_absolute_libxml2_libxml_xmlversion_h&quot; | sed -e &#39;s,.libxml.xmlversion\.h$,,&#39;`<br>
&gt; +-                ])<br>
&gt; +-            fi<br>
&gt; +-            if test -n &quot;$libxml2_include_dir&quot; &amp;&amp; test -d &quot;$libxml2_include_dir&quot;; then<br>
&gt; +-              CPPFLAGS=&quot;$gl_save_CPPFLAGS -I$libxml2_include_dir&quot;<br>
&gt; +-              AC_TRY_LINK([#include &lt;libxml/xmlversion.h&gt;<br>
&gt; +-                           #include &lt;libxml/xmlmemory.h&gt;<br>
&gt; +-                           #include &lt;libxml/xpath.h&gt;<br>
&gt; +-                          ],<br>
&gt; +-                [xmlCheckVersion (0);<br>
&gt; +-                 xmlFree ((void *) 0);<br>
&gt; +-                 xmlXPathSetContextNode ((void *)0, (void *)0);<br>
&gt; +-                ],<br>
&gt; +-                [gl_cv_libxml=yes<br>
&gt; +-                 gl_cv_LIBXML=&quot;$LIBXML2 $LIBICONV&quot;<br>
&gt; +-                 gl_cv_LTLIBXML=&quot;$LTLIBXML2 $LTLIBICONV&quot;<br>
&gt; +-                 gl_cv_INCXML=&quot;-I$libxml2_include_dir&quot;<br>
&gt; +-                ])<br>
&gt; +-            fi<br>
&gt; +-          fi<br>
&gt; +-          CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; +-        fi<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; +-      ])<br>
&gt; +-      AC_MSG_CHECKING([for libxml])<br>
&gt; +-      AC_MSG_RESULT([$gl_cv_libxml])<br>
&gt; +-      if test $gl_cv_libxml = yes; then<br>
&gt; +-        LIBXML=&quot;$gl_cv_LIBXML&quot;<br>
&gt; +-        LTLIBXML=&quot;$gl_cv_LTLIBXML&quot;<br>
&gt; +-        INCXML=&quot;$gl_cv_INCXML&quot;<br>
&gt; +-      else<br>
&gt; +-        gl_cv_libxml_use_included=yes<br>
&gt; +-      fi<br>
&gt; ++      PKG_CHECK_MODULES([XML], [libxml-2.0])<br>
&gt; ++      LIBXML=$XML_LIBS<br>
&gt; ++      LTLIBXML=$XML_LIBS<br>
&gt; ++      INCXML=$XML_CFLAGS<br>
&gt; +     fi<br>
&gt; +   ])<br>
&gt; +   AC_SUBST([LIBXML])<br>
&gt; +diff --git a/libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c b/libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c<br>
&gt; +index 2cfd4a8..d42c8b4 100644<br>
&gt; +--- a/libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c<br>
&gt; ++++ b/libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c<br>
&gt; +@@ -22,15 +22,15 @@<br>
&gt; + <br>
&gt; + #include &lt;stdlib.h&gt;<br>
&gt; + <br>
&gt; +-#include &lt;cr-om-parser.h&gt;<br>
&gt; +-#include &lt;cr-sel-eng.h&gt;<br>
&gt; +-#include &lt;cr-style.h&gt;<br>
&gt; +-#include &lt;cr-rgb.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-om-parser.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-sel-eng.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-style.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-rgb.h&gt;<br>
&gt; + /* &lt;cr-fonts.h&gt; has a broken double-inclusion guard in libcroco-0.6.1.  */<br>
&gt; + #ifndef __CR_FONTS_H__<br>
&gt; +-# include &lt;cr-fonts.h&gt;<br>
&gt; ++# include &lt;libcroco/cr-fonts.h&gt;<br>
&gt; + #endif<br>
&gt; +-#include &lt;cr-string.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-string.h&gt;<br>
&gt; + <br>
&gt; + #include &quot;term-ostream.h&quot;<br>
&gt; + #include &quot;hash.h&quot;<br>
&gt; +diff --git a/libtextstyle/gnulib-local/m4/libcroco.m4 b/libtextstyle/gnulib-local/m4/libcroco.m4<br>
&gt; +index bc53cc6..10b2455 100644<br>
&gt; +--- a/libtextstyle/gnulib-local/m4/libcroco.m4<br>
&gt; ++++ b/libtextstyle/gnulib-local/m4/libcroco.m4<br>
&gt; +@@ -1,99 +1,34 @@<br>
&gt; +-# libcroco.m4 serial 3<br>
&gt; +-dnl Copyright (C) 2006-2007, 2019 Free Software Foundation, Inc.<br>
&gt; ++# libcroco.m4 serial 2 (gettext-0.17)<br>
&gt; ++dnl Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.<br>
&gt; + dnl This file is free software; the Free Software Foundation<br>
&gt; + dnl gives unlimited permission to copy and/or distribute it,<br>
&gt; + dnl with or without modifications, as long as this notice is preserved.<br>
&gt; + <br>
&gt; + dnl From Bruno Haible.<br>
&gt; + <br>
&gt; +-dnl gl_LIBCROCO<br>
&gt; +-dnl   gives the user the option to decide whether to use the included or<br>
&gt; +-dnl   an external libcroco.<br>
&gt; +-dnl gl_LIBCROCO(FORCE-INCLUDED)<br>
&gt; +-dnl   forces the use of the included or an external libcroco.<br>
&gt; + AC_DEFUN([gl_LIBCROCO],<br>
&gt; + [<br>
&gt; +-  ifelse([$1], [yes], , [<br>
&gt; +-    dnl libcroco depends on libglib.<br>
&gt; +-    AC_REQUIRE([gl_LIBGLIB])<br>
&gt; +-  ])<br>
&gt; ++  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; ++  dnl libcroco depends on libglib.<br>
&gt; ++  AC_REQUIRE([gl_LIBGLIB])<br>
&gt; + <br>
&gt; +-  ifelse([$1], , [<br>
&gt; +-    AC_MSG_CHECKING([whether included libcroco is requested])<br>
&gt; +-    AC_ARG_WITH([included-libcroco],<br>
&gt; +-      [  --with-included-libcroco  use the libcroco included here],<br>
&gt; +-      [gl_cv_libcroco_force_included=$withval],<br>
&gt; +-      [gl_cv_libcroco_force_included=no])<br>
&gt; +-    AC_MSG_RESULT([$gl_cv_libcroco_force_included])<br>
&gt; +-  ], [gl_cv_libcroco_force_included=$1])<br>
&gt; ++  AC_MSG_CHECKING([whether included libcroco is requested])<br>
&gt; ++  AC_ARG_WITH([included-libcroco],<br>
&gt; ++    [  --with-included-libcroco  use the libcroco included here],<br>
&gt; ++    [gl_cv_libcroco_force_included=$withval],<br>
&gt; ++    [gl_cv_libcroco_force_included=no])<br>
&gt; ++  AC_MSG_RESULT([$gl_cv_libcroco_force_included])<br>
&gt; + <br>
&gt; +   gl_cv_libcroco_use_included=&quot;$gl_cv_libcroco_force_included&quot;<br>
&gt; +   LIBCROCO=<br>
&gt; +   LTLIBCROCO=<br>
&gt; +   INCCROCO=<br>
&gt; +-  ifelse([$1], [yes], , [<br>
&gt; +-    if test &quot;$gl_cv_libcroco_use_included&quot; != yes; then<br>
&gt; +-      dnl Figure out whether we can use a preinstalled libcroco-0.6, or have to<br>
&gt; +-      dnl use the included one.<br>
&gt; +-      AC_CACHE_VAL([gl_cv_libcroco], [<br>
&gt; +-        gl_cv_libcroco=no<br>
&gt; +-        gl_cv_LIBCROCO=<br>
&gt; +-        gl_cv_LTLIBCROCO=<br>
&gt; +-        gl_cv_INCCROCO=<br>
&gt; +-        gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; +-        dnl Search for libcroco and define LIBCROCO_0_6, LTLIBCROCO_0_6 and<br>
&gt; +-        dnl INCCROCO_0_6 accordingly.<br>
&gt; +-        dnl Don&#39;t use croco-0.6-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; +-        dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; +-        dnl one that built the library.<br>
&gt; +-        AC_LIB_LINKFLAGS_BODY([croco-0.6], [glib-2.0])<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS $LIBCROCO_0_6&quot;<br>
&gt; +-        AC_TRY_LINK([#include &lt;libcroco-config.h&gt;],<br>
&gt; +-          [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; +-          [gl_cv_libcroco=yes<br>
&gt; +-           gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; +-           gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; +-          ])<br>
&gt; +-        if test &quot;$gl_cv_libcroco&quot; != yes; then<br>
&gt; +-          gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; +-          CPPFLAGS=&quot;$CPPFLAGS $INCCROCO_0_6&quot;<br>
&gt; +-          AC_TRY_LINK([#include &lt;libcroco-config.h&gt;],<br>
&gt; +-            [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; +-            [gl_cv_libcroco=yes<br>
&gt; +-             gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; +-             gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; +-             gl_cv_INCCROCO=&quot;$INCCROCO_0_6&quot;<br>
&gt; +-            ])<br>
&gt; +-          if test &quot;$gl_cv_libcroco&quot; != yes; then<br>
&gt; +-            dnl Often the include files are installed in<br>
&gt; +-            dnl /usr/include/libcroco-0.6/libcroco.<br>
&gt; +-            AC_TRY_LINK([#include &lt;libcroco-0.6/libcroco/libcroco-config.h&gt;],<br>
&gt; +-              [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; +-              [gl_ABSOLUTE_HEADER([libcroco-0.6/libcroco/libcroco-config.h])<br>
&gt; +-               libcroco_include_dir=`echo &quot;$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h&quot; | sed -e &#39;s,.libcroco-config\.h$,,&#39;`<br>
&gt; +-               if test -d &quot;$libcroco_include_dir&quot;; then<br>
&gt; +-                 gl_cv_libcroco=yes<br>
&gt; +-                 gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; +-                 gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; +-                 gl_cv_INCCROCO=&quot;-I$libcroco_include_dir&quot;<br>
&gt; +-               fi<br>
&gt; +-              ])<br>
&gt; +-          fi<br>
&gt; +-          CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; +-        fi<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; +-      ])<br>
&gt; +-      AC_MSG_CHECKING([for libcroco])<br>
&gt; +-      AC_MSG_RESULT([$gl_cv_libcroco])<br>
&gt; +-      if test $gl_cv_libcroco = yes; then<br>
&gt; +-        LIBCROCO=&quot;$gl_cv_LIBCROCO&quot;<br>
&gt; +-        LTLIBCROCO=&quot;$gl_cv_LTLIBCROCO&quot;<br>
&gt; +-        INCCROCO=&quot;$gl_cv_INCCROCO&quot;<br>
&gt; +-      else<br>
&gt; +-        gl_cv_libcroco_use_included=yes<br>
&gt; +-      fi<br>
&gt; +-    fi<br>
&gt; +-  ])<br>
&gt; ++  if test &quot;$gl_cv_libcroco_use_included&quot; != yes; then<br>
&gt; ++    PKG_CHECK_MODULES([CROCO], [libcroco-0.6])<br>
&gt; ++    LIBCROCO=$CROCO_LIBS<br>
&gt; ++    LTLIBCROCO=$CROCO_LIBS<br>
&gt; ++    INCCROCO=$CROCO_CFLAGS<br>
&gt; ++  fi<br>
&gt; +   AC_SUBST([LIBCROCO])<br>
&gt; +   AC_SUBST([LTLIBCROCO])<br>
&gt; +   AC_SUBST([INCCROCO])<br>
&gt; +diff --git a/libtextstyle/gnulib-local/m4/libglib.m4 b/libtextstyle/gnulib-local/m4/libglib.m4<br>
&gt; +index bef6fa3..8841755 100644<br>
&gt; +--- a/libtextstyle/gnulib-local/m4/libglib.m4<br>
&gt; ++++ b/libtextstyle/gnulib-local/m4/libglib.m4<br>
&gt; +@@ -1,105 +1,31 @@<br>
&gt; +-# libglib.m4 serial 4<br>
&gt; +-dnl Copyright (C) 2006-2007, 2019 Free Software Foundation, Inc.<br>
&gt; ++# libglib.m4 serial 3 (gettext-0.17)<br>
&gt; ++dnl Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.<br>
&gt; + dnl This file is free software; the Free Software Foundation<br>
&gt; + dnl gives unlimited permission to copy and/or distribute it,<br>
&gt; + dnl with or without modifications, as long as this notice is preserved.<br>
&gt; + <br>
&gt; + dnl From Bruno Haible.<br>
&gt; + <br>
&gt; +-dnl gl_LIBGLIB<br>
&gt; +-dnl   gives the user the option to decide whether to use the included or<br>
&gt; +-dnl   an external libglib.<br>
&gt; +-dnl gl_LIBGLIB(FORCE-INCLUDED)<br>
&gt; +-dnl   forces the use of the included or an external libglib.<br>
&gt; + AC_DEFUN([gl_LIBGLIB],<br>
&gt; + [<br>
&gt; +-  ifelse([$1], , [<br>
&gt; +-    AC_MSG_CHECKING([whether included glib is requested])<br>
&gt; +-    AC_ARG_WITH([included-glib],<br>
&gt; +-      [  --with-included-glib    use the glib2 included here],<br>
&gt; +-      [gl_cv_libglib_force_included=$withval],<br>
&gt; +-      [gl_cv_libglib_force_included=no])<br>
&gt; +-    AC_MSG_RESULT([$gl_cv_libglib_force_included])<br>
&gt; +-  ], [gl_cv_libglib_force_included=$1])<br>
&gt; ++  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; ++  AC_MSG_CHECKING([whether included glib is requested])<br>
&gt; ++  AC_ARG_WITH([included-glib],<br>
&gt; ++    [  --with-included-glib    use the glib2 included here],<br>
&gt; ++    [gl_cv_libglib_force_included=$withval],<br>
&gt; ++    [gl_cv_libglib_force_included=no])<br>
&gt; ++  AC_MSG_RESULT([$gl_cv_libglib_force_included])<br>
&gt; + <br>
&gt; +   gl_cv_libglib_use_included=&quot;$gl_cv_libglib_force_included&quot;<br>
&gt; +   LIBGLIB=<br>
&gt; +   LTLIBGLIB=<br>
&gt; +   INCGLIB=<br>
&gt; +-  ifelse([$1], [yes], , [<br>
&gt; +-    if test &quot;$gl_cv_libglib_use_included&quot; != yes; then<br>
&gt; +-      dnl Figure out whether we can use a preinstalled libglib-2.0, or have to use<br>
&gt; +-      dnl the included one.<br>
&gt; +-      AC_CACHE_VAL([gl_cv_libglib], [<br>
&gt; +-        gl_cv_libglib=no<br>
&gt; +-        gl_cv_LIBGLIB=<br>
&gt; +-        gl_cv_LTLIBGLIB=<br>
&gt; +-        gl_cv_INCGLIB=<br>
&gt; +-        gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; +-        dnl Search for libglib2 and define LIBGLIB_2_0, LTLIBGLIB_2_0 and<br>
&gt; +-        dnl INCGLIB_2_0 accordingly.<br>
&gt; +-        dnl Don&#39;t use glib-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; +-        dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; +-        dnl one that built the library.<br>
&gt; +-        AC_LIB_LINKFLAGS_BODY([glib-2.0])<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS $LIBGLIB_2_0&quot;<br>
&gt; +-        AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; +-#ifndef G_BEGIN_DECLS<br>
&gt; +-error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; +-#endif<br>
&gt; +-],<br>
&gt; +-          [g_string_new (&quot;foo&quot;);],<br>
&gt; +-          [gl_cv_libglib=yes<br>
&gt; +-           gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; +-           gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; +-          ])<br>
&gt; +-        if test &quot;$gl_cv_libglib&quot; != yes; then<br>
&gt; +-          gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; +-          CPPFLAGS=&quot;$CPPFLAGS $INCGLIB_2_0&quot;<br>
&gt; +-          AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; +-#ifndef G_BEGIN_DECLS<br>
&gt; +-error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; +-#endif<br>
&gt; +-],<br>
&gt; +-            [g_string_new (&quot;foo&quot;);],<br>
&gt; +-            [gl_cv_libglib=yes<br>
&gt; +-             gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; +-             gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; +-             gl_cv_INCGLIB=&quot;$INCGLIB_2_0&quot;<br>
&gt; +-            ])<br>
&gt; +-          if test &quot;$gl_cv_libglib&quot; != yes; then<br>
&gt; +-            dnl Often the include files are installed in /usr/include/glib-2.0<br>
&gt; +-            dnl and /usr/lib/glib-2.0/include.<br>
&gt; +-            if test -n &quot;$LIBGLIB_2_0_PREFIX&quot;; then<br>
&gt; +-              CPPFLAGS=&quot;$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include&quot;<br>
&gt; +-              AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; +-#ifndef G_BEGIN_DECLS<br>
&gt; +-error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; +-#endif<br>
&gt; +-],<br>
&gt; +-                [g_string_new (&quot;foo&quot;);],<br>
&gt; +-                [gl_cv_libglib=yes<br>
&gt; +-                 gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; +-                 gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; +-                 gl_cv_INCGLIB=&quot;-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include&quot;<br>
&gt; +-                ])<br>
&gt; +-            fi<br>
&gt; +-          fi<br>
&gt; +-          CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; +-        fi<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; +-      ])<br>
&gt; +-      AC_MSG_CHECKING([for glib])<br>
&gt; +-      AC_MSG_RESULT([$gl_cv_libglib])<br>
&gt; +-      if test $gl_cv_libglib = yes; then<br>
&gt; +-        LIBGLIB=&quot;$gl_cv_LIBGLIB&quot;<br>
&gt; +-        LTLIBGLIB=&quot;$gl_cv_LTLIBGLIB&quot;<br>
&gt; +-        INCGLIB=&quot;$gl_cv_INCGLIB&quot;<br>
&gt; +-      else<br>
&gt; +-        gl_cv_libglib_use_included=yes<br>
&gt; +-      fi<br>
&gt; +-    fi<br>
&gt; +-  ])<br>
&gt; ++  if test &quot;$gl_cv_libglib_use_included&quot; != yes; then<br>
&gt; ++    PKG_CHECK_MODULES([GLIB], [glib-2.0])<br>
&gt; ++    LIBGLIB=&quot;$GLIB_LIBS&quot;<br>
&gt; ++    LTLIBGLIB=&quot;$GLIB_LIBS&quot;<br>
&gt; ++    INCGLIB=&quot;$GLIB_CFLAGS&quot;<br>
&gt; ++  fi<br>
&gt; +   AC_SUBST([LIBGLIB])<br>
&gt; +   AC_SUBST([LTLIBGLIB])<br>
&gt; +   AC_SUBST([INCGLIB])<br>
&gt; +diff --git a/libtextstyle/gnulib-m4/libcroco.m4 b/libtextstyle/gnulib-m4/libcroco.m4<br>
&gt; +index bc53cc6..10b2455 100644<br>
&gt; +--- a/libtextstyle/gnulib-m4/libcroco.m4<br>
&gt; ++++ b/libtextstyle/gnulib-m4/libcroco.m4<br>
&gt; +@@ -1,99 +1,34 @@<br>
&gt; +-# libcroco.m4 serial 3<br>
&gt; +-dnl Copyright (C) 2006-2007, 2019 Free Software Foundation, Inc.<br>
&gt; ++# libcroco.m4 serial 2 (gettext-0.17)<br>
&gt; ++dnl Copyright (C) 2006, 2015-2016 Free Software Foundation, Inc.<br>
&gt; + dnl This file is free software; the Free Software Foundation<br>
&gt; + dnl gives unlimited permission to copy and/or distribute it,<br>
&gt; + dnl with or without modifications, as long as this notice is preserved.<br>
&gt; + <br>
&gt; + dnl From Bruno Haible.<br>
&gt; + <br>
&gt; +-dnl gl_LIBCROCO<br>
&gt; +-dnl   gives the user the option to decide whether to use the included or<br>
&gt; +-dnl   an external libcroco.<br>
&gt; +-dnl gl_LIBCROCO(FORCE-INCLUDED)<br>
&gt; +-dnl   forces the use of the included or an external libcroco.<br>
&gt; + AC_DEFUN([gl_LIBCROCO],<br>
&gt; + [<br>
&gt; +-  ifelse([$1], [yes], , [<br>
&gt; +-    dnl libcroco depends on libglib.<br>
&gt; +-    AC_REQUIRE([gl_LIBGLIB])<br>
&gt; +-  ])<br>
&gt; ++  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; ++  dnl libcroco depends on libglib.<br>
&gt; ++  AC_REQUIRE([gl_LIBGLIB])<br>
&gt; + <br>
&gt; +-  ifelse([$1], , [<br>
&gt; +-    AC_MSG_CHECKING([whether included libcroco is requested])<br>
&gt; +-    AC_ARG_WITH([included-libcroco],<br>
&gt; +-      [  --with-included-libcroco  use the libcroco included here],<br>
&gt; +-      [gl_cv_libcroco_force_included=$withval],<br>
&gt; +-      [gl_cv_libcroco_force_included=no])<br>
&gt; +-    AC_MSG_RESULT([$gl_cv_libcroco_force_included])<br>
&gt; +-  ], [gl_cv_libcroco_force_included=$1])<br>
&gt; ++  AC_MSG_CHECKING([whether included libcroco is requested])<br>
&gt; ++  AC_ARG_WITH([included-libcroco],<br>
&gt; ++    [  --with-included-libcroco  use the libcroco included here],<br>
&gt; ++    [gl_cv_libcroco_force_included=$withval],<br>
&gt; ++    [gl_cv_libcroco_force_included=no])<br>
&gt; ++  AC_MSG_RESULT([$gl_cv_libcroco_force_included])<br>
&gt; + <br>
&gt; +   gl_cv_libcroco_use_included=&quot;$gl_cv_libcroco_force_included&quot;<br>
&gt; +   LIBCROCO=<br>
&gt; +   LTLIBCROCO=<br>
&gt; +   INCCROCO=<br>
&gt; +-  ifelse([$1], [yes], , [<br>
&gt; +-    if test &quot;$gl_cv_libcroco_use_included&quot; != yes; then<br>
&gt; +-      dnl Figure out whether we can use a preinstalled libcroco-0.6, or have to<br>
&gt; +-      dnl use the included one.<br>
&gt; +-      AC_CACHE_VAL([gl_cv_libcroco], [<br>
&gt; +-        gl_cv_libcroco=no<br>
&gt; +-        gl_cv_LIBCROCO=<br>
&gt; +-        gl_cv_LTLIBCROCO=<br>
&gt; +-        gl_cv_INCCROCO=<br>
&gt; +-        gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; +-        dnl Search for libcroco and define LIBCROCO_0_6, LTLIBCROCO_0_6 and<br>
&gt; +-        dnl INCCROCO_0_6 accordingly.<br>
&gt; +-        dnl Don&#39;t use croco-0.6-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; +-        dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; +-        dnl one that built the library.<br>
&gt; +-        AC_LIB_LINKFLAGS_BODY([croco-0.6], [glib-2.0])<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS $LIBCROCO_0_6&quot;<br>
&gt; +-        AC_TRY_LINK([#include &lt;libcroco-config.h&gt;],<br>
&gt; +-          [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; +-          [gl_cv_libcroco=yes<br>
&gt; +-           gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; +-           gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; +-          ])<br>
&gt; +-        if test &quot;$gl_cv_libcroco&quot; != yes; then<br>
&gt; +-          gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; +-          CPPFLAGS=&quot;$CPPFLAGS $INCCROCO_0_6&quot;<br>
&gt; +-          AC_TRY_LINK([#include &lt;libcroco-config.h&gt;],<br>
&gt; +-            [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; +-            [gl_cv_libcroco=yes<br>
&gt; +-             gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; +-             gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; +-             gl_cv_INCCROCO=&quot;$INCCROCO_0_6&quot;<br>
&gt; +-            ])<br>
&gt; +-          if test &quot;$gl_cv_libcroco&quot; != yes; then<br>
&gt; +-            dnl Often the include files are installed in<br>
&gt; +-            dnl /usr/include/libcroco-0.6/libcroco.<br>
&gt; +-            AC_TRY_LINK([#include &lt;libcroco-0.6/libcroco/libcroco-config.h&gt;],<br>
&gt; +-              [const char *version = LIBCROCO_VERSION; return !version;],<br>
&gt; +-              [gl_ABSOLUTE_HEADER([libcroco-0.6/libcroco/libcroco-config.h])<br>
&gt; +-               libcroco_include_dir=`echo &quot;$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h&quot; | sed -e &#39;s,.libcroco-config\.h$,,&#39;`<br>
&gt; +-               if test -d &quot;$libcroco_include_dir&quot;; then<br>
&gt; +-                 gl_cv_libcroco=yes<br>
&gt; +-                 gl_cv_LIBCROCO=&quot;$LIBCROCO_0_6&quot;<br>
&gt; +-                 gl_cv_LTLIBCROCO=&quot;$LTLIBCROCO_0_6&quot;<br>
&gt; +-                 gl_cv_INCCROCO=&quot;-I$libcroco_include_dir&quot;<br>
&gt; +-               fi<br>
&gt; +-              ])<br>
&gt; +-          fi<br>
&gt; +-          CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; +-        fi<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; +-      ])<br>
&gt; +-      AC_MSG_CHECKING([for libcroco])<br>
&gt; +-      AC_MSG_RESULT([$gl_cv_libcroco])<br>
&gt; +-      if test $gl_cv_libcroco = yes; then<br>
&gt; +-        LIBCROCO=&quot;$gl_cv_LIBCROCO&quot;<br>
&gt; +-        LTLIBCROCO=&quot;$gl_cv_LTLIBCROCO&quot;<br>
&gt; +-        INCCROCO=&quot;$gl_cv_INCCROCO&quot;<br>
&gt; +-      else<br>
&gt; +-        gl_cv_libcroco_use_included=yes<br>
&gt; +-      fi<br>
&gt; +-    fi<br>
&gt; +-  ])<br>
&gt; ++  if test &quot;$gl_cv_libcroco_use_included&quot; != yes; then<br>
&gt; ++    PKG_CHECK_MODULES([CROCO], [libcroco-0.6])<br>
&gt; ++    LIBCROCO=$CROCO_LIBS<br>
&gt; ++    LTLIBCROCO=$CROCO_LIBS<br>
&gt; ++    INCCROCO=$CROCO_CFLAGS<br>
&gt; ++  fi<br>
&gt; +   AC_SUBST([LIBCROCO])<br>
&gt; +   AC_SUBST([LTLIBCROCO])<br>
&gt; +   AC_SUBST([INCCROCO])<br>
&gt; +diff --git a/libtextstyle/gnulib-m4/libglib.m4 b/libtextstyle/gnulib-m4/libglib.m4<br>
&gt; +index bef6fa3..8841755 100644<br>
&gt; +--- a/libtextstyle/gnulib-m4/libglib.m4<br>
&gt; ++++ b/libtextstyle/gnulib-m4/libglib.m4<br>
&gt; +@@ -1,105 +1,31 @@<br>
&gt; +-# libglib.m4 serial 4<br>
&gt; +-dnl Copyright (C) 2006-2007, 2019 Free Software Foundation, Inc.<br>
&gt; ++# libglib.m4 serial 3 (gettext-0.17)<br>
&gt; ++dnl Copyright (C) 2006-2007, 2015-2016 Free Software Foundation, Inc.<br>
&gt; + dnl This file is free software; the Free Software Foundation<br>
&gt; + dnl gives unlimited permission to copy and/or distribute it,<br>
&gt; + dnl with or without modifications, as long as this notice is preserved.<br>
&gt; + <br>
&gt; + dnl From Bruno Haible.<br>
&gt; + <br>
&gt; +-dnl gl_LIBGLIB<br>
&gt; +-dnl   gives the user the option to decide whether to use the included or<br>
&gt; +-dnl   an external libglib.<br>
&gt; +-dnl gl_LIBGLIB(FORCE-INCLUDED)<br>
&gt; +-dnl   forces the use of the included or an external libglib.<br>
&gt; + AC_DEFUN([gl_LIBGLIB],<br>
&gt; + [<br>
&gt; +-  ifelse([$1], , [<br>
&gt; +-    AC_MSG_CHECKING([whether included glib is requested])<br>
&gt; +-    AC_ARG_WITH([included-glib],<br>
&gt; +-      [  --with-included-glib    use the glib2 included here],<br>
&gt; +-      [gl_cv_libglib_force_included=$withval],<br>
&gt; +-      [gl_cv_libglib_force_included=no])<br>
&gt; +-    AC_MSG_RESULT([$gl_cv_libglib_force_included])<br>
&gt; +-  ], [gl_cv_libglib_force_included=$1])<br>
&gt; ++  AC_REQUIRE([PKG_PROG_PKG_CONFIG])<br>
&gt; ++  AC_MSG_CHECKING([whether included glib is requested])<br>
&gt; ++  AC_ARG_WITH([included-glib],<br>
&gt; ++    [  --with-included-glib    use the glib2 included here],<br>
&gt; ++    [gl_cv_libglib_force_included=$withval],<br>
&gt; ++    [gl_cv_libglib_force_included=no])<br>
&gt; ++  AC_MSG_RESULT([$gl_cv_libglib_force_included])<br>
&gt; + <br>
&gt; +   gl_cv_libglib_use_included=&quot;$gl_cv_libglib_force_included&quot;<br>
&gt; +   LIBGLIB=<br>
&gt; +   LTLIBGLIB=<br>
&gt; +   INCGLIB=<br>
&gt; +-  ifelse([$1], [yes], , [<br>
&gt; +-    if test &quot;$gl_cv_libglib_use_included&quot; != yes; then<br>
&gt; +-      dnl Figure out whether we can use a preinstalled libglib-2.0, or have to use<br>
&gt; +-      dnl the included one.<br>
&gt; +-      AC_CACHE_VAL([gl_cv_libglib], [<br>
&gt; +-        gl_cv_libglib=no<br>
&gt; +-        gl_cv_LIBGLIB=<br>
&gt; +-        gl_cv_LTLIBGLIB=<br>
&gt; +-        gl_cv_INCGLIB=<br>
&gt; +-        gl_save_LIBS=&quot;$LIBS&quot;<br>
&gt; +-        dnl Search for libglib2 and define LIBGLIB_2_0, LTLIBGLIB_2_0 and<br>
&gt; +-        dnl INCGLIB_2_0 accordingly.<br>
&gt; +-        dnl Don&#39;t use glib-config nor pkg-config, since it doesn&#39;t work when<br>
&gt; +-        dnl cross-compiling or when the C compiler in use is different from the<br>
&gt; +-        dnl one that built the library.<br>
&gt; +-        AC_LIB_LINKFLAGS_BODY([glib-2.0])<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS $LIBGLIB_2_0&quot;<br>
&gt; +-        AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; +-#ifndef G_BEGIN_DECLS<br>
&gt; +-error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; +-#endif<br>
&gt; +-],<br>
&gt; +-          [g_string_new (&quot;foo&quot;);],<br>
&gt; +-          [gl_cv_libglib=yes<br>
&gt; +-           gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; +-           gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; +-          ])<br>
&gt; +-        if test &quot;$gl_cv_libglib&quot; != yes; then<br>
&gt; +-          gl_save_CPPFLAGS=&quot;$CPPFLAGS&quot;<br>
&gt; +-          CPPFLAGS=&quot;$CPPFLAGS $INCGLIB_2_0&quot;<br>
&gt; +-          AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; +-#ifndef G_BEGIN_DECLS<br>
&gt; +-error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; +-#endif<br>
&gt; +-],<br>
&gt; +-            [g_string_new (&quot;foo&quot;);],<br>
&gt; +-            [gl_cv_libglib=yes<br>
&gt; +-             gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; +-             gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; +-             gl_cv_INCGLIB=&quot;$INCGLIB_2_0&quot;<br>
&gt; +-            ])<br>
&gt; +-          if test &quot;$gl_cv_libglib&quot; != yes; then<br>
&gt; +-            dnl Often the include files are installed in /usr/include/glib-2.0<br>
&gt; +-            dnl and /usr/lib/glib-2.0/include.<br>
&gt; +-            if test -n &quot;$LIBGLIB_2_0_PREFIX&quot;; then<br>
&gt; +-              CPPFLAGS=&quot;$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include&quot;<br>
&gt; +-              AC_TRY_LINK([#include &lt;glib.h&gt;<br>
&gt; +-#ifndef G_BEGIN_DECLS<br>
&gt; +-error this glib.h includes a glibconfig.h from a glib version 1.x<br>
&gt; +-#endif<br>
&gt; +-],<br>
&gt; +-                [g_string_new (&quot;foo&quot;);],<br>
&gt; +-                [gl_cv_libglib=yes<br>
&gt; +-                 gl_cv_LIBGLIB=&quot;$LIBGLIB_2_0&quot;<br>
&gt; +-                 gl_cv_LTLIBGLIB=&quot;$LTLIBGLIB_2_0&quot;<br>
&gt; +-                 gl_cv_INCGLIB=&quot;-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include&quot;<br>
&gt; +-                ])<br>
&gt; +-            fi<br>
&gt; +-          fi<br>
&gt; +-          CPPFLAGS=&quot;$gl_save_CPPFLAGS&quot;<br>
&gt; +-        fi<br>
&gt; +-        LIBS=&quot;$gl_save_LIBS&quot;<br>
&gt; +-      ])<br>
&gt; +-      AC_MSG_CHECKING([for glib])<br>
&gt; +-      AC_MSG_RESULT([$gl_cv_libglib])<br>
&gt; +-      if test $gl_cv_libglib = yes; then<br>
&gt; +-        LIBGLIB=&quot;$gl_cv_LIBGLIB&quot;<br>
&gt; +-        LTLIBGLIB=&quot;$gl_cv_LTLIBGLIB&quot;<br>
&gt; +-        INCGLIB=&quot;$gl_cv_INCGLIB&quot;<br>
&gt; +-      else<br>
&gt; +-        gl_cv_libglib_use_included=yes<br>
&gt; +-      fi<br>
&gt; +-    fi<br>
&gt; +-  ])<br>
&gt; ++  if test &quot;$gl_cv_libglib_use_included&quot; != yes; then<br>
&gt; ++    PKG_CHECK_MODULES([GLIB], [glib-2.0])<br>
&gt; ++    LIBGLIB=&quot;$GLIB_LIBS&quot;<br>
&gt; ++    LTLIBGLIB=&quot;$GLIB_LIBS&quot;<br>
&gt; ++    INCGLIB=&quot;$GLIB_CFLAGS&quot;<br>
&gt; ++  fi<br>
&gt; +   AC_SUBST([LIBGLIB])<br>
&gt; +   AC_SUBST([LTLIBGLIB])<br>
&gt; +   AC_SUBST([INCGLIB])<br>
&gt; +diff --git a/libtextstyle/lib/term-styled-ostream.c b/libtextstyle/lib/term-styled-ostream.c<br>
&gt; +index 3675b5f..811e546 100644<br>
&gt; +--- a/libtextstyle/lib/term-styled-ostream.c<br>
&gt; ++++ b/libtextstyle/lib/term-styled-ostream.c<br>
&gt; +@@ -28,15 +28,15 @@<br>
&gt; + <br>
&gt; + #include &lt;stdlib.h&gt;<br>
&gt; + <br>
&gt; +-#include &lt;cr-om-parser.h&gt;<br>
&gt; +-#include &lt;cr-sel-eng.h&gt;<br>
&gt; +-#include &lt;cr-style.h&gt;<br>
&gt; +-#include &lt;cr-rgb.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-om-parser.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-sel-eng.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-style.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-rgb.h&gt;<br>
&gt; + /* &lt;cr-fonts.h&gt; has a broken double-inclusion guard in libcroco-0.6.1.  */<br>
&gt; + #ifndef __CR_FONTS_H__<br>
&gt; +-# include &lt;cr-fonts.h&gt;<br>
&gt; ++# include &lt;libcroco/cr-fonts.h&gt;<br>
&gt; + #endif<br>
&gt; +-#include &lt;cr-string.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-string.h&gt;<br>
&gt; + <br>
&gt; + #include &quot;term-ostream.h&quot;<br>
&gt; + #include &quot;hash.h&quot;<br>
&gt; +diff --git a/libtextstyle/lib/term-styled-ostream.oo.c b/libtextstyle/lib/term-styled-ostream.oo.c<br>
&gt; +index 2cfd4a8..d42c8b4 100644<br>
&gt; +--- a/libtextstyle/lib/term-styled-ostream.oo.c<br>
&gt; ++++ b/libtextstyle/lib/term-styled-ostream.oo.c<br>
&gt; +@@ -22,15 +22,15 @@<br>
&gt; + <br>
&gt; + #include &lt;stdlib.h&gt;<br>
&gt; + <br>
&gt; +-#include &lt;cr-om-parser.h&gt;<br>
&gt; +-#include &lt;cr-sel-eng.h&gt;<br>
&gt; +-#include &lt;cr-style.h&gt;<br>
&gt; +-#include &lt;cr-rgb.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-om-parser.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-sel-eng.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-style.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-rgb.h&gt;<br>
&gt; + /* &lt;cr-fonts.h&gt; has a broken double-inclusion guard in libcroco-0.6.1.  */<br>
&gt; + #ifndef __CR_FONTS_H__<br>
&gt; +-# include &lt;cr-fonts.h&gt;<br>
&gt; ++# include &lt;libcroco/cr-fonts.h&gt;<br>
&gt; + #endif<br>
&gt; +-#include &lt;cr-string.h&gt;<br>
&gt; ++#include &lt;libcroco/cr-string.h&gt;<br>
&gt; + <br>
&gt; + #include &quot;term-ostream.h&quot;<br>
&gt; + #include &quot;hash.h&quot;<br>
&gt; diff --git a/meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">gettext_0.19.8.1.bb</a> b/meta/recipes-core/gettext/<a href="http://gettext_0.20.1.bb" rel="noreferrer" target="_blank">gettext_0.20.1.bb</a><br>
&gt; similarity index 94%<br>
&gt; rename from meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">gettext_0.19.8.1.bb</a><br>
&gt; rename to meta/recipes-core/gettext/<a href="http://gettext_0.20.1.bb" rel="noreferrer" target="_blank">gettext_0.20.1.bb</a><br>
&gt; index 30121ad23e1..fc05ef2e0a3 100644<br>
&gt; --- a/meta/recipes-core/gettext/<a href="http://gettext_0.19.8.1.bb" rel="noreferrer" target="_blank">gettext_0.19.8.1.bb</a><br>
&gt; +++ b/meta/recipes-core/gettext/<a href="http://gettext_0.20.1.bb" rel="noreferrer" target="_blank">gettext_0.20.1.bb</a><br>
&gt; @@ -6,7 +6,7 @@ a few stand-alone programs to massage in various ways the sets of translatable a<br>
&gt;  HOMEPAGE = &quot;<a href="http://www.gnu.org/software/gettext/gettext.html" rel="noreferrer" target="_blank">http://www.gnu.org/software/gettext/gettext.html</a>&quot;<br>
&gt;  SECTION = &quot;libs&quot;<br>
&gt;  LICENSE = &quot;GPLv3+ &amp; LGPL-2.1+&quot;<br>
&gt; -LIC_FILES_CHKSUM = &quot;file://COPYING;md5=d32239bcb673463ab874e80d47fae504&quot;<br>
&gt; +LIC_FILES_CHKSUM = &quot;file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e&quot;<br>
&gt;  <br>
&gt;  # Because po-gram-gen.y has been modified by fix-CVE-2018-18751.patch,<br>
&gt;  # it requires yacc which provided by bison-native<br>
&gt; @@ -17,17 +17,16 @@ PROVIDES = &quot;virtual/libintl virtual/gettext&quot;<br>
&gt;  PROVIDES_class-native = &quot;virtual/gettext-native&quot;<br>
&gt;  RCONFLICTS_${PN} = &quot;proxy-libintl&quot;<br>
&gt;  SRC_URI = &quot;${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \<br>
&gt; -        file://parallel.patch \<br>
&gt; -        file://add-with-bisonlocaledir.patch \<br>
&gt; -        file://cr-statement.c-timsort.h-fix-formatting-issues.patch \<br>
&gt; -        file://use-pkgconfig.patch \<br>
&gt; -        file://fix-CVE-2018-18751.patch \<br>
&gt; -        file://run-ptest \<br>
&gt; -        file://serial-tests-config.patch \<br>
&gt; -&quot;<br>
&gt; +           file://parallel.patch \<br>
&gt; +           file://add-with-bisonlocaledir.patch \<br>
&gt; +           file://cr-statement.c-timsort.h-fix-formatting-issues.patch \<br>
&gt; +           file://use-pkgconfig.patch \<br>
&gt; +           file://run-ptest \<br>
&gt; +           file://serial-tests-config.patch \<br>
&gt; +           &quot;<br>
&gt;  <br>
&gt; -SRC_URI[md5sum] = &quot;97e034cf8ce5ba73a28ff6c3c0638092&quot;<br>
&gt; -SRC_URI[sha256sum] = &quot;ff942af0e438ced4a8b0ea4b0b6e0d6d657157c5e2364de57baa279c1c125c43&quot;<br>
&gt; +SRC_URI[md5sum] = &quot;bb5b0c0caa028105f3ca1905ddc306e2&quot;<br>
&gt; +SRC_URI[sha256sum] = &quot;66415634c6e8c3fa8b71362879ec7575e27da43da562c798a8a2f223e6e47f5c&quot;<br>
&gt;  <br>
&gt;  inherit autotools texinfo pkgconfig ptest<br>
&gt;  <br>
&gt; @@ -127,7 +126,7 @@ do_install_append_class-native () {<br>
&gt;       rm ${D}${datadir}/gettext/po/remove-potcdate.sin<br>
&gt;  <br>
&gt;          create_wrapper ${D}${bindir}/msgfmt \<br>
&gt; -                GETTEXTDATADIR=&quot;${STAGING_DATADIR_NATIVE}/gettext-0.19.8/&quot;<br>
&gt; +                GETTEXTDATADIR=&quot;${STAGING_DATADIR_NATIVE}/gettext-0.20/&quot;<br>
&gt;  <br>
&gt;  }<br>
&gt;  <br>
<br>
</blockquote></div></div>