You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NetBSD 10.x is a bit painful for us (borgbackup project) currently, because:
it still has OpenSSL 3.0.12 (maint release from Oct 2023, 3.0 is from Sep 2021), but we need >= 3.2 for 2 blocked PRs already (I had to work around this on NetBSD 10.x by compiling OpenSSL from source)
CI test runs (Python, pytest, tox - the usual stuff) frequently fail, not because of real test failures, but because the NetBSD 10.x Python just randomly segfaults. :-( No idea whether that will be better with NetBSD 11, but let's hope so.
Note: Ubuntu 24.04 also has the "old OpenSSL" issue, but github actions is rolling out Ubuntu 26.04 now.
arch="$(uname -m)"
sudo -E mkdir -p /usr/pkg/etc/pkgin
echo "https://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/${arch}/10.1/All" | sudo tee /usr/pkg/etc/pkgin/repositories.conf > /dev/null
sudo -E pkgin update
sudo -E pkgin -y upgrade
sudo -E pkgin -y install lz4 git
sudo -E pkgin -y install rust
sudo -E pkgin -y install pkg-config
sudo -E pkgin -y install py311-pip py311-virtualenv py311-tox
sudo -E ln -sf /usr/pkg/bin/python3.11 /usr/pkg/bin/python3
sudo -E ln -sf /usr/pkg/bin/pip3.11 /usr/pkg/bin/pip3
sudo -E ln -sf /usr/pkg/bin/virtualenv-3.11 /usr/pkg/bin/virtualenv3
sudo -E ln -sf /usr/pkg/bin/tox-3.11 /usr/pkg/bin/tox3
# Ensure base system admin tools are on PATH for the non-root shell
export PATH="/sbin:/usr/sbin:$PATH"
echo "--- Preparing an extattr-enabled filesystem ---"
# On many NetBSD setups /tmp is tmpfs without extended attributes.
# Create a FFS image with extended attributes enabled and use it for TMPDIR.
VNDDEV="vnd0"
IMGFILE="/tmp/fs.img"
sudo -E dd if=/dev/zero of=${IMGFILE} bs=1m count=1024
sudo -E vndconfig -c "${VNDDEV}" "${IMGFILE}"
sudo -E newfs -O 2ea /dev/r${VNDDEV}a
MNT="/mnt/eafs"
sudo -E mkdir -p ${MNT}
sudo -E mount -t ffs -o extattr /dev/${VNDDEV}a $MNT
export TMPDIR="${MNT}/tmp"
sudo -E mkdir -p ${TMPDIR}
sudo -E chmod 1777 ${TMPDIR}
touch ${TMPDIR}/testfile
lsextattr user ${TMPDIR}/testfile && echo "[xattr] *** xattrs SUPPORTED on ${TMPDIR}! ***"
tox3 -e py311-none
As you see, it has to do a lot of tweaking. Maybe some of this could be already done in the base image, feel free to pick anything you find appropriate.
The extended attributes stuff could be way simpler for example, if the already existing fs in the image had EAs enabled (one can choose that in the installer, IIRC).
Activity
ThomasWaldmann commentedon Jun 19, 2026
BTW, this is from our NetBSD 10.1 CI:
As you see, it has to do a lot of tweaking. Maybe some of this could be already done in the base image, feel free to pick anything you find appropriate.
The extended attributes stuff could be way simpler for example, if the already existing fs in the image had EAs enabled (one can choose that in the installer, IIRC).
[-]upcoming netbsd 11 release[/-][+]netbsd 11 is released![/+]ThomasWaldmann commentedon Aug 10, 2026
Thanks for adding NetBSD 11!
Will try the next c-p-a release ASAP.
ci: switch to NetBSD 11.0
ci: switch to NetBSD 11.0
Fix cross-platform-actions#154: Add support for NetBSD 11.0
ThomasWaldmann commentedon Aug 10, 2026
A first test run with the NetBSD 11 VM worked fine!