Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536960 - dev-lang/go-9999 should depend on >=dev-lang/go-1.4 / go 1.4 binaries for bootstrapping
Summary: dev-lang/go-9999 should depend on >=dev-lang/go-1.4 / go 1.4 binaries for boo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-01-18 11:16 UTC by Bohdan Trach
Modified: 2015-01-23 14:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fixes to go-9999 ebuild hardcoded to amd64 (go-9999.patch,689 bytes, patch)
2015-01-18 11:23 UTC, Bohdan Trach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bohdan Trach 2015-01-18 11:16:23 UTC
Live ebuild of go (for versions >= 1.5) now requires go-1.4 [1] as per project's bootstrapping plans [2]. On i386 and amd64 prebuilt packages from http://golang.org/dl/ can be used, and it's likely that full bootstrapping is required on other arches.

[1] https://groups.google.com/forum/#!topic/golang-dev/WylRdCIB81U
[2] https://golang.org/s/go15bootstrap


Reproducible: Always
Comment 1 Bohdan Trach 2015-01-18 11:23:52 UTC
Created attachment 394246 [details, diff]
fixes to go-9999 ebuild hardcoded to amd64

With this changes to ebuild I managed to compile latest go version, so the fix with prebuilt packages should be rather easy. It is hardcoded to amd64, and only shows the idea.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-19 07:43:29 UTC
Wouldn't it be fun if it could use an installed version as well?
Comment 3 William Hubbs gentoo-dev 2015-01-20 04:32:18 UTC
The approach I took was to create a new package, dev-lang/go-bootstrap,
which is a separate installation of go-1.4.1 which installs in
/usr/lib/go1.4. This path then is used as GOROOT_BOOTSTRAP in the live
ebuild which has a build-time dependency onn
>=dev-lang/go-bootstrap-1.4.1.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-23 14:42:04 UTC
But that means you always pull in dev-lang/go-bootstrap on rebuilding dev-lang/go, even when a perfectly good alternative (dev-lang/go) is in place?