forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vagrant: switch to use out of tree build
Vagrant shared folder, at least on the default virtual box, does not support the creation of the socket files. If one were to build OVS under /vagrant, 'make check' would not work. Out of tree builds can be used to work around this issue. See Install.md for instructions. Since out of tree builds requires a clean source tree, Vagrantfile can not be a generated file. This commit removes Vagrantfile.in, commit Vagrantfile instead. Signed-off-by: Andy Zhou <[email protected]> Acked-by: Thomas Graf <[email protected]>
- Loading branch information
1 parent
d546048
commit b56b256
Showing
6 changed files
with
67 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,5 +65,4 @@ tags | |
_debian | ||
odp-netlink.h | ||
OvsDpInterface.h | ||
Vagrantfile | ||
/.vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
$bootstrap_fedora = <<SCRIPT | ||
yum -y update | ||
yum -y install autoconf automake openssl-devel libtool \ | ||
python-twisted-core python-zope-interface PyQt4 \ | ||
desktop-file-utils groff graphviz rpmdevtools | ||
echo "search extra update built-in" >/etc/depmod.d/search_path.conf | ||
SCRIPT | ||
|
||
$configure_ovs = <<SCRIPT | ||
mkdir -p ~/build | ||
cd ~/build | ||
/vagrant/configure --with-linux=/lib/modules/`uname -r`/build | ||
SCRIPT | ||
|
||
$build_ovs = <<SCRIPT | ||
cd ~/build | ||
make | ||
SCRIPT | ||
|
||
$install_rpm = <<SCRIPT | ||
cd ~/build | ||
PACKAGE_VERSION=`autom4te -l Autoconf -t 'AC_INIT:$2' /vagrant/configure.ac` | ||
make && make dist | ||
rpmdev-setuptree | ||
cp openvswitch-$PACKAGE_VERSION.tar.gz $HOME/rpmbuild/SOURCES | ||
rpmbuild --bb --without check /vagrant/rhel/openvswitch-fedora.spec | ||
sudo rpm -e openvswitch | ||
sudo rpm -ivh $HOME/rpmbuild/RPMS/x86_64/openvswitch-$PACKAGE_VERSION-1.fc20.x86_64.rpm | ||
sudo systemctl enable openvswitch | ||
sudo systemctl start openvswitch | ||
sudo systemctl status openvswitch | ||
SCRIPT | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
config.vm.define "fedora-20" do |fedora| | ||
fedora.vm.box = "chef/fedora-20" | ||
fedora.vm.provision :shell, inline: $bootstrap_fedora | ||
end | ||
|
||
config.vm.provision "configure_ovs", type: "shell", inline: $configure_ovs, privileged: false | ||
config.vm.provision "build_ovs", type: "shell", inline: $build_ovs, privileged: false | ||
config.vm.provision "install_rpm", type: "shell", inline: $install_rpm, privileged: false | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters