1 # Names of libraries included in typelib files are opened by dlopen. Here we
4 # This patch was provided by Luca Bruno <lucabru@src.gnome.org> for
5 # 'gobject-introspection' 1.40.0 in Nix.
6 --- ./giscanner/utils.py.orig 2014-08-14 22:05:05.055334080 +0200
7 +++ ./giscanner/utils.py 2014-08-14 22:05:24.687497334 +0200
12 - # Darwin uses absolute paths where possible; since the libtool files never
13 - # contain absolute paths, use the libdir field
14 - if platform.system() == 'Darwin':
15 - dlbasename = os.path.basename(dlname)
16 - libdir = _extract_libdir_field(la_file)
19 - return libdir + '/' + dlbasename
20 - # From the comments in extract_libtool(), older libtools had
21 - # a path rather than the raw dlname
22 - return os.path.basename(dlname)
23 + dlbasename = os.path.basename(dlname)
24 + libdir = _extract_libdir_field(la_file)
27 + return libdir + '/' + dlbasename
30 def extract_libtool(la_file):