[lxc-devel] [PATCH 2/3] lxc-pkgconfig-dir

Daniel P. Berrange berrange at redhat.com
Mon Sep 10 14:46:09 UTC 2012


On Mon, Sep 10, 2012 at 10:39:39AM -0400, Stéphane Graber wrote:
> On 12-09-10 10:28 AM, Dwight Engen wrote:
> > Put pkg-config .pc file in libdir.
> > 
> > Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
> > ---
> >  Makefile.am |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/Makefile.am b/Makefile.am
> > index 887e300..c66ecc6 100644
> > --- a/Makefile.am
> > +++ b/Makefile.am
> > @@ -6,7 +6,7 @@ SUBDIRS = src templates doc
> >  DIST_SUBDIRS = config src templates doc
> >  EXTRA_DIST = autogen.sh lxc.spec CONTRIBUTING MAINTAINERS ChangeLog
> >  
> > -pcdatadir = $(datadir)/pkgconfig
> > +pcdatadir = $(libdir)/pkgconfig
> >  pcdata_DATA = lxc.pc
> >  
> >  ChangeLog::
> 
> What's the reason for that change?
> 
> I believe both locations are allowed in pkg-config and at least on
> Debian systems, /usr/share/pkgconfig is more popular, so unless there's
> a very good reason for that change, I'm against it.

The .pc files in /usr/share/pkgconfig must not refer to files that
live in /usr/lib. If they do, then they must go in /usr/lib/pkgconfig
This is so that you can install multiple arch versions of the
libraries concurrently. eg both 32 & 64 bit versions

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the lxc-devel mailing list