Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 428694 Details for
Bug 576290
dev-lang/go no longer builds on musl (no bootstrap tarball is available, and sys-devel/gcc[go] does not build)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
go-1.6-r2.ebuild: support gccgo USE flag for alternative bootstrap
go-1.6-r2.ebuild.diff (text/plain), 1.37 KB, created by
Zac Medico
on 2016-03-21 07:22:27 UTC
(
hide
)
Description:
go-1.6-r2.ebuild: support gccgo USE flag for alternative bootstrap
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2016-03-21 07:22:27 UTC
Size:
1.37 KB
patch
obsolete
>diff --git a/dev-lang/go/go-1.6-r2.ebuild b/dev-lang/go/go-1.6-r2.ebuild >index f09a731..29e852a 100644 >--- a/dev-lang/go/go-1.6-r2.ebuild >+++ b/dev-lang/go/go-1.6-r2.ebuild >@@ -12,7 +12,7 @@ MY_PV=${PV/_/} > inherit toolchain-funcs > > BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist" >-SRC_URI=" >+SRC_URI="!gccgo? ( > kernel_Darwin? ( > x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz ) > ) >@@ -30,6 +30,7 @@ kernel_linux? ( > kernel_SunOS? ( > x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz ) > ) >+) > " > > if [[ ${PV} = 9999 ]]; then >@@ -52,9 +53,9 @@ HOMEPAGE="http://www.golang.org" > > LICENSE="BSD" > SLOT="0/${PV}" >-IUSE="" >+IUSE="gccgo" > >-DEPEND="" >+DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )" > RDEPEND="!<dev-go/go-tools-0_pre20150902" > > # These test data objects have writable/executable stacks. >@@ -146,6 +147,14 @@ src_unpack() > src_compile() > { > export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap >+ if use gccgo; then >+ mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die >+ local go_binary=$(type -P go-5 2>/dev/null) >+ [[ -x ${go_binary} ]] || go_binary=$( >+ ls -1 "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-5 | tail -n1) >+ [[ -x ${go_binary} ]] || die "go-5: command not found" >+ ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die >+ fi > export GOROOT_FINAL="${EPREFIX}"/usr/lib/go > export GOROOT="$(pwd)" > export GOBIN="${GOROOT}/bin"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 576290
:
428486
|
428694
|
428876