1 |
# eu-strip crashes on chrome binary from this build |
# eu-strip crashes on chrome binary from this build |
2 |
%define _enable_debug_packages %{nil} |
%define _enable_debug_packages 0 |
3 |
%global debug_package %{nil} |
%global debug_package %{nil} |
4 |
%global __debug_install_post %{nil} |
%global __debug_install_post %{nil} |
5 |
|
|
6 |
%global use_clang 1 |
%global use_clang 0 |
7 |
%global system_icu 1 |
%global system_icu 1 |
8 |
%global system_openjpeg 1 |
%global system_openjpeg 1 |
9 |
%global system_libtiff 1 |
%global system_libtiff 1 |
10 |
%global system_libvpx 0 |
%global system_libvpx 1 |
11 |
%global system_dav1d 0 |
%global system_dav1d 1 |
12 |
|
%global system_re2 1 |
13 |
|
%global system_fontconfig 1 |
14 |
# system libevent causes the renderer to get stuck |
# system libevent causes the renderer to get stuck |
15 |
%global system_libevent 0 |
%global system_libevent 0 |
16 |
|
|
23 |
%if %{system_dav1d} |
%if %{system_dav1d} |
24 |
%define gn_dav1d dav1d |
%define gn_dav1d dav1d |
25 |
%endif |
%endif |
26 |
|
%if %{system_re2} |
27 |
|
%define gn_re2 re2 |
28 |
|
%endif |
29 |
|
%if %{system_fontconfig} |
30 |
|
%define gn_fontconfig fontconfig |
31 |
|
%endif |
32 |
%if %{system_libevent} |
%if %{system_libevent} |
33 |
%define gn_libevent libevent |
%define gn_libevent libevent |
34 |
%endif |
%endif |
53 |
%define google_default_client_secret mRHXPjlS4cLpp1beCiXoYbLZ |
%define google_default_client_secret mRHXPjlS4cLpp1beCiXoYbLZ |
54 |
|
|
55 |
Name: chromium-browser-stable |
Name: chromium-browser-stable |
56 |
Version: 86.0.4240.183 |
Version: 87.0.4280.88 |
57 |
Release: %mkrel 1 |
Release: %mkrel 1 |
58 |
Summary: A fast webkit-based web browser |
Summary: A fast webkit-based web browser |
59 |
Group: Networking/WWW |
Group: Networking/WWW |
64 |
Source0: http://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz |
Source0: http://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz |
65 |
Source1: chromium-wrapper |
Source1: chromium-wrapper |
66 |
Source2: chromium-browser.desktop |
Source2: chromium-browser.desktop |
67 |
|
# from gentoo: compiler setup |
68 |
|
Patch1: chromium-compiler-r4.patch |
69 |
# fix googleisms in man page |
# fix googleisms in man page |
70 |
Patch2: chromium-mageia.patch |
Patch2: chromium-mageia.patch |
71 |
# (ns80) use a patch rather than a source file for widevine |
# (ns80) use a patch rather than a source file for widevine |
86 |
Patch19: chromium-50-codec-warnings.patch |
Patch19: chromium-50-codec-warnings.patch |
87 |
# (cjw) remove assertion on "chromium" branding in combination with enabled "proprietary codecs" |
# (cjw) remove assertion on "chromium" branding in combination with enabled "proprietary codecs" |
88 |
Patch22: chromium-54-proprietary-codecs-assert.patch |
Patch22: chromium-54-proprietary-codecs-assert.patch |
89 |
|
# (cjw) disable werror for a compilation warning that causes the build to fail |
90 |
|
Patch23: chromium-53-bignum-werror-fix.patch |
91 |
# (cjw) add -Wno-error=depecated-declarations because ffmpeg deprecations cause the build to fail |
# (cjw) add -Wno-error=depecated-declarations because ffmpeg deprecations cause the build to fail |
92 |
Patch24: chromium-53-ffmpeg-no-deprecation-errors.patch |
Patch24: chromium-53-ffmpeg-no-deprecation-errors.patch |
93 |
|
# (cjw) link several libraries directly instead of loading them using dlopen() |
94 |
|
Patch27: chromium-53-link-libgio-libpci-libudev-libbrlapi.patch |
95 |
# (cjw) add missing unbundle gn files (1) |
# (cjw) add missing unbundle gn files (1) |
96 |
Patch28: chromium-53-gn-system-icu-jsoncpp.patch |
Patch28: chromium-53-gn-system-icu-jsoncpp.patch |
97 |
# (cjw) add missing unbundle gn files (2) |
# (cjw) add missing unbundle gn files (2) |
98 |
Patch29: chromium-53-gn-system-opus.patch |
Patch29: chromium-53-gn-system-opus.patch |
99 |
|
%if %{system_libtiff} |
100 |
|
# (cjw) build pdfium with system libtiff |
101 |
|
Patch30: chromium-52-pdfium-system-libtiff-libpng.patch |
102 |
|
%endif |
103 |
%if %{system_openjpeg} |
%if %{system_openjpeg} |
104 |
# (cjw) fix pdfium build with system openjpeg |
# (cjw) fix pdfium build with system openjpeg |
105 |
Patch31: chromium-74-pdfium-system-libopenjpeg2.patch |
Patch31: chromium-74-pdfium-system-libopenjpeg2.patch |
112 |
Patch40: chromium-59-gcc5.patch |
Patch40: chromium-59-gcc5.patch |
113 |
# (cjw) system libvpx |
# (cjw) system libvpx |
114 |
Patch42: chromium-60-system-libvpx.patch |
Patch42: chromium-60-system-libvpx.patch |
115 |
|
# (cjw) fix coding errors resulting in gcc 7 warning |
116 |
|
Patch54: chromium-62-gcc7.patch |
117 |
|
# (cjw) fix gcc errors and warnings |
118 |
|
Patch177: chromium-64-gcc7.patch |
119 |
|
# (cjw) fix even more gcc warnings |
120 |
|
Patch179: chromium-65-gcc7.patch |
121 |
|
# (cjw) fix yet mmore gcc warnings |
122 |
|
Patch182: chromium-66-gcc7.patch |
123 |
|
# (cjw) fix a few more gcc warnings |
124 |
|
Patch184: chromium-67-gcc7.patch |
125 |
|
# (cjw) more gcc warnings |
126 |
|
Patch186: chromium-68-gcc7.patch |
127 |
# (cjw) moore gcc warnings |
# (cjw) moore gcc warnings |
128 |
Patch188: chromium-68-gcc8.patch |
Patch188: chromium-68-gcc8.patch |
129 |
|
# (cjw) and more gcc warnings |
130 |
|
Patch189: chromium-69-gcc7.patch |
131 |
# (cjw) fix gn bootstrapping with gcc |
# (cjw) fix gn bootstrapping with gcc |
132 |
Patch190: chromium-69-gn-bootstrap.patch |
Patch190: chromium-69-gn-bootstrap.patch |
133 |
|
# (cjw) moooore gcc warnings |
134 |
|
Patch192: chromium-70-gcc8.patch |
135 |
# (cjw) build fixes for 64-bit arm |
# (cjw) build fixes for 64-bit arm |
136 |
Patch193: chromium-70-aarch64.patch |
Patch193: chromium-70-aarch64.patch |
137 |
# (cjw) gn bootstrap fix |
# (cjw) gn bootstrap fix |
138 |
Patch195: chromium-72-gn-bootstrap.patch |
Patch195: chromium-72-gn-bootstrap.patch |
139 |
|
# (cjw) yet more gcc warnings |
140 |
|
Patch196: chromium-72-gcc8.patch |
141 |
|
# (cjw) use system closure compiler |
142 |
|
Patch197: chromium-72-system-closure-compiler.patch |
143 |
# (cjw) fix i586 build |
# (cjw) fix i586 build |
144 |
Patch198: chromium-72-i586.patch |
Patch198: chromium-72-i586.patch |
145 |
|
# (cjw) some more gcc warnings |
146 |
|
Patch199: chromium-73-gcc8.patch |
147 |
|
# (cjw) gcc warnings |
148 |
|
Patch200: chromium-74-gcc8.patch |
149 |
|
# (cjw) gcc warnings |
150 |
|
Patch201: chromium-75-gcc8.patch |
151 |
|
# (cjw) fixes for gcc warnings that do not work with clang |
152 |
|
%if !%{use_clang} |
153 |
|
Patch203: chromium-75-gcc-only.patch |
154 |
|
%endif |
155 |
|
# (cjw) gcc warnings |
156 |
|
Patch205: chromium-76-gcc8.patch |
157 |
|
# (cjw) gcc warnings |
158 |
|
Patch207: chromium-77-gcc9.patch |
159 |
# (cjw) fix build with system icu |
# (cjw) fix build with system icu |
160 |
Patch209: chromium-77-system-icu.patch |
Patch209: chromium-77-system-icu.patch |
161 |
|
# (cjw) fixes for gcc warnings that do not work with clang |
162 |
|
%if !%{use_clang} |
163 |
|
Patch211: chromium-77-gcc-only.patch |
164 |
|
%endif |
165 |
|
# (cjw) force use of python2, since python3 does not work |
166 |
|
Patch215: chromium-77-python2.patch |
167 |
|
# (cjw) gcc warnings |
168 |
|
Patch216: chromium-78-gcc.patch |
169 |
|
# (cjw) gcc warnings |
170 |
|
Patch220: chromium-79-gcc.patch |
171 |
%if !%{use_clang} |
%if !%{use_clang} |
172 |
# fixes for gcc warnings that do not work with clang |
# fixes for gcc warnings that do not work with clang |
173 |
Patch221: chromium-79-gcc-only.patch |
Patch221: chromium-79-gcc-only.patch |
174 |
%endif |
%endif |
175 |
# (cjw) support using system dav1d |
# (cjw) support using system dav1d |
176 |
Patch224: chromium-79-system-dav1d.patch |
Patch224: chromium-79-system-dav1d.patch |
177 |
|
# (cjw) gcc warnings |
178 |
# (ns80) Patches found in fedora, opensuse, gentoo |
Patch226: chromium-80-gcc.patch |
179 |
Patch250: chromium-78-protobuf-RepeatedPtrField-export.patch |
%if !%{use_clang} |
180 |
Patch251: chromium-79-gcc-protobuf-alignas.patch |
# fixes for gcc warnings that do not work with clang |
181 |
Patch252: chromium-80-QuicStreamSendBuffer-deleted-move-constructor.patch |
Patch230: chromium-80-gcc-only.patch |
182 |
Patch253: chromium-84-blink-disable-clang-format.patch |
%endif |
183 |
Patch254: chromium-86-compiler.patch |
# (cjw) gcc warnings |
184 |
Patch255: chromium-86-ConsumeDurationNumber-constexpr.patch |
Patch231: chromium-81-gcc.patch |
185 |
Patch256: chromium-86-ImageMemoryBarrierData-init.patch |
# (cjw) gcc warnings |
186 |
Patch257: chromium-86-nearby-explicit.patch |
Patch232: chromium-83-gcc.patch |
187 |
Patch258: chromium-86-nearby-include.patch |
# (cjw) upstream gcc build fix, via gentoo |
188 |
Patch259: chromium-86-ServiceWorkerRunningInfo-noexcept.patch |
Patch234: chromium-83-gcc-iterator.patch |
189 |
|
# (cjw) gcc warnings |
190 |
# (ns80) fixes for building chromium 86 |
Patch237: chromium-84-gcc.patch |
191 |
Patch300: chromium-86-mga-fix-build.patch |
# (cjw) fix build with system zlib |
192 |
|
Patch240: chromium-85-system-zlib.patch |
193 |
|
# (cjw) gcc warnings |
194 |
|
Patch241: chromium-85-gcc.patch |
195 |
|
# (cjw) fix angle-vulkan build with system zlib |
196 |
|
Patch243: chromium-87-system-zlib.patch |
197 |
|
# (cjw) gcc errors and warnings |
198 |
|
Patch244: chromium-87-gcc.patch |
199 |
|
# (cjw) workarounds for gcc warnings that do not work with clang |
200 |
|
Patch245: chromium-87-gcc-only.patch |
201 |
|
# crash fix from upstream |
202 |
|
Patch246: chromium-87-double-free.patch |
203 |
|
# (cjw) fix occurrences of TRUE that icu headers do not define anymore |
204 |
|
Patch247: chromium-87-system-icu.patch |
205 |
|
|
206 |
Provides: %{crname} |
Provides: %{crname} |
207 |
Obsoletes: chromium-browser-unstable < 26.0.1410.51 |
Obsoletes: chromium-browser-unstable < 26.0.1410.51 |
213 |
%if %{system_icu} |
%if %{system_icu} |
214 |
BuildRequires: icu |
BuildRequires: icu |
215 |
%endif |
%endif |
|
BuildRequires: java-openjdk-headless |
|
216 |
BuildRequires: ninja |
BuildRequires: ninja |
217 |
BuildRequires: python2 |
BuildRequires: python2 |
|
BuildRequires: python3-setuptools |
|
218 |
BuildRequires: yasm |
BuildRequires: yasm |
219 |
BuildRequires: bzip2-devel |
BuildRequires: bzip2-devel |
220 |
|
#BuildRequires: closure-compiler |
221 |
BuildRequires: cups-devel |
BuildRequires: cups-devel |
222 |
BuildRequires: elfutils-devel |
BuildRequires: elfutils-devel |
223 |
BuildRequires: ffmpeg-devel |
BuildRequires: ffmpeg-devel |
235 |
BuildRequires: nodejs |
BuildRequires: nodejs |
236 |
%endif |
%endif |
237 |
BuildRequires: osmesa-devel |
BuildRequires: osmesa-devel |
238 |
|
#BuildRequires: protobuf-devel |
239 |
BuildRequires: snappy-devel |
BuildRequires: snappy-devel |
240 |
BuildRequires: perl(Switch) |
BuildRequires: perl(Switch) |
241 |
BuildRequires: pkgconfig(alsa) |
BuildRequires: pkgconfig(alsa) |
246 |
BuildRequires: pkgconfig(dbus-glib-1) |
BuildRequires: pkgconfig(dbus-glib-1) |
247 |
BuildRequires: pkgconfig(expat) |
BuildRequires: pkgconfig(expat) |
248 |
BuildRequires: pkgconfig(flac) |
BuildRequires: pkgconfig(flac) |
249 |
|
%if %{system_fontconfig} |
250 |
BuildRequires: pkgconfig(fontconfig) |
BuildRequires: pkgconfig(fontconfig) |
251 |
|
%endif |
252 |
BuildRequires: pkgconfig(freetype2) |
BuildRequires: pkgconfig(freetype2) |
253 |
|
BuildRequires: pkgconfig(gbm) |
254 |
BuildRequires: pkgconfig(glu) |
BuildRequires: pkgconfig(glu) |
255 |
BuildRequires: pkgconfig(gnome-keyring-1) |
BuildRequires: pkgconfig(gnome-keyring-1) |
256 |
BuildRequires: pkgconfig(gnutls) |
BuildRequires: pkgconfig(gnutls) |
282 |
BuildRequires: pkgconfig(nspr) |
BuildRequires: pkgconfig(nspr) |
283 |
BuildRequires: pkgconfig(nss) |
BuildRequires: pkgconfig(nss) |
284 |
BuildRequires: pkgconfig(opus) |
BuildRequires: pkgconfig(opus) |
285 |
|
%if %{system_re2} |
286 |
|
BuildRequires: pkgconfig(re2) |
287 |
|
%endif |
288 |
BuildRequires: pkgconfig(speech-dispatcher) |
BuildRequires: pkgconfig(speech-dispatcher) |
289 |
BuildRequires: pkgconfig(speex) |
BuildRequires: pkgconfig(speex) |
290 |
BuildRequires: pkgconfig(udev) |
BuildRequires: pkgconfig(udev) |
291 |
BuildRequires: pkgconfig(xscrnsaver) |
BuildRequires: pkgconfig(xscrnsaver) |
292 |
BuildRequires: pkgconfig(xt) |
BuildRequires: pkgconfig(xt) |
293 |
BuildRequires: pkgconfig(xtst) |
BuildRequires: pkgconfig(xtst) |
294 |
BuildRequires: pkgconfig(re2) |
BuildRequires: pkgconfig(zlib) |
|
BuildRequires: pkgconfig(gbm) |
|
295 |
%if %{use_clang} |
%if %{use_clang} |
296 |
BuildRequires: clang |
BuildRequires: clang |
297 |
%endif |
%endif |
334 |
%setup -q -n chromium-%{version} |
%setup -q -n chromium-%{version} |
335 |
%autopatch -p1 |
%autopatch -p1 |
336 |
|
|
337 |
# Remove bundled libs |
# files we do not want from upstream source bundles |
338 |
keeplibs=( |
rm -r --interactive=never third_party/breakpad/breakpad/src/processor/testdata/ |
339 |
base/third_party/cityhash |
rm -r --interactive=never third_party/breakpad/breakpad/src/tools |
340 |
base/third_party/double_conversion |
find chrome/common/extensions/docs/ -type f \! -regex '.*\.\(gn\|gni\)' -delete |
341 |
base/third_party/dynamic_annotations |
rm -r --interactive=never chrome/test/data/{android,app_shim,apptest,ash,autofill,automation,automation_proxy_snapshot,banners,bookmark_html_reader,bookmarks,captive_portal,chromedriver,chrome_endure,chromeos,click_modifier,components,constrained_files,content,content_setting_bubble,devtools,diagnostics,dom_automation,dom_checker,dom_distiller,downloads,drive_first_run,dromaeo,durable,edge_database_reader,edge_profile,encoding_tests,extensions,fast_shutdown,fast_tab_close,favicon,feeds,file_select_helper,find_in_page,firefox320_profile,firefox35_profile,firefox3_nss,firefox3_nss_mac,firefox3_profile,firefox_profile,firefox_searchplugins,focus,frame_dom_access,frame_tree,ftp,fullscreen_mouselock,geolocation,google,gpu,History,image_decoding,image_search,import,indexeddb,inspector,installer,interstitial_page,login,native_messaging,navigation_interception,notifications,page_cycler,page_load_metrics,password,pepper,perf,permissions,plugin_power_saver,policy,popup_blocker,predictor,prefs,pref_service,prerender,printing,profiles,push_messaging,referrer_policy,safe_browsing,save_page,scroll,session_history,session_restore,sessions,settings,speech,ssl,subresource_filter,sunspider,sync,template_url_scraper,textinput,third_party,top_sites,translate,unit,v8_benchmark_v6,viewsource,web_app_info,webrtc,websocket,webui_test_resources.grd,whitelists,workers} |
342 |
base/third_party/nspr |
rm -r --interactive=never chrome/test/data/nacl/{pnacl_error_handling,cross_origin,irt_exception,pnacl_request_header,nonsfi,pnacl_url_loader,pnacl_hw_eh_disabled,pnacl_nmf_options,pnacl_dyncode_syscall_disabled,extension_mime_handler,ppapi_test_lib,bad,ppapi,manifest,pnacl_debug_url,extension_validation_cache,exit_status,progress_events,manifest_file,sysconf_nprocessors_onln,crash,pnacl_mime_type} |
343 |
base/third_party/libevent |
rmdir chrome/test/data/webui/{settings,extensions}/a11y |
344 |
base/third_party/icu |
rmdir chrome/test/data/webui/settings/chromeos/app_management |
345 |
base/third_party/superfasthash |
rmdir chrome/test/data/webui/{engagement,extensions,history,net_internals} |
346 |
base/third_party/symbolize |
rm -r --interactive=never components/test/data/update_client/jebgalgnebhfojomionfpkfelancnnkf/component1.dll |
347 |
base/third_party/valgrind |
rm -r --interactive=never content/test/data/ |
348 |
base/third_party/xdg_mime |
rm -r --interactive=never ppapi/native_client/tests/ |
349 |
base/third_party/xdg_user_dirs |
rm -r --interactive=never third_party/apache-win32/ |
350 |
buildtools/third_party/libc++ |
rm -r --interactive=never third_party/expat/{fuzz,include,src} |
351 |
buildtools/third_party/libc++abi |
rm -r --interactive=never third_party/ffmpeg/*/* |
352 |
buildtools/third_party/libunwind |
rm -r --interactive=never third_party/flac/{include,src} |
353 |
chrome/third_party/mozilla_security_manager |
%if %{system_icu} |
354 |
courgette/third_party |
rm -r --interactive=never third_party/icu/{android,android_small,common,patches,source,chromeos,ios} |
355 |
net/third_party/mozilla_security_manager |
%endif |
356 |
net/third_party/nss |
rm -r --interactive=never third_party/jsoncpp/source |
357 |
net/third_party/quic |
rm -r --interactive=never third_party/lcov |
358 |
net/third_party/uri_template |
%if %{system_libevent} |
359 |
third_party/abseil-cpp |
rm -r --interactive=never base/third_party/libevent/*/* |
360 |
third_party/angle |
rm -r --interactive=never base/third_party/libevent/*.[ch] |
361 |
third_party/angle/src/common/third_party/base |
%endif |
362 |
third_party/angle/src/common/third_party/smhasher |
%if %{system_libvpx} |
363 |
third_party/angle/src/common/third_party/xxhash |
rm -r --interactive=never third_party/libvpx/source/{libvpx,config} |
364 |
third_party/angle/src/third_party/compiler |
%endif |
365 |
third_party/angle/src/third_party/libXNVCtrl |
rm -r --interactive=never third_party/libaom/source |
366 |
third_party/angle/src/third_party/trace_event |
%if %{system_dav1d} |
367 |
third_party/angle/src/third_party/volk |
rm -r --interactive=never third_party/dav1d/{libdav1d,version} |
368 |
third_party/angle/third_party/glslang |
%endif |
369 |
third_party/angle/third_party/spirv-headers |
rm -r --interactive=never third_party/libjpeg_turbo/*.[ch] |
370 |
third_party/angle/third_party/spirv-tools |
rm -r --interactive=never third_party/libpng/*.[ch] |
371 |
third_party/angle/third_party/vulkan-headers |
rm -r --interactive=never third_party/libxslt/{linux,mac,src,win32} |
372 |
third_party/angle/third_party/vulkan-loader |
rm -r --interactive=never third_party/xdg-utils/tests/ |
373 |
third_party/angle/third_party/vulkan-tools |
rm -r --interactive=never third_party/zlib/{*.[ch],contrib/minizip} |
374 |
third_party/angle/third_party/vulkan-validation-layers |
rm -r --interactive=never native_client_sdk/src/tools/lib/tests/data |
375 |
third_party/apple_apsl |
rm -r --interactive=never buildtools/third_party/eu-strip/bin |
376 |
third_party/axe-core |
rm --interactive=never third_party/pdfium/third_party/libopenjpeg20/*.[ch] |
377 |
third_party/blanketjs |
rm -r --interactive=never third_party/pdfium/third_party/libpng16 |
378 |
third_party/blink |
%if %{system_libtiff} |
379 |
third_party/boringssl |
rm --interactive=never third_party/pdfium/third_party/libtiff/*.[ch] |
380 |
third_party/boringssl/src/third_party/fiat |
%endif |
381 |
third_party/breakpad |
%if %{system_re2} |
382 |
third_party/breakpad/breakpad/src/third_party/curl |
rm -r --interactive=never third_party/re2/src |
383 |
third_party/brotli |
%endif |
384 |
third_party/catapult |
%if %{system_fontconfig} |
385 |
third_party/catapult/common/py_vulcanize/third_party/rcssmin |
rm -r --interactive=never third_party/fontconfig/{src,include,chromium} |
386 |
third_party/catapult/common/py_vulcanize/third_party/rjsmin |
%endif |
387 |
third_party/catapult/third_party/beautifulsoup4 |
rm --interactive=never native_client/tools/redirector.exe |
388 |
third_party/catapult/third_party/google-endpoints |
rm --interactive=never third_party/webrtc/data/voice_engine/stereo_rtp_files/rtpplay.exe |
389 |
third_party/catapult/third_party/html5lib-python |
rm -r --interactive=never third_party/llvm |
390 |
third_party/catapult/third_party/polymer |
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/t/SanOGLES-Gerbera.exe |
391 |
third_party/catapult/third_party/six |
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/t/SanOGLES-PVRSDK.exe |
392 |
third_party/catapult/tracing/third_party/d3 |
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/t/libGLES_CM.dll |
393 |
third_party/catapult/tracing/third_party/gl-matrix |
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/gles/bob/bob |
394 |
third_party/catapult/tracing/third_party/jpeg-js |
rm --interactive=never third_party/webgl/src/sdk/demos/google/san-angeles/glut/SanOGLES |
395 |
third_party/catapult/tracing/third_party/jszip |
rm --interactive=never third_party/lzma_sdk/Executable/7za.exe |
396 |
third_party/catapult/tracing/third_party/mannwhitneyu |
rm --interactive=never third_party/lzma_sdk/7zr.exe |
397 |
third_party/catapult/tracing/third_party/oboe |
rm --interactive=never third_party/breakpad/symupload.exe |
398 |
third_party/catapult/tracing/third_party/pako |
rm -r --interactive=never third_party/catapult/third_party/google-endpoints/setuptools |
399 |
third_party/ced |
rm -r --interactive=never third_party/catapult/third_party/vinn/third_party/v8 |
400 |
third_party/cld_3 |
rm --interactive=never third_party/depot_tools/ninja.exe |
401 |
third_party/crashpad |
rm --interactive=never third_party/depot_tools/ninja-linux32 |
402 |
third_party/closure_compiler |
rm --interactive=never third_party/depot_tools/ninja-linux64 |
403 |
third_party/crashpad/crashpad/third_party/lss |
rm -r --interactive=never native_client/tools/hermetic_cygwin |
404 |
third_party/crashpad/crashpad/third_party/zlib |
rm -r --interactive=never base/test/data/pe_image/ |
405 |
third_party/crc32c |
rm -r --interactive=never base/test/data/file_version_info_unittest |
406 |
third_party/cros_system_api |
rm -r --interactive=never chrome/chrome_cleaner/test/resources/signed_dll |
407 |
third_party/dav1d |
rm --interactive=never third_party/crashpad/crashpad/handler/win/z7_test.dll |
408 |
third_party/dawn |
rm -r --interactive=never third_party/crashpad/crashpad/snapshot/elf/elf_image_reader_fuzzer_corpus |
409 |
third_party/depot_tools |
rm -r --interactive=never third_party/boringssl/src/util/ar/testdata |
410 |
third_party/depot_tools/third_party/six |
rm -r --interactive=never third_party/pyelftools/test/testfiles_for_unittests |
411 |
third_party/devscripts |
rm -r --interactive=never third_party/pyelftools/test/external_tools |
412 |
third_party/devtools-frontend |
rm -r --interactive=never third_party/pyelftools/test/testfiles_for_readelf |
413 |
third_party/devtools-frontend/src/third_party/axe-core |
rm -r --interactive=never third_party/pyelftools/examples |
414 |
third_party/devtools-frontend/src/third_party/typescript |
rm -r --interactive=never third_party/skia/platform_tools/android/bin |
415 |
third_party/devtools-frontend/src/front_end/third_party/acorn |
rm --interactive=never third_party/nasm/travis/test/tmap.o.t |
416 |
third_party/devtools-frontend/src/front_end/third_party/chromium |
rm -r --interactive=never components/test/data/update_client |
417 |
third_party/devtools-frontend/src/front_end/third_party/codemirror |
rm -r --interactive=never build/android/tests/symbolize |
418 |
third_party/devtools-frontend/src/front_end/third_party/fabricjs |
|
419 |
third_party/devtools-frontend/src/front_end/third_party/i18n |
rm --interactive=never third_party/skia/platform_tools/android/apps/gradle/wrapper/gradle-wrapper.jar |
420 |
third_party/devtools-frontend/src/front_end/third_party/intl-messageformat |
rm --interactive=never third_party/libphonenumber/dist/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
421 |
third_party/devtools-frontend/src/front_end/third_party/lighthouse |
rm --interactive=never third_party/libphonenumber/dist/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
422 |
third_party/devtools-frontend/src/front_end/third_party/lit-html |
rm -r --interactive=never third_party/libphonenumber/dist/java/demo/war/WEB-INF/lib |
423 |
third_party/devtools-frontend/src/front_end/third_party/lodash-isequal |
rm -r --interactive=never third_party/libphonenumber/dist/java/lib |
424 |
third_party/devtools-frontend/src/front_end/third_party/marked |
rm --interactive=never third_party/webrtc/examples/androidapp/third_party/autobanh/lib/autobanh.jar |
425 |
third_party/devtools-frontend/src/front_end/third_party/wasmparser |
rm --interactive=never third_party/closure_compiler/compiler/compiler.jar |
426 |
third_party/devtools-frontend/src/third_party |
rm --interactive=never third_party/flatbuffers/src/android/gradle/wrapper/gradle-wrapper.jar |
427 |
third_party/dom_distiller_js |
rm --interactive=never third_party/flatbuffers/src/samples/android/gradle/wrapper/gradle-wrapper.jar |
428 |
third_party/emoji-segmenter |
rm --interactive=never third_party/devtools-frontend/src/scripts/closure/compiler.jar |
429 |
third_party/expat |
rm --interactive=never third_party/devtools-frontend/src/scripts/closure/closure_runner/closure_runner.jar |
430 |
third_party/ffmpeg |
rm --interactive=never third_party/devtools-frontend/src/scripts/jsdoc_validator/jsdoc_validator.jar |
431 |
third_party/flac |
rm --interactive=never third_party/gradle_wrapper/gradle/wrapper/gradle-wrapper.jar |
432 |
third_party/flatbuffers |
rm --interactive=never third_party/webgl/src/conformance-suites/2.0.0/deqp/compiler.jar |
433 |
third_party/fontconfig |
|
434 |
third_party/libgifcodec |
%if %{system_libevent} |
435 |
third_party/glslang |
find base/third_party/libevent -type f \! -regex '.*\.\(gn\|gni\|isolate\)' -delete |
436 |
third_party/google_input_tools |
%endif |
437 |
third_party/google_input_tools/third_party/closure_library |
|
438 |
third_party/google_input_tools/third_party/closure_library/third_party/closure |
%if %{system_icu} |
439 |
third_party/google_trust_services |
# Remove bundled ICU; its header files appear to get picked up instead of |
440 |
third_party/googletest |
# the system ones, leading to errors during the final link stage. |
441 |
third_party/grpc |
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/BNGvJc08B6Q |
442 |
third_party/grpc/src/third_party/nanopb |
find third_party/icu -type f \! -regex '.*\.\(gn\|gni\|isolate\)' -delete |
443 |
third_party/harfbuzz-ng |
%endif |
|
third_party/harfbuzz-ng/utils |
|
|
third_party/hunspell |
|
|
third_party/iccjpeg |
|
|
third_party/inspector_protocol |
|
|
third_party/jinja2 |
|
|
third_party/jsoncpp |
|
|
third_party/jstemplate |
|
|
third_party/khronos |
|
|
third_party/leveldatabase |
|
|
third_party/libXNVCtrl |
|
|
third_party/libaddressinput |
|
|
third_party/libaom |
|
|
third_party/libaom/source/libaom/third_party/vector |
|
|
third_party/libaom/source/libaom/third_party/x86inc |
|
|
third_party/libavif |
|
|
third_party/libdrm |
|
|
third_party/libjingle |
|
|
third_party/libjpeg_turbo |
|
|
third_party/libphonenumber |
|
|
third_party/libsecret |
|
|
third_party/libsrtp |
|
|
third_party/libsync |
|
|
third_party/libudev |
|
|
third_party/libusb |
|
|
third_party/libwebm |
|
|
third_party/libwebp |
|
|
third_party/libxml |
|
|
third_party/libxml/chromium |
|
|
third_party/libxslt |
|
|
third_party/libyuv |
|
|
third_party/lottie |
|
|
third_party/lss |
|
|
third_party/lzma_sdk |
|
|
third_party/mako |
|
|
third_party/markupsafe |
|
|
third_party/mesa |
|
|
third_party/metrics_proto |
|
|
third_party/minigbm |
|
|
third_party/modp_b64 |
|
|
third_party/nasm |
|
|
third_party/nearby |
|
|
third_party/node |
|
|
third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 |
|
|
third_party/one_euro_filter |
|
|
third_party/opencv |
|
|
third_party/openscreen |
|
|
third_party/openscreen/src/third_party/mozilla |
|
|
third_party/openscreen/src/third_party/tinycbor |
|
|
third_party/opus |
|
|
third_party/ots |
|
|
third_party/pdfium |
|
|
third_party/pdfium/third_party/agg23 |
|
|
third_party/pdfium/third_party/base |
|
|
third_party/pdfium/third_party/bigint |
|
|
third_party/pdfium/third_party/eu-strip |
|
|
third_party/pdfium/third_party/freetype |
|
|
third_party/pdfium/third_party/lcms |
|
|
third_party/pdfium/third_party/libopenjpeg20 |
|
|
third_party/pdfium/third_party/libpng16 |
|
|
third_party/pdfium/third_party/libtiff |
|
|
third_party/pdfium/third_party/skia_shared |
|
|
third_party/perfetto |
|
|
third_party/pffft |
|
|
third_party/ply |
|
|
third_party/polymer |
|
|
third_party/private-join-and-compute |
|
|
third_party/protobuf |
|
|
third_party/protobuf/third_party/six |
|
|
third_party/pyjson5 |
|
|
third_party/qcms |
|
|
third_party/rnnoise |
|
|
third_party/s2cellid |
|
|
third_party/schema_org |
|
|
third_party/securemessage |
|
|
third_party/simplejson |
|
|
third_party/sinonjs |
|
|
third_party/skia |
|
|
third_party/skia/third_party/skcms |
|
|
third_party/skia/third_party/vulkan |
|
|
third_party/skia/include/third_party/vulkan/ |
|
|
third_party/skia/include/third_party/skcms/ |
|
|
third_party/smhasher |
|
|
third_party/snappy |
|
|
third_party/spirv-headers |
|
|
third_party/SPIRV-Tools |
|
|
third_party/sqlite |
|
|
third_party/swiftshader |
|
|
third_party/swiftshader/third_party/astc-encoder |
|
|
third_party/swiftshader/third_party/llvm-10.0 |
|
|
third_party/swiftshader/third_party/llvm-subzero |
|
|
third_party/swiftshader/third_party/marl |
|
|
third_party/swiftshader/third_party/subzero |
|
|
third_party/swiftshader/third_party/SPIRV-Headers |
|
|
third_party/tcmalloc |
|
|
third_party/test_fonts |
|
|
third_party/ukey2 |
|
|
third_party/usrsctp |
|
|
third_party/vulkan |
|
|
third_party/web-animations-js |
|
|
third_party/webdriver |
|
|
third_party/webrtc |
|
|
third_party/webrtc/common_audio/third_party/ooura |
|
|
third_party/webrtc/common_audio/third_party/spl_sqrt_floor |
|
|
third_party/webrtc/modules/third_party/fft |
|
|
third_party/webrtc/modules/third_party/g711 |
|
|
third_party/webrtc/modules/third_party/g722 |
|
|
third_party/webrtc/rtc_base/third_party/base64 |
|
|
third_party/webrtc/rtc_base/third_party/sigslot |
|
|
third_party/widevine |
|
|
third_party/woff2 |
|
|
third_party/wuffs |
|
|
third_party/xcbproto |
|
|
third_party/zxcvbn-cpp |
|
|
third_party/zlib |
|
|
third_party/zlib/google |
|
|
tools/gn/src/base/third_party/icu |
|
|
tools/grit/third_party/six |
|
|
url/third_party/mozilla |
|
|
v8/src/third_party/siphash |
|
|
v8/src/third_party/valgrind |
|
|
v8/src/third_party/utf8-decoder |
|
|
v8/third_party/inspector_protocol |
|
|
v8/third_party/v8 |
|
|
v8/third_party/v8/builtins |
|
|
) |
|
|
keeplibs+=( |
|
|
third_party/v4l-utils |
|
|
third_party/wayland |
|
|
third_party/wayland-protocols |
|
|
) |
|
|
%if !%{system_icu} |
|
|
keeplibs+=( |
|
|
third_party/icu |
|
|
) |
|
|
%endif |
|
|
%if !%{system_libvpx} |
|
|
keeplibs+=( |
|
|
third_party/libvpx |
|
|
third_party/libvpx/source/libvpx/third_party/x86inc |
|
|
) |
|
|
%endif |
|
|
# needed due to bugs in GN |
|
|
keeplibs+=( |
|
|
third_party/adobe |
|
|
third_party/speech-dispatcher |
|
|
third_party/usb_ids |
|
|
third_party/xdg-utils |
|
|
) |
|
|
python2 build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove |
|
444 |
|
|
445 |
# Hard code extra version |
# Hard code extra version |
446 |
FILE=chrome/common/channel_info_posix.cc |
FILE=chrome/common/channel_info_posix.cc |
449 |
exit 1 |
exit 1 |
450 |
fi |
fi |
451 |
|
|
452 |
|
# version taken from: strings opt/google/chrome-unstable/chrome | grep -C 1 " (version:" |
453 |
|
#define widevine_version 1.4.8.1008 |
454 |
|
#for chrome_arch in ia32 x64; do |
455 |
|
# mkdir -p third_party/widevine/cdm/linux/${chrome_arch} |
456 |
|
# sed -e "s/@WIDEVINE_VERSION@/%{widevine_version}/" %{SOURCE4} > third_party/widevine/cdm/linux/${chrome_arch}/widevine_cdm_version.h |
457 |
|
#done |
458 |
|
|
459 |
%build |
%build |
460 |
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy %{?gn_libvpx} libpng %{?gn_icu} jsoncpp opus re2 libdrm %{?gn_dav1d} %{?gn_libevent} freetype harfbuzz-ng |
%define system_gn_list ffmpeg flac %{?gn_fontconfig} libwebp libxml libxslt snappy %{?gn_libvpx} libpng %{?gn_icu} zlib jsoncpp opus %{?gn_re2} libdrm %{?gn_dav1d} %{?gn_libevent} |
461 |
|
# handled by upstream regular build scripts: freetype harfbuzz-ng |
462 |
|
# mesa |
463 |
|
|
464 |
# v NO TABS IN HERE! |
# v NO TABS IN HERE! |
465 |
%define gn_config use_sysroot=false \ |
%define gn_config use_sysroot=false \ |
467 |
icu_use_data_file=true \ |
icu_use_data_file=true \ |
468 |
enable_nacl=false \ |
enable_nacl=false \ |
469 |
is_nacl_glibc=false \ |
is_nacl_glibc=false \ |
|
binutils_path="%{_bindir}" \ |
|
470 |
linux_use_bundled_binutils=false \ |
linux_use_bundled_binutils=false \ |
471 |
custom_toolchain="//build/toolchain/linux/unbundle:default" \ |
custom_toolchain="//build/toolchain/linux/unbundle:default" \ |
472 |
host_toolchain="//build/toolchain/linux/unbundle:default" \ |
host_toolchain="//build/toolchain/linux/unbundle:default" \ |
490 |
%{?gn_clang} \ |
%{?gn_clang} \ |
491 |
clang_use_chrome_plugins=false \ |
clang_use_chrome_plugins=false \ |
492 |
use_lld=false \ |
use_lld=false \ |
493 |
|
use_gold=false \ |
494 |
use_system_freetype=true \ |
use_system_freetype=true \ |
495 |
use_system_harfbuzz=true \ |
use_system_harfbuzz=true \ |
496 |
use_system_libpng=true \ |
use_system_libpng=true \ |
497 |
enable_dav1d_decoder=true enable_libaom_decoder=false \ |
enable_dav1d_decoder=true enable_libaom_decoder=false \ |
498 |
use_custom_libcxx=false \ |
use_custom_libcxx=false \ |
499 |
closure_compile=false \ |
closure_compile=false \ |
500 |
|
enable_mojom_closure_compile=false \ |
501 |
|
enable_js_type_check=false \ |
502 |
google_api_key="%{google_api_key}" \ |
google_api_key="%{google_api_key}" \ |
503 |
google_default_client_id="%{google_default_client_id}" \ |
google_default_client_id="%{google_default_client_id}" \ |
504 |
google_default_client_secret="%{google_default_client_secret}" \ |
google_default_client_secret="%{google_default_client_secret}" |
|
treat_warnings_as_errors=false |
|
505 |
|
|
506 |
|
|
507 |
# enable_browser_cdms=true \ |
# enable_browser_cdms=true \ |
540 |
CXXFLAGS="$CXXFLAGS -msse2" |
CXXFLAGS="$CXXFLAGS -msse2" |
541 |
%endif |
%endif |
542 |
|
|
543 |
tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{gn_config}' |
python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{gn_config}' |
544 |
|
|
545 |
|
out/Release/gn gen --script-executable=/usr/bin/python2 --args='%{gn_config}' out/Release |
546 |
|
|
547 |
out/Release/gn gen --args='%{gn_config}' out/Release |
# python... |
548 |
|
mkdir out/Release/python2_root |
549 |
|
cp -r %{python3_sitelib}/xcbgen out/Release/python2_root/ |
550 |
|
cp -r %{python3_sitelib}/setuptools out/Release/python2_root/ |
551 |
|
|
552 |
|
# ld.bfd needs lots of file descriptors to link chrome |
553 |
|
ulimit -n 4096 |
554 |
pushd out/Release |
pushd out/Release |
555 |
ninja %{_smp_mflags} chrome chrome_sandbox |
env PYTHONPATH=${PWD}/python2_root ninja %{_smp_mflags} chrome chrome_sandbox |
556 |
popd |
popd |
557 |
|
|
558 |
# man page |
# man page |