From c1d04d0437f5817aee0d65c824baf5cd0ab2d1db Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Mon, 18 May 2015 02:44:34 -0400 Subject: [PATCH] Fix .gir file dependencies Ensure introspect is built before g-ir-scanner tries to run it. Fixes build failures with highly parallel builds: Traceback (most recent call last): File "/usr/bin/g-ir-scanner", line 55, in sys.exit(scanner_main(sys.argv)) File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 526, in scanner_main shlibs = create_binary(transformer, options, args) File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 410, in create_binary gdump_parser.parse() File "/usr/lib64/gobject-introspection/giscanner/gdumpparser.py", line 110, in parse tree = self._execute_binary_get_tree() File "/usr/lib64/gobject-introspection/giscanner/gdumpparser.py", line 167, in _execute_binary_get_tree subprocess.check_call(args, stdout=sys.stdout, stderr=sys.stderr) File "/usr/lib64/python2.7/subprocess.py", line 535, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib64/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory --- libvips/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/Makefile.am b/libvips/Makefile.am index 78a366d3..4b378df1 100644 --- a/libvips/Makefile.am +++ b/libvips/Makefile.am @@ -91,7 +91,7 @@ introspect_SOURCES = \ introspection_sources = @vips_introspection_sources@ # we make the vips8 API -Vips-8.0.gir: libvips.la +Vips-8.0.gir: introspect Vips_8_0_gir_INCLUDES = GObject-2.0 Vips_8_0_gir_CFLAGS = $(INCLUDES) -I${top_srcdir}/libvips/include Vips_8_0_gir_LIBS = libvips.la