summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-10-28 22:05:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-30 13:22:48 +0000
commitf918575ab370b998054fb0555104a42da25a2377 (patch)
treedcb7c19a686eaf37d8449193b296e20d5bc25928 /meta/recipes-gnome
parentc957d02d79a4d02f3036c8afde654cc4d68d2fb0 (diff)
downloadpoky-f918575ab370b998054fb0555104a42da25a2377.tar.gz
gobject-introspection: upgrade 1.64.1 -> 1.66.1
Add a patch to avoid build errors if building g-i data is disabled. (From OE-Core rev: e2c4cd1cebbd9e83e90759671147442d7f77d7c5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Relocate-the-repository-directory-for-native-builds.patch8
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-gir-add-a-dependency-for-g-ir-compiler-for-building-.patch33
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch25
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb (renamed from meta/recipes-gnome/gobject-introspection/gobject-introspection_1.64.1.bb)7
4 files changed, 32 insertions, 41 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Relocate-the-repository-directory-for-native-builds.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Relocate-the-repository-directory-for-native-builds.patch
index 9d6f5dea3c..185ebc154a 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Relocate-the-repository-directory-for-native-builds.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Relocate-the-repository-directory-for-native-builds.patch
@@ -1,4 +1,4 @@
1From 8dfb44450ca9fffc15977e95eadcb7054ab60a9a Mon Sep 17 00:00:00 2001 1From 41c3ee549787333a073a3ce6303efef625c74dce Mon Sep 17 00:00:00 2001
2From: Sascha Silbe <x-yo17@se-silbe.de> 2From: Sascha Silbe <x-yo17@se-silbe.de>
3Date: Fri, 8 Jun 2018 13:55:10 +0200 3Date: Fri, 8 Jun 2018 13:55:10 +0200
4Subject: [PATCH] Relocate the repository directory for native builds 4Subject: [PATCH] Relocate the repository directory for native builds
@@ -21,7 +21,7 @@ Signed-off-by: Sascha Silbe <x-yo17@se-silbe.de>
21 2 files changed, 14 insertions(+), 3 deletions(-) 21 2 files changed, 14 insertions(+), 3 deletions(-)
22 22
23diff --git a/girepository/girepository.c b/girepository/girepository.c 23diff --git a/girepository/girepository.c b/girepository/girepository.c
24index b7948d6..39a2586 100644 24index 7d03485..20f4813 100644
25--- a/girepository/girepository.c 25--- a/girepository/girepository.c
26+++ b/girepository/girepository.c 26+++ b/girepository/girepository.c
27@@ -21,6 +21,8 @@ 27@@ -21,6 +21,8 @@
@@ -62,10 +62,10 @@ index b7948d6..39a2586 100644
62 typelib_search_path = g_slist_prepend (typelib_search_path, typelib_dir); 62 typelib_search_path = g_slist_prepend (typelib_search_path, typelib_dir);
63 63
64diff --git a/girepository/meson.build b/girepository/meson.build 64diff --git a/girepository/meson.build b/girepository/meson.build
65index 204659f..3e61d31 100644 65index c8ef6aa..b85ff7f 100644
66--- a/girepository/meson.build 66--- a/girepository/meson.build
67+++ b/girepository/meson.build 67+++ b/girepository/meson.build
68@@ -44,7 +44,7 @@ girepo_internals_lib = static_library('girepository-internals', 68@@ -45,7 +45,7 @@ girepo_internals_lib = static_library('girepository-internals',
69 ], 69 ],
70 c_args: gi_hidden_visibility_cflags + custom_c_args, 70 c_args: gi_hidden_visibility_cflags + custom_c_args,
71 include_directories : configinc, 71 include_directories : configinc,
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-gir-add-a-dependency-for-g-ir-compiler-for-building-.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-gir-add-a-dependency-for-g-ir-compiler-for-building-.patch
deleted file mode 100644
index fc37a5bb96..0000000000
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-gir-add-a-dependency-for-g-ir-compiler-for-building-.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From 56ba5656258b82dbc069ab3a61e597c931a16a83 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 17 Jun 2020 11:43:16 +0200
4Subject: [PATCH] gir: add a dependency for g-ir-compiler for building .girs
5
6meson inserts the dependency if the compiler is used directly, but
7fails to do so if the compiler is run through a wrapper. This leads
8to build race errors between building the compiler and using it.
9
10Fix provided by Quentin Schulz <quentin.schulz@streamunlimited.com>
11
12Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/228]
13Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14---
15 gir/meson.build | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/gir/meson.build b/gir/meson.build
19index b37fdb81..557e5517 100644
20--- a/gir/meson.build
21+++ b/gir/meson.build
22@@ -448,7 +448,7 @@ foreach gir : gir_files
23 typelibs += custom_target('generate-typelib-@0@'.format(gir).underscorify(),
24 input: gir,
25 output: '@BASENAME@.typelib',
26- depends: [gobject_gir, ],
27+ depends: [gobject_gir, gircompiler, ],
28 command: gircompiler_command,
29 install: true,
30 install_dir: typelibdir,
31--
322.27.0
33
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch
new file mode 100644
index 0000000000..8fba0124cf
--- /dev/null
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch
@@ -0,0 +1,25 @@
1From ef5446af0ddad6a341b47957097ac40c6cb5e6d3 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 20 Oct 2020 22:40:14 +0200
4Subject: [PATCH] meson.build: exclude girepo_dep if introspection data is
5 disabled
6
7Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/248]
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9---
10 meson.build | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/meson.build b/meson.build
14index 14af2b1..a3c27c3 100644
15--- a/meson.build
16+++ b/meson.build
17@@ -283,7 +283,7 @@ pkg.generate(
18 # FIXME: meson.override_dependency() and declare_dependency()'s variable arguments
19 # are new in Meson 0.54.0, older versions of Meson won't be able to use g-i as
20 # subproject anyway
21-if meson.version().version_compare('>=0.54.0')
22+if meson.version().version_compare('>=0.54.0') and get_option('build_introspection_data') == true
23 girepo_dep = declare_dependency(
24 sources: typelibs,
25 dependencies: girepo_dep,
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.64.1.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb
index 4d80f00e10..ee0ab2866b 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.64.1.bb
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb
@@ -15,11 +15,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c434e8128a68bedd59b80b2ac1eb1c4a \
15 15
16SRC_URI = "${GNOME_MIRROR}/${BPN}/${@oe.utils.trim_version("${PV}", 2)}/${BPN}-${PV}.tar.xz \ 16SRC_URI = "${GNOME_MIRROR}/${BPN}/${@oe.utils.trim_version("${PV}", 2)}/${BPN}-${PV}.tar.xz \
17 file://0001-giscanner-ignore-error-return-codes-from-ldd-wrapper.patch \ 17 file://0001-giscanner-ignore-error-return-codes-from-ldd-wrapper.patch \
18 file://0001-gir-add-a-dependency-for-g-ir-compiler-for-building-.patch \ 18 file://0001-meson.build-exclude-girepo_dep-if-introspection-data.patch \
19 " 19 "
20 20
21SRC_URI[md5sum] = "3419dfd086efcf83768e0579ab6abd2b" 21SRC_URI[sha256sum] = "dd44a55ee5f426ea22b6b89624708f9e8d53f5cc94e5485c15c87cb30e06161d"
22SRC_URI[sha256sum] = "80beae6728c134521926affff9b2e97125749b38d38744dc901f4010ee3e7fa7"
23 22
24SRC_URI_append_class-native = " file://0001-Relocate-the-repository-directory-for-native-builds.patch" 23SRC_URI_append_class-native = " file://0001-Relocate-the-repository-directory-for-native-builds.patch"
25 24
@@ -48,7 +47,7 @@ PACKAGECONFIG[doctool] = "-Ddoctool=enabled,-Ddoctool=disabled,python3-mako,"
48# Configure target build to use native tools of itself and to use a qemu wrapper 47# Configure target build to use native tools of itself and to use a qemu wrapper
49# and optionally to generate introspection data 48# and optionally to generate introspection data
50EXTRA_OEMESON_class-target = " \ 49EXTRA_OEMESON_class-target = " \
51 -Dgi_cross_use_host_gi=true \ 50 -Dgi_cross_use_prebuilt_gi=true \
52 -Dgi_cross_binary_wrapper=${B}/g-ir-scanner-qemuwrapper \ 51 -Dgi_cross_binary_wrapper=${B}/g-ir-scanner-qemuwrapper \
53 -Dgi_cross_ldd_wrapper=${B}/g-ir-scanner-lddwrapper \ 52 -Dgi_cross_ldd_wrapper=${B}/g-ir-scanner-lddwrapper \
54 -Dgi_cross_pkgconfig_sysroot_path=${PKG_CONFIG_SYSROOT_DIR} \ 53 -Dgi_cross_pkgconfig_sysroot_path=${PKG_CONFIG_SYSROOT_DIR} \