Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 769697 Details for
Bug 837524
dev-util/ccache-4.6 does not work with sandbox
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Undo the change causing the sandbox violation
ccache-sandbox.patch (text/plain), 764 bytes, created by
Martin Väth
on 2022-04-09 18:55:10 UTC
(
hide
)
Description:
Undo the change causing the sandbox violation
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2022-04-09 18:55:10 UTC
Size:
764 bytes
patch
obsolete
>Martin Väth <martin@mvath.de>: Unpatch the change of ccache-4.6 which causes a >sandbox violation under Gentoo, cf. https://bugs.gentoo.org/837524 >--- 1/src/Config.cpp >+++ 1/src/Config.cpp >@@ -1031,14 +1027,14 @@ > std::string > Config::default_temporary_dir(const std::string& cache_dir) > { > static const std::string run_user_tmp_dir = [] { > #ifdef HAVE_GETEUID >- auto dir = FMT("/run/user/{}/ccache-tmp", geteuid()); >- if (Util::create_dir(dir)) { >- return dir; >- } >+ std::string user_tmp_dir = FMT("/run/user/{}", geteuid()); >+ if (Stat::stat(user_tmp_dir).is_directory()) { >+ return user_tmp_dir + "/ccache-tmp"; >+ } > #endif > return std::string(); > }(); > return !run_user_tmp_dir.empty() ? run_user_tmp_dir : cache_dir + "/tmp"; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 837524
: 769697