using pkg-config for dynamic release packaging

Tollef Fog Heen tfheen at
Fri Aug 13 23:01:34 PDT 2010

]] Enrico Weigelt 

| * Dan Nicholson <dbn.lists at> schrieb:
| > Fedora uses this patch for generating rpm Requires/Provides from .pc files.
| > 
| >
| I really doubt that this will be of great use, since the dist 
| buildsystem needs to know the deps, _before_ it can even attempt
| to build the package (and so the .pc file we would query), to 
| set up the build environment (sysroot image, etc).

Build dependencies are not run-time dependencies.  I assume there's a
hook late in the build process that looks at any installed .pc files and
dumps the Requires information from those, which is then translated into
actual package dependencies by something that knows that

Requires: foo >= 1

means it must find the package containing foo.pc and add that as a

Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

More information about the pkg-config mailing list