diff options
Diffstat (limited to 'meta/recipes-gnome/gobject-introspection/gobject-introspection')
-rw-r--r-- | meta/recipes-gnome/gobject-introspection/gobject-introspection/0003-giscanner-add-use-binary-wrapper-option.patch | 4 |
1 files changed, 2 insertions, 2 deletions
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 b0d098c9fc..f21eaca855 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 | |||
@@ -36,11 +36,11 @@ index 633496f..d684cd0 100755 | |||
36 | + # The wrapper needs the binary itself, not the libtool wrapper script, | 36 | + # The wrapper needs the binary itself, not the libtool wrapper script, |
37 | + # so we check if libtool has sneaked the binary into .libs subdirectory | 37 | + # so we check if libtool has sneaked the binary into .libs subdirectory |
38 | + # and adjust the path accordingly | 38 | + # and adjust the path accordingly |
39 | + import os.path | 39 | + import os.path |
40 | + dir_name, binary_name = os.path.split(binary.args[0]) | 40 | + dir_name, binary_name = os.path.split(binary.args[0]) |
41 | + libtool_binary = os.path.join(dir_name, '.libs', binary_name) | 41 | + libtool_binary = os.path.join(dir_name, '.libs', binary_name) |
42 | + if os.path.exists(libtool_binary): | 42 | + if os.path.exists(libtool_binary): |
43 | + binary.args[0] = libtool_binary | 43 | + binary.args[0] = libtool_binary |
44 | + # Then prepend the wrapper to the command line to execute | 44 | + # Then prepend the wrapper to the command line to execute |
45 | + binary.args = [options.wrapper] + binary.args | 45 | + binary.args = [options.wrapper] + binary.args |
46 | gdump_parser.set_introspection_binary(binary) | 46 | gdump_parser.set_introspection_binary(binary) |