From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xenproject.org, Ian.Jackson@eu.citrix.com
Cc: Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH v2 3/5] osstest: prepare FreeBSD host for Xen build
Date: Thu, 14 Aug 2014 16:08:13 +0200 [thread overview]
Message-ID: <1408025295-39114-4-git-send-email-roger.pau@citrix.com> (raw)
In-Reply-To: <1408025295-39114-1-git-send-email-roger.pau@citrix.com>
Install pkg (the binary package management tool) and the dependencies
needed to build Xen.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
Changes since RFC:
- Add the tools necessary in order to build the man pages and
markdown documents.
---
ts-xen-build-prep-freebsd | 48 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
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();
--
1.7.7.5 (Apple Git-26)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-08-14 14:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 14:08 [PATCH v2 0/5] osstest: add native FreeBSD build tests Roger Pau Monne
2014-08-14 14:08 ` [PATCH v2 1/5] osstest: add routine to execute ssh with password Roger Pau Monne
2014-08-14 14:08 ` [PATCH v2 2/5] osstest: add support for installing bare metal FreeBSD Roger Pau Monne
2014-08-14 14:08 ` Roger Pau Monne [this message]
2014-08-14 14:08 ` [PATCH v2 4/5] osstest: create a new job called build-<arch>-freebsd Roger Pau Monne
2014-08-14 14:08 ` [PATCH v2 5/5] osstest: make ts-xen-build work on FreeBSD Roger Pau Monne
2014-09-15 10:12 ` [PATCH v2 0/5] osstest: add native FreeBSD build tests Roger Pau Monné
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1408025295-39114-4-git-send-email-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).