From 7259afe5de7c857a76ce6793b95683fe218a7410 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Mon, 14 Oct 2024 19:14:40 +0200 Subject: [PATCH] update INSTALL.rst about NetBSD --- INSTALL.rst | 4 ++-- scripts/internal/install-sysdeps.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/INSTALL.rst b/INSTALL.rst index a425400fd..8e06d400e 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -82,7 +82,7 @@ OpenBSD :: - export PKG_PATH=http://ftp.eu.openbsd.org/pub/OpenBSD/`uname -r`/packages/`uname -m`/ + export PKG_PATH=https://cdn.openbsd.org/pub/OpenBSD/`uname -r`/packages/`uname -m`/ pkg_add -v python3 gcc pip install psutil @@ -93,7 +93,7 @@ Assuming Python 3.11 (the most recent at the time of writing): :: - export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/`uname -m`/`uname -r`/All" + export PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/`uname -m`/`uname -r`/All" pkg_add -v pkgin pkgin install python311-* gcc12-* py311-setuptools-* py311-pip-* python3.11 -m pip install psutil diff --git a/scripts/internal/install-sysdeps.sh b/scripts/internal/install-sysdeps.sh index 003a7d081..baaea13bf 100755 --- a/scripts/internal/install-sysdeps.sh +++ b/scripts/internal/install-sysdeps.sh @@ -53,7 +53,8 @@ main() { $SUDO pkgin update $SUDO pkgin -y install python311-* gcc12-* elif [ $OPENBSD ]; then - $SUDO pkg_add gcc python3 + export PKG_PATH=https://cdn.openbsd.org/pub/OpenBSD/`uname -r`/packages/`uname -m`/ + $SUDO -E bash -c "pkg_add -v python3 gcc" else echo "Unsupported platform: $UNAME_S" fi