From a0f56bfddd02d318d9f041304ae4b276fdc5e94e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 3 Nov 2024 15:05:07 +0100 Subject: [PATCH 1/2] vagrant: simplify openindiana box setup --- Vagrantfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index faf9e05d8..b7b867cd1 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -180,11 +180,7 @@ def packages_openindiana return <<-EOF # needs separate provisioning step + reboot: #pkg update - pkg install gcc-13 git pkg-config libxxhash - ln -sf /usr/bin/python3.9 /usr/bin/python3 - python3 -m ensurepip - ln -sf /usr/bin/pip3.9 /usr/bin/pip3 - pip3 install virtualenv + pkg install gcc-13 git pkg-config libxxhash pip virtualenv # let borg's pkg-config find openssl: pfexec pkg set-mediator -V 3.1 openssl EOF From 32a8c9a3c957df668095d65469fcf4920782980b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 3 Nov 2024 19:28:15 +0100 Subject: [PATCH 2/2] vagrant: fix pythons on freebsd14 - install with sqlite3 - make sure there is python3/pip3/virtualenv command --- Vagrantfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index b7b867cd1..4733d634a 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -43,12 +43,13 @@ def packages_freebsd pkg install -y fusefs-libs3 || true pkg install -y rust pkg install -y git bash # fakeroot causes lots of troubles on freebsd - # for building python (for the tests we use pyenv built pythons): + pkg install -y python39 py39-sqlite3 pkg install -y python310 py310-sqlite3 - # make sure there is a python3 command - ln -sf /usr/local/bin/python3.10 /usr/local/bin/python3 - python3 -m ensurepip - pip3 install virtualenv + pkg install -y python311 py311-sqlite3 py311-pip py311-virtualenv + # make sure there is a python3/pip3/virtualenv command + ln -sf /usr/local/bin/python3.11 /usr/local/bin/python3 + ln -sf /usr/local/bin/pip-3.11 /usr/local/bin/pip3 + ln -sf /usr/local/bin/virtualenv-3.11 /usr/local/bin/virtualenv # make bash default / work: chsh -s bash vagrant mount -t fdescfs fdesc /dev/fd