1From d771e8ddb5e40f234459966e46880d10f34aaa1a Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sat, 20 Nov 2021 23:57:33 +0100
4Subject: [PATCH] gee/Makefile.am: include Makefile.introspection
5
6Include Makefile.introspection instead of using a custom rule which will
7result in the following build failure when cross-compiling on buildroot
8because of missing --includedir:
9
10/home/giuliobenetti/autobuild/run/instance-1/output-1/host/bin/../riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler -l `/usr/bin/sed -nE "s/^dlname='([A-Za-z0-9.+-]+)'/\1/p" libgee-0.8.la` -o Gee-0.8.typelib Gee-0.8.gir libgee-0.8.la
11Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
12error parsing file Gee-0.8.gir: Failed to parse included gir GObject-2.0
13
14Fixes:
15 - http://autobuild.buildroot.org/results/884faa0f84c8dc43ed1ca6cde9caf21c731a4b35
16
17Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
18[Upstream status:
19https://gitlab.gnome.org/GNOME/libgee/-/merge_requests/8]
20---
21 gee/Makefile.am | 3 ++-
22 1 file changed, 2 insertions(+), 1 deletion(-)
23
24diff --git a/gee/Makefile.am b/gee/Makefile.am
25index 5634bcb..e0d950e 100644
26--- a/gee/Makefile.am
27+++ b/gee/Makefile.am
28@@ -167,7 +167,8 @@ INTROSPECTION_COMPILER_ARGS= \
29 	-l $(libgee_dlname)
30 Gee-0.8.gir: libgee_0_8_la_vala.stamp
31 Gee-0.8.typelib: Gee-0.8.gir libgee-0.8.la
32-	@INTROSPECTION_COMPILER@ $(INTROSPECTION_COMPILER_ARGS) -o $@ $^
33+
34+-include $(INTROSPECTION_MAKEFILE)
35 endif
36
37 MOSTLYCLEANFILES = \
38--
392.33.0
40
41