Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 07 Aug 2017 14:27:43
Message-Id: 1502115221.b076a968d2ccaa57761779faa0e306083a48a767.anarchy@gentoo
1 commit: b076a968d2ccaa57761779faa0e306083a48a767
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 7 14:13:41 2017 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 7 14:13:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b076a968
7
8 eclass/mozconfig-v6.5{2,5} - Enable sandbox content on esr builds, major
9 changes for release build eclass
10
11 eclass/mozconfig-v6.52.eclass | 4 +++
12 ...zconfig-v6.52.eclass => mozconfig-v6.55.eclass} | 42 ++++++++++------------
13 2 files changed, 23 insertions(+), 23 deletions(-)
14
15 diff --git a/eclass/mozconfig-v6.52.eclass b/eclass/mozconfig-v6.52.eclass
16 index c859aa7b8c1..8dbb55f2649 100644
17 --- a/eclass/mozconfig-v6.52.eclass
18 +++ b/eclass/mozconfig-v6.52.eclass
19 @@ -312,6 +312,10 @@ mozconfig_config() {
20 mozconfig_annotate '-pulseaudio' --enable-alsa
21 fi
22
23 + # Enable sandbox and content sandboxing
24 + mozconfig_annotate 'sandbox' --enable-sandbox
25 + mozconfig_annotate 'sandbox' --enable-content-sandbox
26 +
27 mozconfig_use_enable system-cairo
28 mozconfig_use_enable system-sqlite
29 mozconfig_use_with system-jpeg
30
31 diff --git a/eclass/mozconfig-v6.52.eclass b/eclass/mozconfig-v6.55.eclass
32 similarity index 93%
33 copy from eclass/mozconfig-v6.52.eclass
34 copy to eclass/mozconfig-v6.55.eclass
35 index c859aa7b8c1..0b133c065e0 100644
36 --- a/eclass/mozconfig-v6.52.eclass
37 +++ b/eclass/mozconfig-v6.55.eclass
38 @@ -1,7 +1,7 @@
39 -# Copyright 1999-2015 Gentoo Foundation
40 +# Copyright 1999-2017 Gentoo Foundation
41 # Distributed under the terms of the GNU General Public License v2
42 #
43 -# @ECLASS: mozconfig-v6.52.eclass
44 +# @ECLASS: mozconfig-v6.55.eclass
45 # @MAINTAINER:
46 # mozilla team <mozilla@g.o>
47 # @BLURB: the new mozilla common configuration eclass for FF33 and newer, v6
48 @@ -84,21 +84,21 @@ inherit flag-o-matic toolchain-funcs mozcoreconf-v5
49 # Set the variable to any value if the use flag should exist but not be default-enabled.
50
51 # use-flags common among all mozilla ebuilds
52 -IUSE="${IUSE} dbus debug +jemalloc neon pulseaudio selinux startup-notification system-cairo
53 +IUSE="${IUSE} dbus debug neon pulseaudio selinux startup-notification system-cairo
54 system-harfbuzz system-icu system-jpeg system-libevent system-sqlite system-libvpx"
55
56 # some notes on deps:
57 # gtk:2 minimum is technically 2.10 but gio support (enabled by default) needs 2.14
58 # media-libs/mesa needs to be 10.2 or above due to a bug with flash+vdpau
59
60 -RDEPEND=">=app-text/hunspell-1.2:=
61 +RDEPEND=">=app-text/hunspell-1.5.4:=
62 dev-libs/atk
63 dev-libs/expat
64 >=x11-libs/cairo-1.10[X]
65 >=x11-libs/gtk+-2.18:2
66 x11-libs/gdk-pixbuf
67 >=x11-libs/pango-1.22.0
68 - >=media-libs/libpng-1.6.25:0=[apng]
69 + >=media-libs/libpng-1.6.28:0=[apng]
70 >=media-libs/mesa-10.2:*
71 media-libs/fontconfig
72 >=media-libs/freetype-2.4.10
73 @@ -124,9 +124,9 @@ RDEPEND=">=app-text/hunspell-1.2:=
74 system-icu? ( >=dev-libs/icu-58.1:= )
75 system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
76 system-libevent? ( >=dev-libs/libevent-2.0:0= )
77 - system-sqlite? ( >=dev-db/sqlite-3.17.0:3[secure-delete,debug=] )
78 + system-sqlite? ( >=dev-db/sqlite-3.19.3:3[secure-delete,debug=] )
79 system-libvpx? ( >=media-libs/libvpx-1.5.0:0=[postproc] )
80 - system-harfbuzz? ( >=media-libs/harfbuzz-1.3.3:0= >=media-gfx/graphite2-1.3.8 )
81 + system-harfbuzz? ( >=media-libs/harfbuzz-1.3.3:0= >=media-gfx/graphite2-1.3.9-r1 )
82 "
83
84 if [[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]]; then
85 @@ -144,6 +144,9 @@ elif [[ -n ${MOZCONFIG_OPTIONAL_GTK2ONLY} ]]; then
86 IUSE+=" gtk2"
87 fi
88 RDEPEND+=" !gtk2? ( >=x11-libs/gtk+-3.4.0:3 )"
89 +else
90 + # no gtk3 related dep set by optional use flags, force it
91 + RDEPEND+=" >=x11-libs/gtk+-3.4.0:3"
92 fi
93 if [[ -n ${MOZCONFIG_OPTIONAL_WIFI} ]]; then
94 if [[ ${MOZCONFIG_OPTIONAL_WIFI} = "enabled" ]]; then
95 @@ -242,8 +245,6 @@ mozconfig_config() {
96 mozconfig_annotate '' --prefix="${EPREFIX}"/usr
97 mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
98 mozconfig_annotate 'Gentoo default' --enable-system-hunspell
99 - mozconfig_annotate '' --disable-gnomeui
100 - mozconfig_annotate '' --enable-gio
101 mozconfig_annotate '' --disable-crashreporter
102 mozconfig_annotate 'Gentoo default' --with-system-png
103 mozconfig_annotate '' --enable-system-ffi
104 @@ -258,18 +259,18 @@ mozconfig_config() {
105 mozconfig_annotate '' --enable-skia
106 fi
107
108 - # default toolkit is cairo-gtk2, optional use flags can change this
109 - local toolkit="cairo-gtk2"
110 + # default toolkit is cairo-gtk3, optional use flags can change this
111 + local toolkit="cairo-gtk3"
112 local toolkit_comment=""
113 if [[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]]; then
114 - if use force-gtk3; then
115 - toolkit="cairo-gtk3"
116 + if ! use force-gtk3; then
117 + toolkit="cairo-gtk2"
118 toolkit_comment="force-gtk3 use flag"
119 fi
120 fi
121 if [[ -n ${MOZCONFIG_OPTIONAL_GTK2ONLY} ]]; then
122 - if ! use gtk2 ; then
123 - toolkit="cairo-gtk3"
124 + if use gtk2 ; then
125 + toolkit="cairo-gtk2"
126 else
127 toolkit_comment="gtk2 use flag"
128 fi
129 @@ -291,14 +292,6 @@ mozconfig_config() {
130 fi
131 mozconfig_annotate "${toolkit_comment}" --enable-default-toolkit=${toolkit}
132
133 - # Use jemalloc unless libc is not glibc >= 2.4
134 - # at this time the minimum glibc in the tree is 2.9 so we should be safe.
135 - if use elibc_glibc && use jemalloc; then
136 - # We must force-enable jemalloc 4 via .mozconfig
137 - echo "export MOZ_JEMALLOC4=1" >> "${S}"/.mozconfig || die
138 - mozconfig_annotate '' --enable-replace-malloc
139 - fi
140 -
141 # Instead of the standard --build= and --host=, mozilla uses --host instead
142 # of --build, and --target intstead of --host.
143 # Note, mozilla also has --build but it does not do what you think it does.
144 @@ -312,6 +305,9 @@ mozconfig_config() {
145 mozconfig_annotate '-pulseaudio' --enable-alsa
146 fi
147
148 + # For testing purpose only
149 + mozconfig_annotate 'Sandbox' --enable-content-sandbox
150 +
151 mozconfig_use_enable system-cairo
152 mozconfig_use_enable system-sqlite
153 mozconfig_use_with system-jpeg