diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-04-16 08:25:39 +0200 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2019-04-24 13:04:56 -0500 |
commit | 6b8aa7f8d6fe088fc68fde671bc20d5b061e0507 (patch) | |
tree | ce62344ba4b38214a3c34584b8af0066521c1ade /dev-lang/go | |
parent | dev-python/django: remove old (diff) | |
download | gentoo-6b8aa7f8d6fe088fc68fde671bc20d5b061e0507.tar.gz gentoo-6b8aa7f8d6fe088fc68fde671bc20d5b061e0507.tar.bz2 gentoo-6b8aa7f8d6fe088fc68fde671bc20d5b061e0507.zip |
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 <mgorny@gentoo.org>
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-lang/go')
-rw-r--r-- | dev-lang/go/go-1.12.4.ebuild | 5 | ||||
-rw-r--r-- | dev-lang/go/go-9999.ebuild | 5 |
2 files changed, 8 insertions, 2 deletions
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() |