Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: www-client/firefox/
Date: Thu, 31 Oct 2019 16:07:07
Message-Id: 1572537883.de0c3b12de3b9dd4d769ef7502104e7b8002d05d.whissi@gentoo
1 commit: de0c3b12de3b9dd4d769ef7502104e7b8002d05d
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 31 16:04:43 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 31 16:04:43 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=de0c3b12
7
8 www-client/firefox: synchronize with repository
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 www-client/firefox/firefox-70.0.ebuild | 48 ++++++++++++++++++++++++++--------
14 1 file changed, 37 insertions(+), 11 deletions(-)
15
16 diff --git a/www-client/firefox/firefox-70.0.ebuild b/www-client/firefox/firefox-70.0.ebuild
17 index 309497c..e043eb8 100644
18 --- a/www-client/firefox/firefox-70.0.ebuild
19 +++ b/www-client/firefox/firefox-70.0.ebuild
20 @@ -42,7 +42,7 @@ LLVM_MAX_SLOT=9
21
22 inherit check-reqs eapi7-ver flag-o-matic toolchain-funcs eutils \
23 gnome2-utils llvm mozcoreconf-v6 pax-utils xdg-utils \
24 - autotools mozlinguas-v2 virtualx multiprocessing
25 + autotools mozlinguas-v2 virtualx multiprocessing eapi7-ver
26
27 DESCRIPTION="Firefox Web Browser"
28 HOMEPAGE="https://www.mozilla.com/firefox"
29 @@ -192,36 +192,36 @@ fi
30
31 llvm_check_deps() {
32 if ! has_version --host-root "sys-devel/clang:${LLVM_SLOT}" ; then
33 - ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
34 + ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
35 return 1
36 fi
37
38 - if use pgo ; then
39 - if ! has usersandbox $FEATURES ; then
40 - eerror "You must enable usersandbox as X server can not run as root!"
41 - fi
42 - fi
43 -
44 if use clang ; then
45 if ! has_version --host-root "=sys-devel/lld-${LLVM_SLOT}*" ; then
46 - ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
47 + ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
48 return 1
49 fi
50
51 if use pgo ; then
52 if ! has_version --host-root "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
53 - ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
54 + ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
55 return 1
56 fi
57 fi
58 fi
59
60 - einfo "Will use LLVM slot ${LLVM_SLOT}!"
61 + einfo "Will use LLVM slot ${LLVM_SLOT}!" >&2
62 }
63
64 pkg_setup() {
65 moz_pkgsetup
66
67 + if use pgo ; then
68 + if ! has usersandbox $FEATURES ; then
69 + die "You must enable usersandbox as X server can not run as root!"
70 + fi
71 + fi
72 +
73 # Avoid PGO profiling problems due to enviroment leakage
74 # These should *always* be cleaned up anyway
75 unset DBUS_SESSION_BUS_ADDRESS \
76 @@ -767,6 +767,32 @@ pkg_postinst() {
77 elog "media-sound/apulse."
78 elog
79 fi
80 +
81 + local show_doh_information
82 +
83 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
84 + # New install; Tell user that DoH is disabled by default
85 + show_doh_information=yes
86 + else
87 + local replacing_version
88 + for replacing_version in ${REPLACING_VERSIONS} ; do
89 + if ver_test "${replacing_version}" -lt 70 ; then
90 + # Tell user only once about our DoH default
91 + show_doh_information=yes
92 + break
93 + fi
94 + done
95 + fi
96 +
97 + if [[ -n "${show_doh_information}" ]] ; then
98 + elog
99 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
100 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
101 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
102 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
103 + elog "(\"Off by choice\") by default."
104 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
105 + fi
106 }
107
108 pkg_postrm() {