From 8ca6939981a1cf5d4b0f39cbcd2b0c6a3dedadb0 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Wed, 28 Oct 2026 15:36:07 -0400 Subject: [PATCH] Honor CARGO_BUILD_TARGET in FreeBSD packaging for aarch64 release builds (#1167) * Document the aarch64 archive name in FreeBSD packaging package.sh already honors CARGO_BUILD_TARGET: cargo builds for the target, the binaries are read from target//release, and the arch comes from the target rather than uname -m. Only the header still described x86_64 alone, so update it. * Include the full header in package.sh --help --- packaging/freebsd/package.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/freebsd/package.sh b/packaging/freebsd/package.sh index 98d86199..cf19e8d4 100755 --- a/packaging/freebsd/package.sh +++ b/packaging/freebsd/package.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash # Build and package SoundCraft for FreeBSD: # -# $DIST/soundcraft--freebsd-x86_64.tar.gz a /usr/local-style tree: -# soundcraft--freebsd-x86_64/{bin, man/man1, share/applications, share/icons, +# $DIST/soundcraft--freebsd-.tar.gz a /usr/local-style tree ( is x86_64, or +# aarch64 when CARGO_BUILD_TARGET=aarch64-unknown-freebsd): +# soundcraft--freebsd-/{bin, man/man1, share/applications, share/icons, # share/mime, share/metainfo, share/doc/soundcraft, share/{bash-completion,zsh,fish}} # # Install by copying the tree's contents into /usr/local, e.g. @@ -23,7 +24,7 @@ SKIP_BUILD=0 while [[ $# -gt 0 ]]; do case "$1" in --skip-build) SKIP_BUILD=1; shift ;; - -h | --help) sed -n '2,15p' "$0"; exit 0 ;; + -h | --help) sed -n '2,16p' "$0"; exit 0 ;; *) echo "unknown argument: $1" >&2; exit 2 ;; esac done