Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 737136

Summary: git-r3.eclass: git fetch: error: cannot open ${DISTDIR}/git3-src/.../FETCH_HEAD: Permission denied
Product: Portage Development Reporter: Hendrik Klug <hendrik.klug>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Severity: normal CC: adjudicatordarren, flippynelle
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Hendrik Klug 2020-08-14 14:03:16 UTC
Created attachment 654660 [details]

I am trying to emerge the live rebuild of statsmodels to get the newest fixes of their git repository but the emerge command "emerge -avt --autounmask-write --autounmask =dev-python/statsmodels-9999::gentoo" fails with:

 * ERROR: dev-python/statsmodels-9999::gentoo failed (unpack phase):
 *   Unable to fetch from any of EGIT_REPO_URI
 * Call stack:
 *, line  125:  Called src_unpack
 *   environment, line 3720:  Called git-r3_src_unpack
 *   environment, line 2637:  Called git-r3_src_fetch
 *   environment, line 2631:  Called git-r3_fetch
 *   environment, line 2553:  Called die
 * The specific snippet of code:
 *       [[ -n ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI";

Does that mean that the live ebuild is broken or am I doing something wrong?
Comment 1 Zac Medico gentoo-dev 2020-08-14 17:39:19 UTC
The files under ${DISTDIR}/git3-src are created and managed by this eclass:

It's expected for the files to have incorrect permissions if you have previously executed this ebuild with FEATURES=userpriv disabled. In that case, you can correct the permissions like this:

chown -R portage:portage /usr/portage/distfiles/git3-src

It's not possible for portage to do this on your behalf, since it is completely unaware of the ${DISTDIR}/git3-src directory (it is entirely created and managed by git-r3.eclass).
Comment 2 Hendrik Klug 2020-08-16 12:59:19 UTC
That works, thanks a lot Zac!