diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-10-11 11:40:45 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 11:48:46 +0100 |
commit | a8ff4b25c7bb5c983cd7e86bd60cd408ada0feaf (patch) | |
tree | f95555df460339437e550ad0ccd9a2a9dac6b8fb /meta/recipes-core/glib-2.0 | |
parent | 1c3c69d10095a8c14c622c81edc760bd6516953d (diff) | |
download | poky-a8ff4b25c7bb5c983cd7e86bd60cd408ada0feaf.tar.gz |
glib-2.0: update 2.68.4 -> 2.70.0
Internal copy of pcre is no longer provided.
(From OE-Core rev: e359ee75e67b72eeb73eddbc1bc46549e00dded5)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/Enable-more-tests-while-cross-compiling.patch | 26 | ||||
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/relocate-modules.patch | 8 | ||||
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/time-test.patch | 40 | ||||
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.70.0.bb (renamed from meta/recipes-core/glib-2.0/glib-2.0_2.68.4.bb) | 3 | ||||
-rw-r--r-- | meta/recipes-core/glib-2.0/glib.inc | 5 |
5 files changed, 20 insertions, 62 deletions
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 41ecfa1df8..9bbb33ffc1 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 @@ | |||
1 | From 7cde170afe6854d674b50e32b4c1d3b511be9abe Mon Sep 17 00:00:00 2001 | 1 | From 73b1c416674d285b021e218da1a3ddb884e606da Mon Sep 17 00:00:00 2001 |
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | 2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> |
3 | Date: Mon, 9 Nov 2015 11:07:27 +0200 | 3 | Date: Mon, 9 Nov 2015 11:07:27 +0200 |
4 | Subject: [PATCH] Enable more tests while cross-compiling | 4 | Subject: [PATCH] Enable more tests while cross-compiling |
@@ -15,10 +15,10 @@ Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | |||
15 | 1 file changed, 12 insertions(+), 12 deletions(-) | 15 | 1 file changed, 12 insertions(+), 12 deletions(-) |
16 | 16 | ||
17 | diff --git a/gio/tests/meson.build b/gio/tests/meson.build | 17 | diff --git a/gio/tests/meson.build b/gio/tests/meson.build |
18 | index 788cf97..dab65d2 100644 | 18 | index 5dbfb8e..3fd7998 100644 |
19 | --- a/gio/tests/meson.build | 19 | --- a/gio/tests/meson.build |
20 | +++ b/gio/tests/meson.build | 20 | +++ b/gio/tests/meson.build |
21 | @@ -203,7 +203,7 @@ if host_machine.system() != 'windows' | 21 | @@ -221,7 +221,7 @@ if host_machine.system() != 'windows' |
22 | 22 | ||
23 | # Test programs that need to bring up a session bus (requires dbus-daemon) | 23 | # Test programs that need to bring up a session bus (requires dbus-daemon) |
24 | have_dbus_daemon = find_program('dbus-daemon', required : false).found() | 24 | have_dbus_daemon = find_program('dbus-daemon', required : false).found() |
@@ -27,7 +27,7 @@ index 788cf97..dab65d2 100644 | |||
27 | annotate_args = [ | 27 | annotate_args = [ |
28 | '--annotate', 'org.project.Bar', 'Key1', 'Value1', | 28 | '--annotate', 'org.project.Bar', 'Key1', 'Value1', |
29 | '--annotate', 'org.project.Bar', 'org.gtk.GDBus.Internal', 'Value2', | 29 | '--annotate', 'org.project.Bar', 'org.gtk.GDBus.Internal', 'Value2', |
30 | @@ -548,12 +548,12 @@ if installed_tests_enabled | 30 | @@ -570,12 +570,12 @@ if installed_tests_enabled |
31 | endforeach | 31 | endforeach |
32 | endif | 32 | endif |
33 | 33 | ||
@@ -42,7 +42,7 @@ index 788cf97..dab65d2 100644 | |||
42 | '--target=@OUTPUT@', | 42 | '--target=@OUTPUT@', |
43 | '--sourcedir=' + meson.current_source_dir(), | 43 | '--sourcedir=' + meson.current_source_dir(), |
44 | '--generate-source', | 44 | '--generate-source', |
45 | @@ -577,7 +577,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 45 | @@ -599,7 +599,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
46 | test_gresource = custom_target('test.gresource', | 46 | test_gresource = custom_target('test.gresource', |
47 | input : 'test.gresource.xml', | 47 | input : 'test.gresource.xml', |
48 | output : 'test.gresource', | 48 | output : 'test.gresource', |
@@ -51,7 +51,7 @@ index 788cf97..dab65d2 100644 | |||
51 | '--target=@OUTPUT@', | 51 | '--target=@OUTPUT@', |
52 | '--sourcedir=' + meson.current_source_dir(), | 52 | '--sourcedir=' + meson.current_source_dir(), |
53 | '--sourcedir=' + meson.current_build_dir(), | 53 | '--sourcedir=' + meson.current_build_dir(), |
54 | @@ -588,7 +588,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 54 | @@ -610,7 +610,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
55 | test_resources2_c = custom_target('test_resources2.c', | 55 | test_resources2_c = custom_target('test_resources2.c', |
56 | input : 'test3.gresource.xml', | 56 | input : 'test3.gresource.xml', |
57 | output : 'test_resources2.c', | 57 | output : 'test_resources2.c', |
@@ -60,7 +60,7 @@ index 788cf97..dab65d2 100644 | |||
60 | '--target=@OUTPUT@', | 60 | '--target=@OUTPUT@', |
61 | '--sourcedir=' + meson.current_source_dir(), | 61 | '--sourcedir=' + meson.current_source_dir(), |
62 | '--generate', | 62 | '--generate', |
63 | @@ -599,7 +599,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 63 | @@ -621,7 +621,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
64 | test_resources2_h = custom_target('test_resources2.h', | 64 | test_resources2_h = custom_target('test_resources2.h', |
65 | input : 'test3.gresource.xml', | 65 | input : 'test3.gresource.xml', |
66 | output : 'test_resources2.h', | 66 | output : 'test_resources2.h', |
@@ -69,7 +69,7 @@ index 788cf97..dab65d2 100644 | |||
69 | '--target=@OUTPUT@', | 69 | '--target=@OUTPUT@', |
70 | '--sourcedir=' + meson.current_source_dir(), | 70 | '--sourcedir=' + meson.current_source_dir(), |
71 | '--generate', | 71 | '--generate', |
72 | @@ -611,7 +611,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 72 | @@ -633,7 +633,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
73 | input : 'test2.gresource.xml', | 73 | input : 'test2.gresource.xml', |
74 | depends : big_test_resource, | 74 | depends : big_test_resource, |
75 | output : 'test_resources.c', | 75 | output : 'test_resources.c', |
@@ -78,7 +78,7 @@ index 788cf97..dab65d2 100644 | |||
78 | '--target=@OUTPUT@', | 78 | '--target=@OUTPUT@', |
79 | '--sourcedir=' + meson.current_source_dir(), | 79 | '--sourcedir=' + meson.current_source_dir(), |
80 | '--sourcedir=' + meson.current_build_dir(), | 80 | '--sourcedir=' + meson.current_build_dir(), |
81 | @@ -622,7 +622,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 81 | @@ -644,7 +644,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
82 | digit_test_resources_c = custom_target('digit_test_resources.c', | 82 | digit_test_resources_c = custom_target('digit_test_resources.c', |
83 | input : '111_digit_test.gresource.xml', | 83 | input : '111_digit_test.gresource.xml', |
84 | output : 'digit_test_resources.c', | 84 | output : 'digit_test_resources.c', |
@@ -87,7 +87,7 @@ index 788cf97..dab65d2 100644 | |||
87 | '--target=@OUTPUT@', | 87 | '--target=@OUTPUT@', |
88 | '--sourcedir=' + meson.current_source_dir(), | 88 | '--sourcedir=' + meson.current_source_dir(), |
89 | '--sourcedir=' + meson.current_build_dir(), | 89 | '--sourcedir=' + meson.current_build_dir(), |
90 | @@ -633,7 +633,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 90 | @@ -655,7 +655,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
91 | digit_test_resources_h = custom_target('digit_test_resources.h', | 91 | digit_test_resources_h = custom_target('digit_test_resources.h', |
92 | input : '111_digit_test.gresource.xml', | 92 | input : '111_digit_test.gresource.xml', |
93 | output : 'digit_test_resources.h', | 93 | output : 'digit_test_resources.h', |
@@ -96,11 +96,11 @@ index 788cf97..dab65d2 100644 | |||
96 | '--target=@OUTPUT@', | 96 | '--target=@OUTPUT@', |
97 | '--sourcedir=' + meson.current_source_dir(), | 97 | '--sourcedir=' + meson.current_source_dir(), |
98 | '--generate', | 98 | '--generate', |
99 | @@ -668,11 +668,11 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 99 | @@ -688,11 +688,11 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
100 | 100 | ||
101 | ld = find_program('ld', required : false) | 101 | ld = find_program('ld', required : false) |
102 | 102 | ||
103 | - if build_machine.system() == 'linux' and cc.get_id() == 'gcc' and objcopy.found() and objcopy_supports_add_symbol and ld.found() | 103 | - if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found() |
104 | + if not meson.is_cross_build() | 104 | + if not meson.is_cross_build() |
105 | test_gresource_binary = custom_target('test5.gresource', | 105 | test_gresource_binary = custom_target('test5.gresource', |
106 | input : 'test5.gresource.xml', | 106 | input : 'test5.gresource.xml', |
@@ -110,7 +110,7 @@ index 788cf97..dab65d2 100644 | |||
110 | '--target=@OUTPUT@', | 110 | '--target=@OUTPUT@', |
111 | '--sourcedir=' + meson.current_source_dir(), | 111 | '--sourcedir=' + meson.current_source_dir(), |
112 | '--sourcedir=' + meson.current_build_dir(), | 112 | '--sourcedir=' + meson.current_build_dir(), |
113 | @@ -684,7 +684,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() | 113 | @@ -704,7 +704,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper() |
114 | test_resources_binary_c = custom_target('test_resources_binary.c', | 114 | test_resources_binary_c = custom_target('test_resources_binary.c', |
115 | input : 'test5.gresource.xml', | 115 | input : 'test5.gresource.xml', |
116 | output : 'test_resources_binary.c', | 116 | output : 'test_resources_binary.c', |
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 846c8d62b6..9bfb6e85cc 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 @@ | |||
1 | From dac2bdeea38388e069412aa27eff8f1eff0440e5 Mon Sep 17 00:00:00 2001 | 1 | From ab071f315deed3740f867161ee58436b985d6fc1 Mon Sep 17 00:00:00 2001 |
2 | From: Ross Burton <ross.burton@intel.com> | 2 | From: Ross Burton <ross.burton@intel.com> |
3 | Date: Fri, 11 Mar 2016 15:35:55 +0000 | 3 | Date: Fri, 11 Mar 2016 15:35:55 +0000 |
4 | Subject: [PATCH] glib-2.0: relocate the GIO module directory for native builds | 4 | Subject: [PATCH] glib-2.0: relocate the GIO module directory for native builds |
@@ -19,10 +19,10 @@ Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | |||
19 | 1 file changed, 11 insertions(+), 1 deletion(-) | 19 | 1 file changed, 11 insertions(+), 1 deletion(-) |
20 | 20 | ||
21 | diff --git a/gio/giomodule.c b/gio/giomodule.c | 21 | diff --git a/gio/giomodule.c b/gio/giomodule.c |
22 | index a2909a8..1f4ab82 100644 | 22 | index d34037a..7442df6 100644 |
23 | --- a/gio/giomodule.c | 23 | --- a/gio/giomodule.c |
24 | +++ b/gio/giomodule.c | 24 | +++ b/gio/giomodule.c |
25 | @@ -51,6 +51,8 @@ | 25 | @@ -54,6 +54,8 @@ |
26 | #ifdef G_OS_WIN32 | 26 | #ifdef G_OS_WIN32 |
27 | #include "gregistrysettingsbackend.h" | 27 | #include "gregistrysettingsbackend.h" |
28 | #include "giowin32-priv.h" | 28 | #include "giowin32-priv.h" |
@@ -31,7 +31,7 @@ index a2909a8..1f4ab82 100644 | |||
31 | #endif | 31 | #endif |
32 | #include <glib/gstdio.h> | 32 | #include <glib/gstdio.h> |
33 | 33 | ||
34 | @@ -1213,7 +1215,15 @@ get_gio_module_dir (void) | 34 | @@ -1224,7 +1226,15 @@ get_gio_module_dir (void) |
35 | NULL); | 35 | NULL); |
36 | g_free (install_dir); | 36 | g_free (install_dir); |
37 | #else | 37 | #else |
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/time-test.patch b/meta/recipes-core/glib-2.0/glib-2.0/time-test.patch deleted file mode 100644 index 4d7ef97bb5..0000000000 --- a/meta/recipes-core/glib-2.0/glib-2.0/time-test.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2177] | ||
2 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
3 | |||
4 | From 289f8be1b397a453cfcf35641455f3ae5fb4faeb Mon Sep 17 00:00:00 2001 | ||
5 | From: Ross Burton <ross.burton@arm.com> | ||
6 | Date: Tue, 6 Jul 2021 19:26:03 +0100 | ||
7 | Subject: [PATCH] gio/tests/g-file-info: don't assume million-in-one events | ||
8 | don't happen | ||
9 | |||
10 | The modification time test creates a file, gets the modification time in | ||
11 | seconds, then gets the modification time in microseconds and assumes | ||
12 | that the difference between the two has to be above 0. | ||
13 | |||
14 | As rare as this may be, it can happen: | ||
15 | |||
16 | $ stat g-file-info-test-50A450 -c %y | ||
17 | 2021-07-06 18:24:56.000000767 +0100 | ||
18 | |||
19 | Change the test to simply assert that the difference not negative to | ||
20 | handle this case. | ||
21 | --- | ||
22 | gio/tests/g-file-info.c | 2 +- | ||
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
24 | |||
25 | diff --git a/gio/tests/g-file-info.c b/gio/tests/g-file-info.c | ||
26 | index c11c50462..fd0c64b55 100644 | ||
27 | --- a/gio/tests/g-file-info.c | ||
28 | +++ b/gio/tests/g-file-info.c | ||
29 | @@ -178,7 +178,7 @@ test_g_file_info_modification_time (void) | ||
30 | g_assert_nonnull (dt_usecs); | ||
31 | |||
32 | ts = g_date_time_difference (dt_usecs, dt); | ||
33 | - g_assert_cmpint (ts, >, 0); | ||
34 | + g_assert_cmpint (ts, >=, 0); | ||
35 | g_assert_cmpint (ts, <, G_USEC_PER_SEC); | ||
36 | |||
37 | /* Try round-tripping the modification time. */ | ||
38 | -- | ||
39 | 2.25.1 | ||
40 | |||
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.68.4.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.70.0.bb index cd789de3c0..8217aaa8d0 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0_2.68.4.bb +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.70.0.bb | |||
@@ -17,11 +17,10 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ | |||
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-gio-tests-codegen.py-bump-timeout-to-100-seconds.patch \ | 19 | file://0001-gio-tests-codegen.py-bump-timeout-to-100-seconds.patch \ |
20 | file://time-test.patch \ | ||
21 | " | 20 | " |
22 | SRC_URI:append:class-native = " file://relocate-modules.patch" | 21 | SRC_URI:append:class-native = " file://relocate-modules.patch" |
23 | 22 | ||
24 | SRC_URI[sha256sum] = "62fd061d08a75492617e625a73e2c05e259f831acbb8e1f8b9c81f23f7993a3b" | 23 | SRC_URI[sha256sum] = "200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742" |
25 | 24 | ||
26 | # Find any meson cross files in FILESPATH that are relevant for the current | 25 | # Find any meson cross files in FILESPATH that are relevant for the current |
27 | # build (using siteinfo) and add them to EXTRA_OEMESON. | 26 | # build (using siteinfo) and add them to EXTRA_OEMESON. |
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index a34776b083..0eef2e330c 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc | |||
@@ -9,7 +9,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ | |||
9 | file://glib/glib.h;beginline=4;endline=17;md5=b88abb7f3ad09607e71cb9d530155906 \ | 9 | file://glib/glib.h;beginline=4;endline=17;md5=b88abb7f3ad09607e71cb9d530155906 \ |
10 | file://gmodule/COPYING;md5=4fbd65380cdd255951079008b364516c \ | 10 | file://gmodule/COPYING;md5=4fbd65380cdd255951079008b364516c \ |
11 | file://gmodule/gmodule.h;beginline=4;endline=17;md5=b88abb7f3ad09607e71cb9d530155906 \ | 11 | file://gmodule/gmodule.h;beginline=4;endline=17;md5=b88abb7f3ad09607e71cb9d530155906 \ |
12 | file://glib/pcre/pcre.h;beginline=8;endline=36;md5=3e2977dae4ad05217f58c446237298fc \ | ||
13 | file://docs/reference/COPYING;md5=f51a5100c17af6bae00735cd791e1fcc" | 12 | file://docs/reference/COPYING;md5=f51a5100c17af6bae00735cd791e1fcc" |
14 | BUGTRACKER = "http://bugzilla.gnome.org" | 13 | BUGTRACKER = "http://bugzilla.gnome.org" |
15 | SECTION = "libs" | 14 | SECTION = "libs" |
@@ -22,6 +21,7 @@ DEPENDS = "glib-2.0-native \ | |||
22 | virtual/libintl \ | 21 | virtual/libintl \ |
23 | virtual/libiconv \ | 22 | virtual/libiconv \ |
24 | libffi \ | 23 | libffi \ |
24 | libpcre \ | ||
25 | zlib" | 25 | zlib" |
26 | 26 | ||
27 | PACKAGES += "${PN}-codegen ${PN}-utils" | 27 | PACKAGES += "${PN}-codegen ${PN}-utils" |
@@ -36,10 +36,9 @@ GTKDOC_MESON_OPTION = "gtk_doc" | |||
36 | 36 | ||
37 | S = "${WORKDIR}/glib-${PV}" | 37 | S = "${WORKDIR}/glib-${PV}" |
38 | 38 | ||
39 | PACKAGECONFIG ??= "system-pcre libmount \ | 39 | PACKAGECONFIG ??= "libmount \ |
40 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" | 40 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" |
41 | # To use the system pcre it must be configured with --enable-unicode-properties | 41 | # To use the system pcre it must be configured with --enable-unicode-properties |
42 | PACKAGECONFIG[system-pcre] = "-Dinternal_pcre=false,-Dinternal_pcre=true,libpcre" | ||
43 | PACKAGECONFIG[libmount] = "-Dlibmount=enabled,-Dlibmount=disabled,util-linux" | 42 | PACKAGECONFIG[libmount] = "-Dlibmount=enabled,-Dlibmount=disabled,util-linux" |
44 | PACKAGECONFIG[manpages] = "-Dman=true, -Dman=false, libxslt-native xmlto-native" | 43 | PACKAGECONFIG[manpages] = "-Dman=true, -Dman=false, libxslt-native xmlto-native" |
45 | # libelf is auto-detected without a configuration option | 44 | # libelf is auto-detected without a configuration option |