BlueGit

ict rusty-teams

fix(packaging): Arch package builds without an arch override

- nfpm 2.48 rejects `arch` inside `overrides`, which failed deb, rpm and AppImage too in the v0.6.0 build
- nfpm maps amd64 to the pacman name x86_64 itself, so NFPM_PACMAN_ARCH is gone
- Checked locally with nfpm 2.48.0: deb, rpm and pkg.tar.zst (arch = x86_64)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-24 · 7 days ago

Hash
ba59113adf89c69e9136f2fb369ab3ee4d5b5e17
Parent
c1f3d2e4
2 files changed +2 −5
packaging/linux/nfpm.yaml +2 −3
@@ -1,7 +1,7 @@
1 1 # .deb, .rpm and Arch packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages
2 2 # the file tree, substitutes its path for ${STAGE} and the binary's glibc floor for ${GLIBC_MIN}
3 # (nfpm doesn't expand env vars in `src` or `depends`) and exports VERSION, NFPM_ARCH,
4 # NFPM_PACMAN_ARCH and RUSTY_TEAMS_MAINTAINER.
3 # (nfpm doesn't expand env vars in `src` or `depends`) and exports VERSION, NFPM_ARCH and
4 # RUSTY_TEAMS_MAINTAINER. nfpm maps NFPM_ARCH (amd64) to the pacman name (x86_64).
5 5 #
6 6 # packaging/linux/package.sh --formats "deb rpm archlinux"
7 7 name: rusty-teams
@@ -93,7 +93,6 @@ overrides:
93 93 - libgbm.so.1()(64bit)
94 94 - xdg-desktop-portal
95 95 archlinux:
96 arch: ${NFPM_PACMAN_ARCH}
97 96 depends:
98 97 - glibc>=${GLIBC_MIN}
99 98 - gcc-libs
@@ -1,7 +1,7 @@
1# .deb, .rpm and Arch packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages
1# .deb, .rpm and Arch packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages
2# the file tree, substitutes its path for ${STAGE} and the binary's glibc floor for ${GLIBC_MIN}
2# the file tree, substitutes its path for ${STAGE} and the binary's glibc floor for ${GLIBC_MIN}
3# (nfpm doesn't expand env vars in `src` or `depends`) and exports VERSION, NFPM_ARCH,
3# (nfpm doesn't expand env vars in `src` or `depends`) and exports VERSION, NFPM_ARCH and
4# NFPM_PACMAN_ARCH and RUSTY_TEAMS_MAINTAINER.
4# RUSTY_TEAMS_MAINTAINER. nfpm maps NFPM_ARCH (amd64) to the pacman name (x86_64).
5#
5#
6# packaging/linux/package.sh --formats "deb rpm archlinux"
6# packaging/linux/package.sh --formats "deb rpm archlinux"
7name: rusty-teams
7name: rusty-teams
@@ -93,7 +93,6 @@ overrides:
93 - libgbm.so.1()(64bit)
93 - libgbm.so.1()(64bit)
94 - xdg-desktop-portal
94 - xdg-desktop-portal
95 archlinux:
95 archlinux:
96 arch: ${NFPM_PACMAN_ARCH}
97 depends:
96 depends:
98 - glibc>=${GLIBC_MIN}
97 - glibc>=${GLIBC_MIN}
99 - gcc-libs
98 - gcc-libs
packaging/linux/package.sh +0 −2
@@ -99,8 +99,6 @@ if has deb || has rpm || has archlinux; then
99 99 command -v nfpm >/dev/null || { echo "error: nfpm not found (https://nfpm.goreleaser.com/install/)" >&2; exit 1; }
100 100 export VERSION
101 101 export NFPM_ARCH="$DEB_ARCH"
102 # pacman names the architecture x86_64/aarch64, not the Debian amd64/arm64.
103 export NFPM_PACMAN_ARCH="$ARCH"
104 102 # nfpm expands env vars in fields like `version` and `arch`, but not in `contents[].src` or
105 103 # the dependency lists.
106 104 sed -e "s|\${STAGE}|$STAGE|g" -e "s|\${GLIBC_MIN}|$GLIBC_MIN|g" "$HERE/nfpm.yaml" >"$WORK/nfpm.yaml"
@@ -99,8 +99,6 @@ if has deb || has rpm || has archlinux; then
99 command -v nfpm >/dev/null || { echo "error: nfpm not found (https://nfpm.goreleaser.com/install/)" >&2; exit 1; }
99 command -v nfpm >/dev/null || { echo "error: nfpm not found (https://nfpm.goreleaser.com/install/)" >&2; exit 1; }
100 export VERSION
100 export VERSION
101 export NFPM_ARCH="$DEB_ARCH"
101 export NFPM_ARCH="$DEB_ARCH"
102 # pacman names the architecture x86_64/aarch64, not the Debian amd64/arm64.
103 export NFPM_PACMAN_ARCH="$ARCH"
104 # nfpm expands env vars in fields like `version` and `arch`, but not in `contents[].src` or
102 # nfpm expands env vars in fields like `version` and `arch`, but not in `contents[].src` or
105 # the dependency lists.
103 # the dependency lists.
106 sed -e "s|\${STAGE}|$STAGE|g" -e "s|\${GLIBC_MIN}|$GLIBC_MIN|g" "$HERE/nfpm.yaml" >"$WORK/nfpm.yaml"
104 sed -e "s|\${STAGE}|$STAGE|g" -e "s|\${GLIBC_MIN}|$GLIBC_MIN|g" "$HERE/nfpm.yaml" >"$WORK/nfpm.yaml"