From: Michał Górny Date: Tue, 16 Apr 2019 06:25:39 +0000 (+0200) Subject: dev-lang/go: Unpack bootstrap archive for current platform only X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6b8aa7f8d6fe088fc68fde671bc20d5b061e0507;p=gentoo.git dev-lang/go: Unpack bootstrap archive for current platform only Unpack the bootstrap archive for the current platform rather than all bootstrap tarballs in SRC_URI. This provides significant space savings during build. Closes: https://bugs.gentoo.org/680860 Signed-off-by: Michał Górny Signed-off-by: William Hubbs --- diff --git a/dev-lang/go/go-1.12.4.ebuild b/dev-lang/go/go-1.12.4.ebuild index 7e249d23dab4..cda631645e86 100644 --- a/dev-lang/go/go-1.12.4.ebuild +++ b/dev-lang/go/go-1.12.4.ebuild @@ -157,8 +157,11 @@ src_unpack() { if [[ ${PV} = 9999 ]]; then git-r3_src_unpack + else + unpack "go${MY_PV}.src.tar.gz" fi - default + use gccgo || + unpack "go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-${BOOTSTRAP_VERSION}.tbz" } src_compile() diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild index 4cb21b53d193..deea6d5a588f 100644 --- a/dev-lang/go/go-9999.ebuild +++ b/dev-lang/go/go-9999.ebuild @@ -157,8 +157,11 @@ src_unpack() { if [[ ${PV} = 9999 ]]; then git-r3_src_unpack + else + unpack "go${MY_PV}.src.tar.gz" fi - default + use gccgo || + unpack "go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-${BOOTSTRAP_VERSION}.tbz" } src_compile()