From b6a5baa92c0a5e0610f7c021089245703e84e3c4 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 3 Jul 2024 13:39:43 +0200 Subject: [PATCH 1/7] add freebsd 13 box, fixes #8266 users of TrueNAS do not have fbsd 14 yet. --- Vagrantfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 6a0b98cdb8..a2e1f42be8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -347,6 +347,23 @@ Vagrant.configure(2) do |config| b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("buster64", ".*none.*") end + config.vm.define "freebsd64old" do |b| + b.vm.box = "generic/freebsd13" + b.vm.provider :virtualbox do |v| + v.memory = 1024 + $wmem + end + b.ssh.shell = "sh" + b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") + b.vm.provision "packages freebsd", :type => :shell, :inline => packages_freebsd + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd64") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd64") + b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") + b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd64") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd64", ".*(fuse3|none).*") + end + config.vm.define "freebsd64" do |b| b.vm.box = "generic/freebsd14" b.vm.provider :virtualbox do |v| From 9cee77525c7e1b0d3c3eff4c6ca67f3e2e2daf7f Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 3 Jul 2024 13:44:27 +0200 Subject: [PATCH 2/7] vagrant: use freebsd(13|14)_64 as VM name --- Vagrantfile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index a2e1f42be8..e1c2b115cc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -347,7 +347,7 @@ Vagrant.configure(2) do |config| b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("buster64", ".*none.*") end - config.vm.define "freebsd64old" do |b| + config.vm.define "freebsd13_64" do |b| b.vm.box = "generic/freebsd13" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem @@ -355,16 +355,16 @@ Vagrant.configure(2) do |config| b.ssh.shell = "sh" b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages freebsd", :type => :shell, :inline => packages_freebsd - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd13_64") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd13_64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd13_64") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd64", ".*(fuse3|none).*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd13_64") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd13_64", ".*(fuse3|none).*") end - config.vm.define "freebsd64" do |b| + config.vm.define "freebsd14_64" do |b| b.vm.box = "generic/freebsd14" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem @@ -372,13 +372,13 @@ Vagrant.configure(2) do |config| b.ssh.shell = "sh" b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages freebsd", :type => :shell, :inline => packages_freebsd - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd14_64") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd14_64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd14_64") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd64", ".*(fuse3|none).*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd14_64") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd14_64", ".*(fuse3|none).*") end config.vm.define "openbsd64" do |b| From e63cd2c467a7dd5c2b5d7d4938d9cec5c34a3388 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 3 Jul 2024 13:50:06 +0200 Subject: [PATCH 3/7] vagrant: get rid of the "64" suffix for VM names. We only have 64bit machines anyway. And even in the unlikely case we would add 32bit machines, we could suffix them by "32". --- Vagrantfile | 104 ++++++++++++++++++++++++++-------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index e1c2b115cc..d01d3f67b0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -275,79 +275,79 @@ Vagrant.configure(2) do |config| v.cpus = $cpus end - config.vm.define "noble64" do |b| + config.vm.define "noble" do |b| b.vm.box = "ubuntu/noble64" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid("vagrant") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("noble64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("noble") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("noble64", ".*none.*") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("noble", ".*none.*") end - config.vm.define "jammy64" do |b| + config.vm.define "jammy" do |b| b.vm.box = "ubuntu/jammy64" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid("vagrant") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("jammy64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("jammy") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("jammy64", ".*none.*") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("jammy", ".*none.*") end - config.vm.define "bookworm64" do |b| + config.vm.define "bookworm" do |b| b.vm.box = "debian/bookworm64" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid("vagrant") - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("bookworm64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("bookworm64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("bookworm64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("bookworm") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("bookworm") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("bookworm") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("bookworm64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("bookworm64", ".*none.*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("bookworm") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("bookworm", ".*none.*") end - config.vm.define "bullseye64" do |b| + config.vm.define "bullseye" do |b| b.vm.box = "debian/bullseye64" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid("vagrant") - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("bullseye64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("bullseye64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("bullseye64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("bullseye") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("bullseye") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("bullseye") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("bullseye64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("bullseye64", ".*none.*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("bullseye") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("bullseye", ".*none.*") end - config.vm.define "buster64" do |b| + config.vm.define "buster" do |b| b.vm.box = "debian/buster64" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid("vagrant") - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("buster64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("buster64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("buster64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("buster") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("buster") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("buster") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("buster64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("buster64", ".*none.*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("buster") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("buster", ".*none.*") end - config.vm.define "freebsd13_64" do |b| + config.vm.define "freebsd13" do |b| b.vm.box = "generic/freebsd13" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem @@ -355,16 +355,16 @@ Vagrant.configure(2) do |config| b.ssh.shell = "sh" b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages freebsd", :type => :shell, :inline => packages_freebsd - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd13_64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd13_64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd13_64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd13") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd13") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd13") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd13_64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd13_64", ".*(fuse3|none).*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd13") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd13", ".*(fuse3|none).*") end - config.vm.define "freebsd14_64" do |b| + config.vm.define "freebsd14" do |b| b.vm.box = "generic/freebsd14" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem @@ -372,40 +372,40 @@ Vagrant.configure(2) do |config| b.ssh.shell = "sh" b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages freebsd", :type => :shell, :inline => packages_freebsd - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd14_64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd14_64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd14_64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd14") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd14") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd14") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd14_64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd14_64", ".*(fuse3|none).*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd14") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd14", ".*(fuse3|none).*") end - config.vm.define "openbsd64" do |b| + config.vm.define "openbsd" do |b| b.vm.box = "generic/openbsd7" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages openbsd", :type => :shell, :inline => packages_openbsd - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("openbsd64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("openbsd") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("nofuse") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("openbsd64", ".*fuse.*") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("openbsd", ".*fuse.*") end - config.vm.define "netbsd64" do |b| + config.vm.define "netbsd" do |b| b.vm.box = "generic/netbsd9" b.vm.provider :virtualbox do |v| v.memory = 4096 + $wmem # need big /tmp tmpfs in RAM! end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages netbsd", :type => :shell, :inline => packages_netbsd - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("netbsd64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("netbsd") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(false) - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("netbsd64", ".*fuse.*") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("netbsd", ".*fuse.*") end - config.vm.define "darwin64" do |b| + config.vm.define "darwin" do |b| b.vm.box = "macos-sierra" b.vm.provider :virtualbox do |v| v.memory = 4096 + $wmem @@ -421,27 +421,27 @@ Vagrant.configure(2) do |config| end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages darwin", :type => :shell, :privileged => false, :inline => packages_darwin - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("darwin64") - b.vm.provision "fix pyenv", :type => :shell, :privileged => false, :inline => fix_pyenv_darwin("darwin64") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("darwin64") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("darwin64") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("darwin") + b.vm.provision "fix pyenv", :type => :shell, :privileged => false, :inline => fix_pyenv_darwin("darwin") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("darwin") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("darwin") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("darwin64") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("darwin64", ".*(fuse3|none).*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("darwin") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("darwin", ".*(fuse3|none).*") end # rsync on openindiana has troubles, does not set correct owner for /vagrant/borg and thus gives lots of # permission errors. can be manually fixed in the VM by: sudo chown -R vagrant /vagrant/borg ; then rsync again. - config.vm.define "openindiana64" do |b| + config.vm.define "openindiana" do |b| b.vm.box = "openindiana/hipster" b.vm.provider :virtualbox do |v| v.memory = 2048 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages openindiana", :type => :shell, :inline => packages_openindiana - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("openindiana64") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("openindiana") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("nofuse") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("openindiana64", ".*fuse.*") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("openindiana", ".*fuse.*") end end From 81faea92880d23ca6b71686eff21fd6c3ba000b8 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 3 Jul 2024 13:52:42 +0200 Subject: [PATCH 4/7] vagrant: adapt fetch-binaries script --- scripts/fetch-binaries | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/fetch-binaries b/scripts/fetch-binaries index a43448d14e..5f502f8984 100755 --- a/scripts/fetch-binaries +++ b/scripts/fetch-binaries @@ -12,10 +12,11 @@ check_and_copy () { echo "" } -check_and_copy buster64 borg-linux-glibc228 -check_and_copy bullseye64 borg-linux-glibc231 -check_and_copy bookworm64 borg-linux-glibc236 +check_and_copy buster borg-linux-glibc228 +check_and_copy bullseye borg-linux-glibc231 +check_and_copy bookworm borg-linux-glibc236 -check_and_copy freebsd64 borg-freebsd +check_and_copy freebsd13 borg-freebsd13 +check_and_copy freebsd14 borg-freebsd14 -check_and_copy darwin64 borg-macos +check_and_copy darwin borg-macos From e36eaabb1c74cf0d1e1fc7b85ac27bd3c2a011f0 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 3 Jul 2024 13:57:56 +0200 Subject: [PATCH 5/7] vagrant: darwin -> macos Also: add macOS version number. --- Vagrantfile | 20 ++++++++++---------- scripts/fetch-binaries | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index d01d3f67b0..f9a9539ffd 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -105,7 +105,7 @@ def packages_netbsd EOF end -def packages_darwin +def packages_macos return <<-EOF # install all the (security and other) updates sudo softwareupdate --ignore iTunesX @@ -154,7 +154,7 @@ def install_pyenv(boxname) EOF end -def fix_pyenv_darwin(boxname) +def fix_pyenv_macos(boxname) return <<-EOF echo 'export PYTHON_CONFIGURE_OPTS="--enable-framework"' >> ~/.bash_profile EOF @@ -405,7 +405,7 @@ Vagrant.configure(2) do |config| b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("netbsd", ".*fuse.*") end - config.vm.define "darwin" do |b| + config.vm.define "macos1012" do |b| b.vm.box = "macos-sierra" b.vm.provider :virtualbox do |v| v.memory = 4096 + $wmem @@ -420,15 +420,15 @@ Vagrant.configure(2) do |config| v.customize ["modifyvm", :id, '--usbehci', 'off', '--usbxhci', 'off'] end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") - b.vm.provision "packages darwin", :type => :shell, :privileged => false, :inline => packages_darwin - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("darwin") - b.vm.provision "fix pyenv", :type => :shell, :privileged => false, :inline => fix_pyenv_darwin("darwin") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("darwin") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("darwin") + b.vm.provision "packages macos", :type => :shell, :privileged => false, :inline => packages_macos + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("macos") + b.vm.provision "fix pyenv", :type => :shell, :privileged => false, :inline => fix_pyenv_macos("macos") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("macos") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("macos") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("darwin") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("darwin", ".*(fuse3|none).*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("macos") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("macos", ".*(fuse3|none).*") end # rsync on openindiana has troubles, does not set correct owner for /vagrant/borg and thus gives lots of diff --git a/scripts/fetch-binaries b/scripts/fetch-binaries index 5f502f8984..ef720c38e1 100755 --- a/scripts/fetch-binaries +++ b/scripts/fetch-binaries @@ -19,4 +19,4 @@ check_and_copy bookworm borg-linux-glibc236 check_and_copy freebsd13 borg-freebsd13 check_and_copy freebsd14 borg-freebsd14 -check_and_copy darwin borg-macos +check_and_copy macos1012 borg-macos1012 From fe8ef751eed5bbefff8711fcc16fa06f4662ae70 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 3 Jul 2024 14:03:26 +0200 Subject: [PATCH 6/7] vagrant: macos: add version number to call param --- Vagrantfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index f9a9539ffd..a30c9fd44f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -421,14 +421,14 @@ Vagrant.configure(2) do |config| end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages macos", :type => :shell, :privileged => false, :inline => packages_macos - b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("macos") - b.vm.provision "fix pyenv", :type => :shell, :privileged => false, :inline => fix_pyenv_macos("macos") - b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("macos") - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("macos") + b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("macos1012") + b.vm.provision "fix pyenv", :type => :shell, :privileged => false, :inline => fix_pyenv_macos("macos1012") + b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("macos1012") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("macos1012") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("llfuse") b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller() - b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("macos") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("macos", ".*(fuse3|none).*") + b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("macos1012") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("macos1012", ".*(fuse3|none).*") end # rsync on openindiana has troubles, does not set correct owner for /vagrant/borg and thus gives lots of From 91452e30794d3bf6809e646802755eda52762d0b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 3 Jul 2024 14:04:57 +0200 Subject: [PATCH 7/7] vagrant: netbsd/openbsd: add version number --- Vagrantfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index a30c9fd44f..23676e6619 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -381,28 +381,28 @@ Vagrant.configure(2) do |config| b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd14", ".*(fuse3|none).*") end - config.vm.define "openbsd" do |b| + config.vm.define "openbsd7" do |b| b.vm.box = "generic/openbsd7" b.vm.provider :virtualbox do |v| v.memory = 1024 + $wmem end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages openbsd", :type => :shell, :inline => packages_openbsd - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("openbsd") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("openbsd7") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("nofuse") - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("openbsd", ".*fuse.*") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("openbsd7", ".*fuse.*") end - config.vm.define "netbsd" do |b| + config.vm.define "netbsd9" do |b| b.vm.box = "generic/netbsd9" b.vm.provider :virtualbox do |v| v.memory = 4096 + $wmem # need big /tmp tmpfs in RAM! end b.vm.provision "fs init", :type => :shell, :inline => fs_init("vagrant") b.vm.provision "packages netbsd", :type => :shell, :inline => packages_netbsd - b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("netbsd") + b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("netbsd9") b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg(false) - b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("netbsd", ".*fuse.*") + b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("netbsd9", ".*fuse.*") end config.vm.define "macos1012" do |b|