diff options
author | William Hubbs <williamh@gentoo.org> | 2020-01-23 09:41:51 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2020-01-23 09:43:25 -0600 |
commit | d4eb70324020f6bd8e735e08a7d2a89e06393a9d (patch) | |
tree | f0589d5853749db84c6d4388ce33a1bc54eb4c74 /dev-lang/go/go-9999.ebuild | |
parent | app-eselect/eselect-php: tweak the live ebuild for upstream changes. (diff) | |
download | gentoo-d4eb70324020f6bd8e735e08a7d2a89e06393a9d.tar.gz gentoo-d4eb70324020f6bd8e735e08a7d2a89e06393a9d.tar.bz2 gentoo-d4eb70324020f6bd8e735e08a7d2a89e06393a9d.zip |
dev-lang/go: add back the bdepend for dev-lang/go
It should be safe to use go to build itself.
Also, this cleans up the has_version testing to select the bootstrap
implementation.
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-lang/go/go-9999.ebuild')
-rw-r--r-- | dev-lang/go/go-9999.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild index 635b905c4d91..82c9facbd671 100644 --- a/dev-lang/go/go-9999.ebuild +++ b/dev-lang/go/go-9999.ebuild @@ -40,7 +40,9 @@ SLOT="0/${PV}" IUSE="gccgo" BDEPEND="gccgo? ( >=sys-devel/gcc-5[go(-)] ) - !gccgo? ( >=dev-lang/go-bootstrap-1.13.6 )" + !gccgo? ( || ( + dev-lang/go + dev-lang/go-bootstrap ) )" RDEPEND="!<dev-go/go-tools-0_pre20150902" # These test data objects have writable/executable stacks. @@ -145,7 +147,10 @@ src_compile() ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die elif has_version -b dev-lang/go-bootstrap; then export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap" + elif has_version -b dev-lang/go; then + export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go" else + eerror "Go cannot be built without go or go-bootstrap installed" die "Should not be here, please report a bug" fi |