Naming of a .pc file: package.pc vs package-version.pc

Dan Nicholson dbn.lists at gmail.com
Sun May 3 09:10:14 PDT 2009


On Sun, May 3, 2009 at 7:00 AM, Thomas Moulard <thomas.moulard at gmail.com> wrote:
> Hello,
> I was wondering if anyone could suggest me what is the best way to
> name a ``.pc'' file.
> On my system I have some packages using the package-version.pc naming
> (like bonobo-activation-2.0.pc)
> or the package.pc naming (like cairo.pc).

I think you would only want to add the version to the name if you
needed to distinguish it from a separate version of the same package
that may also be installed. A lot of GNOME packages did this when they
went to 2.0 to allow the 1.x versions to be parallel installable.
However, to truly be parallel installable, there are lots of other
criteria to consider, too. Most of this thinking flows from something
Havoc Pennington wrote a few years back:

http://ometer.com/parallel.html

The version on .pc name is one of those criteria, though, if you don't
want separate versions in separate directories.

--
Dan


More information about the pkg-config mailing list