www-client/firefox: patch ccache_stats function to avoid ccache calls
authorThomas Deutschmann <whissi@gentoo.org>
Sat, 8 Sep 2018 13:26:33 +0000 (15:26 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sat, 8 Sep 2018 13:34:21 +0000 (15:34 +0200)
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

index 9f2f3d4e3b20f52f9b0193762396c69eefc1dcf8..dcc8e593f3593aad4b3c7efcb35c587b044d59f4 100644 (file)
@@ -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"