Gentoo Archives: gentoo-commits

From: "Paweł Hajdan" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/files/, www-client/chromium/
Date: Fri, 28 Apr 2017 15:09:21
Message-Id: 1493392141.c387b221c37fe243cf51a6e6d1493fd738f633ac.phajdan.jr@gentoo
1 commit: c387b221c37fe243cf51a6e6d1493fd738f633ac
2 Author: Pawel Hajdan, Jr <phajdan.jr <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 28 15:09:01 2017 +0000
4 Commit: Paweł Hajdan <phajdan.jr <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 28 15:09:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c387b221
7
8 www-client/chromium: beta channel bump (59.0.3071.29)
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 www-client/chromium/Manifest | 2 +-
13 ....3063.4.ebuild => chromium-59.0.3071.29.ebuild} | 46 ++++++++--------------
14 .../chromium/files/chromium-system-ffmpeg-r6.patch | 43 ++++++++++++++++++++
15 3 files changed, 61 insertions(+), 30 deletions(-)
16
17 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
18 index 642c18294ad..a2fcdb90d75 100644
19 --- a/www-client/chromium/Manifest
20 +++ b/www-client/chromium/Manifest
21 @@ -1,3 +1,3 @@
22 DIST chromium-58.0.3029.81.tar.xz 509252204 SHA256 5ab61b7025a5143fa1b21713479b316ec7a98e262e79e84f9c9a9656179217cb SHA512 49e8a641e6fe839880ac4cc17aa4b79875dbd0e14adcf7ad0138730334555fd57c93c1e7ebdf6f03c61528c351a5a489f56fb7d7809aef268627b186c547a4f3 WHIRLPOOL eed9d97cd4cb4d9a56864e65e797f6d126327d6e9371bdfe416fd57f0f4c9c83f37e125798a1753b5d8bc5921036bdfe064b3d7e94c3ba315a710241a6c5b179
23 -DIST chromium-59.0.3063.4.tar.xz 519742312 SHA256 3ed3240fca23675f59d0bbf32884ba7c1b6d2288cf499b27d7792d499d8d6d60 SHA512 4dfb4948f4632f813b35eed3935cd771c435dce4dfbd77b698c6e7df7a19af037368293d2cd91d44353aa15de0c47cb809fa144258324116b8c18e2fde16ebff WHIRLPOOL cb183a61ce92d3e99befd2b7503100a63eaa64e33b8ae049571138cbe01d768757dc50555111d4ac11546d1cd8f73717d9904a794a3146c54d3afa1420986dc4
24 DIST chromium-59.0.3067.0.tar.xz 519365816 SHA256 a8edc9aaa2cb24fc227740f4bc3585980c6e01c3a1117b7a77a7802b6c92767f SHA512 877f53f288ec865f623ad2cdbe70d4e2a3728d5af05252275931697041a86fff7e0a0a3ef228d9169ffd2edda7ed636f8dbe1bf1abed0b9900a857a0b86455fc WHIRLPOOL 98d816351e0e3f3ddad3fd11d57e70e9c9dd82d40376e08b6a8416dbf4500aa9eec9c0ad7ee760d7db85697863bd5834223c205273f37e0900d32c1aa7b7c237
25 +DIST chromium-59.0.3071.29.tar.xz 531699488 SHA256 8a727561e4d9892d99d93cdbed29bdc97aa597c3e0ff819100eb822bae35e79d SHA512 e364aa088f812b919043f3ef70bbc3505f383146f5736599eb982e36eddc6440703c77f6416f76eafa5e2a9ae3b3e954e8acd2457d28666b06a9ca6c8a655e4d WHIRLPOOL 99ac0719890d901c43dcbd392ee26ffaa959e9d8fe09a4eba64d51a921ca0371e913ed34c7e720fb81d42e6fc16d439548eb01afa128a0707a1788b70bcb32a8
26
27 diff --git a/www-client/chromium/chromium-59.0.3063.4.ebuild b/www-client/chromium/chromium-59.0.3071.29.ebuild
28 similarity index 94%
29 rename from www-client/chromium/chromium-59.0.3063.4.ebuild
30 rename to www-client/chromium/chromium-59.0.3071.29.ebuild
31 index 102478627cc..34f1b009d9b 100644
32 --- a/www-client/chromium/chromium-59.0.3063.4.ebuild
33 +++ b/www-client/chromium/chromium-59.0.3071.29.ebuild
34 @@ -17,7 +17,7 @@ SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}
35 LICENSE="BSD"
36 SLOT="0"
37 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
38 -IUSE="component-build cups gconf gnome-keyring gtk3 +hangouts kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-libvpx +tcmalloc widevine"
39 +IUSE="component-build cups gconf gnome-keyring +gtk3 +hangouts kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-libvpx +tcmalloc widevine"
40 RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
41
42 # Native Client binaries are compiled with different set of flags, bug #452066.
43 @@ -30,12 +30,9 @@ QA_PRESTRIPPED=".*\.nexe"
44 COMMON_DEPEND="
45 app-arch/bzip2:=
46 cups? ( >=net-print/cups-1.3.11:= )
47 - >=dev-libs/elfutils-0.149
48 dev-libs/expat:=
49 dev-libs/glib:2
50 dev-libs/icu:=
51 - >=dev-libs/jsoncpp-0.5.0-r1:=
52 - dev-libs/libxml2:=[icu]
53 dev-libs/libxslt:=
54 dev-libs/nspr:=
55 >=dev-libs/nss-3.14.3:=
56 @@ -45,21 +42,17 @@ COMMON_DEPEND="
57 >=media-libs/alsa-lib-1.0.19:=
58 media-libs/fontconfig:=
59 media-libs/freetype:=
60 - >=media-libs/harfbuzz-1.3.1:=[icu(+)]
61 - media-libs/libexif:=
62 + >=media-libs/harfbuzz-1.4.2:=
63 media-libs/libjpeg-turbo:=
64 media-libs/libpng:=
65 system-libvpx? ( media-libs/libvpx:=[postproc,svc] )
66 - media-libs/speex:=
67 pulseaudio? ( media-sound/pulseaudio:= )
68 system-ffmpeg? ( >=media-video/ffmpeg-3:= )
69 sys-apps/dbus:=
70 sys-apps/pciutils:=
71 - >=sys-libs/libcap-2.22:=
72 virtual/udev
73 x11-libs/cairo:=
74 x11-libs/gdk-pixbuf:2
75 - x11-libs/libdrm
76 x11-libs/libX11:=
77 x11-libs/libXcomposite:=
78 x11-libs/libXcursor:=
79 @@ -67,7 +60,6 @@ COMMON_DEPEND="
80 x11-libs/libXext:=
81 x11-libs/libXfixes:=
82 >=x11-libs/libXi-1.6.0:=
83 - x11-libs/libXinerama:=
84 x11-libs/libXrandr:=
85 x11-libs/libXrender:=
86 x11-libs/libXScrnSaver:=
87 @@ -93,23 +85,22 @@ RDEPEND="${COMMON_DEPEND}
88 widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] )
89 "
90 # dev-vcs/git - https://bugs.gentoo.org/593476
91 +# sys-apps/sandbox - https://crbug.com/586444
92 DEPEND="${COMMON_DEPEND}
93 >=app-arch/gzip-1.7
94 !arm? (
95 dev-lang/yasm
96 )
97 dev-lang/perl
98 - dev-perl/JSON
99 >=dev-util/gperf-3.0.3
100 dev-util/ninja
101 net-libs/nodejs
102 sys-apps/hwids[usb(+)]
103 + tcmalloc? ( !<sys-apps/sandbox-2.11 )
104 >=sys-devel/bison-2.4.3
105 sys-devel/flex
106 virtual/pkgconfig
107 dev-vcs/git
108 - x11-libs/gtk+:2
109 - x11-libs/gtk+:3
110 $(python_gen_any_dep '
111 dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
112 >=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]
113 @@ -145,14 +136,9 @@ are not displayed properly:
114 - media-fonts/wqy-microhei
115 - media-fonts/wqy-zenhei
116
117 -Depending on your desktop environment, you may need
118 -to install additional packages to get icons on the Downloads page.
119 -
120 -For KDE, the required package is kde-frameworks/oxygen-icons.
121 -
122 -For other desktop environments, try one of the following:
123 -- x11-themes/gnome-icon-theme
124 -- x11-themes/tango-icon-theme
125 +To fix broken icons on the Downloads page, you should install an icon
126 +theme that covers the appropriate MIME types, and configure this as your
127 +GTK+ icon theme.
128 "
129
130 pre_build_checks() {
131 @@ -201,8 +187,8 @@ src_prepare() {
132 "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch"
133 "${FILESDIR}/skia-avx2.patch"
134 "${FILESDIR}/${PN}-dma-buf-r1.patch"
135 - "${FILESDIR}/${PN}-system-ffmpeg-r5.patch"
136 - "${FILESDIR}/${PN}-system-libjpeg-r1.patch"
137 + "${FILESDIR}/${PN}-system-ffmpeg-r6.patch"
138 + "${FILESDIR}/${PN}-system-icu-r1.patch"
139 )
140
141 default
142 @@ -274,7 +260,7 @@ src_prepare() {
143 third_party/libudev
144 third_party/libusb
145 third_party/libwebm
146 - third_party/libxml/chromium
147 + third_party/libxml
148 third_party/libyuv
149 third_party/lss
150 third_party/lzma_sdk
151 @@ -295,7 +281,6 @@ src_prepare() {
152 third_party/pdfium/third_party/bigint
153 third_party/pdfium/third_party/freetype
154 third_party/pdfium/third_party/lcms2-2.6
155 - third_party/pdfium/third_party/libjpeg
156 third_party/pdfium/third_party/libopenjpeg20
157 third_party/pdfium/third_party/libpng16
158 third_party/pdfium/third_party/libtiff
159 @@ -308,6 +293,9 @@ src_prepare() {
160 third_party/skia
161 third_party/smhasher
162 third_party/sqlite
163 + third_party/swiftshader
164 + third_party/swiftshader/third_party/llvm-subzero
165 + third_party/swiftshader/third_party/pnacl-subzero
166 third_party/tcmalloc
167 third_party/usrsctp
168 third_party/web-animations-js
169 @@ -351,6 +339,8 @@ src_configure() {
170 # for development and debugging.
171 myconf_gn+=" is_component_build=$(usex component-build true false)"
172
173 + myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")"
174 +
175 # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
176 myconf_gn+=" enable_nacl=false"
177
178 @@ -358,6 +348,7 @@ src_configure() {
179 # TODO: use_system_hunspell (upstream changes needed).
180 # TODO: use_system_libsrtp (bug #459932).
181 # TODO: use_system_libusb (http://crbug.com/266149).
182 + # TODO: xml (bug #616818).
183 # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
184 # TODO: use_system_protobuf (bug #525560).
185 # TODO: use_system_ssl (http://crbug.com/58087).
186 @@ -372,7 +363,6 @@ src_configure() {
187 libjpeg
188 libpng
189 libwebp
190 - libxml
191 libxslt
192 re2
193 snappy
194 @@ -510,9 +500,7 @@ src_configure() {
195 touch chrome/test/data/webui/i18n_process_css_test.html || die
196
197 einfo "Configuring Chromium..."
198 - # TODO: bootstrapped gn binary hangs when using tcmalloc with portage's sandbox.
199 - tools/gn/bootstrap/bootstrap.py -v --gn-gen-args "${myconf_gn} use_allocator=\"none\"" || die
200 - myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")"
201 + tools/gn/bootstrap/bootstrap.py -v --no-clean --gn-gen-args "${myconf_gn}" || die
202 out/Release/gn gen --args="${myconf_gn}" out/Release || die
203 }
204
205
206 diff --git a/www-client/chromium/files/chromium-system-ffmpeg-r6.patch b/www-client/chromium/files/chromium-system-ffmpeg-r6.patch
207 new file mode 100644
208 index 00000000000..d2e0157bfe3
209 --- /dev/null
210 +++ b/www-client/chromium/files/chromium-system-ffmpeg-r6.patch
211 @@ -0,0 +1,43 @@
212 +--- a/media/ffmpeg/ffmpeg_common.h.orig 2017-04-07 18:17:22.623538889 +0000
213 ++++ b/media/ffmpeg/ffmpeg_common.h 2017-04-07 18:18:16.780656283 +0000
214 +@@ -23,10 +23,12 @@
215 +
216 + // Include FFmpeg header files.
217 + extern "C" {
218 ++#if !defined(USE_SYSTEM_FFMPEG)
219 + // Disable deprecated features which result in spammy compile warnings. This
220 + // list of defines must mirror those in the 'defines' section of FFmpeg's
221 + // BUILD.gn file or the headers below will generate different structures!
222 + #define FF_API_CONVERGENCE_DURATION 0
223 ++#endif // !defined(USE_SYSTEM_FFMPEG)
224 + // Upstream libavcodec/utils.c still uses the deprecated
225 + // av_dup_packet(), causing deprecation warnings.
226 + // The normal fix for such things is to disable the feature as below,
227 +@@ -40,7 +42,9 @@
228 + MSVC_PUSH_DISABLE_WARNING(4244);
229 + #include <libavcodec/avcodec.h>
230 + #include <libavformat/avformat.h>
231 ++#if !defined(USE_SYSTEM_FFMPEG)
232 + #include <libavformat/internal.h>
233 ++#endif // !defined(USE_SYSTEM_FFMPEG)
234 + #include <libavformat/avio.h>
235 + #include <libavutil/avutil.h>
236 + #include <libavutil/imgutils.h>
237 +--- a/media/filters/ffmpeg_demuxer.cc.orig 2017-04-07 18:15:14.776901183 +0000
238 ++++ b/media/filters/ffmpeg_demuxer.cc 2017-04-07 18:15:54.813727201 +0000
239 +@@ -1223,6 +1223,7 @@
240 + // If no estimate is found, the stream entry will be kInfiniteDuration.
241 + std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
242 + kInfiniteDuration);
243 ++#if !defined(USE_SYSTEM_FFMPEG)
244 + const AVFormatInternal* internal = format_context->internal;
245 + if (internal && internal->packet_buffer &&
246 + format_context->start_time != static_cast<int64_t>(AV_NOPTS_VALUE)) {
247 +@@ -1246,6 +1247,7 @@
248 + packet_buffer = packet_buffer->next;
249 + }
250 + }
251 ++#endif // !defined(USE_SYSTEM_FFMPEG)
252 +
253 + std::unique_ptr<MediaTracks> media_tracks(new MediaTracks());
254 +