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: Wed, 01 Jun 2016 20:23:01
Message-Id: 1464812556.e4ccfa62bbbbfa8a8b72e810163e40ba79a4b17e.phajdan.jr@gentoo
1 commit: e4ccfa62bbbbfa8a8b72e810163e40ba79a4b17e
2 Author: Pawel Hajdan, Jr <phajdan.jr <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 20:22:03 2016 +0000
4 Commit: Paweł Hajdan <phajdan.jr <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 20:22:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ccfa62
7
8 www-client/chromium: dev channel bump (52.0.2743.10)
9
10 Package-Manager: portage-2.2.26
11
12 www-client/chromium/Manifest | 2 +-
13 ....2716.0.ebuild => chromium-52.0.2743.10.ebuild} | 44 +++++++++++++---------
14 .../files/chromium-linker-warnings-r0.patch | 18 +++++++++
15 www-client/chromium/files/chromium-pdfium-r0.patch | 17 +++++++++
16 .../chromium/files/chromium-system-zlib-r0.patch | 19 ++++++++++
17 5 files changed, 82 insertions(+), 18 deletions(-)
18
19 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
20 index f78346e..cbf4841 100644
21 --- a/www-client/chromium/Manifest
22 +++ b/www-client/chromium/Manifest
23 @@ -1,4 +1,4 @@
24 DIST chromium-50.0.2661.102.tar.xz 531505652 SHA256 12135ef890c2bd13b653a06e2a44e8f251a65fe9e91404c792d27e346c5d57c6 SHA512 277311b77df7331b996a1b08c2591c7407a57ba4ee9c93d82eaea63db7ffd1551647e04c64c5e460c58862ff2363d59a674043a41d6b7f05ff4b2b85f18c7e7e WHIRLPOOL 183c6e8dd0e195bc027a685c4064a0aaceaf880fae62b89b664a4cd1e1aedf9510961ce7b6c3e515f47222545bc695a5876a6ed4c8580ce599d1139cb3fd20f7
25 DIST chromium-51.0.2704.63.tar.xz 448628724 SHA256 b243e46e0ebaf8f60d1c37a0d99f1fdd80e1597667be4776a1862bb004e4eee9 SHA512 d85b6adcf2be5082ec8dc51f62849b3a2d84104d225188b7c5441cd3f9bb1e639b8d9b8cfb069b4a42d2f44128111649982fd20ca99b4f4ed5208c2c2c1a9560 WHIRLPOOL 0b3047c1c38386dbc20ef8fd6992e3c1cfc4e92986f5cbbd3e640671763ff5023427d0d8b5a6a6f6604aaeea4e2fa57e4b3f88d8e47e20684e5c774e8407c8fb
26 -DIST chromium-52.0.2716.0.tar.xz 461514628 SHA256 c0f593a640fce7a8c93081725bfc16fae0c4a268c846343fdfeba11fd35755fe SHA512 25cda422bc1af230613004db56fe8fa0d9a7ed3f9c20b357ff60f788854509ac60f855c1454db05e8921a8f83ba0e95a4f841255d8d6390df68808f04f94826e WHIRLPOOL e49f3f56a63afb755c1432ea82b77b9f4b4ce02559e24b2e11bdaa199df67a20d4a80470b6c0ae86f5091b24d77bdabf3d79f37d3d40604e0db11b823e7e3500
27 DIST chromium-52.0.2723.2.tar.xz 466192080 SHA256 b463bca13a37f474e2d34e85d138d595e2e091e845f9bdc69c1090931de353a3 SHA512 fe7de4db588115e1f6155577c0dc721e8b54db5bd67a2c6dc495f75569d3a78060b9f7343c70ed5e04814b021f7031790da7a5486b25bbe41b11a256eb0cd163 WHIRLPOOL e7a911da45c7bdc8b887f27f14fda933e3c56ddea07f5af1c89f32a39c83511f06f2e7d30a7762fa90ca1fef4684e82ee06cc08fb2ef6e7a882fbba255e8d9f9
28 +DIST chromium-52.0.2743.10.tar.xz 457933176 SHA256 9c27e642590a86123bc6abd4d61528927eb982c1ed22f5a7bb22bfad815d7cad SHA512 60302b834702434bff11966dcd5c7a6b7d1c1178a0ca5d65d58051ec0cafd6be301c8f2741298a48c1607466bcec6eb4f5d254480cce25ea3e5742a58d51bd93 WHIRLPOOL b9546216019aa7119f36ce42d873f6882cf3d1198e82134aa5ca4614959f365c7c1b4cf6d500c6637bf4cbe0b08923d1462c22c0a2115854da797c0af0c14ffb
29
30 diff --git a/www-client/chromium/chromium-52.0.2716.0.ebuild b/www-client/chromium/chromium-52.0.2743.10.ebuild
31 similarity index 96%
32 rename from www-client/chromium/chromium-52.0.2716.0.ebuild
33 rename to www-client/chromium/chromium-52.0.2743.10.ebuild
34 index 2d23e7d..e3d154d 100644
35 --- a/www-client/chromium/chromium-52.0.2716.0.ebuild
36 +++ b/www-client/chromium/chromium-52.0.2743.10.ebuild
37 @@ -81,7 +81,6 @@ RDEPEND="
38 dev-libs/libxslt:=
39 media-libs/flac:=
40 >=media-libs/harfbuzz-0.9.41:=[icu(+)]
41 - >=media-libs/libjpeg-turbo-1.2.0-r1:=
42 >=media-libs/libwebp-0.4.0:=
43 sys-libs/zlib:=[minizip]
44 )"
45 @@ -193,6 +192,9 @@ src_prepare() {
46 epatch "${FILESDIR}/${PN}-widevine-r1.patch"
47 epatch "${FILESDIR}/${PN}-last-commit-position-r0.patch"
48 epatch "${FILESDIR}/${PN}-snapshot-toolchain-r1.patch"
49 + epatch "${FILESDIR}/${PN}-pdfium-r0.patch"
50 + epatch "${FILESDIR}/${PN}-system-zlib-r0.patch"
51 + epatch "${FILESDIR}/${PN}-linker-warnings-r0.patch"
52
53 epatch_user
54
55 @@ -204,23 +206,13 @@ src_prepare() {
56 conditional_bundled_libraries+="
57 base/third_party/libevent
58 third_party/adobe
59 - third_party/ffmpeg
60 - third_party/flac
61 - third_party/harfbuzz-ng
62 - third_party/icu
63 third_party/jinja2
64 - third_party/libjpeg_turbo
65 third_party/libpng
66 - third_party/libwebp
67 - third_party/libxml
68 - third_party/libxslt
69 third_party/markupsafe
70 - third_party/snappy
71 third_party/speech-dispatcher
72 third_party/usb_ids
73 third_party/xdg-utils
74 - third_party/yasm
75 - third_party/zlib
76 + third_party/yasm/run_yasm.py
77 "
78 fi
79
80 @@ -239,7 +231,6 @@ src_prepare() {
81 'breakpad/src/third_party/curl' \
82 'chrome/third_party/mozilla_security_manager' \
83 'courgette/third_party' \
84 - 'crypto/third_party/nss' \
85 'net/third_party/mozilla_security_manager' \
86 'net/third_party/nss' \
87 'third_party/WebKit' \
88 @@ -280,6 +271,7 @@ src_prepare() {
89 'third_party/libXNVCtrl' \
90 'third_party/libaddressinput' \
91 'third_party/libjingle' \
92 + 'third_party/libjpeg_turbo' \
93 'third_party/libphonenumber' \
94 'third_party/libpng' \
95 'third_party/libsecret' \
96 @@ -288,8 +280,8 @@ src_prepare() {
97 'third_party/libusb' \
98 'third_party/libvpx' \
99 'third_party/libvpx/source/libvpx/third_party/x86inc' \
100 - 'third_party/libxml/chromium' \
101 'third_party/libwebm' \
102 + 'third_party/libxml/chromium' \
103 'third_party/libyuv' \
104 'third_party/lss' \
105 'third_party/lzma_sdk' \
106 @@ -308,9 +300,12 @@ src_prepare() {
107 'third_party/pdfium/third_party/lcms2-2.6' \
108 'third_party/pdfium/third_party/libjpeg' \
109 'third_party/pdfium/third_party/libopenjpeg20' \
110 + 'third_party/pdfium/third_party/libpng16' \
111 + 'third_party/pdfium/third_party/libtiff' \
112 'third_party/pdfium/third_party/zlib_v128' \
113 'third_party/polymer' \
114 'third_party/protobuf' \
115 + 'third_party/protobuf/third_party/six' \
116 'third_party/qcms' \
117 'third_party/re2' \
118 'third_party/sfntly' \
119 @@ -354,6 +349,7 @@ src_configure() {
120 # Use system-provided libraries.
121 # TODO: use_system_hunspell (upstream changes needed).
122 # TODO: use_system_icu (bug #576370).
123 + # TODO: use_system_libjpeg (bug #584518).
124 # TODO: use_system_libpng (bug #578212).
125 # TODO: use_system_libsrtp (bug #459932).
126 # TODO: use_system_libusb (http://crbug.com/266149).
127 @@ -370,7 +366,6 @@ src_configure() {
128 -Duse_system_harfbuzz=1
129 -Duse_system_jsoncpp=1
130 -Duse_system_libevent=1
131 - -Duse_system_libjpeg=1
132 -Duse_system_libwebp=1
133 -Duse_system_libxml=1
134 -Duse_system_libxslt=1
135 @@ -381,6 +376,21 @@ src_configure() {
136 -Duse_system_xdg_utils=1
137 -Duse_system_zlib=1"
138
139 + local gn_system_libraries="
140 + flac
141 + harfbuzz-ng
142 + libevent
143 + libwebp
144 + libxml
145 + libxslt
146 + snappy
147 + yasm
148 + zlib"
149 + if use system-ffmpeg; then
150 + gn_system_libraries+=" ffmpeg"
151 + fi
152 + build/linux/unbundle/replace_gn_files.py --system-libraries ${gn_system_libraries} || die
153 +
154 # Needed for system icu - we don't need additional data files.
155 # myconf_gyp+=" -Dicu_use_data_file_flag=0"
156
157 @@ -446,6 +456,7 @@ src_configure() {
158
159 ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
160 myconf_gyp+=" -Dproprietary_codecs=1 -Dffmpeg_branding=${ffmpeg_branding}"
161 + myconf_gn+=" proprietary_codecs=true ffmpeg_branding=\"${ffmpeg_branding}\""
162
163 # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
164 # Note: these are for Gentoo use ONLY. For your own distribution,
165 @@ -537,8 +548,7 @@ src_configure() {
166 export TMPDIR="${WORKDIR}/temp"
167 mkdir -p -m 755 "${TMPDIR}" || die
168
169 - # TODO: also do this for GN bundled ffmpeg build.
170 - if ! use system-ffmpeg && ! use gn; then
171 + if ! use system-ffmpeg; then
172 local build_ffmpeg_args=""
173 if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
174 build_ffmpeg_args+=" --disable-asm"
175
176 diff --git a/www-client/chromium/files/chromium-linker-warnings-r0.patch b/www-client/chromium/files/chromium-linker-warnings-r0.patch
177 new file mode 100644
178 index 0000000..97d5e16
179 --- /dev/null
180 +++ b/www-client/chromium/files/chromium-linker-warnings-r0.patch
181 @@ -0,0 +1,18 @@
182 +--- build/config/compiler/BUILD.gn.orig 2016-05-30 13:50:15.341749039 +0000
183 ++++ build/config/compiler/BUILD.gn 2016-05-30 13:50:30.502061407 +0000
184 +@@ -203,15 +203,6 @@
185 + cflags += [ "-fstack-protector" ]
186 + }
187 + }
188 +-
189 +- # Linker warnings.
190 +- if (!(is_chromeos && current_cpu == "arm") &&
191 +- !(is_android && use_order_profiling) && !is_mac && !is_ios) {
192 +- # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
193 +- # TODO(lizeb,pasko): Fix link errors when linking with order_profiling=1
194 +- # crbug.com/485542
195 +- ldflags += [ "-Wl,--fatal-warnings" ]
196 +- }
197 + }
198 +
199 + if (is_clang && is_debug) {
200
201 diff --git a/www-client/chromium/files/chromium-pdfium-r0.patch b/www-client/chromium/files/chromium-pdfium-r0.patch
202 new file mode 100644
203 index 0000000..2ba2684
204 --- /dev/null
205 +++ b/www-client/chromium/files/chromium-pdfium-r0.patch
206 @@ -0,0 +1,17 @@
207 +--- third_party/pdfium/xfa/fxbarcode/utils.h.orig 2016-05-30 10:24:54.071773744 +0000
208 ++++ third_party/pdfium/xfa/fxbarcode/utils.h 2016-05-30 10:25:15.808219373 +0000
209 +@@ -26,12 +26,10 @@
210 + #endif
211 + #if (_FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_)
212 + #define FXSYS_isnan(x) _isnan(x)
213 +-#elif(_FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_)
214 ++#elif(_FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_ || \
215 ++ _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_)
216 + #include <cmath>
217 + #define FXSYS_isnan(x) std::isnan(x)
218 +-#elif(_FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_)
219 +-#include <math.h>
220 +-#define FXSYS_isnan(x) isnan(x)
221 + #endif
222 + #if (_FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_)
223 + #define FXSYS_nan() (std::numeric_limits<float>::quiet_NaN())
224
225 diff --git a/www-client/chromium/files/chromium-system-zlib-r0.patch b/www-client/chromium/files/chromium-system-zlib-r0.patch
226 new file mode 100644
227 index 0000000..3bf38e5
228 --- /dev/null
229 +++ b/www-client/chromium/files/chromium-system-zlib-r0.patch
230 @@ -0,0 +1,19 @@
231 +--- build/linux/unbundle/zlib.gn.orig 2016-05-30 13:09:56.987716771 +0000
232 ++++ build/linux/unbundle/zlib.gn 2016-05-30 13:12:36.879014187 +0000
233 +@@ -9,11 +9,16 @@
234 + headers = [ "zlib.h" ]
235 + }
236 +
237 ++config("system_zlib") {
238 ++ defines = [ "USE_SYSTEM_ZLIB=1" ]
239 ++}
240 ++
241 + source_set("zlib") {
242 + deps = [
243 + ":zlib_shim",
244 + ]
245 + libs = [ "z" ]
246 ++ public_configs = [ ":system_zlib" ]
247 + }
248 +
249 + shim_headers("minizip_shim") {