[libvirt] [libvirt-python PATCH] setup: Make libvirt API XML path configurable

Daniel P. Berrange berrange at redhat.com
Mon Mar 24 09:49:52 UTC 2014


On Fri, Mar 21, 2014 at 05:00:35PM -0600, Eric Blake wrote:
> On 03/13/2014 12:03 AM, Martin Kletzander wrote:
> > On Wed, Mar 12, 2014 at 11:15:43AM -0600, Eric Blake wrote:
> >> Revisiting an older thread
> >>
> 
> >>>>> -        libvirt_api = get_pkgconfig_data(["--variable", "libvirt_api"], "libvirt")
> >>>>> +        libvirt_api = os.getenv("LIBVIRT_API_PATH")
> >>>>> +
> >>
> >>>>
> >>>> NACK, setting pkg-config already takes care of this. See the
> >>>> build-many.sh scrpit attached to this mail which demonstrates
> >>>> use of PKG_CONFIG_PATH to build against every version of libvirt
> >>>> back to 0.9.11
> 
> Is there a way to point pkg-config at an in-tree uninstalled libvirt?

That's not going to do anything because the .pc file will still point
to the install location. You could however create a completely separate
libvirt.pc file just for in-tree usage that pointed to stuff in the
$build_dir, and then set PKG_CONFNIG_PATH to point to the directory
containing that .pc file instead of the real one.

Regards,
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 libvir-list mailing list