commit:     033d61f705d54eb3b8c246faeec0d6be2809e84e
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  8 13:26:33 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Sep  8 13:34:21 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=033d61f7

www-client/firefox: patch ccache_stats function to avoid ccache calls

Backport of commit 41eaecf1fce33a9f8b733861105c979a2c9ccd9a.

Bug: https://bugs.gentoo.org/665420
Package-Manager: Portage-2.3.49, Repoman-2.3.10

 www-client/firefox/firefox-60.2.0.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www-client/firefox/firefox-60.2.0.ebuild 
b/www-client/firefox/firefox-60.2.0.ebuild
index 9f2f3d4e3b2..dcc8e593f35 100644
--- a/www-client/firefox/firefox-60.2.0.ebuild
+++ b/www-client/firefox/firefox-60.2.0.ebuild
@@ -216,6 +216,13 @@ src_configure() {
        # Only available on mozilla-overlay for experimentation -- Removed in 
Gentoo repo per bug 571180
        #use egl && mozconfig_annotate 'Enable EGL as GL provider' 
--with-gl-provider=EGL
 
+       # Disable built-in ccache support to avoid sandbox violation, #665420
+       # Use FEATURES=ccache instead!
+       mozconfig_annotate '' --without-ccache
+       sed -i -e 's/ccache_stats = None/return None/' \
+               python/mozbuild/mozbuild/controller/building.py || \
+               die "Failed to disable ccache stats call"
+
        # Setup api key for location services
        echo -n "${_google_api_key}" > "${S}"/google-api-key
        mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"

Reply via email to