Resolve library names to shared libraries ourselves
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 13 Aug 2009 20:09:27 +0000 (16:09 -0400)
committerColin Walters <walters@verbum.org>
Mon, 17 Aug 2009 04:11:44 +0000 (00:11 -0400)
commitaf6bcb48d777f683384d9b8497e1b0edba5b16e7
treec80ce74f9f0611dedb9d21e9d15176a269ceb69b
parent19db6454c48b6d8e4a0f033cf6c1d2b4be66f6c7
Resolve library names to shared libraries ourselves

Using ctypes.util.find_library() to resolve library names to
sonames causes problems with dealing with uninstalled libtool
operation properly. We're unlikely to find any way of combining
the two that will be robust against future changes in both
facilities.

Switch to a different approach - run 'ldd' on the compiled
introspection binary and extract sonames from there This is
less portable but should be quite robust where it works.

utils.py dumper.py: Move libtool-command-line finding into utils.py
girwriter.py: Remove library name resolution from here, expect libraries
  to be passed in preresolved.
shlibs.py scannermain.py: New file including resolve_shlibs() to resolve
  library names using the introspection binary.
tests/scanner/Makefile.am: Add .libs to LD_LIBRARY_PATH

http://bugzilla.gnome.org/show_bug.cgi?id=591669
giscanner/Makefile.am
giscanner/dumper.py
giscanner/girwriter.py
giscanner/scannermain.py
giscanner/shlibs.py [new file with mode: 0644]
giscanner/utils.py
tests/scanner/Makefile.am