[OE-core] [PATCH 8/9] glib-2.0: upgrade 2.58.0 -> 2.58.2

Burton, Ross ross.burton at intel.com
Wed Dec 19 16:41:59 UTC 2018


Sorry but anything past 2.58.1 is going to be a pain:

| /bin/bash: /usr/bin/glib-mkenums: No such file or directory
| /bin/bash: /usr/bin/glib-mkenums: No such file or directory
| ../../libsoup-2.64.2/Makefile.glib:241: recipe for target
'soup-enum-types.h.stamp' failed

The glib pkgconfig files now contain absolute paths, but they're
target paths so when we used them from a sysroot it fails.  Upstream
thinks that we should be setting
GLIB_MKENUMS=/path/to/sysroot/usr/bin/glib-mkenums but that really
doesn't scale.

For now I think we just revert the change to put absolute paths into
the sysroot.  When everything has moved to Meson in theory this is
just a matter of passing native=True to the pkgconfig function, but
that's also untested.

Ross
On Wed, 19 Dec 2018 at 07:30, Anuj Mittal <anuj.mittal at intel.com> wrote:
>
> * For changes, see:
> https://gitlab.gnome.org/GNOME/glib/blob/glib-2-58/NEWS
>
> * Upstreamed patch removed: date-lt.patch
>
> * Tweaked another to remove a hunk trying to find a binary from
> glib-2.0-native which isn't needed anymore as the code is in python
> now.
>
> * Add locale-base-pl-pl to RDEPENDS for ptest as the fix has been
> resolved and merged.
>
> * Remove libdir INSANE_SKIP for ptest package. The only libs present
> here are in libexecdir which is allowed by the check.
>
> Signed-off-by: Anuj Mittal <anuj.mittal at intel.com>
> ---
>  ...ble-more-tests-while-cross-compiling.patch | 42 ++++---------------
>  .../glib-2.0/glib-2.0/date-lt.patch           | 20 ---------
>  .../glib-2.0/glib-2.0/relocate-modules.patch  |  2 +-
>  ...{glib-2.0_2.58.0.bb => glib-2.0_2.58.2.bb} |  7 ++--
>  meta/recipes-core/glib-2.0/glib.inc           |  5 +--
>  5 files changed, 12 insertions(+), 64 deletions(-)
>  delete mode 100644 meta/recipes-core/glib-2.0/glib-2.0/date-lt.patch
>  rename meta/recipes-core/glib-2.0/{glib-2.0_2.58.0.bb => glib-2.0_2.58.2.bb} (80%)
>
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch b/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch
> index 50781e7892..5060880926 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch
> +++ b/meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch
> @@ -1,4 +1,4 @@
> -From 4b1a6d247c78125096a6ea5ab3cab8a1f000dc23 Mon Sep 17 00:00:00 2001
> +From 70e462e070f8eb20b7660c1cf88271c0449e43cc Mon Sep 17 00:00:00 2001
>  From: Jussi Kukkonen <jussi.kukkonen at intel.com>
>  Date: Mon, 9 Nov 2015 11:07:27 +0200
>  Subject: [PATCH] Enable more tests while cross-compiling
> @@ -9,17 +9,15 @@ case we can depend on glib-2.0-native.
>
>  Upstream-Status: Inappropriate [OE specific]
>  Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
> -
>  ---
> - gio/tests/Makefile.am     | 10 ++++++----
> - tests/gobject/Makefile.am |  8 +++++---
> - 2 files changed, 11 insertions(+), 7 deletions(-)
> + gio/tests/Makefile.am | 10 ++++++----
> + 1 file changed, 6 insertions(+), 4 deletions(-)
>
>  diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am
> -index 1f0bed7..8295deb 100644
> +index c4e7a92..633e85c 100644
>  --- a/gio/tests/Makefile.am
>  +++ b/gio/tests/Makefile.am
> -@@ -550,10 +550,9 @@ test_programs += \
> +@@ -583,10 +583,9 @@ test_programs += \
>   endif
>
>   # -----------------------------------------------------------------------------
> @@ -32,7 +30,7 @@ index 1f0bed7..8295deb 100644
>   test_programs += resources
>   resources_SOURCES = resources.c
>   nodist_resources_SOURCES = test_resources.c test_resources2.c test_resources2.h
> -@@ -578,7 +577,11 @@ if !ENABLE_INSTALLED_TESTS
> +@@ -611,7 +610,11 @@ if !ENABLE_INSTALLED_TESTS
>   libresourceplugin_la_LDFLAGS += -rpath /
>   endif
>
> @@ -44,7 +42,7 @@ index 1f0bed7..8295deb 100644
>
>   test-generated.txt: test1.txt
>         $(AM_V_GEN) echo "Generated" > $@ && \
> -@@ -599,7 +602,6 @@ test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) --
> +@@ -632,7 +635,6 @@ test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) --
>
>   EXTRA_DIST += test.gresource.xml test1.txt test2.gresource.xml test2.txt test3.gresource.xml test3.txt test4.gresource.xml
>   CLEANFILES += test-generated.txt test_resources.c test_resources2.[ch] plugin_resources.c test.gresource
> @@ -52,29 +50,3 @@ index 1f0bed7..8295deb 100644
>
>   BUILT_SOURCES += giotypefuncs.inc
>
> -diff --git a/tests/gobject/Makefile.am b/tests/gobject/Makefile.am
> -index 0e60987..927d13a 100644
> ---- a/tests/gobject/Makefile.am
> -+++ b/tests/gobject/Makefile.am
> -@@ -51,10 +51,13 @@ if ENABLE_TIMELOOP
> - installed_test_programs += timeloop-closure
> - endif
> -
> --# The marshal test requires running a binary, which means we cannot
> --# build it when cross-compiling
> -+# The marshal test requires running a binary, which means we require
> -+# glib-native when cross-compiling
> - if !CROSS_COMPILING
> - glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
> -+else
> -+glib_genmarshal=$(shell which glib-genmarshal)
> -+endif
> -
> - testmarshal.h: stamp-testmarshal.h
> -       @true
> -@@ -71,4 +74,3 @@ testmarshal.c: testmarshal.h testmarshal.list $(glib_genmarshal)
> - BUILT_SOURCES += testmarshal.h testmarshal.c
> - CLEANFILES += stamp-testmarshal.h testmarshal.h testmarshal.c
> - EXTRA_DIST += testcommon.h testmarshal.list
> --endif # !CROSS_COMPILING
> -\ No newline at end of file
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0/date-lt.patch b/meta/recipes-core/glib-2.0/glib-2.0/date-lt.patch
> deleted file mode 100644
> index dd0aff7281..0000000000
> --- a/meta/recipes-core/glib-2.0/glib-2.0/date-lt.patch
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -Update Lithuanian month names in the test suite as glibc changed the translations.
> -
> -Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/glib/merge_requests/373]
> -Signed-off-by: Ross Burton <ross.burton at intel.com>
> -
> -diff --git a/glib/tests/date.c b/glib/tests/date.c
> -index b801ca704..6646c227c 100644
> ---- a/glib/tests/date.c
> -+++ b/glib/tests/date.c
> -@@ -365,8 +365,8 @@ test_month_names (void)
> -       TEST_DATE ( 1,  4, 2018,      "%Y m. %OB",      "2018 m. balandis");
> -       TEST_DATE ( 1,  5, 2018,      "%Y m. %OB",        "2018 m. gegužė");
> -       TEST_DATE ( 1,  6, 2018,      "%Y m. %OB",      "2018 m. birželis");
> --      TEST_DATE (17,  7, 2018, "%Y m. %b %e d.",     "2018 m. Lie 17 d.");
> --      TEST_DATE ( 1,  8, 2018,      "%Y m. %Ob",           "2018 m. Rgp");
> -+      TEST_DATE (17,  7, 2018, "%Y m. %b %e d.",   "2018 m. Liep. 17 d.");
> -+      TEST_DATE ( 1,  8, 2018,      "%Y m. %Ob",         "2018 m. rugp.");
> -     }
> -   else
> -     g_test_skip ("locale lt_LT not available, skipping Lithuanian month names test");
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch b/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch
> index f9794d3dd2..9ec011a095 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch
> +++ b/meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch
> @@ -1,4 +1,4 @@
> -From 8326961841f4d16c7239e747de11e3817c35cfd2 Mon Sep 17 00:00:00 2001
> +From 43967e85b7a87f9c2e780504ef30f4c9bf56f8f5 Mon Sep 17 00:00:00 2001
>  From: Ross Burton <ross.burton at intel.com>
>  Date: Fri, 11 Mar 2016 15:35:55 +0000
>  Subject: [PATCH] glib-2.0: relocate the GIO module directory for native builds
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.58.0.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.58.2.bb
> similarity index 80%
> rename from meta/recipes-core/glib-2.0/glib-2.0_2.58.0.bb
> rename to meta/recipes-core/glib-2.0/glib-2.0_2.58.2.bb
> index 1271a7c269..371c09826f 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0_2.58.0.bb
> +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.58.2.bb
> @@ -8,15 +8,14 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
>             file://configure-libtool.patch \
>             file://run-ptest \
>             file://uclibc_musl_translation.patch \
> -           file://0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch \
>             file://Enable-more-tests-while-cross-compiling.patch \
> +           file://0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch \
>             file://0001-Install-gio-querymodules-as-libexec_PROGRAM.patch \
>             file://0001-Do-not-ignore-return-value-of-write.patch \
>             file://0010-Do-not-hardcode-python-path-into-various-tools.patch \
> -           file://date-lt.patch \
>             "
>
>  SRC_URI_append_class-native = " file://relocate-modules.patch"
>
> -SRC_URI[md5sum] = "9b5d21c802f55bf37171c4fbfe7d32d1"
> -SRC_URI[sha256sum] = "c0f4ce0730b4f95c47b711613b5406a887c2ee13ea6d25930d72a4fa7fdb77f6"
> +SRC_URI[md5sum] = "8483db194fd8a4653394a1413df97a4c"
> +SRC_URI[sha256sum] = "c7b24ed6536f1a10fc9bce7994e55c427b727602e78342821f1f07fb48753d4b"
> diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
> index a868b6df23..c9093cee86 100644
> --- a/meta/recipes-core/glib-2.0/glib.inc
> +++ b/meta/recipes-core/glib-2.0/glib.inc
> @@ -142,8 +142,6 @@ RDEPENDS_${PN}-ptest += "\
>              shared-mime-info \
>             "
>
> -# When https://gitlab.gnome.org/GNOME/glib/issues/1343 is
> -# fixed add locale-base-pl-pl
>  RDEPENDS_${PN}-ptest_append_libc-glibc = "\
>              glibc-gconv-utf-16 \
>              glibc-charmap-utf-8 \
> @@ -167,6 +165,5 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
>              locale-base-fr-fr \
>              locale-base-es-es \
>              locale-base-en-gb \
> +            locale-base-pl-pl \
>             "
> -
> -INSANE_SKIP_${PN}-ptest += "libdir"
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list