From e0104e45b234fa73547f43e691e0c3112de51c29 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Fri, 14 Aug 2026 20:35:08 +0300 Subject: [PATCH] detect NetBSD package architecture --- kbuildx/scripts/netbsd-deps.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kbuildx/scripts/netbsd-deps.sh b/kbuildx/scripts/netbsd-deps.sh index d10a3d8..e0757a4 100755 --- a/kbuildx/scripts/netbsd-deps.sh +++ b/kbuildx/scripts/netbsd-deps.sh @@ -11,7 +11,11 @@ else printf '%s\n' 'NetBSD resize_ffs is unavailable; cannot use the expanded build disk' >&2 exit 1 fi -pkg_arch=x86_64 +case "$(uname -m)" in + amd64|x86_64) pkg_arch=x86_64 ;; + aarch64|arm64) pkg_arch=aarch64 ;; + *) printf '%s\n' "Unsupported NetBSD architecture: $(uname -m)" >&2; exit 1 ;; +esac package_path="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$pkg_arch/11.0/All/" # The prepared bsdkrun NetBSD image has no CA bundle and cannot install one # into its read-only certificate layout; use the official CDN over HTTP for -- 2.51.2