From: Wei Liu Date: Wed, 26 Sep 2018 16:37:04 +0000 (+0100) Subject: ts-xen-build-prep: install libgnutls28-dev for libvirt build X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1db17774e8d68668ea98c0de6ebb8e83a394f05c;p=osstest.git ts-xen-build-prep: install libgnutls28-dev for libvirt build d54ecf31b2 placed the build dependency in a wrong file. This patch adds the dependency to the right file. Add a runtime dependency in libvirt.pm. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm index d5cda77..7ebeaf6 100644 --- a/Osstest/Toolstack/libvirt.pm +++ b/Osstest/Toolstack/libvirt.pm @@ -26,10 +26,14 @@ use XML::LibXML; sub new { my ($class, $ho, $methname,$asset) = @_; - my @extra_packages = qw(libavahi-client3 libgnutls28-dev); + my @extra_packages = qw(libavahi-client3); my $nl_lib = "libnl-3-200"; + my $libgnutls = "libgnutls30"; + $nl_lib = "libnl1" if ($ho->{Suite} =~ m/wheezy/); + $libgnutls = "libgnutls-deb0-28" if ($ho->{Suite} =~ m/jessie/); push(@extra_packages, $nl_lib); + push(@extra_packages, $libgnutls); return bless { Name => "libvirt", Host => $ho, NewDaemons => [qw(libvirtd)], diff --git a/ts-xen-build-prep b/ts-xen-build-prep index 77a2d28..23bbbeb 100755 --- a/ts-xen-build-prep +++ b/ts-xen-build-prep @@ -208,7 +208,8 @@ sub prep () { libxml2-utils libxml2-dev libdevmapper-dev w3c-dtd-xhtml libxml-xpath-perl libelf-dev - ccache nasm checkpolicy ebtables); + ccache nasm checkpolicy ebtables + libgnutls28-dev); if ($ho->{Suite} !~ m/squeeze|wheezy/) { push(@packages, qw(ocaml-nox ocaml-findlib));