Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737136 - git-r3.eclass: git fetch: error: cannot open ${DISTDIR}/git3-src/.../FETCH_HEAD: Permission denied
Summary: git-r3.eclass: git fetch: error: cannot open ${DISTDIR}/git3-src/.../FETCH_HE...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2020-08-14 14:03 UTC by Hendrik Klug
Modified: 2021-05-13 15:31 UTC (History)
2 users (show)

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

build.log (build.log,2.35 KB, text/plain)
2020-08-14 14:03 UTC, Hendrik Klug

Note You need to log in before you can comment on or make changes to this bug.
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!