Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702138 - app-emulation/libpod-1.6.3-r2 : src_compile(): GOPATH in env causes sandbox violation
Summary: app-emulation/libpod-1.6.3-r2 : src_compile(): GOPATH in env causes sandbox v...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2019-12-06 04:15 UTC by Michael Schmid
Modified: 2019-12-07 05:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed fixed ebuild. Simply adds GOPATH to export -n in src_compile. (libpod-1.6.3-r3.ebuild,4.01 KB, text/plain)
2019-12-06 04:18 UTC, Michael Schmid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schmid 2019-12-06 04:15:46 UTC
A sandbox violation in src_compile occurs if GOPATH is set to any directory outside the sandbox as this ebuild compiles.

Proposed fix attached, it simply adds GOPATH to the already existing "export -n" in src_compile.

Reproducible: Always
Comment 1 Michael Schmid 2019-12-06 04:18:46 UTC
Created attachment 598622 [details]
Proposed fixed ebuild. Simply adds GOPATH to export -n in src_compile.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-06 07:37:53 UTC
Comment on attachment 598622 [details]
Proposed fixed ebuild. Simply adds GOPATH to export -n in src_compile.

--- libpod-1.6.3-r2.ebuild
+++ libpod-1.6.3-r3.ebuild
@@ -83,7 +83,7 @@
                echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
        fi

-       export -n GOCACHE XDG_CACHE_HOME
+       export -n GOCACHE GOPATH XDG_CACHE_HOME
        GOBIN="${S}/bin" \
                emake all \
                        GIT_BRANCH=master \
Comment 3 Larry the Git Cow gentoo-dev 2019-12-06 08:05:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acc573f267289b38d11a0423f88cd77bb9ce5b2e

commit acc573f267289b38d11a0423f88cd77bb9ce5b2e
Author:     Michael Schmid <meheschmid@gmx.ch>
AuthorDate: 2019-12-06 08:00:59 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-06 08:02:24 +0000

    app-emulation/libpod: export -n GOPATH
    
    Closes: https://bugs.gentoo.org/702138
    Package-Manager: Portage-2.3.81, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-emulation/libpod/libpod-1.6.3-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Zac Medico gentoo-dev 2019-12-06 08:06:35 UTC
Thanks!
Comment 5 Michael Schmid 2019-12-07 05:14:12 UTC
(In reply to Zac Medico from comment #4)
> Thanks!

Thanks to you as well, for handling the formal commit!