summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gobject-introspection
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2018-09-06 12:29:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-10 12:13:06 +0100
commitc687dcb312e055c64ca8a17e492f3ca5f0236ece (patch)
tree12cfe4b03264cb4bb6878b93c1b712b06e79158f /meta/recipes-gnome/gobject-introspection
parentb4696f512443412ac79b1cc7816aa1ccf809996e (diff)
downloadpoky-c687dcb312e055c64ca8a17e492f3ca5f0236ece.tar.gz
gobject-introspection: update to 1.58.0
License-Update: clarification of what parts of g-i are licensed under which license. Actual terms are the same. Add a patch to deal with prelink-rtld returning 127 in some cases despite there being no error. (From OE-Core rev: 50b2187ed8b54317e953882034ba5648e0a4b764) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gobject-introspection')
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Relocate-the-repository-directory-for-native-builds.patch12
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Revert-an-incomplete-upstream-attempt-at-cross-compi.patch12
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-add-a-lib-dirs-envvar-option.patch16
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-ignore-error-return-codes-from-ldd-wrapper.patch27
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0002-configure.ac-add-host-gi-gi-cross-wrapper-gi-ldd-wra.patch43
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0003-giscanner-add-use-binary-wrapper-option.patch14
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0004-giscanner-add-a-use-ldd-wrapper-option.patch16
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch18
-rw-r--r--meta/recipes-gnome/gobject-introspection/gobject-introspection_1.58.0.bb (renamed from meta/recipes-gnome/gobject-introspection/gobject-introspection_1.56.1.bb)15
9 files changed, 96 insertions, 77 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 644cab929d..ba85c317f6 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 31ef4cce83c1770ea1e816d91b7e258fbf170035 Mon Sep 17 00:00:00 2001 1From 4cf37d56fddcc22bcd818f6d470404f56d907f3c 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
@@ -14,12 +14,13 @@ cache or sstate mirror).
14 14
15Upstream-Status: Inappropriate 15Upstream-Status: Inappropriate
16Signed-off-by: Sascha Silbe <x-yo17@se-silbe.de> 16Signed-off-by: Sascha Silbe <x-yo17@se-silbe.de>
17
17--- 18---
18 girepository/girepository.c | 15 +++++++++++++-- 19 girepository/girepository.c | 15 +++++++++++++--
19 1 file changed, 13 insertions(+), 2 deletions(-) 20 1 file changed, 13 insertions(+), 2 deletions(-)
20 21
21diff --git a/girepository/girepository.c b/girepository/girepository.c 22diff --git a/girepository/girepository.c b/girepository/girepository.c
22index 10282c72..60c45104 100644 23index c1fa3d3..efa557e 100644
23--- a/girepository/girepository.c 24--- a/girepository/girepository.c
24+++ b/girepository/girepository.c 25+++ b/girepository/girepository.c
25@@ -21,6 +21,8 @@ 26@@ -21,6 +21,8 @@
@@ -40,7 +41,7 @@ index 10282c72..60c45104 100644
40 /** 41 /**
41 * SECTION:girepository 42 * SECTION:girepository
42 * @short_description: GObject Introspection repository manager 43 * @short_description: GObject Introspection repository manager
43@@ -191,9 +195,16 @@ init_globals (void) 44@@ -188,9 +192,16 @@ init_globals (void)
44 g_free (custom_dirs); 45 g_free (custom_dirs);
45 } 46 }
46 47
@@ -57,8 +58,5 @@ index 10282c72..60c45104 100644
57+ typelib_dir = g_build_filename (libdir, "girepository-1.0", NULL); 58+ typelib_dir = g_build_filename (libdir, "girepository-1.0", NULL);
58+ } 59+ }
59 60
60 search_path = g_slist_prepend (search_path, typelib_dir); 61 typelib_search_path = g_slist_prepend (typelib_search_path, typelib_dir);
61 62
62--
632.11.0
64
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Revert-an-incomplete-upstream-attempt-at-cross-compi.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Revert-an-incomplete-upstream-attempt-at-cross-compi.patch
index 9abaea7e7f..86cd4ead2a 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Revert-an-incomplete-upstream-attempt-at-cross-compi.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-Revert-an-incomplete-upstream-attempt-at-cross-compi.patch
@@ -1,11 +1,12 @@
1From 3a9d1e5ee0aae56fafec0beba2014c19e4ff310c Mon Sep 17 00:00:00 2001 1From ca0fb17e268c176ac89df081b1efa4a42989f014 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 23 Mar 2016 17:07:28 +0200 3Date: Wed, 23 Mar 2016 17:07:28 +0200
4Subject: [PATCH 1/5] Revert an incomplete upstream attempt at cross-compile 4Subject: [PATCH] Revert an incomplete upstream attempt at cross-compile
5 support 5 support
6 6
7Upstream-Status: Pending 7Upstream-Status: Pending
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9
9--- 10---
10 common.mk | 4 ---- 11 common.mk | 4 ----
11 giscanner/gdumpparser.py | 6 ------ 12 giscanner/gdumpparser.py | 6 ------
@@ -29,10 +30,10 @@ index b778f7a..e26c637 100644
29 30
30 INTROSPECTION_COMPILER_ARGS = \ 31 INTROSPECTION_COMPILER_ARGS = \
31diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py 32diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
32index 1134f33..9bdc2bc 100644 33index cd9d94d..b41772c 100644
33--- a/giscanner/gdumpparser.py 34--- a/giscanner/gdumpparser.py
34+++ b/giscanner/gdumpparser.py 35+++ b/giscanner/gdumpparser.py
35@@ -162,12 +162,6 @@ blob containing data gleaned from GObject's primitive introspection.""" 36@@ -161,12 +161,6 @@ blob containing data gleaned from GObject's primitive introspection."""
36 out_path = os.path.join(self._binary.tmpdir, 'dump.xml') 37 out_path = os.path.join(self._binary.tmpdir, 'dump.xml')
37 38
38 args = [] 39 args = []
@@ -45,6 +46,3 @@ index 1134f33..9bdc2bc 100644
45 args.extend(self._binary.args) 46 args.extend(self._binary.args)
46 args.append('--introspect-dump=%s,%s' % (in_path, out_path)) 47 args.append('--introspect-dump=%s,%s' % (in_path, out_path))
47 48
48--
492.7.0
50
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-add-a-lib-dirs-envvar-option.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-add-a-lib-dirs-envvar-option.patch
index 4aa2e3cb2b..e9338e92e2 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-add-a-lib-dirs-envvar-option.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-add-a-lib-dirs-envvar-option.patch
@@ -1,4 +1,4 @@
1From 3875175563df28813c22b1de6bda260285f65cb0 Mon Sep 17 00:00:00 2001 1From 3fea5e83803f4cfef21b2e06e37a6ba56f2bb914 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 3 Jan 2018 17:02:01 +0200 3Date: Wed, 3 Jan 2018 17:02:01 +0200
4Subject: [PATCH] giscanner: add a --lib-dirs-envvar option 4Subject: [PATCH] giscanner: add a --lib-dirs-envvar option
@@ -19,7 +19,7 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
19 3 files changed, 7 insertions(+), 3 deletions(-) 19 3 files changed, 7 insertions(+), 3 deletions(-)
20 20
21diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py 21diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
22index d10327c..47f57c6 100644 22index c003828..8a8ba2b 100644
23--- a/giscanner/ccompiler.py 23--- a/giscanner/ccompiler.py
24+++ b/giscanner/ccompiler.py 24+++ b/giscanner/ccompiler.py
25@@ -109,7 +109,7 @@ class CCompiler(object): 25@@ -109,7 +109,7 @@ class CCompiler(object):
@@ -35,16 +35,16 @@ index d10327c..47f57c6 100644
35 if os.name == 'nt': 35 if os.name == 'nt':
36 runtime_path_envvar = ['LIB', 'PATH'] 36 runtime_path_envvar = ['LIB', 'PATH']
37 else: 37 else:
38- runtime_path_envvar = ['LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH'] 38- runtime_path_envvar = ['LD_LIBRARY_PATH', 'DYLD_FALLBACK_LIBRARY_PATH']
39+ runtime_path_envvar = ['LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH'] if not lib_dirs_envvar else [lib_dirs_envvar] 39+ runtime_path_envvar = ['LD_LIBRARY_PATH', 'DYLD_FALLBACK_LIBRARY_PATH'] if not lib_dirs_envvar else [lib_dirs_envvar]
40 # Search the current directory first 40 # Search the current directory first
41 # (This flag is not supported nor needed for Visual C++) 41 # (This flag is not supported nor needed for Visual C++)
42 args.append('-L.') 42 args.append('-L.')
43diff --git a/giscanner/dumper.py b/giscanner/dumper.py 43diff --git a/giscanner/dumper.py b/giscanner/dumper.py
44index 3c7220b..0abd565 100644 44index 2c668f5..2e515a0 100644
45--- a/giscanner/dumper.py 45--- a/giscanner/dumper.py
46+++ b/giscanner/dumper.py 46+++ b/giscanner/dumper.py
47@@ -259,7 +259,8 @@ class DumpCompiler(object): 47@@ -249,7 +249,8 @@ class DumpCompiler(object):
48 libtool, 48 libtool,
49 self._options.libraries, 49 self._options.libraries,
50 self._options.extra_libraries, 50 self._options.extra_libraries,
@@ -55,10 +55,10 @@ index 3c7220b..0abd565 100644
55 55
56 else: 56 else:
57diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py 57diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
58index d262785..51c9570 100755 58index 5cb793e..87227e2 100644
59--- a/giscanner/scannermain.py 59--- a/giscanner/scannermain.py
60+++ b/giscanner/scannermain.py 60+++ b/giscanner/scannermain.py
61@@ -130,6 +130,9 @@ def _get_option_parser(): 61@@ -132,6 +132,9 @@ def _get_option_parser():
62 parser.add_option("", "--use-ldd-wrapper", 62 parser.add_option("", "--use-ldd-wrapper",
63 action="store", dest="ldd_wrapper", default=None, 63 action="store", dest="ldd_wrapper", default=None,
64 help="wrapper to use instead of ldd (useful when cross-compiling)") 64 help="wrapper to use instead of ldd (useful when cross-compiling)")
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-ignore-error-return-codes-from-ldd-wrapper.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-ignore-error-return-codes-from-ldd-wrapper.patch
new file mode 100644
index 0000000000..9167f042e5
--- /dev/null
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-giscanner-ignore-error-return-codes-from-ldd-wrapper.patch
@@ -0,0 +1,27 @@
1From f128cbeead687bfc6532cc1f2cc3e2dc5a2b5b30 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 5 Sep 2018 16:46:52 +0200
4Subject: [PATCH] giscanner: ignore error return codes from ldd-wrapper
5
6prelink-rtld, which we use instead of ldd returns 127 when it can't find a library.
7It is not an error per se, but it breaks subprocess.check_output().
8
9Upstream-Status: Inappropriate [oe-core specific]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11---
12 giscanner/shlibs.py | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
16index 01d21a3..3bd3250 100644
17--- a/giscanner/shlibs.py
18+++ b/giscanner/shlibs.py
19@@ -108,7 +108,7 @@ def _resolve_non_libtool(options, binary, libraries):
20 args.extend(['otool', '-L', binary.args[0]])
21 else:
22 args.extend(['ldd', binary.args[0]])
23- output = subprocess.check_output(args)
24+ output = subprocess.run(args, check=False, stdout=subprocess.PIPE).stdout
25 if isinstance(output, bytes):
26 output = output.decode("utf-8", "replace")
27
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0002-configure.ac-add-host-gi-gi-cross-wrapper-gi-ldd-wra.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0002-configure.ac-add-host-gi-gi-cross-wrapper-gi-ldd-wra.patch
index c682b42af6..03ef2b0059 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0002-configure.ac-add-host-gi-gi-cross-wrapper-gi-ldd-wra.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0002-configure.ac-add-host-gi-gi-cross-wrapper-gi-ldd-wra.patch
@@ -1,8 +1,8 @@
1From b1503fe2693d602b3e24e4b832dc0934960d5d22 Mon Sep 17 00:00:00 2001 1From a28cc8413b68bec5b4cf2ee5f37b40a8965490a5 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 19 Oct 2015 18:29:21 +0300 3Date: Mon, 19 Oct 2015 18:29:21 +0300
4Subject: [PATCH 2/5] configure.ac: add host-gi, gi-cross-wrapper, 4Subject: [PATCH] configure.ac: add host-gi, gi-cross-wrapper, gi-ldd-wrapper
5 gi-ldd-wrapper and introspection-data options 5 and introspection-data options
6 6
7With the first option, gobject-introspection tools (g-ir-doc-tool and g-ir-scanner) 7With the first option, gobject-introspection tools (g-ir-doc-tool and g-ir-scanner)
8that are already installed in the host system will be used for building the source tree. 8that are already installed in the host system will be used for building the source tree.
@@ -25,6 +25,7 @@ These options are useful when cross-compiling for a different target architectur
25 25
26Upstream-Status: Pending [review on oe-core list] 26Upstream-Status: Pending [review on oe-core list]
27Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 27Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
28
28--- 29---
29 Makefile.am | 2 ++ 30 Makefile.am | 2 ++
30 common.mk | 39 +++++++++++++++++++++++++++++++++++++++ 31 common.mk | 39 +++++++++++++++++++++++++++++++++++++++
@@ -32,10 +33,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
32 tests/Makefile.am | 5 ++++- 33 tests/Makefile.am | 5 ++++-
33 4 files changed, 87 insertions(+), 1 deletion(-) 34 4 files changed, 87 insertions(+), 1 deletion(-)
34 35
35Index: gobject-introspection-1.52.1/Makefile.am 36diff --git a/Makefile.am b/Makefile.am
36=================================================================== 37index 44ed115..2a1fa56 100644
37--- gobject-introspection-1.52.1.orig/Makefile.am 38--- a/Makefile.am
38+++ gobject-introspection-1.52.1/Makefile.am 39+++ b/Makefile.am
39@@ -21,7 +21,9 @@ include Makefile-cmph.am 40@@ -21,7 +21,9 @@ include Makefile-cmph.am
40 include Makefile-girepository.am 41 include Makefile-girepository.am
41 include Makefile-giscanner.am 42 include Makefile-giscanner.am
@@ -44,12 +45,12 @@ Index: gobject-introspection-1.52.1/Makefile.am
44 include Makefile-gir.am 45 include Makefile-gir.am
45+endif 46+endif
46 include Makefile-tools.am 47 include Makefile-tools.am
47 include Makefile-msvcproj.am
48 48
49Index: gobject-introspection-1.52.1/common.mk 49 ## Process this file with automake to produce Makefile.in
50=================================================================== 50diff --git a/common.mk b/common.mk
51--- gobject-introspection-1.52.1.orig/common.mk 51index e26c637..9f3a65f 100644
52+++ gobject-introspection-1.52.1/common.mk 52--- a/common.mk
53+++ b/common.mk
53@@ -6,6 +6,15 @@ 54@@ -6,6 +6,15 @@
54 # module itself. 55 # module itself.
55 # 56 #
@@ -130,11 +131,11 @@ Index: gobject-introspection-1.52.1/common.mk
130 131
131 INTROSPECTION_DOCTOOL_ARGS = \ 132 INTROSPECTION_DOCTOOL_ARGS = \
132 --add-include-path=$(srcdir) \ 133 --add-include-path=$(srcdir) \
133Index: gobject-introspection-1.52.1/configure.ac 134diff --git a/configure.ac b/configure.ac
134=================================================================== 135index d48e6c3..ed5f8a2 100644
135--- gobject-introspection-1.52.1.orig/configure.ac 136--- a/configure.ac
136+++ gobject-introspection-1.52.1/configure.ac 137+++ b/configure.ac
137@@ -366,6 +366,48 @@ dnl 138@@ -367,6 +367,48 @@ dnl
138 AM_CONDITIONAL(MSVC_BASE_NO_TOOLSET_SET, [test x$MSVC_BASE_TOOLSET = x]) 139 AM_CONDITIONAL(MSVC_BASE_NO_TOOLSET_SET, [test x$MSVC_BASE_TOOLSET = x])
139 AM_CONDITIONAL(MSVC_NO_TOOLSET_SET, [test x$MSVC_TOOLSET = x]) 140 AM_CONDITIONAL(MSVC_NO_TOOLSET_SET, [test x$MSVC_TOOLSET = x])
140 141
@@ -183,10 +184,10 @@ Index: gobject-introspection-1.52.1/configure.ac
183 AC_CONFIG_FILES([ 184 AC_CONFIG_FILES([
184 Makefile 185 Makefile
185 tests/Makefile 186 tests/Makefile
186Index: gobject-introspection-1.52.1/tests/Makefile.am 187diff --git a/tests/Makefile.am b/tests/Makefile.am
187=================================================================== 188index 4bdb9c3..10b0f27 100644
188--- gobject-introspection-1.52.1.orig/tests/Makefile.am 189--- a/tests/Makefile.am
189+++ gobject-introspection-1.52.1/tests/Makefile.am 190+++ b/tests/Makefile.am
190@@ -1,6 +1,9 @@ 191@@ -1,6 +1,9 @@
191 include $(top_srcdir)/common.mk 192 include $(top_srcdir)/common.mk
192 193
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0003-giscanner-add-use-binary-wrapper-option.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0003-giscanner-add-use-binary-wrapper-option.patch
index f21eaca855..45fe27ad61 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0003-giscanner-add-use-binary-wrapper-option.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0003-giscanner-add-use-binary-wrapper-option.patch
@@ -1,7 +1,7 @@
1From 704b888d0abfb01067352c40156f49f655691c7c Mon Sep 17 00:00:00 2001 1From 46dbe963aa6435591c87e788cdb54bc0daeac42e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 19 Oct 2015 18:26:40 +0300 3Date: Mon, 19 Oct 2015 18:26:40 +0300
4Subject: [PATCH 3/5] giscanner: add --use-binary-wrapper option 4Subject: [PATCH] giscanner: add --use-binary-wrapper option
5 5
6With this option, giscanner will use a wrapper executable to run 6With this option, giscanner will use a wrapper executable to run
7binaries it's producing, instead of running them directly. This 7binaries it's producing, instead of running them directly. This
@@ -10,15 +10,16 @@ but they can be run using for example QEMU emulation.
10 10
11Upstream-Status: Pending [review on oe-core list] 11Upstream-Status: Pending [review on oe-core list]
12Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 12Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13
13--- 14---
14 giscanner/scannermain.py | 14 ++++++++++++++ 15 giscanner/scannermain.py | 14 ++++++++++++++
15 1 file changed, 14 insertions(+) 16 1 file changed, 14 insertions(+)
16 17
17diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py 18diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
18index 633496f..d684cd0 100755 19index ccb14e9..061def0 100644
19--- a/giscanner/scannermain.py 20--- a/giscanner/scannermain.py
20+++ b/giscanner/scannermain.py 21+++ b/giscanner/scannermain.py
21@@ -124,6 +124,9 @@ def _get_option_parser(): 22@@ -126,6 +126,9 @@ def _get_option_parser():
22 parser.add_option("", "--program", 23 parser.add_option("", "--program",
23 action="store", dest="program", default=None, 24 action="store", dest="program", default=None,
24 help="program to execute") 25 help="program to execute")
@@ -28,7 +29,7 @@ index 633496f..d684cd0 100755
28 parser.add_option("", "--program-arg", 29 parser.add_option("", "--program-arg",
29 action="append", dest="program_args", default=[], 30 action="append", dest="program_args", default=[],
30 help="extra arguments to program") 31 help="extra arguments to program")
31@@ -419,6 +422,17 @@ def create_binary(transformer, options, args): 32@@ -418,6 +421,17 @@ def create_binary(transformer, options, args):
32 gdump_parser.get_error_quark_functions()) 33 gdump_parser.get_error_quark_functions())
33 34
34 shlibs = resolve_shlibs(options, binary, options.libraries) 35 shlibs = resolve_shlibs(options, binary, options.libraries)
@@ -46,6 +47,3 @@ index 633496f..d684cd0 100755
46 gdump_parser.set_introspection_binary(binary) 47 gdump_parser.set_introspection_binary(binary)
47 gdump_parser.parse() 48 gdump_parser.parse()
48 return shlibs 49 return shlibs
49--
502.7.0
51
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0004-giscanner-add-a-use-ldd-wrapper-option.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0004-giscanner-add-a-use-ldd-wrapper-option.patch
index afb71e767e..2e36b64bab 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0004-giscanner-add-a-use-ldd-wrapper-option.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0004-giscanner-add-a-use-ldd-wrapper-option.patch
@@ -1,23 +1,24 @@
1From d4ad57fd4a32c4f0d2f0522a3090ef940746431b Mon Sep 17 00:00:00 2001 1From eba2b999e81d81b5f43bb1f0ab33881786bebdec Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Oct 2015 16:28:46 +0200 3Date: Fri, 30 Oct 2015 16:28:46 +0200
4Subject: [PATCH 4/5] giscanner: add a --use-ldd-wrapper option 4Subject: [PATCH] giscanner: add a --use-ldd-wrapper option
5 5
6This is useful in cross-compile environments where system's ldd 6This is useful in cross-compile environments where system's ldd
7command does not work on binaries built for a different architecture 7command does not work on binaries built for a different architecture
8 8
9Upstream-Status: Pending [review in oe-core] 9Upstream-Status: Pending [review in oe-core]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11
11--- 12---
12 giscanner/scannermain.py | 3 +++ 13 giscanner/scannermain.py | 3 +++
13 giscanner/shlibs.py | 4 +++- 14 giscanner/shlibs.py | 4 +++-
14 2 files changed, 6 insertions(+), 1 deletion(-) 15 2 files changed, 6 insertions(+), 1 deletion(-)
15 16
16diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py 17diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
17index d684cd0..1b3b369 100755 18index 061def0..5cb793e 100644
18--- a/giscanner/scannermain.py 19--- a/giscanner/scannermain.py
19+++ b/giscanner/scannermain.py 20+++ b/giscanner/scannermain.py
20@@ -127,6 +127,9 @@ def _get_option_parser(): 21@@ -129,6 +129,9 @@ def _get_option_parser():
21 parser.add_option("", "--use-binary-wrapper", 22 parser.add_option("", "--use-binary-wrapper",
22 action="store", dest="wrapper", default=None, 23 action="store", dest="wrapper", default=None,
23 help="wrapper to use for running programs (useful when cross-compiling)") 24 help="wrapper to use for running programs (useful when cross-compiling)")
@@ -28,10 +29,10 @@ index d684cd0..1b3b369 100755
28 action="append", dest="program_args", default=[], 29 action="append", dest="program_args", default=[],
29 help="extra arguments to program") 30 help="extra arguments to program")
30diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py 31diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
31index c93d20c..c5b5942 100644 32index 7b7b2d0..01d21a3 100644
32--- a/giscanner/shlibs.py 33--- a/giscanner/shlibs.py
33+++ b/giscanner/shlibs.py 34+++ b/giscanner/shlibs.py
34@@ -105,7 +105,9 @@ def _resolve_non_libtool(options, binary, libraries): 35@@ -102,7 +102,9 @@ def _resolve_non_libtool(options, binary, libraries):
35 args.extend(libtool) 36 args.extend(libtool)
36 args.append('--mode=execute') 37 args.append('--mode=execute')
37 platform_system = platform.system() 38 platform_system = platform.system()
@@ -42,6 +43,3 @@ index c93d20c..c5b5942 100644
42 args.extend(['otool', '-L', binary.args[0]]) 43 args.extend(['otool', '-L', binary.args[0]])
43 else: 44 else:
44 args.extend(['ldd', binary.args[0]]) 45 args.extend(['ldd', binary.args[0]])
45--
462.7.0
47
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch
index 47a18ec844..2a31117b13 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch
@@ -1,7 +1,7 @@
1From e08b3677dd04d6ec407ba8f74f601b2d51310eff Mon Sep 17 00:00:00 2001 1From a97d060933932e478c03f1de9513b69bc459eefc Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 8 Oct 2015 18:30:35 +0300 3Date: Thu, 8 Oct 2015 18:30:35 +0300
4Subject: [PATCH 5/5] Prefix pkg-config paths with PKG_CONFIG_SYSROOT_DIR 4Subject: [PATCH] Prefix pkg-config paths with PKG_CONFIG_SYSROOT_DIR
5 environment variable 5 environment variable
6 6
7This environment variable sets the location of sysroot directory in cross-compilation 7This environment variable sets the location of sysroot directory in cross-compilation
@@ -9,16 +9,17 @@ environments; if the variable is not set, the prefix will be empty.
9 9
10Upstream-Status: Pending [review on oe-core list] 10Upstream-Status: Pending [review on oe-core list]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12
12--- 13---
13 Makefile-gir.am | 18 +++++++++--------- 14 Makefile-gir.am | 18 +++++++++---------
14 m4/introspection.m4 | 8 ++++---- 15 m4/introspection.m4 | 8 ++++----
15 2 files changed, 13 insertions(+), 13 deletions(-) 16 2 files changed, 13 insertions(+), 13 deletions(-)
16 17
17diff --git a/Makefile-gir.am b/Makefile-gir.am 18diff --git a/Makefile-gir.am b/Makefile-gir.am
18index a09260a..ba6e89e 100644 19index 2cd7358..eaf0afd 100644
19--- a/Makefile-gir.am 20--- a/Makefile-gir.am
20+++ b/Makefile-gir.am 21+++ b/Makefile-gir.am
21@@ -55,8 +55,8 @@ else 22@@ -58,8 +58,8 @@ else
22 endif 23 endif
23 24
24 # glib 25 # glib
@@ -29,7 +30,7 @@ index a09260a..ba6e89e 100644
29 30
30 GLIB_LIBRARY=glib-2.0 31 GLIB_LIBRARY=glib-2.0
31 32
32@@ -92,8 +92,8 @@ GLib-2.0.gir: g-ir-scanner g-ir-compiler$(EXEEXT) 33@@ -95,8 +95,8 @@ GLib-2.0.gir: g-ir-scanner g-ir-compiler$(EXEEXT)
33 gir/DBusGLib-1.0.typelib: GObject-2.0.gir 34 gir/DBusGLib-1.0.typelib: GObject-2.0.gir
34 35
35 # gobject 36 # gobject
@@ -40,7 +41,7 @@ index a09260a..ba6e89e 100644
40 41
41 GOBJECT_LIBRARY=gobject-2.0 42 GOBJECT_LIBRARY=gobject-2.0
42 43
43@@ -120,8 +120,8 @@ GObject_2_0_gir_FILES = \ 44@@ -123,8 +123,8 @@ GObject_2_0_gir_FILES = \
44 BUILT_GIRSOURCES += GObject-2.0.gir 45 BUILT_GIRSOURCES += GObject-2.0.gir
45 46
46 # gmodule 47 # gmodule
@@ -51,7 +52,7 @@ index a09260a..ba6e89e 100644
51 52
52 GMODULE_LIBRARY=gmodule-2.0 53 GMODULE_LIBRARY=gmodule-2.0
53 54
54@@ -146,13 +146,13 @@ GModule_2_0_gir_FILES = $(GLIB_INCLUDEDIR)/gmodule.h \ 55@@ -149,13 +149,13 @@ GModule_2_0_gir_FILES = $(GLIB_INCLUDEDIR)/gmodule.h \
55 BUILT_GIRSOURCES += GModule-2.0.gir 56 BUILT_GIRSOURCES += GModule-2.0.gir
56 57
57 # gio 58 # gio
@@ -91,6 +92,3 @@ index d89c3d9..b562266 100644
91 fi 92 fi
92 AC_SUBST(INTROSPECTION_SCANNER) 93 AC_SUBST(INTROSPECTION_SCANNER)
93 AC_SUBST(INTROSPECTION_COMPILER) 94 AC_SUBST(INTROSPECTION_COMPILER)
94--
952.7.0
96
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.56.1.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.58.0.bb
index f3479565ea..de898a788b 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.56.1.bb
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.58.0.bb
@@ -3,10 +3,10 @@ HOMEPAGE = "https://wiki.gnome.org/action/show/Projects/GObjectIntrospection"
3BUGTRACKER = "https://bugzilla.gnome.org/" 3BUGTRACKER = "https://bugzilla.gnome.org/"
4SECTION = "libs" 4SECTION = "libs"
5LICENSE = "LGPLv2+ & GPLv2+" 5LICENSE = "LGPLv2+ & GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=6317a809f70ed9848fa5673121908586 \ 6LIC_FILES_CHKSUM = "file://COPYING;md5=c434e8128a68bedd59b80b2ac1eb1c4a \
7 file://tools/compiler.c;md5=fc5007fc20022720e6c0b0cdde41fabd;endline=20 \ 7 file://tools/compiler.c;endline=20;md5=fc5007fc20022720e6c0b0cdde41fabd \
8 file://giscanner/sourcescanner.c;md5=194d6e0c1d00662f32d030ce44de8d39;endline=22 \ 8 file://giscanner/sourcescanner.c;endline=22;md5=194d6e0c1d00662f32d030ce44de8d39 \
9 file://girepository/giregisteredtypeinfo.c;md5=661847611ae6979465415f31a759ba27;endline=21 \ 9 file://girepository/giregisteredtypeinfo.c;endline=21;md5=661847611ae6979465415f31a759ba27 \
10 " 10 "
11 11
12SRC_URI = "${GNOME_MIRROR}/${BPN}/${@oe.utils.trim_version("${PV}", 2)}/${BPN}-${PV}.tar.xz \ 12SRC_URI = "${GNOME_MIRROR}/${BPN}/${@oe.utils.trim_version("${PV}", 2)}/${BPN}-${PV}.tar.xz \
@@ -16,16 +16,17 @@ SRC_URI = "${GNOME_MIRROR}/${BPN}/${@oe.utils.trim_version("${PV}", 2)}/${BPN}-$
16 file://0004-giscanner-add-a-use-ldd-wrapper-option.patch \ 16 file://0004-giscanner-add-a-use-ldd-wrapper-option.patch \
17 file://0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch \ 17 file://0005-Prefix-pkg-config-paths-with-PKG_CONFIG_SYSROOT_DIR-.patch \
18 file://0001-giscanner-add-a-lib-dirs-envvar-option.patch \ 18 file://0001-giscanner-add-a-lib-dirs-envvar-option.patch \
19 file://0001-giscanner-ignore-error-return-codes-from-ldd-wrapper.patch \
19 " 20 "
20 21
21SRC_URI[md5sum] = "62e5f5685b8d9752fdeaf17c057d53d1" 22SRC_URI[md5sum] = "94fec875276262037bfcd51226db12fe"
22SRC_URI[sha256sum] = "5b2875ccff99ff7baab63a34b67f8c920def240e178ff50add809e267d9ea24b" 23SRC_URI[sha256sum] = "27c1590a32749de0a5481ce897772547043e94bccba4bc0a7edb3d8513e401ec"
23 24
24SRC_URI_append_class-native = " file://0001-Relocate-the-repository-directory-for-native-builds.patch" 25SRC_URI_append_class-native = " file://0001-Relocate-the-repository-directory-for-native-builds.patch"
25 26
26inherit autotools pkgconfig gtk-doc python3native qemu gobject-introspection-data upstream-version-is-even 27inherit autotools pkgconfig gtk-doc python3native qemu gobject-introspection-data upstream-version-is-even
27 28
28DEPENDS_append = " libffi zlib glib-2.0 python3 flex-native bison-native" 29DEPENDS_append = " libffi zlib glib-2.0 python3 flex-native bison-native autoconf-archive"
29 30
30# target build needs qemu to run temporary introspection binaries created 31# target build needs qemu to run temporary introspection binaries created
31# on the fly by g-ir-scanner and a native version of itself to run 32# on the fly by g-ir-scanner and a native version of itself to run