Emerging =www-client/firefox-73.0 inherits the variable XDG_CACHE_HOME from root. Since portage doesn't have permissions here, the build fails unless XDG_CACHE_HOME is unset. Build log attached with XDG_CACHE_HOME="/tmp/root/.cache" (permissions for this folder are 750) Reproducible: Always Steps to Reproduce: 1. export XDG_CACHE_HOME="/root/.cache" (if not already set) 2. emerge firefox Actual Results: Firefox 73.0 fails to build due to user portage's lack of permissions in /root/.cache Expected Results: Portage should not inherit XDG_CACHE_HOME from root.
Created attachment 613410 [details] Build log
Per the most recent edit (September 2019) to https://wiki.gentoo.org/wiki/SSD#XDG_cache_on_tmpfs, creating /tmp/root/.cache is not a good idea. So while this shouldn't be happening at all, it won't happen to me anymore.
When ebuilds are updated to EAPI="7", this problem will be solved automatically, since ENV_UNSET contains XDG_CACHE_HOME: https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/base/make.defaults?id=6568a730a830fd8a93b28162a01787600d19d307#n25
Also then you can drop part (DBUS_SESSION_BUS_ADDRESS, DISPLAY, XAUTHORITY) of: https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/firefox/firefox-73.0.ebuild?id=a9afb66191d692fe4122f07e582384960db60564#n221
Yeah, unsetting XDG_CACHE_HOME in the ebuild solved things for me.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e69c7368abece7ff6ecc9118f972601869d40706 commit e69c7368abece7ff6ecc9118f972601869d40706 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-02-24 21:01:04 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-02-24 22:35:14 +0000 www-client/firefox: avoid build failure caused by set XDG_CACHE_HOME Bug: https://bugs.gentoo.org/709318 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox/firefox-68.5.0.ebuild | 1 + www-client/firefox/firefox-73.0.1.ebuild | 1 + 2 files changed, 2 insertions(+)
Can someone please verify that this is fixed in 73.0.1? I still had to unset XDG_CACHE_HOME when upgrading from 73.0 to 73.0.1 today.
(In reply to Red from comment #7) > Can someone please verify that this is fixed in 73.0.1? I still had to unset > XDG_CACHE_HOME when upgrading from 73.0 to 73.0.1 today. Note that the fix landed after 73.0.1 was available in repository. So check timestamp or better, ebuild.
(In reply to Thomas Deutschmann from comment #8) > (In reply to Red from comment #7) > > Can someone please verify that this is fixed in 73.0.1? I still had to unset > > XDG_CACHE_HOME when upgrading from 73.0 to 73.0.1 today. > > Note that the fix landed after 73.0.1 was available in repository. So check > timestamp or better, ebuild. The latest 73.0.1 ebuild which also unmasks pgo builds properly even when XDG_CACHE_HOME is set. Thank you!