commit:     2274fac977f810fd41285ceb5811a69c5243c741
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 10 22:54:31 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Aug 10 22:54:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2274fac9

dev-lang/go: sync live

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-lang/go/go-9999.ebuild | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild
index ee74dcbc30da..68b33c5e0315 100644
--- a/dev-lang/go/go-9999.ebuild
+++ b/dev-lang/go/go-9999.ebuild
@@ -121,6 +121,10 @@ go_cross_compile() {
        [[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
 }
 
+PATCHES=(
+       "${FILESDIR}"/go-never-download-newer-toolchains.patch
+)
+
 src_compile() {
        if has_version -b ">=dev-lang/go-${GO_BOOTSTRAP_MIN}"; then
                export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
@@ -167,15 +171,14 @@ src_test() {
 }
 
 src_install() {
-       # There is a known issue which requires the source tree to be installed 
[1].
-       # Once this is fixed, we can consider using the doc use flag to control
-       # installing the doc and src directories.
-       # The use of cp is deliberate in order to retain permissions
-       # [1] https://golang.org/issue/2775
        dodir /usr/lib/go
+       # The use of cp is deliberate in order to retain permissions
        cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
        einstalldocs
 
+       insinto /usr/lib/go
+doins go.env VERSION
+
        # testdata directories are not needed on the installed system
        rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
 

Reply via email to