[MacPorts] #29906: go @57.1 Patch for GOROOT, violate_mtree, etc
MacPorts
noreply at macports.org
Mon Jul 11 10:58:07 PDT 2011
#29906: go @57.1 Patch for GOROOT, violate_mtree, etc
-------------------------------------+--------------------------------------
Reporter: gaochangjian@… | Owner: singingwolfboy@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Resolution: wontfix | Keywords: haspatch
Port: go |
-------------------------------------+--------------------------------------
Comment(by gaochangjian@…):
Replying to [comment:5 singingwolfboy@…]:
> Unless there's a very, very good reason, I don't want the user to have
to change their environment in order to use Go. Sounds like the actual
issue you're having is that running `godoc -http=:6060` doesn't work
properly. At the moment, it doesn't appear that the `godoc` command
accepts any way of changing the path to the Go documentation files:
perhaps you should file a bug report with the developers of `godoc`
requesting this feature.
No, it's not about `godoc`, but `GOROOT`. As you know, Go commands
(compiler, linker, `godoc`, `gomake`, `goinstall` etc.) rely heavily on
`GOROOT` environment variable. So we need set this variable carefully and
correctly. My suggestion is to set `GOROOT` to
`${prefix}/src/${name}/${name}-${version}`, however, maybe we could refer
to Python's mode.
P.S. `godoc` does accept way of changing the path to the `GOROOT` through
`--goroot` option.
--
Ticket URL: <https://trac.macports.org/ticket/29906#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list