[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 1/2] ts-libvirt-build: Provide PKG_CONFIG_PATH



In osstest we do not install the xen tree in /usr/local because the
build environment is shared with many different build jobs which might
be using different versions of Xen.  We put it in a job-specific
directory in ~osstest on the build host, and set environment variables
to ensure that it all gets picked up.

Recent versions of libvirt insist on finding xenlight.pc; otherwise
they disable libxl support.  So we must add a PKG_CONFIG_PATH setting.

(In all cases, contrary to the usual protocol for path-like variables,
we do not append but instead simply set the variable.  This is OK
because this is an osstest build script run via ssh to the build host,
so the variables won't have been set already.)

CC: Jim Fehlig <jfehlig@xxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 ts-libvirt-build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ts-libvirt-build b/ts-libvirt-build
index bc08190a..2a363f43 100755
--- a/ts-libvirt-build
+++ b/ts-libvirt-build
@@ -60,6 +60,7 @@ sub config() {
         cd libvirt
         CFLAGS="-g -I$xenprefix/include/" \\
         LDFLAGS="-g -L$xenprefix/lib/ -Wl,-rpath-link=$xenprefix/lib/" \\
+        PKG_CONFIG_PATH="$xenprefix/lib/pkgconfig/" \\
         GNULIB_SRCDIR=$builddir/libvirt/$gnulib->{Path} \\
             ./autogen.sh --no-git \\
                          --with-libxl --without-xen --without-xenapi 
--without-selinux \\
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.