I ran into this problem when trying to build
https://github.com/nsf/gogobject
Here is a copy of the code being run in the dist tool, for reference:
http://code.google.com/p/go/source/browse/src/cmd/dist/build.c
There seems to be two problems preventing the tool from functioning.
FIrst, it is searching for include/u.h to verify that $GOROOT is
probably correct (it doesn't actually care about the file contents).
Secondly, the tool still fails if we work around that when it tries to
run "hg identify -b" to check for version information. This obviously
fails because there is no repository. However, it looks like it only
does this if a $GOROOT/VERSION file is not present.
So to get the tool to function correctly, I made the following changes:
cd /usr/lib/go
mkdir include
touch include/u.h
echo go1.0.2 > VERSION
The golang package should probably be modified to install the VERSION
file. I'm not sure of the rationale behind not installing those
headers, but if you don't install the headers, the tool should probably
check for the presence of a different file.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1076017
Title:
'go tool dist' fails
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1076017/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs