[MacPorts] #65384: docker-machine-parallels @2.0.1: build fails, possibly due to outdated golang.org/x/sys requirement
MacPorts
noreply at macports.org
Wed Jun 22 23:39:30 UTC 2022
#65384: docker-machine-parallels @2.0.1: build fails, possibly due to outdated
golang.org/x/sys requirement
----------------------+--------------------------------------
Reporter: baburton | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Keywords: | Port: docker-machine-parallels
----------------------+--------------------------------------
This port does not build (reproducible on both x86_64 and arm64
architectures). The build spits out several errors of the following form:
{{{
../../../../pkg/mod/golang.org/x/sys at v0.0.0-20190422165155-953cdadca894/unix/zsyscall_darwin_arm64.go:28:3:
//go:linkname must refer to declared function or variable
}}}
Some googling [1] suggests that the root of the problem is that the
go.lang/x/sys dependency pulls in a version of golang.org/x/sys that is
too old. This is an indirect dependency, coming from golang.org/x/crypto;
in turn, docker-machine-parallels hard-codes the golang.org/x/crypto
dependency as a version from August 2020.
So: I am hoping that this can be fixed by updating the docker-machine-
parallels go.mod to pull in a newer version of golang.org/x/crypto.
Caveat: I know nothing about the go language at all, and this is the first
time I have ever looked into a go.mod or go.sum file.
I am using the latest macOS (12.4) and Xcode (13.4.1).
For reference, I've attached the full (and fairly short) build logs from
both x86_64 and arm64 machines.
Thanks - Ben.
[1] See for instance: https://stackoverflow.com/questions/71507321/go-1-18
-build-error-on-mac-unix-syscall-darwin-1-13-go253-golinkname-mus
--
Ticket URL: <https://trac.macports.org/ticket/65384>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list