Installing pkg-config files for krb5

Stef Walter stefw at gnome.org
Thu Sep 27 05:14:20 EDT 2012


Using krb5 would be that much easier if it installed pkg-config files.

The krb5-config program works fine, but is non-standard. Lots of
software is installing pkg-config files, and consuming them, and they've
become a defacto standard.

There are also standard autoconf, cmake and waf macros for pkg-config.
And they're also used in interesting ways. For example, jhbuild and
ostree consume pkg-config files directly when calculating dependencies
for automated building of software.

I've attached a patch which adds pkg-config files. Some notes:

 * Obviously I haven't removed the krb5-config script, just moved
   a bit of its logic into aclocal.m4.

 * pkg-config has a glib dependency, but pkg-config is not required
   to create or distribute *.pc files. Thus krb5 does not get a new
   dependency, merely installs a few more text files. Also see pkgconf
   for a non-glib based implementation of pkg-config.

 * Below I've included a list of all the equivalencies between
   krb5-config and the use of the pkg-config files. The output is
   slightly different in places because pkg-config removes some
   multiple identical arguments in --libs and krb5-config doesn't.

How does this sound?

Cheers,

Stef


------------------------------------
 The equivalencies for testing:

 $ krb5-config krb5 --cflags
 $ pkg-config krb5 --cflags

 $ krb5-config krb5 --libs
 $ pkg-config krb5 --libs

 $ krb5-config gssapi --cflags
 $ pkg-config krb5-gssapi --cflags

 $ krb5-config gssapi --libs
 $ pkg-config krb5-gssapi --libs

 $ krb5-config kdb --cflags
 $ pkg-config kdb --cflags

 $ krb5-config kdb --libs
 $ pkg-config kdb --libs

 $ krb5-config kadm-server --cflags
 $ pkg-config kadm-server --cflags

 $ krb5-config kadm-server --libs
 $ pkg-config kadm-server --libs

 $ krb5-config kadm-client --cflags
 $ pkg-config kadm-client --cflags

 $ krb5-config kadm-client --libs
 $ pkg-config kadm-client --libs

 $ krb5-config --all
 $ # no direct equivalent, use pkg-config krb5 --variable=xxx

 $ krb5-config --vendor
 $ pkg-config krb5 --variable=vendor

 $ krb5-config --prefix
 $ pkg-config krb5 --variable=prefix

 $ krb5-config --exec-prefix
 $ pkg-config krb5 --variable=exec_prefix

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-pkg-config-files-for-krb5-libraries.patch
Type: text/x-patch
Size: 8114 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/krbdev/attachments/20120927/c055c362/attachment.bin


More information about the krbdev mailing list