[MacPorts] #66003: wireguard-go does not install: net/netip missing
MacPorts
noreply at macports.org
Thu Oct 20 19:21:08 UTC 2022
#66003: wireguard-go does not install: net/netip missing
-----------------------------+----------------------
Reporter: heinrichrebehn | Owner: cardi
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: wireguard-go |
-----------------------------+----------------------
Old description:
> port install wireguard-go:
> {{{
> :info:build go: downloading golang.org/x/sys
> v0.0.0-20220315194320-039c03cc5b86
> :info:build go: downloading golang.org/x/net
> v0.0.0-20220225172249-27dd8689420f
> :info:build go: downloading golang.org/x/crypto
> v0.0.0-20220315160706-3147a52a75dd
> :info:build conn/bind_std.go:11:2: package net/netip is not in GOROOT
> (/opt/local/lib/go/src/net/netip)
> :info:build make[1]: *** [wireguard-go] Error 1
> :info:build make: *** [generate-version-and-build] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_net_wireguard-go/wireguard-go/work
> /wireguard-go-0.0.20220316'
> :info:build Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_net_wireguard-go/wireguard-go/work
> /wireguard-go-0.0.20220316" && /usr/bin/make -j1 -w
> :info:build Exit code: 2
> }}}
>
> MacOS 12.5, port version 2.7.2
>
> Trying to install net/netip yields: Error: Port net/netip not found
New description:
port install wireguard-go:
{{{
:info:build go: downloading golang.org/x/sys
v0.0.0-20220315194320-039c03cc5b86
:info:build go: downloading golang.org/x/net
v0.0.0-20220225172249-27dd8689420f
:info:build go: downloading golang.org/x/crypto
v0.0.0-20220315160706-3147a52a75dd
:info:build conn/bind_std.go:11:2: package net/netip is not in GOROOT
(/opt/local/lib/go/src/net/netip)
:info:build make[1]: *** [wireguard-go] Error 1
:info:build make: *** [generate-version-and-build] Error 2
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_net_wireguard-go/wireguard-go/work
/wireguard-go-0.0.20220316'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_net_wireguard-go/wireguard-go/work
/wireguard-go-0.0.20220316" && /usr/bin/make -j1 -w
:info:build Exit code: 2
}}}
MacOS 10.12.5, port version 2.7.2
Trying to install net/netip yields: Error: Port net/netip not found
--
Comment (by ryandesign):
The go port is programmed to use go 1.17 on older versions of macOS, such
as the one the user is using.
https://github.com/macports/macports-
ports/blob/master/lang/go/Portfile#L18-L25
Tons of go ports fail to build every day on the older OS versions on the
buildbot because of this. Would be great to fix it, for example by
upgrading go to a newer version on older systems, but the comment in the
go port says that's not possible, but it doesn't say why.
--
Ticket URL: <https://trac.macports.org/ticket/66003#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list