[SM-Discuss] New (helpful?) pkg-config feature
Juuso Alasuutari
iuso at sourcemage.org
Mon Nov 5 17:37:17 EST 2007
I thought I'd advertise my latest creation here because it has potential for
making a mage's life easier.
I've written a patch for pkg-config which adds the option to log to a Unix
socket. That means you can capture info about what packages a configure
script is looking for -- without ever having to modify the scripts. You
simply fire up a program that listens on a socket, set the
PKG_CONFIG_LOG_SOCKET variable to point to that socket, and voilá: pkg-config
will report the packages and versions requested from it.
Add to that some logic for matching pkg-config package names with spell names,
and you get a program that tells you what spells a source package is hungry
for.
I've uploaded a tarball with the patch plus an example program to demonstrate
the feature. I'll highly appreciate any feedback. Get it at:
http://www.cs.uta.fi/~a445063/pkg-config-logsocket.tar.bz2
--
Juuso Alasuutari
[[ Source Mage GNU/Linux ]]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ibiblio.org/pipermail/sm-discuss/attachments/20071106/9a2d473a/attachment.bin
More information about the SM-Discuss
mailing list