summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorLee Chee Yang <chee.yang.lee@intel.com>2020-06-02 23:15:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-04 13:27:32 +0100
commite0b8083761fc1512227f1589fadb03a36243eb88 (patch)
treea076ddf33b10fa75a2c3b7cd6922b5099689c6b3 /meta/recipes-core
parenta5bb13b43f39c928ba1f59bf8cac6a5835d80c77 (diff)
downloadpoky-e0b8083761fc1512227f1589fadb03a36243eb88.tar.gz
glib-2.0: 2.64.2 -> 2.64.3
remove patch which already upstream https://gitlab.gnome.org/GNOME/glib/-/commit/3c5512222c203d916a0a2a02312d8415f921dce9 (From OE-Core rev: 265a19308ad7dad1970c2d439103b7b485c4fbfc) Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0/0001-meson-Don-t-misdetect-stpcpy-on-windows-platforms-on.patch53
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0_2.64.3.bb (renamed from meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb)5
2 files changed, 2 insertions, 56 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0001-meson-Don-t-misdetect-stpcpy-on-windows-platforms-on.patch b/meta/recipes-core/glib-2.0/glib-2.0/0001-meson-Don-t-misdetect-stpcpy-on-windows-platforms-on.patch
deleted file mode 100644
index 855bdfc0d9..0000000000
--- a/meta/recipes-core/glib-2.0/glib-2.0/0001-meson-Don-t-misdetect-stpcpy-on-windows-platforms-on.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From d4b1fd9cdb7ae07fa6be941ac95f97ece175fe55 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
3Date: Tue, 31 Mar 2020 23:54:17 +0300
4Subject: [PATCH] meson: Don't misdetect stpcpy on windows platforms on clang
5
6See https://github.com/mesonbuild/meson/issues/3672 and
7https://github.com/mesonbuild/meson/issues/5628 for explanations
8of cases where meson misdetects functions due to clang builtins (that
9always are available, regardless of whether the platform actually
10provides them).
11
12The same also happens on GCC 10, which added support for __has_builtin.
13
14Upstream-Status: Backport [https://github.com/GNOME/glib/commit/1b94bfbd72dbbfb696fa68f3742f40998096b438]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 meson.build | 16 +++++++++++++---
18 1 file changed, 13 insertions(+), 3 deletions(-)
19
20diff --git a/meson.build b/meson.build
21index 72ca194..bbdac1c 100644
22--- a/meson.build
23+++ b/meson.build
24@@ -533,13 +533,23 @@ foreach f : functions
25 endif
26 endforeach
27
28-# Check that stpcpy() is usable; must use header
29-if cc.has_function('stpcpy', prefix : '#include <string.h>')
30+# Check that stpcpy() is usable; must use header.
31+# cc.has_function() in some cases (clang, gcc 10+) assumes that if the
32+# compiler provides a builtin of the same name that the function exists, while
33+# it's in fact not provided by any header or library. This is true for
34+# stpcpy() on Windows using clang and gcc as well as posix_memalign() using
35+# gcc on Windows. Skip these checks on Windows for now to avoid false
36+# positives. See https://github.com/mesonbuild/meson/pull/7116,
37+# https://github.com/mesonbuild/meson/issues/3672 and
38+# https://github.com/mesonbuild/meson/issues/5628.
39+# FIXME: Once meson no longer returns success for stpcpy() and
40+# posix_memalign() on Windows using GCC and clang we can remove this.
41+if host_system != 'windows' and cc.has_function('stpcpy', prefix : '#include <string.h>')
42 glib_conf.set('HAVE_STPCPY', 1)
43 endif
44
45 # Check that posix_memalign() is usable; must use header
46-if cc.has_function('posix_memalign', prefix : '#include <stdlib.h>')
47+if host_system != 'windows' and cc.has_function('posix_memalign', prefix : '#include <stdlib.h>')
48 glib_conf.set('HAVE_POSIX_MEMALIGN', 1)
49 endif
50
51--
522.26.2
53
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.64.3.bb
index d6207b5b1a..2e5f7a0e2a 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.64.2.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.64.3.bb
@@ -16,13 +16,12 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
16 file://0001-Do-not-write-bindir-into-pkg-config-files.patch \ 16 file://0001-Do-not-write-bindir-into-pkg-config-files.patch \
17 file://0001-meson-Run-atomics-test-on-clang-as-well.patch \ 17 file://0001-meson-Run-atomics-test-on-clang-as-well.patch \
18 file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \ 18 file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \
19 file://0001-meson-Don-t-misdetect-stpcpy-on-windows-platforms-on.patch \
20 " 19 "
21 20
22SRC_URI_append_class-native = " file://relocate-modules.patch" 21SRC_URI_append_class-native = " file://relocate-modules.patch"
23 22
24SRC_URI[md5sum] = "78b6bda8664763a09bd12d864c0ba46c" 23SRC_URI[md5sum] = "ccc48e58545cac45f5b3df3b8aeaff13"
25SRC_URI[sha256sum] = "9a2f21ed8f13b9303399de13a0252b7cbcede593d26971378ec6cb90e87f2277" 24SRC_URI[sha256sum] = "fe9cbc97925d14c804935f067a3ad77ef55c0bbe9befe68962318f5a767ceb22"
26 25
27# Find any meson cross files in FILESPATH that are relevant for the current 26# Find any meson cross files in FILESPATH that are relevant for the current
28# build (using siteinfo) and add them to EXTRA_OEMESON. 27# build (using siteinfo) and add them to EXTRA_OEMESON.