@@ -13,7 +13,12 @@ Vagrant.configure("2") do |config|
1313 # Every Vagrant development environment requires a box. You can search for
1414 # boxes at https://vagrantcloud.com/search.
1515 config . vm . guest = :netbsd
16- config . vm . box = "generic/netbsd9"
16+ # config.vm.box = "generic/netbsd9"
17+ # config.vm.box_version = "4.3.12"
18+
19+ config . vm . box = "NetBSD/NetBSD-9.1"
20+ config . vm . box_version = "1.0.0"
21+
1722 config . vm . provider "virtualbox" do |v |
1823 v . name = "ci_netbsd"
1924 end
@@ -48,9 +53,14 @@ Vagrant.configure("2") do |config|
4853 # the path on the host to the actual folder. The second argument is
4954 # the path on the guest to mount the folder. And the optional third
5055 # argument is a set of non-required options.
51- #config.vm.synced_folder "../../..", "/home/vagrant/project"
52- config . vm . synced_folder "." , "/vagrant" , id : "vagrant-root" , disabled : true
56+ # config.vm.synced_folder "../data", "/vagrant_data"
5357
58+ # Disable the default share of the current code directory. Doing this
59+ # provides improved isolation between the vagrant box and your host
60+ # by making sure your Vagrantfile isn't accessible to the vagrant box.
61+ # If you use this you may want to enable additional shared subfolders as
62+ # shown above.
63+ config . vm . synced_folder "." , "/vagrant" , disabled : true
5464
5565 # Provider-specific configuration so you can fine-tune various
5666 # backing providers for Vagrant. These expose provider-specific options.
@@ -73,12 +83,28 @@ Vagrant.configure("2") do |config|
7383 # note: clang installed by default
7484 config . vm . provision "env" , type : "shell" , inline :<<-SHELL
7585 set -x
76- pkg update -f
77- pkg install -y git cmake
86+ pkgin upgrade
87+ pkgin -y install git cmake
88+ pkgin -y install mozilla-rootcerts-openssl
89+ SHELL
90+
91+ config . vm . provision "gcc14" , type : "shell" , inline :<<-SHELL
92+ set -x
93+ pkgin -y install gcc14
7894 SHELL
7995
96+ # config.vm.provision "gcc14", type: "shell", inline:<<-SHELL
97+ # set -x
98+ # ftp ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-2024Q4/pkgsrc.tar.gz
99+ # tar -xzf pkgsrc.tar.gz -C /usr
100+ # ls /usr/pkgsrc/lang
101+ # cd /usr/pkgsrc/lang/gcc14
102+ # make install clean clean-depens -j4
103+ # SHELL
104+
80105 config . vm . provision "file" , source : "../../../CMakeLists.txt" , destination : "$HOME/project/"
81106 config . vm . provision "file" , source : "../../../cmake" , destination : "$HOME/project/"
107+ config . vm . provision "file" , source : "../../../patches" , destination : "$HOME/project/"
82108 config . vm . provision "file" , source : "../../../Foo" , destination : "$HOME/project/"
83109 config . vm . provision "file" , source : "../../../Bar" , destination : "$HOME/project/"
84110 config . vm . provision "file" , source : "../../../FooBar" , destination : "$HOME/project/"
@@ -94,6 +120,8 @@ Vagrant.configure("2") do |config|
94120 config . vm . provision "configure" , type : "shell" , inline :<<-SHELL
95121 set -x
96122 cd project
123+ export CC=/usr/pkg/gcc14/bin/gcc
124+ export CXX=/usr/pkg/gcc14/bin/g++
97125 cmake -S. -Bbuild
98126 SHELL
99127
0 commit comments