Package: lua-lgi / 0.9.2-4

0001-hack-to-generate-an-empty-config.h.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Wed, 15 Oct 2014 22:11:57 +0200
Subject: hack to generate an empty config.h
Forwarded: not-needed

---
 tests/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile b/tests/Makefile
index 21b9caa..f71b677 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -67,7 +67,10 @@ $(REGRESS) : regress.o
 GIDATADIR = $(shell $(PKG_CONFIG) --variable=gidatadir gobject-introspection-1.0)/tests
 
 regress.o : $(GIDATADIR)/regress.c $(GIDATADIR)/regress.h $(DEPCHECK)
-	$(CC) $(ALL_CFLAGS) -c -o $@ $<
+	if [ ! -e /usr/share/gobject-introspection-1.0/tests/config.h ]; then\
+		touch config.h;\
+	fi
+	$(CC) -I . $(ALL_CFLAGS) -c -o $@ $<
 
 # Build .gir and .typelib
 Regress-1.0.gir : $(REGRESS)