Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#38860 - [go] additional tools
Attached to Project:
Community Packages
Opened by Tom Burdick (bfrog) - Monday, 10 February 2014, 16:42 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 22 March 2014, 01:25 GMT
Opened by Tom Burdick (bfrog) - Monday, 10 February 2014, 16:42 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 22 March 2014, 01:25 GMT
|
DetailsDescription:
Go provides additional tooling in separate repositories that require root and /usr installed files, would be nice to have these included in the Go package. Additional info: * go-1.2-2 Go Tools from https://code.google.com/p/go.tools/ * cover * lint * vet * oracle * imports * docs (I believe this got moved to go.tools) |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Saturday, 22 March 2014, 01:25 GMT
Reason for closing: Fixed
Saturday, 22 March 2014, 01:25 GMT
Reason for closing: Fixed
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
Using go get on an arbitrary GOPATH doesn't work since go get needs root permission to install into the tools directory.
I also tried including the go tools in the go package, but had no luck with "go get" or other techniques within the PKGBUILD.
My next plan is to ask in the go forums how this problem is best attacked.
All that is left is figuring out how to best build/package to go tools together with the go package. Working on it.
EDIT: Didn't work. Still need to find a way to include the go tools, that works.
I have tried many things, including using "go get" in the PKGBUILD.
Will try it out and add Daniel YC Lin as contributor if it works.
Building for i686 (without godoc/vet/lint) and x86_64 (with godoc/vet/lint) right now. Will push to [community] when it's done.
Suggestions and PKGBUILDS for how to include the tools on both i686 and x86_64 are warmly welcome.
I tried the go-hg package from AUR, but it would not build (in a chroot) for i686 either. See comments here: https://aur.archlinux.org/packages/go-hg/
Hopefully, having the tools included for the x86_64 version is better than not having them included at all. I assume that including them for x86_64 should at least cover one of the major use cases, which is running go on 64-bit servers.
In package() of that PKGBUILD, this line:
if [ $CARCH = x86 -a $platform = linux_386 ] ; then
needs to be this:
if [ $CARCH = i686 -a $platform = linux_386 ] ; then
CARCH is a arch/makepkg variable, and "x86" is not a valid value. linux_386 is the go platform identifier.
After that, it seems to work just fine.
PKGBUILD.alt has similar changes but it is the style similar to go-hg.
Edit: The first PKGBUILD doesn't set GOPATH which failed when run in a clean system. I can't seem to delete it.
I'll try out the posted PKGBUILDs and see if I get any further with this. If not, I will ask for help on the go mailinglist.