diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-02 14:13:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-02 14:13:35 +0100 |
commit | 7c7c2c9727d6b2ff30945b5aea0d575e1c406d8b (patch) | |
tree | bac2a67fb24ac0836147fe370d30e1610ae1845d /www-client/chromium | |
parent | 2f8db31405fac68eea6f7257d58529243815033b (diff) |
gentoo resync : 02.05.2018
Diffstat (limited to 'www-client/chromium')
-rw-r--r-- | www-client/chromium/Manifest | 11 | ||||
-rw-r--r-- | www-client/chromium/chromium-66.0.3359.139.ebuild | 2 | ||||
-rw-r--r-- | www-client/chromium/chromium-67.0.3396.18.ebuild | 2 | ||||
-rw-r--r-- | www-client/chromium/chromium-68.0.3409.2.ebuild (renamed from www-client/chromium/chromium-66.0.3359.117.ebuild) | 29 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-compiler-r1.patch | 174 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-gn-bootstrap-r23.patch | 56 |
6 files changed, 251 insertions, 23 deletions
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index f790ba38ea29..d68191285131 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -3,8 +3,10 @@ AUX chromium-browser.xml 407 BLAKE2B 168d78b0855546ca559cfb51aff0bc85d5e6ae974c2 AUX chromium-clang-r2.patch 731 BLAKE2B 6a0560107c89ab4406d62700312bb4437b49b5b1feace304c6db309460b74f630dd59c424f152ebf6a1d88025c14b7162d14a38afde6e74a87ca04d3424fd9b6 SHA512 f5edc9b573269a7a6944e17019fa858e7162c548400eceabdabe695d7e10d3179b7593415ec3eaef226defdd1628fd8c9cc66c0b46ebe6ac1afe5035a319c379 AUX chromium-clang-r4.patch 363 BLAKE2B 4c776d4823eef90f69bb42b1fc2ed5c314fcb60cdc2da44d90bd3faf6d9a9d3fdf8367a85f6e735b59fe440f7de5582a974b3e04f4ff46683242f368e68b1503 SHA512 78fa7d69b2b8bdd5a755baff7d5474943ad373d2cc9673db61f501b0f8150bbdf795b3c2afa557d637564276dd5b4edda282daa7cbb7b5ea9366bd81f8989ab0 AUX chromium-compiler-r0.patch 5681 BLAKE2B d56abb6f816cfb530e583b5e59c7719f766ed0ce198f1caf3043cde38115fabb8f776f57946abf57f7430259ac0bb7c7c44602198d9a5e1f3ac942c4f1da366f SHA512 01a799b1ae1dd4042fffb0307207089c99d568289e20677ff7436767da9ee16cc6491f759d0b7447b59b53d44cbd235053078aa7dfdfcbc66eb9cd2d73ab8857 +AUX chromium-compiler-r1.patch 5859 BLAKE2B 6a96e586c0f38e949544d8d5a756b92a08107ea41de3c62d1c8c38173c67ae8c08a2b9207947b78048ca0dd7d731c60c2ac34a7e72facc340ff876cd42f91d0e SHA512 01303f0d134edeb1bac5a1c2e95b7e66997b218fcd8af8aa53860a48d0f4adff000b90a9e12a55eb11dbb163ac4f1926e010b194a6d9b75b62598040c6fcbfb0 AUX chromium-ffmpeg-clang.patch 840 BLAKE2B cd0af6414462be4ee0cbb46e0c43b705f6883ed42a536747a5ab5a9a6c52727c521aca92bce61b55cf68be6dbac665a41846fd8907335e1dd34b452f973b624e SHA512 e02bc169ef60af8f48b67ed36a7f0e1232fcfc2c59fd48de5cc6c0a267fe29eccd7971a2692ce07c34cf07d5bf416389e10442bf2658822b3fbd27dd623ea91a AUX chromium-ffmpeg-r1.patch 528 BLAKE2B c6cbbbb13093b10d0d8e95bd382dbc7f9afb6634802f6560a7b5886482c912cb493aed4c231b4c781b89de6dcf4200b17ba9315e337a3f73e8fdca12dceb80fb SHA512 1dc7dd844e8e0aec379ace3a163200735bbab0644f9d02fa0736f91a4156e9cede5b66eb6a015f8679ecd26dab2345b82ed181591bb78a1e88d3cc0174237ea0 +AUX chromium-gn-bootstrap-r23.patch 1943 BLAKE2B ca68059bf799dcc8fdd7ab698008e55a2c5707168c72b463ffd66a73f97df8ff5689fa5d440d60b519ac3ed6739a1b95ce5ed8f294e473d065a7bb2a35bb4267 SHA512 0af208a257ff3ce3f61b242e05ee4988a371c3d9ee5c686fdc15b023283b1914272c4e30562a48c294fa47f665b5082e274f44f871c97afc6c849b6065f9deec AUX chromium-launcher-r3.sh 1199 BLAKE2B 85f57b380cdc25bd000cf57d3c129b67f6e55d96dd958190040b0680f8d4d358ac777e0c1ebd6a1b32dd3821a377bcf9f598e073584528d0480460978c4c1fb1 SHA512 f1909314ae74985c85740d26c9bfab694f3202de8ccc392a1c4ec5c8760db21b6cc46146c78a9abebd09e6d24f37e19466f0c4d2d61815400b48d859f8ce154d AUX chromium-math.h-r0.patch 1092 BLAKE2B abdef69cacaa5af0cd84b293b300fa5db631b7df8d4f1237449e858dc3ff56589a3f46d8228fc0c969552f41bd9cf2a0c2cbf4a1936c2729f701aa1d4ad86b94 SHA512 91a0d74ec51a6776bfc4212a132963fbc4688c47ee1da40cfbebf696ef26a766f5189cb0a972ef2cf4338daa5355ce79002d624b5f30a7c2de36e40b07355f8d AUX chromium-memcpy-r0.patch 1306 BLAKE2B 585c015fbc6cfda61fb28c451da1433047c21e439c6a23e2f27844c308984a2066a70913669b3e1797233f86e25a119e494156c0b869eccc94d21c2abaeadba4 SHA512 1aeeb70929acee529dea66860b42f106afe18c0f6219eb03c9c710faf8d20a997135550e289839599ec325d8f032243fd70c07d397bd89302a192c41e8c4660a @@ -12,13 +14,12 @@ AUX chromium-stdint.patch 623 BLAKE2B a4bc24a472bef266cc8e67fde8249b17dcd407fd86 AUX chromium-webrtc-r0.patch 972 BLAKE2B 1c49db0ba631c8e517a5b361e2882e7f00d9b018af2bbe7e701b878b78f1480317bfb6394b0184b49da3c4361acebf6f6eb164b12246a61a9b205e209d8e598b SHA512 325e269e6c24e9d3103ae360653e0bda764356655534be08cfe308d8c63ed8c93c80c09f58d023afbc6e141f7cbe5b86f7983c57b8f6c794b7675d332439b051 AUX chromium-widevine-r1.patch 428 BLAKE2B 07b5ab48a2233986f60c91192557e0454eab56248cdf378ae4d6fe99f239f95e89f28fd0b2b7dc36dd85557e7a5403d9a30a8189b7f56a9bae678831dfa49d2b SHA512 fe6b912bd8b3993194f71bef229e57d4c24f9adcf697172eb3bc5ee8d38967bf5fe5b964e9d89d23960d25cd3a6e53ce7714f81f0df1881758b611a66375e32a AUX chromium.default 148 BLAKE2B 5ee5b582c59a6e4bef87bbb0e232e2470ad412b1fbbb3b9af6ef7153edb55c5b9080cc16a5a115b0c5b3c381aa87ce57a7b12bdd2070e67dac10a6c2995ddbaf SHA512 0d4849e03592fb58b05e62a43021eca7e61615616c8907c3b2e445402e03adaf9e8fa25b0a745d6c31eb037456215cc02b59e345a3a06d932e76cf990c92d739 -DIST chromium-66.0.3359.117-blink.tar.xz 10604 BLAKE2B f458afe8ca21dbae62037cf9b962726a0b48177bcd209ca15eb2a717ca33307ab631e85422fce8bc5990e8f78ee30dd5b58d972eae4cc511f593ee82227ec2b3 SHA512 846ed1ecaa51d945057d0a9f6a72e1dd871a9556fd1a8ff79a5b9e342363d6a2d60378dbc0e84046e7274f9d09dd2d9b444a76af7fc25e7a2869c15c858606d3 -DIST chromium-66.0.3359.117.tar.xz 583947452 BLAKE2B b9e860f0f966ec9aaa2ab5627bbc12486a67b658866763f82d1687cb6cd5ae0cf8b2ccfa3bf045417688a771d7662ba2f8ba149b88802ab3f54015e14ceb7fec SHA512 93fba91783a2109a74fcf7fb0a70a1e1eb062d9277a78783832230638a3371e35fa725494989236c5e5be5494548c4869e1b2e645c65f794a7296efeef8eb27c DIST chromium-66.0.3359.139.tar.xz 583978636 BLAKE2B 0727ba9f87a738b691b2120dee7f45f7b16b234e871988b1257f01589a6a5ec2cd2470e8d95fc3087be2ab140f71afce63c7fccc851e87a932f69326966c3303 SHA512 9fe78fb6970fc5a3455e6545a4869d3a73075329ccd26719f503fd9bbfbdd6aec4f3db4cc748e8f12abb81adb318b8f8b42c7ab5c289a1f698536e81b7d2f14f DIST chromium-67.0.3377.1.tar.xz 585310180 BLAKE2B 9e543ad2796c617e9c6237a938600ddd4fd7f7245f78e7aec25e2160ed8ab128e70c97d5a7d70021fd7b79707ceaf1e5e0a836e25474ad5e2999bc1f6b7e43b1 SHA512 e0e5c092895d676551ad75cf18595a641676cde0a6a414180a7e23046cb47fe61256634ac50fa6b3f05153a75125e88417bada12f662ee3fa71aad3ba7cf7684 DIST chromium-67.0.3396.18.tar.xz 589707412 BLAKE2B 925d258b388b9c28c64db8a423139d52ff4bada2a3971c1c3735e8caf9c9f6991e44153ae57650285f76f5b185046259d6305abaa2bf6ed9ff00c87a91162da2 SHA512 38e19697d4386fc0497312f2dd408f0e950fabb58f78572509caa68cbdbc7f5c5e54bb945c1afe17c64ef5180711759735d5cacb61fb8847b4fe3ac1a4485066 -EBUILD chromium-66.0.3359.117.ebuild 21111 BLAKE2B 2869456ce0fc3e735f09c35d9d28ba22a13f2e511ddbe0cc69d0db0171e46ed15322e81288d197df65b247f23ec3a4b2ba64d16ad0ce150563c0591385effb70 SHA512 c025e0ec4279871e5d1354606228c43b6a5f6e37407a88407907b5b72b9a298acd632a5193f447231139b2634370968dfdc5f0bbd585e04740a936d3bccf812e -EBUILD chromium-66.0.3359.139.ebuild 21056 BLAKE2B 2620e59768403975d4bde8c286b020f723ba9d60d2c02b1ba8ac99c71589add05dce3fa7b9e7db6d84f58bbab1b0d1499ae371bcd7fb2b5735b1a8954471dc7f SHA512 5204b782fffe5ebf121e5131dd205e4f1066f4736e4828091e3951d289edcb3e675e7a16910019850730af4fc93b825af1a3dafa7710c9a6aa5c721570bb3530 +DIST chromium-68.0.3409.2.tar.xz 595647380 BLAKE2B 3f3ebb7de759ae92b8feca74a931c10c4bdf4f75a0a7aeb2f56b59e635e1f03becccdf2b26d306e5753d9379eadede6ef50ec4e44338a3a6bdfb960b74003770 SHA512 2ce35251392570bcfe0cc02813bf6cee1761b2227888a135491828bfdfa9eafa4538e8fb981165503f901eecbf91cc8ce17cebab1681c63a43f0625dae7a2dd8 +EBUILD chromium-66.0.3359.139.ebuild 21055 BLAKE2B c74cd0f0c8a50c99879aa82b87f6802239f3f56c462baabd4d3c4c618f90cf96ff7787fa13bdff63305dc60183f709ec727663bbe83bc0a0c662bbac52be1b5d SHA512 d51c2d8323ec5fd507d53e7ce2ecc2eaea83448a592d8bf7e36b30db315e85572cd00dbe8a26e12b11fa7cc47ab46121fab7c42179a60c0143794b4d2aec92e7 EBUILD chromium-67.0.3377.1.ebuild 20722 BLAKE2B 212e18f41c38fa0bb4cb31e23d0302a1111a16e686e323a6dd08bd7aa2fd10585e78ba0a42689d4d5a77b97727c6bcccf2fbad5776797dc5ec9b472a01a7ed24 SHA512 9c64befd569134d02f036f35e2bc146f88ba00ec5843d2faddf5354d31f0661847744bdb79d4a14747a307e57bed6a181c243bf163a3c16ce57ad2d96be6d7b1 -EBUILD chromium-67.0.3396.18.ebuild 20774 BLAKE2B a045dd360efe9004a1189f07b35c2d371bc6d925b9130629e42520b8a35c2675597de9a145d201d1bec220475c2924bcbed824a7eea56b8846cede89204e2dff SHA512 4ba4b3295927479110dcd6a19743bdec7eb2ffeae89760411464e46bbcf02fbe201668f895c6e0c3fbe2e793d45c1bfe9281f32acd33a53761308ffd5243f3e8 +EBUILD chromium-67.0.3396.18.ebuild 20774 BLAKE2B 85841d5b0afc8d0661ba32f0375c10b76d22228782c45790b6978d454d7304d758d111be11aa93a18bb74bf7fd4636d9463a7d56c608305df03a82cb13a7a378 SHA512 06d5090324b77677d4e22f3c5b7e515f05c7df7ad8112ac901ce6962f121d997ca1dc9c706bc3c1c11f1bf791dce8887cb7faf4be6041e1e5092d0aac4cf4ad3 +EBUILD chromium-68.0.3409.2.ebuild 20929 BLAKE2B ee7048d1c022427f86621912ef3d801d7188168e07d0c371da05f0fe871245f76aea41d5ec04e0f9adeeb2e7ad3dd886f267a7bd58652fc9771dda8912f7b1e2 SHA512 793b12dd3631baedac8eac7ef568fa969ae6ab5b870eae23fd4212f9f0e3c9ae9f04873b2a10b1f9bd73d8a6968457fe558a204faec30dc8bf6bc7d2901cf8c3 MISC metadata.xml 1418 BLAKE2B 0fd718bd70dc0fa890bf7e0efa2f6a186df446617f36bb5e4689989c4766da4016b5325d8a81f8959e887fc182ff792bb10909b5724df8c4fcaade221b289d8b SHA512 1c68218f5cab5787a7524823975474065794aa18f8301e9efe066847b9a566b870a68a3768cee925a3ad6543fb182575043c1cb45e145db67382c502a535d039 diff --git a/www-client/chromium/chromium-66.0.3359.139.ebuild b/www-client/chromium/chromium-66.0.3359.139.ebuild index cf52ce6305d2..87ff23089739 100644 --- a/www-client/chromium/chromium-66.0.3359.139.ebuild +++ b/www-client/chromium/chromium-66.0.3359.139.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 ~x86" IUSE="component-build cups gnome-keyring +hangouts jumbo-build kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine" RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" diff --git a/www-client/chromium/chromium-67.0.3396.18.ebuild b/www-client/chromium/chromium-67.0.3396.18.ebuild index b8a5259bc65a..ececa654c8c9 100644 --- a/www-client/chromium/chromium-67.0.3396.18.ebuild +++ b/www-client/chromium/chromium-67.0.3396.18.ebuild @@ -44,7 +44,7 @@ COMMON_DEPEND=" >=media-libs/openh264-1.6.0:= pulseaudio? ( media-sound/pulseaudio:= ) system-ffmpeg? ( - >=media-video/ffmpeg-3:= + >=media-video/ffmpeg-4:= || ( media-video/ffmpeg[-samba] >=net-fs/samba-4.5.10-r1[-debug(-)] diff --git a/www-client/chromium/chromium-66.0.3359.117.ebuild b/www-client/chromium/chromium-68.0.3409.2.ebuild index 371848a0ee28..bc37e0d7109f 100644 --- a/www-client/chromium/chromium-66.0.3359.117.ebuild +++ b/www-client/chromium/chromium-68.0.3409.2.ebuild @@ -12,13 +12,12 @@ inherit check-reqs chromium-2 eutils gnome2-utils flag-o-matic multilib ninja-ut DESCRIPTION="Open-source version of Google Chrome web browser" HOMEPAGE="http://chromium.org/" -SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz - https://dev.gentoo.org/~floppym/dist/${P}-blink.tar.xz" +SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm64 ~x86" -IUSE="component-build cups gnome-keyring +hangouts jumbo-build kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="component-build cups gnome-keyring +hangouts jumbo-build kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc" RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" COMMON_DEPEND=" @@ -45,7 +44,7 @@ COMMON_DEPEND=" >=media-libs/openh264-1.6.0:= pulseaudio? ( media-sound/pulseaudio:= ) system-ffmpeg? ( - >=media-video/ffmpeg-3:= + >=media-video/ffmpeg-4:= || ( media-video/ffmpeg[-samba] >=net-fs/samba-4.5.10-r1[-debug(-)] @@ -86,7 +85,6 @@ RDEPEND="${COMMON_DEPEND} virtual/ttf-fonts selinux? ( sec-policy/selinux-chromium ) tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 ) - widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] ) " # dev-vcs/git - https://bugs.gentoo.org/593476 # sys-apps/sandbox - https://crbug.com/586444 @@ -146,16 +144,14 @@ GTK+ icon theme. " PATCHES=( - "${FILESDIR}/chromium-widevine-r1.patch" - "${FILESDIR}/chromium-FORTIFY_SOURCE-r2.patch" + "${FILESDIR}/chromium-compiler-r1.patch" "${FILESDIR}/chromium-webrtc-r0.patch" "${FILESDIR}/chromium-memcpy-r0.patch" - "${FILESDIR}/chromium-clang-r2.patch" "${FILESDIR}/chromium-math.h-r0.patch" "${FILESDIR}/chromium-stdint.patch" - "${FILESDIR}/chromium-clang-r4.patch" "${FILESDIR}/chromium-ffmpeg-r1.patch" "${FILESDIR}/chromium-ffmpeg-clang.patch" + "${FILESDIR}/chromium-gn-bootstrap-r23.patch" ) pre_build_checks() { @@ -218,6 +214,7 @@ src_prepare() { buildtools/third_party/libc++abi chrome/third_party/mozilla_security_manager courgette/third_party + net/third_party/http2 net/third_party/mozilla_security_manager net/third_party/nss third_party/WebKit @@ -232,6 +229,7 @@ src_prepare() { third_party/angle/third_party/spirv-headers third_party/angle/third_party/spirv-tools third_party/angle/third_party/vulkan-validation-layers + third_party/apple_apsl third_party/blink third_party/boringssl third_party/boringssl/src/third_party/fiat @@ -251,6 +249,8 @@ src_prepare() { third_party/catapult/tracing/third_party/pako third_party/ced third_party/cld_3 + third_party/crashpad + third_party/crashpad/crashpad/third_party/zlib third_party/crc32c third_party/cros_system_api third_party/devscripts @@ -304,6 +304,7 @@ src_prepare() { third_party/pdfium/third_party/libpng16 third_party/pdfium/third_party/libtiff third_party/pdfium/third_party/skia_shared + third_party/perfetto third_party/ply third_party/polymer third_party/protobuf @@ -313,6 +314,7 @@ src_prepare() { third_party/sfntly third_party/skia third_party/skia/third_party/gif + third_party/skia/third_party/skcms third_party/skia/third_party/vulkan third_party/smhasher third_party/spirv-headers @@ -334,6 +336,7 @@ src_prepare() { url/third_party/mozilla v8/src/third_party/valgrind v8/src/third_party/utf8-decoder + v8/third_party/antlr4 v8/third_party/inspector_protocol # gyp -> gn leftovers @@ -469,7 +472,6 @@ src_configure() { # Optional dependencies. myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)" - myconf_gn+=" enable_widevine=$(usex widevine true false)" myconf_gn+=" use_cups=$(usex cups true false)" myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)" myconf_gn+=" use_kerberos=$(usex kerberos true false)" @@ -632,11 +634,6 @@ src_install() { chromium_remove_language_paks popd - if use widevine; then - # These will be provided by chrome-binary-plugins - rm out/Release/libwidevinecdm*.so || die - fi - insinto "${CHROMIUM_HOME}" doins out/Release/*.bin doins out/Release/*.pak diff --git a/www-client/chromium/files/chromium-compiler-r1.patch b/www-client/chromium/files/chromium-compiler-r1.patch new file mode 100644 index 000000000000..3c75c1d96dff --- /dev/null +++ b/www-client/chromium/files/chromium-compiler-r1.patch @@ -0,0 +1,174 @@ +From f1e0c5fc3b81053c8851efde9ca77e04c77d4563 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Wed, 25 Apr 2018 13:22:49 -0400 +Subject: [PATCH] Disable various compiler configs + +--- + build/config/compiler/BUILD.gn | 67 +++++++++------------------------- + 1 file changed, 18 insertions(+), 49 deletions(-) + +diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn +index 3dbf872f7038..f8b2dcc9b026 100644 +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -222,8 +222,6 @@ config("compiler") { + + configs += [ + # See the definitions below. +- ":clang_revision", +- ":compiler_cpu_abi", + ":compiler_codegen", + ] + +@@ -474,24 +472,6 @@ config("compiler") { + cflags += [ "-fcolor-diagnostics" ] + } + +- if (is_clang && !is_nacl && current_toolchain == host_toolchain && +- target_os != "chromeos") { +- cflags += [ +- # TODO(hans): Remove this once Clang generates better optimized debug info +- # by default. https://crbug.com/765793 +- "-Xclang", +- "-mllvm", +- "-Xclang", +- "-instcombine-lower-dbg-declare=0", +- +- # TODO(rnk): Remove this once it's the default. https://crbug.com/793819 +- "-Xclang", +- "-mllvm", +- "-Xclang", +- "-fast-isel-sink-local-values=1", +- ] +- } +- + # Print absolute paths in diagnostics. There is no precedent for doing this + # on Linux/Mac (GCC doesn't support it), but MSVC does this with /FC and + # Windows developers rely on it (crbug.com/636109) so only do this on Windows. +@@ -1403,10 +1383,6 @@ config("default_warnings") { + + # TODO(hans): https://crbug.com/766891 + "-Wno-null-pointer-arithmetic", +- +- # Ignore warnings about MSVC optimization pragmas. +- # TODO(thakis): Only for no_chromium_code? http://crbug.com/505314 +- "-Wno-ignored-pragma-optimize", + ] + } else if (use_xcode_clang) { + cflags += [ +@@ -1450,22 +1426,6 @@ config("chromium_code") { + "__STDC_FORMAT_MACROS", + ] + +- if (!is_debug && !using_sanitizer && +- (!is_linux || !is_clang || is_official_build) && +- current_cpu != "s390x" && current_cpu != "s390" && +- current_cpu != "ppc64" && current_cpu != "ppc64" && +- current_cpu != "mips" && current_cpu != "mips64") { +- # _FORTIFY_SOURCE isn't really supported by Clang now, see +- # http://llvm.org/bugs/show_bug.cgi?id=16821. +- # It seems to work fine with Ubuntu 12 headers though, so use it in +- # official builds. +- # +- # Non-chromium code is not guaranteed to compile cleanly with +- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are +- # disabled, so only do that for Release build. +- defines += [ "_FORTIFY_SOURCE=2" ] +- } +- + if (is_mac || is_ios) { + cflags_objc = [ "-Wobjc-missing-property-synthesis" ] + cflags_objcc = [ "-Wobjc-missing-property-synthesis" ] +@@ -1799,7 +1759,8 @@ config("default_stack_frames") { + } + + # Default "optimization on" config. +-config("optimize") { ++config("optimize") { } ++config("xoptimize") { + if (is_win) { + # TODO(thakis): Remove is_clang here, https://crbug.com/598772 + if (is_official_build && full_wpo_on_official && !is_clang) { +@@ -1833,7 +1794,8 @@ config("optimize") { + } + + # Same config as 'optimize' but without the WPO flag. +-config("optimize_no_wpo") { ++config("optimize_no_wpo") { } ++config("xoptimize_no_wpo") { + if (is_win) { + # Favor size over speed, /O1 must be before the common flags. The GYP + # build also specifies /Os and /GF but these are implied by /O1. +@@ -1856,7 +1818,8 @@ config("optimize_no_wpo") { + } + + # Turn off optimizations. +-config("no_optimize") { ++config("no_optimize") { } ++config("xno_optimize") { + if (is_win) { + cflags = [ + "/Od", # Disable optimization. +@@ -1880,7 +1843,8 @@ config("no_optimize") { + # Turns up the optimization level. On Windows, this implies whole program + # optimization and link-time code generation which is very expensive and should + # be used sparingly. +-config("optimize_max") { ++config("optimize_max") { } ++config("xoptimize_max") { + if (is_nacl && is_nacl_irt) { + # The NaCl IRT is a special case and always wants its own config. + # Various components do: +@@ -1927,7 +1891,8 @@ config("optimize_max") { + # + # TODO(crbug.com/621335) - rework how all of these configs are related + # so that we don't need this disclaimer. +-config("optimize_speed") { ++config("optimize_speed") { } ++config("xoptimize_speed") { + if (is_nacl && is_nacl_irt) { + # The NaCl IRT is a special case and always wants its own config. + # Various components do: +@@ -1965,7 +1930,8 @@ config("optimize_speed") { + } + } + +-config("optimize_fuzzing") { ++config("optimize_fuzzing") { } ++config("xoptimize_fuzzing") { + cflags = [ "-O1" ] + common_optimize_on_cflags + ldflags = common_optimize_on_ldflags + visibility = [ ":default_optimization" ] +@@ -2047,7 +2013,8 @@ config("afdo") { + # configs += [ "//build/config/compiler:symbols" ] + + # Full symbols. +-config("symbols") { ++config("symbols") { } ++config("xsymbols") { + if (is_win) { + if (use_goma || is_clang) { + # Note that with VC++ this requires is_win_fastlink, enforced elsewhere. +@@ -2139,7 +2106,8 @@ config("symbols") { + # Minimal symbols. + # This config guarantees to hold symbol for stack trace which are shown to user + # when crash happens in unittests running on buildbot. +-config("minimal_symbols") { ++config("minimal_symbols") { } ++config("xminimal_symbols") { + if (is_win) { + # Linker symbols for backtraces only. + cflags = [] +@@ -2170,7 +2138,8 @@ config("minimal_symbols") { + } + + # No symbols. +-config("no_symbols") { ++config("no_symbols") { } ++config("xno_symbols") { + if (!is_win) { + cflags = [ "-g0" ] + asmflags = cflags +-- +2.17.0 + diff --git a/www-client/chromium/files/chromium-gn-bootstrap-r23.patch b/www-client/chromium/files/chromium-gn-bootstrap-r23.patch new file mode 100644 index 000000000000..e826a4dfc37b --- /dev/null +++ b/www-client/chromium/files/chromium-gn-bootstrap-r23.patch @@ -0,0 +1,56 @@ +From 0d3bbfb6b8ba05af199b49f5dd71d842f6acffda Mon Sep 17 00:00:00 2001 +From: Tom Anderson <thomasanderson@chromium.org> +Date: Fri, 27 Apr 2018 18:07:35 +0000 +Subject: [PATCH] Fix gn bootstrap + +BUG=837312 +R=dpranke + +Change-Id: Ia5c57f596388a4ba325208c638fac558984202f0 +Reviewed-on: https://chromium-review.googlesource.com/1030895 +Reviewed-by: Dirk Pranke <dpranke@chromium.org> +Commit-Queue: Dirk Pranke <dpranke@chromium.org> +Cr-Commit-Position: refs/heads/master@{#554419} +--- + tools/gn/bootstrap/bootstrap.py | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py +index 7fa9f0489f5b..ebc32371acc3 100755 +--- a/tools/gn/bootstrap/bootstrap.py ++++ b/tools/gn/bootstrap/bootstrap.py +@@ -525,8 +525,11 @@ def write_gn_ninja(path, root_gen_dir, options, windows_x64_toolchain): + 'base/location.cc', + 'base/logging.cc', + 'base/md5.cc', ++ 'base/memory/platform_shared_memory_region.cc', ++ 'base/memory/read_only_shared_memory_region.cc', + 'base/memory/ref_counted.cc', + 'base/memory/ref_counted_memory.cc', ++ 'base/memory/shared_memory_mapping.cc', + 'base/memory/shared_memory_handle.cc', + 'base/memory/shared_memory_tracker.cc', + 'base/memory/weak_ptr.cc', +@@ -663,6 +666,19 @@ def write_gn_ninja(path, root_gen_dir, options, windows_x64_toolchain): + 'base/vlog.cc', + ]) + ++ if is_win: ++ static_libraries['base']['sources'].extend([ ++ 'base/memory/platform_shared_memory_region_win.cc' ++ ]) ++ elif is_mac: ++ static_libraries['base']['sources'].extend([ ++ 'base/memory/platform_shared_memory_region_mac.cc' ++ ]) ++ elif is_posix: ++ static_libraries['base']['sources'].extend([ ++ 'base/memory/platform_shared_memory_region_posix.cc' ++ ]) ++ + if is_posix: + static_libraries['base']['sources'].extend([ + 'base/base_paths_posix.cc', +-- +2.17.0 + |