diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2022-03-29 20:08:45 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-31 17:52:58 +0100 |
commit | adb7ff6a260e8e980ea815b4e75919868ef500e7 (patch) | |
tree | 539fb87ce166558ebcabf070a7e7580f9aff176d /meta/recipes-gnome | |
parent | a64ca37a138b0bdac6effcd611c76f1e1d9d585d (diff) | |
download | poky-adb7ff6a260e8e980ea815b4e75919868ef500e7.tar.gz |
gobject-introspection: fix default search path for girdir
When running g-ir-scanner, we get the following error:
Couldn't find include 'GObject-2.0.gir' (search path:
'['/usr/lib64', 'gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0',
'/usr/share/gir-1.0', '/usr/share/gir-1.0']')
This is because g-ir-tool-template.in is not setting girdir correctly.
It's using the prefix instead of the actual girdir.
Note that we don't get such error at do_rootfs time because the extra
directories are speicified. But we will get such error at runtime when
multilib is enabled.
(From OE-Core rev: 4bc68b6a8187947516615e47f22a6b16d71c3b37)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-g-ir-tool-template.in-fix-girdir-path.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-g-ir-tool-template.in-fix-girdir-path.patch new file mode 100644 index 0000000000..5c78649de4 --- /dev/null +++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-g-ir-tool-template.in-fix-girdir-path.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From b01b448613b76f9acefdfd89ee01686dc7a67df4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Tue, 13 Jul 2021 02:05:11 -0700 | ||
4 | Subject: [PATCH] g-ir-tool-template.in: fix girdir path | ||
5 | |||
6 | In case gir_dir_prefix is set, it's possible that g-ir-scanner | ||
7 | cannot find the .gir files. This is because that the girdir | ||
8 | is set to gir_dir_prefix, which is wrong. It's not a prefix, | ||
9 | it the actual gir dir. | ||
10 | |||
11 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/329] | ||
12 | |||
13 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
14 | --- | ||
15 | tools/g-ir-tool-template.in | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in | ||
19 | index 6e98f52e..62c07c31 100755 | ||
20 | --- a/tools/g-ir-tool-template.in | ||
21 | +++ b/tools/g-ir-tool-template.in | ||
22 | @@ -55,7 +55,7 @@ builtins.__dict__['DATADIR'] = datadir | ||
23 | |||
24 | # Respect gir_dir_prefix | ||
25 | girdir = '' | ||
26 | -girdir = os.path.abspath(os.path.join(filedir, '..', '@gir_dir_prefix@')) | ||
27 | +girdir = os.path.abspath(os.path.join(filedir, '..', '@gir_dir_prefix@', 'gir-1.0')) | ||
28 | builtins.__dict__['GIRDIR'] = [girdir] | ||
29 | |||
30 | # Again, relative paths first so that the installation prefix is relocatable | ||
31 | -- | ||
32 | 2.30.2 | ||
33 | |||
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.72.0.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.72.0.bb index 39475daf2e..355e77d107 100644 --- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.72.0.bb +++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.72.0.bb | |||
@@ -13,7 +13,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c434e8128a68bedd59b80b2ac1eb1c4a \ | |||
13 | file://girepository/giregisteredtypeinfo.c;endline=21;md5=661847611ae6979465415f31a759ba27 \ | 13 | file://girepository/giregisteredtypeinfo.c;endline=21;md5=661847611ae6979465415f31a759ba27 \ |
14 | " | 14 | " |
15 | 15 | ||
16 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${@oe.utils.trim_version("${PV}", 2)}/${BPN}-${PV}.tar.xz" | 16 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${@oe.utils.trim_version("${PV}", 2)}/${BPN}-${PV}.tar.xz \ |
17 | file://0001-g-ir-tool-template.in-fix-girdir-path.patch \ | ||
18 | " | ||
17 | 19 | ||
18 | SRC_URI[sha256sum] = "02fe8e590861d88f83060dd39cda5ccaa60b2da1d21d0f95499301b186beaabc" | 20 | SRC_URI[sha256sum] = "02fe8e590861d88f83060dd39cda5ccaa60b2da1d21d0f95499301b186beaabc" |
19 | 21 | ||