commit:     c24e20dbdb0c87824f3c37d9df42dceb2ceb2cf9
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 25 20:59:32 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 25 21:00:01 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c24e20db

www-client/firefox: USE=pgo requires FEATURES=userpriv

Closes: https://bugs.gentoo.org/682668
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

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

diff --git a/www-client/firefox/firefox-68.0.1.ebuild 
b/www-client/firefox/firefox-68.0.1.ebuild
index 9a45c46f6d7..29ca61b95db 100644
--- a/www-client/firefox/firefox-68.0.1.ebuild
+++ b/www-client/firefox/firefox-68.0.1.ebuild
@@ -354,6 +354,12 @@ src_configure() {
        # Must pass release in order to properly select linker
        mozconfig_annotate 'Enable by Gentoo' --enable-release
 
+       if use pgo ; then
+               if ! has userpriv $FEATURES ; then
+                       eerror "Building firefox with USE=pgo and 
FEATURES=-userpriv is not supported!"
+               fi
+       fi
+
        # Don't let user's LTO flags clash with upstream's flags
        filter-flags -flto*
 

Reply via email to