[MacPorts] #74419: mos, mos-devel, gomodctl, kubeval, leaf: build fails on an outdated golang.org/x/sys
MacPorts
noreply at macports.org
Sat Sep 12 20:12:38 UTC 2026
#74419: mos, mos-devel, gomodctl, kubeval, leaf: build fails on an outdated
golang.org/x/sys
----------------------+-------------------------------------------------
Reporter: jrjsmrtn | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: mos mos-devel gomodctl kubeval leaf
----------------------+-------------------------------------------------
These five Go ports fail to build. Each vendors a `golang.org/x/sys`
revision that current Go toolchains reject:
{{{
../../../golang.org/x/sys/unix/syscall_darwin.1_13.go:25:3: //go:linkname
must refer to declared function or variable
}}}
The buildbot has been failing them for months — mos and mos-devel since
2026-02-06, gomodctl, kubeval and leaf since 2026-08-26 — on every builder
(10.6, 13, 13.arm64, 14, 14.arm64, 15, 15.arm64, 26.arm64).
The pinned revisions, and whether they compile standalone under Go 1.26
and 1.27 (GOOS=darwin GOARCH=arm64, `go build ./unix/` on a plain
checkout, no MacPorts involved):
|| '''x/sys revision''' || '''ports''' || '''go1.26''' || '''go1.27''' ||
|| 5c8b2ff67527 || mos, mos-devel || fails || fails ||
|| f84b799fce68 || gomodctl || fails || fails ||
|| d5e6a3e2c0ae || kubeval, leaf || fails || fails ||
|| 41cdb8703e55 || (trojan-go, for contrast) || builds || builds ||
So this is not a Go 1.27 regression: the pins predate the fix, and the
failure reproduces without MacPorts. A port pinning a recent enough x/sys,
such as trojan-go, is unaffected.
The fix is a `go.vendors` bump of `golang.org/x/sys` in each port, which
is the maintainers' call since it may interact with their other pinned
versions.
Unrelated but adjacent: these five also need renamed-vendor `repo` lines,
submitted separately as https://github.com/macports/macports-
ports/pull/34580 and its follow-up. That change is orthogonal to this one
and will not make them build.
--
Ticket URL: <https://trac.macports.org/ticket/74419>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list