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 <module>
        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
This commit is contained in:
Benjamin Gilbert 2015-05-18 02:44:34 -04:00
parent 045678d438
commit c1d04d0437

View File

@ -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