From: Ian Campbell Date: Fri, 2 May 2014 13:08:04 +0000 (+0100) Subject: libvirt: Fixes for older versions of Xen X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=742e6cd5d51b48a0cc8c493f168a0c66d87a0f9a;p=osstest.git libvirt: Fixes for older versions of Xen libvirt supports Xen 4.2 onwards. However: - We were not correctly setting the libvirtbuildjob runvar on 4.3 and earlier. - Xen 4.2 installs to /usr not /usr/local so the CFLAGS/LDFLAGS used to build libvirt were wrong. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- diff --git a/mfi-common b/mfi-common index ae4d547..464001a 100644 --- a/mfi-common +++ b/mfi-common @@ -209,13 +209,13 @@ job_create_test () { xen-3.*-testing:*) ;; xen-4.0-testing:*) ;; xen-4.1-testing:*) ;; + *:libvirt) tsbuildjob="libvirtbuildjob=$buildjob-libvirt" + ;; xen-4.2-testing:*) ;; xen-4.3-testing:*) ;; *:xend) xenbuildjob="$xenbuildjob-xend" buildjob="${bfi}build-$dom0arch-xend" ;; - *:libvirt) tsbuildjob="libvirtbuildjob=$buildjob-libvirt" - ;; esac ./cs-job-create $flight $job $recipe toolstack=$toolstack \ diff --git a/ts-libvirt-build b/ts-libvirt-build index 9c731ce..40e0692 100755 --- a/ts-libvirt-build +++ b/ts-libvirt-build @@ -48,12 +48,21 @@ sub checkout () { } sub config() { + my $xenprefix; + foreach (qw(/usr/local /usr)) { + if (target_file_exists($ho, "$xendist$_/lib/libxenctrl.so")) { + $xenprefix="$xendist$_"; + last; + } + } + die "no xen prefix" unless $xenprefix; + # Uses $GNULIB_SRCDIR because ./autogen.sh doesn't propagate # --gnulib-srcdir to ./bootstap. target_cmd_build($ho, 3600, $builddir, <