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

Bug 767949

Summary: x11-misc/polybar: need to set ENABLE_CCACHE=OFF to avoid sandbox issues
Product: Gentoo Linux Reporter: Nick <ka.nick>
Component: Current packagesAssignee: Johannes Huber (RETIRED) <johu>
Status: RESOLVED FIXED    
Severity: normal CC: ajak, proxy-maint
Priority: Normal Keywords: NeedPatch
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Nick 2021-01-30 09:26:54 UTC
Looks like a sandbox issue. Few Permission denied issues when trying to operate ccache objects in /home/ccache.

Reproducible: Always

Steps to Reproduce:
1.Try to emerge polybar




Using portage-bashrc-mv from mv overlay to set up building environment. All other packages build just fine.
Comment 1 Nick 2021-01-30 09:30:05 UTC
Created attachment 685146 [details]
build log
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-02-22 01:37:53 UTC
How is ccache being injected into the build? It looks like the build should be able to read/write to CCACHE_DIR: https://github.com/gentoo/portage/blob/master/bin/ebuild.sh#L685
Comment 4 Larry the Git Cow gentoo-dev 2021-02-22 21:29:42 UTC
The bug has been closed via the following commit(s):

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

commit 4364793311421ec7ad7adff94fabe6af5bc9546b
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2021-02-22 21:28:45 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2021-02-22 21:29:32 +0000

    x11-misc/polybar: force off build system CCACHEing
    
    Using ccache for builds in Portage should be done via FEATURES=ccache
    and CCACHE_DIR.
    
    Closes: https://bugs.gentoo.org/767949
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 x11-misc/polybar/polybar-3.4.3.ebuild | 4 +++-
 x11-misc/polybar/polybar-3.5.4.ebuild | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)