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

Re: [Xen-devel] [OSSTEST PATCH 2/2] ts-libvirt-build: Do an out-of-tree build


  • To: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jim Fehlig <jfehlig@xxxxxxxx>
  • Date: Tue, 12 Nov 2019 16:02:14 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UE9hpd6TfytQNCMG38wyH6Ishld5ske2ih5t8boYnWY=; b=W7BcodeX3eKTP9bFrBG+l2tNr07y2GcE1Khn2DtpEkoT6LjH1HzQ78ebssDlRqoujTVgoJdV/bCP70YiPXgyC+sZOfV0JjX0wMyusqzIKtlHO2UG+O1NoVu/OQis6VR1AwIGiIbQGlaNmh8cnPDe2kD3zcs3AeEiNWYp2t+hI5aTJGgWf9voAZUA5IIsNXejbLwHpFcLRQF8+dLfgmOrAYKUT4qQhn8+sONMZX3qwlyWPfbVuW4bCCYdJl/Cvjk+aB08pCxYJkAbAM86ykL3IhAsVVpT/f1n6sGn6lw6w7puPNT17t7pGlW/QX0Z4OSqWlE+3JfnbmSXsM+Qu5iWCw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XzrVmUw9JNIyW6Wpkxus2hYTcQz8xXEJJug5YUsk4zfepo0x661JM/SuVXbSnO4wg1v8Bc+7rDXWigPqX9MiaN9A7iWO5hefTo6byx/0QVJ3yqhiza8IP6wPlt6ki/7S9HsWPMwxzGC3ySyERPuOLn/avb0O2ZShb337pF+PbhJUbUqD2Uxd77DYbTsMsxWKmgeIh2mZmhV8dGaThvpXeydySD49EXBrHiKl2Qg2/NwfYqSi8PQUeOoICwIjbhXFtj7ZMCO9iPuaxe3Q4gRXU6svdWy4NbCKxu7QGjN/ZqYFq5jheGiDr0kgVYlG0s8ksOREoSwIFOI9ViZ/8uLy5Q==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=jfehlig@xxxxxxxx;
  • Cc: Juergen Gross <JGross@xxxxxxxx>
  • Delivery-date: Tue, 12 Nov 2019 16:03:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVmVI6429aMa0My0KgJaURJTPYn6eHsnIA
  • Thread-topic: [OSSTEST PATCH 2/2] ts-libvirt-build: Do an out-of-tree build

On 11/12/19 5:09 AM, Ian Jackson wrote:
> Recent versions of libvirt do not support in-tree builds (!)

I assumed libvirt's gradual move from autotools to meson would affect OSSTEST, 
but later rather than sooner. Sorry for not mentioning it earlier, but now you 
have been warned that libvirt is moving to meson :-). Meson has a strict 
separation between source and build directories and some preparatory patches 
were pushed that force srcdir != builddir

https://www.redhat.com/archives/libvir-list/2019-October/msg01681.html

Daniel posted a note about this change yesterday

https://www.redhat.com/archives/libvir-list/2019-November/msg00299.html

I didn't read libvirt mail yesterday otherwise I would have forwarded that to 
xen-devel. I need to be more proactive with libvirt changes that might affect 
OSSTEST...

Regards,
Jim

> 
> Cope with this by always building in a subdirectory `build' (a
> subdirectory of the source tree); this is the arrangement which the
> libvirt upstream messages and documentation now seem to recommend (at
> least where things have been updated).
> 
> I compared the differences in build output between the results of this
> branch and a previous passing xen-unstable flight.  The libvirt
> library version increased and a file
>    usr/local/share/libvirt/cpu_map/arm_features.xml
> appeared.  I think this is just due to changes in the libvirt version,
> 2cff65e4c60e..70218e10bcde, in particular 0de541bfc575
>    cpu_map: Ship arm_features.xml
> 
> I also tested that a test job, built with current libvirt and these
> osstest changes, passes as expected.
> 
> CC: Jim Fehlig <jfehlig@xxxxxxxx>
> Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> Tested-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> ---
>   ts-libvirt-build | 12 +++++++-----
>   1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/ts-libvirt-build b/ts-libvirt-build
> index 2a363f43..e799f003 100755
> --- a/ts-libvirt-build
> +++ b/ts-libvirt-build
> @@ -58,11 +58,13 @@ sub config() {
>       my $gnulib = submodule_find($submodules, "gnulib");
>       target_cmd_build($ho, 3600, $builddir, <<END);
>           cd libvirt
> +     mkdir build
> +     cd build
>           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 \\
> +            ../autogen.sh --no-git \\
>                            --with-libxl --without-xen --without-xenapi 
> --without-selinux \\
>                            --without-lxc --without-vbox --without-uml \\
>                            --without-qemu --without-openvz --without-vmware \\
> @@ -72,9 +74,9 @@ END
>   
>   sub build() {
>       target_cmd_build($ho, 3600, $builddir, <<END);
> -        cd libvirt
> -        (make $makeflags 2>&1 && touch ../build-ok-stamp) |tee ../log
> -        test -f ../build-ok-stamp #/
> +        cd libvirt/build
> +        (make $makeflags 2>&1 && touch ../../build-ok-stamp) |tee ../log
> +        test -f ../../build-ok-stamp #/
>           echo ok.
>   END
>   }
> @@ -82,7 +84,7 @@ END
>   sub install() {
>       target_cmd_build($ho, 300, $builddir, <<END);
>           mkdir -p dist
> -        cd libvirt
> +        cd libvirt/build
>           make $makeflags install DESTDIR=$builddir/dist
>           mkdir -p $builddir/dist/etc/init.d
>   END
> 

_______________________________________________
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®.