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

Bug 837524

Summary: dev-util/ccache-4.6 does not work with sandbox
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: martin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Undo the change causing the sandbox violation

Description Martin Väth 2022-04-09 18:33:16 UTC
After installing ccache-4.6, practically every emerge fails when FEATURES=ccache is used when attemting to create /run/user/250: The reason seems to be the new "bug fix" (cf. the NEWS file):

> Ccache now verifies that `/run/user/<UID>/ccache-tmp` is writable before using it for temporary files.

Possible workarounds might be one of:

1. Allow writing to /run/user/250 if FEATURES=ccache is used
2. Patch out the new "bug fix".

Both are certainly not ideal.
Comment 1 Martin Väth 2022-04-09 18:55:10 UTC
Created attachment 769697 [details, diff]
Undo the change causing the sandbox violation

The above patch implements workaround 2 from the initial posting.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-09 23:37:52 UTC

*** This bug has been marked as a duplicate of bug 837362 ***