#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:2 singingwolfboy@…]:
The purpose of the standard filesystem layout is to keep files of the same type together: executable files go in the bin directory, libraries go in the lib directory, and so on. Users installing Go (or any other package) from a package management system like Macports shouldn't have to modify their environment to find executables, libraries, and so on. With the notable exception of the apache2 port, all ports in Macports install into this standard hierarchy, and I see no reason to make an exception for Go -- in my opinion, the apache2 port should also be fixed to conform to this standard.
If you would like your Go installation to be in /opt/local/src/go, you can certainly install Go to that directory yourself and change your environment accordingly, but I see no reason to change this for everyone else. Actually build Go program won't need header files (*.h) and library files (*.a), they just meaningful during compile Go itself. So you could delete them safely.
As for doc directory, I'll attach another patch file. It place doc in the standard hierarchy ({{{${prefix}/share/doc/go}}}), then create one symbolic link in {{{GOROOT}}}. So we could use {{{godoc -http=:6060}}} command comfortably. Interesting thing is, another programming language port, Python, place most files in {{{${prefix}/Library/Frameworks/Python.framework}}} directory. Maybe the Go port could follow this mode. -- Ticket URL: <https://trac.macports.org/ticket/29906#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS