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

Re: [Xen-devel] [PATCH v4 08/11] osstest: prepare FreeBSD host for Xen build



On Wed, 2015-02-18 at 17:18 +0100, Roger Pau Monne wrote:
> Install pkg (the binary package management tool) and the dependencies
> needed to build Xen.
> 
> Signed-off-by: Roger Pau Monnà <roger.pau@xxxxxxxxxx>
> Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
> Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>

Looks reasonable.

> ---
> Changes since RFC:
>  - Add the tools necessary in order to build the man pages and
>    markdown documents.
> ---
>  ts-xen-build-prep-freebsd | 48 
> +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 48 insertions(+)
>  create mode 100755 ts-xen-build-prep-freebsd
> 
> diff --git a/ts-xen-build-prep-freebsd b/ts-xen-build-prep-freebsd
> new file mode 100755
> index 0000000..7a15b03
> --- /dev/null
> +++ b/ts-xen-build-prep-freebsd
> @@ -0,0 +1,48 @@
> +#!/usr/bin/perl -w
> +# This is part of "osstest", an automated testing framework for Xen.
> +# Copyright (C) 2009-2014 Citrix Inc.
> +# 
> +# This program is free software: you can redistribute it and/or modify
> +# it under the terms of the GNU Affero General Public License as published by
> +# the Free Software Foundation, either version 3 of the License, or
> +# (at your option) any later version.
> +# 
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +# GNU Affero General Public License for more details.
> +# 
> +# You should have received a copy of the GNU Affero General Public License
> +# along with this program.  If not, see <http://www.gnu.org/licenses/>.
> +
> +use strict qw(vars);
> +use DBI;
> +use POSIX;
> +
> +use Osstest;
> +use Osstest::TestSupport;
> +use Osstest::Logtailer;
> +
> +tsreadconfig();
> +
> +our ($whhost) = @ARGV;
> +$whhost ||= 'host';
> +our $ho= selecthost($whhost);
> +exit 0 if $ho->{SharedReady};
> +
> +#TODO: should be a runvar
> +our $compiler = 'gcc47';
> +our $deps = "mercurial git bash python bcc glib pkgconf yajl gmake pixman ".
> +            "perl5 markdown bison gettext gawk $compiler";
> +
> +sub install_depends () {
> +    logm('Installing Xen build dependencies');
> +    target_cmd_root($ho, <<END, 2400);
> +        set -e
> +        export ASSUME_ALWAYS_YES="YES"
> +        pkg install -y $deps
> +        ln -s /usr/local/bin/$compiler /usr/local/bin/gcc
> +END
> +}
> +
> +install_depends();



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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