1 |
commit: 08f69fe500076c4ecd3291a4297eb6b392f69985 |
2 |
Author: Elvis Pranskevichus <elvis <AT> magic <DOT> io> |
3 |
AuthorDate: Mon Dec 4 16:51:54 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 8 22:22:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08f69fe5 |
7 |
|
8 |
dev-util/electron: version bump to 1.6.15. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/633720 |
11 |
Closes: https://bugs.gentoo.org/635276 |
12 |
Closes: https://bugs.gentoo.org/638270 |
13 |
Closes: https://bugs.gentoo.org/638992 |
14 |
Closes: https://bugs.gentoo.org/640140 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/6478 |
16 |
|
17 |
Signed-off-by: Elvis Pranskevichus <elvis <AT> magic.io> |
18 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
19 |
|
20 |
dev-util/electron/Manifest | 49 +- |
21 |
...ron-1.6.11-r1.ebuild => electron-1.6.15.ebuild} | 90 +++- |
22 |
dev-util/electron/files/chromium-gcc-7-r0.patch | 114 ++++ |
23 |
dev-util/electron/files/chromium-icu-59-r0.patch | 582 +++++++++++++++++++++ |
24 |
dev-util/electron/files/chromium-icu-60-r0.patch | 66 +++ |
25 |
.../files/chromium-python3-compat-r0.patch | 34 ++ |
26 |
.../electron/files/chromium-shared-v8-r2.patch | 94 +--- |
27 |
.../electron/files/chromium-system-icu-r0.patch | 140 +++++ |
28 |
.../electron/files/chromium-v8-icu-59-r0.patch | 83 +++ |
29 |
...electron-1.6.11-vendor-libchromiumcontent.patch | 86 --- |
30 |
.../files/electron-1.6.15-vendor-breakpad.patch | 223 ++++++++ |
31 |
...atch => electron-1.6.15-vendor-brightray.patch} | 74 ++- |
32 |
...electron-1.6.15-vendor-libchromiumcontent.patch | 202 +++++++ |
33 |
...ode.patch => electron-1.6.15-vendor-node.patch} | 44 +- |
34 |
...electron-1.6.11.patch => electron-1.6.15.patch} | 124 +++-- |
35 |
.../electron/files/electron-system-icu-r0.patch | 34 ++ |
36 |
16 files changed, 1744 insertions(+), 295 deletions(-) |
37 |
|
38 |
diff --git a/dev-util/electron/Manifest b/dev-util/electron/Manifest |
39 |
index b8e5dc6eead..8fbd6064440 100644 |
40 |
--- a/dev-util/electron/Manifest |
41 |
+++ b/dev-util/electron/Manifest |
42 |
@@ -1,30 +1,31 @@ |
43 |
-DIST asar-0.12.1.tar.gz 1016626 SHA256 731714f0036318fe0878b517391a01977954bb088d4dbc7dd98682ff1e03c0e7 SHA512 fc64be9b11215426d405f7acd7adf6c0eead3135b0012baf6d168a13c77675058a4e2c60682928ac014e4bef4538d452ad745d1e87dd315387997a19e04718a7 WHIRLPOOL d73b8bb459724bb3b011de312171519c1f1954a94ce1bb0a20eb9877c168baa82a15786d3ab420d5b3d32ce8a11333e85f844b43c21cbd56c3b019e73774388e |
44 |
-DIST brightray-8dbaeed37b9c4fb8ae985670b142f659bb265fb4.tar.gz 76965 SHA256 fb5e57cc723500c8a7b5fba8cf0a38d4ca79b3f967dd9f9427e6fca8cde81552 SHA512 eb0ad05107ebfb4151fb0f26f7dbea58c353cde0407c13ea00c7b98487fb29582d5f3e334900749dc43c8aeca828d8885c4d77dff6739de97ec19b33017a6e93 WHIRLPOOL d2aa3bd6361643304158dff859aa071400bc1b74f0fce934d5dc5eb25bf76d599a27efabde6c13bd20dadb15ffec7bb3ea8577bdb1e38e2382f81600d543fd35 |
45 |
+DIST asar-0.12.1.tar.gz 1016626 BLAKE2B f3e2bee6e844fffcc19150f96cf4b20b5f6bf398d9c4c89f0527ded20478ad100e9fd1eadb3685ad05853b07b0e084c8cdcf99bb0d646e7f7acdcd9e3e9ec3cf SHA512 fc64be9b11215426d405f7acd7adf6c0eead3135b0012baf6d168a13c77675058a4e2c60682928ac014e4bef4538d452ad745d1e87dd315387997a19e04718a7 |
46 |
+DIST asar-0.13.0.tar.gz 1622264 BLAKE2B 018bccc3d2b54040fe7c6e6c1ecfbe0ab4d52554feab78fae41a09d35b7e934720cba45f77239eda46d746390c4f072b3e0eecdf7f0953882d6f27cb940de018 SHA512 619b59e9576a185905b455b780630188ce32aed72b424c69967a7bf15236d1edf2f5d92f7dde972599679c88fe0a80f05295a3d82b2ae0944be08d332a659aee |
47 |
+DIST brightray-8dbaeed37b9c4fb8ae985670b142f659bb265fb4.tar.gz 76965 BLAKE2B 1705aecfbfa19f20136133f4ed35d0d2a4c6e8157591440954274202110ae73fac67047c9e432f81ec9572b1cc8fc9bacfa4c3251385e46d743ed326156a77fd SHA512 eb0ad05107ebfb4151fb0f26f7dbea58c353cde0407c13ea00c7b98487fb29582d5f3e334900749dc43c8aeca828d8885c4d77dff6739de97ec19b33017a6e93 |
48 |
DIST brightray-9bc1d21b69ac99bed546d42035dc1205ea6b04af.tar.gz 74416 SHA256 9cb944145085384423efdbdbe4dd523b71eaf517fd040e1993666832ffac4fa6 SHA512 c7a16f3634111a43d45959e0406488dc7417848403a6261204b58f67d62688f888f733ca23f3eac3a2dc76955c185ce845d63a6dc1e5a0fba54fb115202414d0 WHIRLPOOL c1ebe0e3adbd74da772778589f59f30a2e288723d62cf8bc686c1b0795daef4c31e9d38363b29dae9b162ccf856707f7a9eb34c8b31ca76042870d7adfa14e99 |
49 |
-DIST brightray-ee26c5218eeec199c54c92a7517a72d2dbd0adbf.tar.gz 82375 SHA256 37090168dfa0d776e28ecca88ef3ba57d3aa2937ef7dc4238e6685aa6f2b3e21 SHA512 7595f5a168d40c42687b8013b588e9c74d6f0047e71549a32d892fa3ca9de9d467303e635364bd779e94094aa9772b705ac027aad481b40d42c0c039ce8f3709 WHIRLPOOL 7b1686cfd9d2189942ab268485a7b230b99ef2a043a4e1b06aaf25c37a01a4278b35769fd73af5b838fdcb782f3a78a2821f95f6a91358d27f11149451437a17 |
50 |
-DIST browserify-14.0.0.tar.gz 1847439 SHA256 616e53fba090d14d673748c12e8ac215b6f7d6f74362666ca91065ce80386344 SHA512 fea8219ab2c5b422c15cc8c305a8aa0396f3de46c8d602eb4976af1d2b0a043214f808e3fa8e31cae0ad7c76d9ddc38239d0208911105f9c851efddfaf96b0c7 WHIRLPOOL 2d2a1dc6f5d5c0db2b43acee8b1dc69c6d3c431e1e0172bf4a3894b628e49dba1aa51155fa8f04e260ce2897ea8c562af200f3e569b9b38e0c783d34c7ae6087 |
51 |
+DIST brightray-ee26c5218eeec199c54c92a7517a72d2dbd0adbf.tar.gz 82375 BLAKE2B 5677ea1c8f3be4bd656bfe0ec4995c903df1fab1a0bc9d5b8a80e83e82713dd2b528adcf7bd1b33ca76104bc340fe48a2ae01a36bd8e204fd12240b8d7116b3e SHA512 7595f5a168d40c42687b8013b588e9c74d6f0047e71549a32d892fa3ca9de9d467303e635364bd779e94094aa9772b705ac027aad481b40d42c0c039ce8f3709 |
52 |
+DIST browserify-14.0.0.tar.gz 1847439 BLAKE2B 50d84f51d8640fa881751339e1d37f04d6ba3ea5aa17222c1e9a29bc805ade5f14ce95bb97fb494e0a1a71e6a5da672566aeb0fbbea4b48d9ad19d20405a0b11 SHA512 fea8219ab2c5b422c15cc8c305a8aa0396f3de46c8d602eb4976af1d2b0a043214f808e3fa8e31cae0ad7c76d9ddc38239d0208911105f9c851efddfaf96b0c7 |
53 |
DIST chromium-47.0.2526.110.tar.xz 394673276 SHA256 65a86d9532e03f94844a4e9b1996af85baeb00c95effe962baa153352483463e SHA512 d1655e822776567101632696c7817067e9a85c0f74df22ea40b8fcb45b9571471d8bb1291bae4dd879d746ddb57206276db8df92ccb546bb00129bc26bb33bb8 WHIRLPOOL 047d5bd9f3cfc09b85288f8f6c24bc72ee2399992b2f02410d4ed651deb1b1141f390d0eb3e56728ac286a3b24fa0d3db9489399ae116fcd820d482f5a055ae3 |
54 |
-DIST chromium-49.0.2623.75.tar.xz 452264916 SHA256 a4fd4c85b12b021789d8afc33b27555396e47d9f67c8a062ee3609c4d6b582f5 SHA512 694f0ccd0a4ff10d8b19e52defb48f6d47daeaa47013f01c2924251f3c6ebaccb20813379c3b7dd6fd939138f25122ed7d1a56e1a6b80309aca65b6c854768fa WHIRLPOOL 00d5b37f425714e4bcb2b563759a8a7b084dc01b7abe6e90f21a3aa470c42944675b5a875e3e918506469cb6cd870038791566ad647b26bd4b11502beb97ecad |
55 |
-DIST chromium-52.0.2743.82.tar.xz 458110272 SHA256 a7de6015df9cf685d68efd1e070ae9c706c723cd9395d079a7d43672a2c37eb4 SHA512 9bba841cb726bfa06888deefacfcee628e36d25de47dd0303d3fd1ce2f07922148d60befe934f44c33fcdfed6ce3dadfb9e3ee0828b66994807178a488051806 WHIRLPOOL f0d258882db85291262c2381aeb6d85ebf20a252344e114a2da35e75f79dc8b73de95b71926512537af17e109fd7a8dd04386d5b3ed610262d42d11bcc1a5707 |
56 |
-DIST chromium-56.0.2924.87.tar.xz 514429808 SHA256 9aac081ffccaae6497068100477a4e6ac7086bd15ad3c3cd009b9a760b7a53e0 SHA512 1c154004a9bca73e2491c73520a5f7d5c50c5b9d66e8e2660bf46585dd9b6ad3db706a9d824356f319794fa790bc3918ae6199843bcba717b9e74efbf26882c9 WHIRLPOOL ea18fa6d9ad5b296bc561e0fd13f596f3973ec3a020db62de4164b6edf251825a3f26768064ea70ee9e50696b18ec647dc5b9ca3c04dbb3d618ec609302675bc |
57 |
+DIST chromium-49.0.2623.75.tar.xz 452264916 BLAKE2B 723dd3bc09184690724a7380f2f6e98f9e64b9d77bace85dca49d80734cc63952c3fe80446bd6bc4daf743e9f16f4390884b2d556aaaf355f17637bbedc5d73a SHA512 694f0ccd0a4ff10d8b19e52defb48f6d47daeaa47013f01c2924251f3c6ebaccb20813379c3b7dd6fd939138f25122ed7d1a56e1a6b80309aca65b6c854768fa |
58 |
+DIST chromium-52.0.2743.82.tar.xz 458110272 BLAKE2B bd255c6f4924cdcd2c17ea5d3c8fc14be95d6f49555c98164a5bfe6f76a9cca2dc49e32ef64f1b8c503092fcfd1c1bf231aabab946eb5a5149c57ca33e5e3be8 SHA512 9bba841cb726bfa06888deefacfcee628e36d25de47dd0303d3fd1ce2f07922148d60befe934f44c33fcdfed6ce3dadfb9e3ee0828b66994807178a488051806 |
59 |
+DIST chromium-56.0.2924.87.tar.xz 514429808 BLAKE2B 96e688230266f00917c6a6ebfaeb9b4e1cbe882a6bd907034a339d7a7b36fe97b451978898fb910938a36e47a9e25fb88117fe764dae759127d391e902533b47 SHA512 1c154004a9bca73e2491c73520a5f7d5c50c5b9d66e8e2660bf46585dd9b6ad3db706a9d824356f319794fa790bc3918ae6199843bcba717b9e74efbf26882c9 |
60 |
DIST electron-0.36.12.tar.gz 3068567 SHA256 8e4ee7ed37d32ad73f8cbfb132ce0009506a01a68d5a71bafd6858c6bc11f9a6 SHA512 37d016768e57f81b01338cea6d0d5eaa6ea72d83a2122b54c9c73e37b0afc7fb8351b0cb846afda29206379d5625657b815b002c2eb3c31babcd0cffa47ae3de WHIRLPOOL a358e353259d377dd59ae563f38b2fe185ade6d7a00bbad8c61831c92b4e200ac1f2f25b79564eae11d9082a569be342ccd4be6e400955cd65729e9299b48796 |
61 |
-DIST electron-0.37.8.tar.gz 3154625 SHA256 d6b01e800aa4cd54b680aa1d78e8c04ed99f82423bab37fe03ad5eb12310f0c0 SHA512 1469129cc6e07da2540ab67d2bb9e2dec4055da77b35bf0abf86a70e82e3ccf443e75edb25feac6c8855c5e841592738319e1a81a52d504e90a5ce9197153754 WHIRLPOOL 677fc9c5bd96d04de43a28c8db23921fb98d3d9a455c32da8235b15c72f2480cce16a3705ae258de1c2b3a5af8d11607c3f868bae248553e593a77c454f94582 |
62 |
-DIST electron-1.3.13.tar.gz 4560040 SHA256 36695722484da433e4bfd465c5688a3b1429365385b547973444c8d7ef0cd810 SHA512 c15b8303e1a18674fd828991a118bf670ccd052b35cac7d476b06e7903055fa905a93a79dced4186c70d30c7d220a3b7daa2a4f490b70c87134fbc393d54d94d WHIRLPOOL 4e027b48a076a208c4c83f7a82e8f591de9bf22b4c5146d50dc06772257768db6a996eea974ad6097838573f8e69828899c862b3b9271bd34c92d95e9502376b |
63 |
-DIST electron-1.6.11.tar.gz 4938208 SHA256 b2e1ff38076b0554eae399ef16725643a9484fb923c90be0d65ec2cb1a17dfa3 SHA512 dc44ae9b9e69ed1b0a2b9f2faceea2bc8bac29b3897f1f95273b1e17268159d77b4ba7344e6b0383aa4196d21df203cca404a6356a8674b3dbab7452968cf60f WHIRLPOOL eb1853ab4d04fb77b6d1510d25dbcedd71ddc6431d451ab1a544e12bdf1cb362a8f4589849dacf0d022b0e57cb5fdbb66a7afaead9c8a4d47c118c008dbc55f7 |
64 |
-DIST electron-breakpad-e35167de7516448fcc2bf687ad580b9d8b6aedc2.tar.gz 5161275 SHA256 d361fe5f8a1c203ceb5844b4c1faf2f4f3d7860dc9fe2757b317dda968170511 SHA512 dce89f5976ddac0f87f70f11cc5fdf44a29198b302ed6eecd2c7530ccb33613563ef2ce797b7187c986d3b900b212eede8530e1e8f3b6a88ac727ff9623dd333 WHIRLPOOL f88865a72a2c7e6cc0327f9bef5a021deda91b16257fe7a3432982bf95aa0579c6934eeddc83f1516b6c7ae91769720fc18b9ec19df268141db801359dab2344 |
65 |
-DIST electron-brightray-909c49265493bd095c27cefd999567be2107899a.tar.gz 98022 SHA256 249424ca00a4b96ea22c58584952748f02376e92ee231e63230403e20e11fed0 SHA512 e1df1159a97c87e1edce9ea896d790e3004cc836d879385cdc5324c1961209ebf884fb7771861f4c6bf86b50ff1d8818540555bbcc77bf10987e0a68cd855127 WHIRLPOOL fe9bd8fb40c34e9278832a8660ab6b03f9ee0f900e9dce940107216d33c72a8e7ce13f7e5556d788c2a0ebabb0a536ff6cfb77e65ef96f4ea5a76441025baff6 |
66 |
-DIST electron-chromium-breakpad-c566c50d81f7b1edeaee9f11f5d07bda858d6b64.tar.gz 1141356 SHA256 ac8cd3e020dd437e60d2d29b712fb7019705a0706c895d6f7935b4f5ed2f2763 SHA512 9fb07facb147d401655cefea103cb1499de9ca27093c756a3b5d6ff1117a288ac491fedf01df61775ce6590e852e942cf7db1e135d6d30e94188283a53dd8e10 WHIRLPOOL fdcd9a90cf7d5156796679a21cd1210ad7e75c910d0f924168e20d8f1ccf61f803f5913a50766ddc2b7b08f864677d1bab6199e1fc06cd615b765f412297405e |
67 |
-DIST electron-grit-9536fb6429147d27ef1563088341825db0a893cd.tar.gz 378461 SHA256 20b80507c29ce7b0eab57d814176fe1b1897a9b69add0bf073d5ba7b1b5d7c56 SHA512 515797740421d5f80912b33dab2039c35b2ae432a0c4351aa031461ef6c82b7a1775c3d4d41ba6c646f81ba3ddf3bbfcb35b81da1ef88b486a2a67d15f09ec86 WHIRLPOOL b6d395d549238f7552fa05eb3640ca8afd6781d998f7c9fdea8d34323b4b57ec77ca714fe4e14d97a5a44e1a4157260cd5e017d9b132fba3c32be49a57559430 |
68 |
-DIST electron-libchromiumcontent-e2ec6935fbf034207d5ad00fa905a4b2cdd60bb7.tar.gz 418797 SHA256 bdf1876c144a72ebb782abf8c00981fd25f317c69611255b6143e1822866ee6f SHA512 aa6d5b16be6e0a218042c11865751fb14b6f4ccf3252075e681309df853f03fda9a38b955749b1fe16f11a127f2aab181edcb3eed8511f69aa5c43395ff9f7f7 WHIRLPOOL e02893b291806d3fa0b2e0c4ae5b7b71a44637ebecd10fec922d03ec261dd152478f12fe9bf9dab60d520bb49cf947f62240edfe386fa355e6c283848fddef3d |
69 |
-DIST electron-native-mate-fd0e7dc4ab778f0d1ccda6c9640464ea06ee771e.tar.gz 23926 SHA256 bbbcdd6de05ea677658df775dc3943820596654e5aecb0f25d1c1bdbb897f376 SHA512 8715c417473340163ca3db2754ab10619679ac72378ff5c7f63899fe891d5c83e7b3db6832af885de63eb5a732ed54f393bcc3aeb8ddd38569e74023c46f72ac WHIRLPOOL aff212822f12a111126116cee60f5c3e8bb3e53bfc7de1209315a7b7671b413e3428088f639b9c6c2132cd1b30f3bb9edf813b74feb74cd7a899ae902e723691 |
70 |
-DIST electron-node-6bcd8af891a991f8aa196e49e6bf908ebbe24cae.tar.gz 36600837 SHA256 6b7bb43be6d24bc55a6ccd4b8efd2f88d8d2fd7d8437d7aa33d813c649f791f7 SHA512 7fcafa01027bd68794a7cd2f049a7bdf45e1dd56622583bd5d53d662328e64619dd5dbeec295ff559b1b268e90bf6abf3d76cd6d00f055602bbaa7443e3a3450 WHIRLPOOL c5dd664910a59c7fb1d4aaf3c91b298b7266466596ce2a4f4f41ff6637db9e480450eaf1e9255ab810de13df1abbd769f32bdc73124bea9ab4ed013cda945bd0 |
71 |
-DIST electron-node-9b1683e7000481ec6214eafa3eef7ac4594eb410.tar.gz 46194500 SHA256 0204c0402ffb5c8a7ded1a8a65018fbeffd86ead38e95ee3341e10f5a4162170 SHA512 f258cf5597154e976e1e4c0b81f6b63e9b344e4a28492137b80d59dc841490d4ad69e6bab2456a6334a42e51dfe2862cc389e837a4baac90a698ff60e5b08ab4 WHIRLPOOL 651c793ca4ea7b144c79d842a565cd5870a2a7826b8e86929e9b1950ab1fe45d833a4d54ec549e120e7b69a724563ae583156ab7f8f77bef3c3f5263bcb6f64e |
72 |
+DIST electron-0.37.8.tar.gz 3154625 BLAKE2B 3f1359560d555951b0f0f4d481449ec2676d53db2d135017bb6d57a6595a6b41eab3307fbca91106dc53bec463153205aa4495f092a10b16f27105beb2f1b512 SHA512 1469129cc6e07da2540ab67d2bb9e2dec4055da77b35bf0abf86a70e82e3ccf443e75edb25feac6c8855c5e841592738319e1a81a52d504e90a5ce9197153754 |
73 |
+DIST electron-1.3.13.tar.gz 4560040 BLAKE2B 1ef5a52547828427eba6ed8b85e50ba2405658ccfce6bb27af32f380c8122e12c7f69115321f961948cf9f4ba8af6a4f04945a2c45d4dd82169f876d06a9d3e9 SHA512 c15b8303e1a18674fd828991a118bf670ccd052b35cac7d476b06e7903055fa905a93a79dced4186c70d30c7d220a3b7daa2a4f490b70c87134fbc393d54d94d |
74 |
+DIST electron-1.6.15.tar.gz 4943663 BLAKE2B 867964e23bea77b0892febcc47198bf783f0021df842c40c94c2159abca75ca45cac345323bb2735a9ddc935bedba62126d5afe9ad9e0fc031abefbaf444d441 SHA512 e6e7519db6d272d151e5618976a69feb11c35f1845561d152c64b474696f3835644b232b020df00166f80913b2c492e6e8cefce1a96494a2bb92096936e18958 |
75 |
+DIST electron-breakpad-e35167de7516448fcc2bf687ad580b9d8b6aedc2.tar.gz 5161275 BLAKE2B a8414bb2876031f71e5c0c9263cf7ee03c4af9d8dee2890bb4c39c82869282bc20b4c2807068ab72bcb96e71559dbea083ca27b9cddbc991bf1dc7e6c16a5dc3 SHA512 dce89f5976ddac0f87f70f11cc5fdf44a29198b302ed6eecd2c7530ccb33613563ef2ce797b7187c986d3b900b212eede8530e1e8f3b6a88ac727ff9623dd333 |
76 |
+DIST electron-brightray-909c49265493bd095c27cefd999567be2107899a.tar.gz 98022 BLAKE2B a90ab9d0480c1d1f7d5f40ccf9bf8f4568175c9662bc47f9754a293018d6cc8930cf6e104aea57f660893c44837b3f48ddaacc3bdc2bcf347f1a60f93a987f4a SHA512 e1df1159a97c87e1edce9ea896d790e3004cc836d879385cdc5324c1961209ebf884fb7771861f4c6bf86b50ff1d8818540555bbcc77bf10987e0a68cd855127 |
77 |
+DIST electron-chromium-breakpad-c566c50d81f7b1edeaee9f11f5d07bda858d6b64.tar.gz 1141356 BLAKE2B 6a16d29639c668a6360514ed56373f4da5396650ba63d3aa7a3bca66a89ef1b2244bbe4a2e02ea0439f999c872bbb12e0d1289051c49cebf3d931ae7255b83b7 SHA512 9fb07facb147d401655cefea103cb1499de9ca27093c756a3b5d6ff1117a288ac491fedf01df61775ce6590e852e942cf7db1e135d6d30e94188283a53dd8e10 |
78 |
+DIST electron-grit-9536fb6429147d27ef1563088341825db0a893cd.tar.gz 378461 BLAKE2B cb194cca884419f1c85524740860db244b06a237428add2cd9afaae8e0fe63ccb266b8e5e44f2125da57d263f167aec6c46c9c3451c5217100d58825f4322ecd SHA512 515797740421d5f80912b33dab2039c35b2ae432a0c4351aa031461ef6c82b7a1775c3d4d41ba6c646f81ba3ddf3bbfcb35b81da1ef88b486a2a67d15f09ec86 |
79 |
+DIST electron-libchromiumcontent-a9b88fab38a8162bb485cc5854973f71ea0bc7a6.tar.gz 427806 BLAKE2B 21274045953499b7656366520d93acb63515995e7d6614afa5bba097e80bf833611fd715f0a8782dbdcb3c7c11ce2c4f5c2789483d4847e5bd73567123022dfd SHA512 da23b6119aa39d2ebc39b20280e2b6c0c26eba3e45271a3b8b196149ae8fb17f7ae63b97821ecdbc74c8d28617e361a3570e89c716d560a3b0caa7fa1f673f09 |
80 |
+DIST electron-native-mate-fd0e7dc4ab778f0d1ccda6c9640464ea06ee771e.tar.gz 23926 BLAKE2B 72ec5ee020ac18c5b3a8b6552698ed845cb0c401c0b02a4627479c98c581018658471df95de9d242db85ac9a4588b5f80b488180049271322545d69ecbf01123 SHA512 8715c417473340163ca3db2754ab10619679ac72378ff5c7f63899fe891d5c83e7b3db6832af885de63eb5a732ed54f393bcc3aeb8ddd38569e74023c46f72ac |
81 |
+DIST electron-node-6bcd8af891a991f8aa196e49e6bf908ebbe24cae.tar.gz 36600837 BLAKE2B afe210292b84c71b0859c790cadc60e894e8a2531d0fcea8ba60a70c7a2a937d09056647a0e6862eb710a7196f2eb9fd8d7a9be01b4b6eba4c5388aad687afe2 SHA512 7fcafa01027bd68794a7cd2f049a7bdf45e1dd56622583bd5d53d662328e64619dd5dbeec295ff559b1b268e90bf6abf3d76cd6d00f055602bbaa7443e3a3450 |
82 |
+DIST electron-node-9b1683e7000481ec6214eafa3eef7ac4594eb410.tar.gz 46194500 BLAKE2B 36537f40a597f9ed969abe385de8cf58fd2f48526021461ab5feb0e061a2dc0d4a49109191254e69b685101f6aa79d1c870091f0eae251ba8b3bc0b3e6a975e6 SHA512 f258cf5597154e976e1e4c0b81f6b63e9b344e4a28492137b80d59dc841490d4ad69e6bab2456a6334a42e51dfe2862cc389e837a4baac90a698ff60e5b08ab4 |
83 |
DIST electron-node-a507a3c3816d6ac085ed46250c489a3d76ab8b3c.tar.gz 36578658 SHA256 56489ffa9d58b736008f5c1c2775bc10f3afe02d3c768035e7742893cc8e1d82 SHA512 a5b62c05ec7300a26b3feab3c1e796a87691d41fa7c039541574878491df51e9075685abc5d630fc62bca95bf821eeede041d4ab36caedaf76156844f1095ea6 WHIRLPOOL 8675b05753cf905cfb2fc0ebb19fc256489a7b932c57be291eb2fc7194de599c07f4120541f4a61cccdb43b09b6280c7c02f9565aef98129c584fdca4c154279 |
84 |
-DIST electron-node-c47e9bf9011de682d07c82f7f610a467f30cca60.tar.gz 44172045 SHA256 d0dad2c1ee6eea81fa6f55a70f4142eb7bffcc143532d50e848fea08b31d5ef7 SHA512 830cb5e4aa1956d0f67b0c5ad44241254596791b3bbc533a170b1b7bcb7a45137ff62b885a65a78a64323ad94f660c6b75142109d79256420b8d20a7d26acff7 WHIRLPOOL a69758c90ddbd3f75f9d62efb9cfefba9fe6c52c627fbcab103abe6e11916826c42e1b5072e203ce34657ac7fe9b79c2bc1621dd3b595626e138161bd91c6766 |
85 |
-DIST electron-pdf-viewer-a050a339cfeabcfb5f07c313161d2ee27b6c3a39.tar.gz 38431 SHA256 03a147dfc8273495cf47b53a2a03ca41e03695e1af66c51df9e49ca52ff51233 SHA512 a028b67c0644d4ddcfc5aee4e2abb305648eb666082ea2c151cb6b9b3972503093cadb32b102aa19b04c8e863c2ac55bb20cccbf2abbf7832f9cfd3c3618612e WHIRLPOOL 54dd4ff5fc59e057ce67f409629818accad0ee7c97e18e9cb86174cbfd845fdd7d370b291b2adddc91d81e3743eb744aa6c4f149a74f87cad3ffd32674c5f1e8 |
86 |
-DIST libchromiumcontent-27add4cfef98f21d5910539bebb47ae175f024c2.tar.gz 403724 SHA256 cf0342130f4bb929894249a381b6d6433f8d5b6d9331f4bd843250c4e66063b6 SHA512 7995fe40100b91f57ccc8fde445f136fda62d2c88a8a06d1b07aa588bcdb27905a542d62ec9cdf567b626439d8648fc749b73d7e9f52deaa94ead27e191a732f WHIRLPOOL 426d75c7ff7788d6dd208b68407bad7600090f6c1208823db65ef10ab7efcb8b8cbe9fce7ada6886a6711dfea0503a70a088e63f71221a8098cb62f3f3d1131c |
87 |
-DIST libchromiumcontent-60c7ec9f9bf465a8c9c7ccc3fcd2aa1cdf644bac.tar.gz 402072 SHA256 69877d4b9def6dc69063f0bf37d9d59721c22acced45e271b3f36bde8446a37c SHA512 ddd52e58df1848edab6c514e0ef8e4155eccec6bec9d4e557dc0ee7d5c2cc4036f25d1786376b5b47a5122a266f00cd589ce665b8463549e9383d60292d180dc WHIRLPOOL 789be242983ab54e212df13c6f51c5c949d6a4ace21a548b99f17e292b37842ce0c748e29c17bd116a95a163ca2bd709dadc59ecacc9d3ab8c58143ddf9f2d71 |
88 |
+DIST electron-node-c47e9bf9011de682d07c82f7f610a467f30cca60.tar.gz 44172045 BLAKE2B 4c9bb3df3366e01347e527df9aba1fe57bfcda1fb0542e5c0a84c924094965a05d7cfa1be336a29ac6562e9a1eaafce3df015ee27a3df7f032bb2c2a20a6aa78 SHA512 830cb5e4aa1956d0f67b0c5ad44241254596791b3bbc533a170b1b7bcb7a45137ff62b885a65a78a64323ad94f660c6b75142109d79256420b8d20a7d26acff7 |
89 |
+DIST electron-pdf-viewer-a050a339cfeabcfb5f07c313161d2ee27b6c3a39.tar.gz 38431 BLAKE2B 962b1eeaa74544d57a5664fc6965b9f43e6d94671a08be024bb3001d7cf7e3ee02b2c63c2074e2ed4d6484dc5db7515cb170bf7432a8d11ccf595716e5c4500e SHA512 a028b67c0644d4ddcfc5aee4e2abb305648eb666082ea2c151cb6b9b3972503093cadb32b102aa19b04c8e863c2ac55bb20cccbf2abbf7832f9cfd3c3618612e |
90 |
+DIST libchromiumcontent-27add4cfef98f21d5910539bebb47ae175f024c2.tar.gz 403724 BLAKE2B 126cd5ae76be99268a8f4c765a2efae325a56e43c8d6ae171e8d1a4f1f872358bcbc3004e8abf77826cd6cc15dd3e3bf212b2300d9247fe6fc724f21de193db0 SHA512 7995fe40100b91f57ccc8fde445f136fda62d2c88a8a06d1b07aa588bcdb27905a542d62ec9cdf567b626439d8648fc749b73d7e9f52deaa94ead27e191a732f |
91 |
+DIST libchromiumcontent-60c7ec9f9bf465a8c9c7ccc3fcd2aa1cdf644bac.tar.gz 402072 BLAKE2B 908a54450a4a39b37be08e5926b808f29111214a36bb8d91c8c24d31e53cac7ac38b19508e942586e9338267096ab7e1395de2773e46721029dc6ba004ac9875 SHA512 ddd52e58df1848edab6c514e0ef8e4155eccec6bec9d4e557dc0ee7d5c2cc4036f25d1786376b5b47a5122a266f00cd589ce665b8463549e9383d60292d180dc |
92 |
DIST libchromiumcontent-ad63d8ba890bcaad2f1b7e6de148b7992f4d3af7.tar.gz 400648 SHA256 36b46659fff3053ce273d3ed159fca74e18ebc873694f857a521d3c48fc079b1 SHA512 5fcb5e3dd98d5875ff7aa9f9f4d02af45487534d0301ca7a0a7adde934f528fedc3dfaf886b9031027e41309eb8ba658b72a56af4ad8dc44cce458b9c04a0e47 WHIRLPOOL 31d28804f91bbdece8709ddac359e7f5c079b034137734041f274838d138d8e141fe12c0ecf1e66f92b15e8c653526a1779d3bcc342e3ecc9a39a18c689a94a6 |
93 |
-DIST native-mate-0df2d882ea2286e6335f206b7002037fce66c4a5.tar.gz 23738 SHA256 d0ad6b3079fcfdf1adb09a68f5d8b7ac5b83c6d19b078993941b1a95ccac232b SHA512 fdd928a4b170636320e6cfd65753aec47c38380ef6f1b6dde255fbdcf3756abe8568e689e1214d768056187b243f979f16d4289ce8429a5ddd17b07f806ef731 WHIRLPOOL 762c4f2c093853731cbf8a79953e0da0bf66d6f1f08a08ad3ba2131b87113209bc93e138e974745b89da5dd9c14c0d5035dd686ad5b79ad7faba0b6076d2a6fb |
94 |
-DIST native-mate-b5e5de626c6a57e44c7e6448d8bbaaac475d493c.tar.gz 23465 SHA256 e9a5340c51690100be798c3d8c76662f78b0f292b22e394a5703326c07fc2639 SHA512 d004f4ec3ca77d98b2b2bc271c830b769bb6396e70d8dbf25ede87c509ce95dea083d6e5b3d050647cdf3d0a6a21c6da91176eba90d7256ab80f5d23248a6bb1 WHIRLPOOL 66b0d5544d8e72692150541a8f7ecac7421edef2a4d3837a1f7a1dea785f99fb40492261654ad7b6c1a38fcf04a44d4afa832d20175eb34944437712bbb711ef |
95 |
+DIST native-mate-0df2d882ea2286e6335f206b7002037fce66c4a5.tar.gz 23738 BLAKE2B f0408715bf85dd087278cd04860ab3f377f5008ff28b05831c960c9cc3a345125639fa0593fd27a02fe3fde217ae3a4f5d0c22a02625f512ff9b62121c581aac SHA512 fdd928a4b170636320e6cfd65753aec47c38380ef6f1b6dde255fbdcf3756abe8568e689e1214d768056187b243f979f16d4289ce8429a5ddd17b07f806ef731 |
96 |
+DIST native-mate-b5e5de626c6a57e44c7e6448d8bbaaac475d493c.tar.gz 23465 BLAKE2B 2d4e5ab06c8fe49188db2b339a5a5a102043fe2a7f21930e2eca5504a159192fdf2ca90fdf5c895ed9a942e512684f20112d26ed7bbc4a7e16d694632482413b SHA512 d004f4ec3ca77d98b2b2bc271c830b769bb6396e70d8dbf25ede87c509ce95dea083d6e5b3d050647cdf3d0a6a21c6da91176eba90d7256ab80f5d23248a6bb1 |
97 |
DIST native-mate-e719eab878c264bb03188d0cd6eb9ad6882bc13a.tar.gz 23818 SHA256 82da85193f6924ce395004ce9dfd1198848cf8f14b7904321e67cad26a39f794 SHA512 4272648127fb0bf90b36d2c090bea718d560737c1c7443a5b3c0de12999ffe607429b2112ecee36ece5d26cde54e78964303250ffd350a19c132c9733b72c523 WHIRLPOOL c275163b9f3f424f5909f17c67f5b029f03bf76679296781bd6d74e64d903dd29cf5c28f1c4e399a049331f54f03175fe2c02de9ef6bf65040d9cef05be44a51 |
98 |
|
99 |
diff --git a/dev-util/electron/electron-1.6.11-r1.ebuild b/dev-util/electron/electron-1.6.15.ebuild |
100 |
similarity index 93% |
101 |
rename from dev-util/electron/electron-1.6.11-r1.ebuild |
102 |
rename to dev-util/electron/electron-1.6.15.ebuild |
103 |
index 756216c8420..9fb088b4ae1 100644 |
104 |
--- a/dev-util/electron/electron-1.6.11-r1.ebuild |
105 |
+++ b/dev-util/electron/electron-1.6.15.ebuild |
106 |
@@ -30,9 +30,9 @@ PDF_VIEWER_COMMIT="a050a339cfeabcfb5f07c313161d2ee27b6c3a39" |
107 |
# Keep this in sync with vendor/pdf_viewer/vendor/grit |
108 |
GRIT_COMMIT="9536fb6429147d27ef1563088341825db0a893cd" |
109 |
# Keep this in sync with script/lib/config.py:LIBCHROMIUMCONTENT_COMMIT |
110 |
-LIBCHROMIUMCONTENT_COMMIT="e2ec6935fbf034207d5ad00fa905a4b2cdd60bb7" |
111 |
+LIBCHROMIUMCONTENT_COMMIT="a9b88fab38a8162bb485cc5854973f71ea0bc7a6" |
112 |
# Keep this in sync with package.json#devDependencies |
113 |
-ASAR_VERSION="0.12.1" |
114 |
+ASAR_VERSION="0.13.0" |
115 |
BROWSERIFY_VERSION="14.0.0" |
116 |
|
117 |
CHROMIUM_P="chromium-${CHROMIUM_VERSION}" |
118 |
@@ -95,7 +95,7 @@ COMMON_DEPEND=" |
119 |
>=dev-libs/elfutils-0.149 |
120 |
dev-libs/expat:= |
121 |
dev-libs/glib:2 |
122 |
- dev-libs/icu:= |
123 |
+ >=dev-libs/icu-58:= |
124 |
>=dev-libs/jsoncpp-0.5.0-r1:= |
125 |
dev-libs/nspr:= |
126 |
>=dev-libs/nss-3.14.3:= |
127 |
@@ -178,6 +178,23 @@ DEPEND="${COMMON_DEPEND} |
128 |
') |
129 |
" |
130 |
|
131 |
+CHROMIUM_PATCHES=" |
132 |
+ chromium-FORTIFY_SOURCE.patch |
133 |
+ chromium-gcc-7-r0.patch |
134 |
+ chromium-glibc-2.24.patch |
135 |
+ chromium-56-gcc4.patch |
136 |
+ chromium-system-ffmpeg-r4.patch |
137 |
+ chromium-system-icu-r0.patch |
138 |
+ chromium-icu-59-r0.patch |
139 |
+ chromium-icu-60-r0.patch |
140 |
+ chromium-v8-icu-59-r0.patch |
141 |
+ chromium-disable-widevine.patch |
142 |
+ chromium-remove-gardiner-mod-font-r1.patch |
143 |
+ chromium-shared-v8-r2.patch |
144 |
+ chromium-lto-fixes-r3.patch |
145 |
+ chromium-python3-compat-r0.patch |
146 |
+" |
147 |
+ |
148 |
# Keep this in sync with the python_gen_any_dep call. |
149 |
python_check_deps() { |
150 |
has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" && |
151 |
@@ -248,12 +265,17 @@ pkg_setup() { |
152 |
} |
153 |
|
154 |
_unnest_patches() { |
155 |
- local _s="${1%/}/" relpath out |
156 |
- |
157 |
- for f in $(find "${_s}" -mindepth 2 -name *.patch -printf \"%P\"\\n); do |
158 |
- relpath="$(dirname ${f})" |
159 |
- out="${_s}/${relpath////_}_$(basename ${f})" |
160 |
- sed -r -e "s|^([-+]{3}) (.*)$|\1 ${relpath}/\2 ${f}|g" > "${out}" |
161 |
+ local _s="${1%/}/" |
162 |
+ local path |
163 |
+ local relpath |
164 |
+ local out |
165 |
+ |
166 |
+ (find "${_s}" -mindepth 2 -name '*.patch' -printf "%P\n" || die) \ |
167 |
+ | while read -r path; do |
168 |
+ relpath="$(dirname ${path})" |
169 |
+ out="${_s}/__${relpath////_}_$(basename ${path})" |
170 |
+ sed -r -e "s|^([-+]{3}) [ab]/(.*)$|\1 ${relpath}/\2|g" \ |
171 |
+ "${_s}/${path}" > "${out}" || die |
172 |
done |
173 |
} |
174 |
|
175 |
@@ -320,6 +342,7 @@ src_prepare() { |
176 |
# electron patches |
177 |
cd "${ELECTRON_S}" || die |
178 |
eapply "${FILESDIR}/${P}.patch" |
179 |
+ eapply "${FILESDIR}/${PN}-system-icu-r0.patch" |
180 |
|
181 |
# node patches |
182 |
cd "${NODE_S}" || die |
183 |
@@ -356,28 +379,28 @@ src_prepare() { |
184 |
cd "${LIBCC_S}" || die |
185 |
eapply "${FILESDIR}/${P}-vendor-libchromiumcontent.patch" |
186 |
|
187 |
+ # breakpad patches |
188 |
+ cd "${BREAKPAD_S}" || die |
189 |
+ eapply "${FILESDIR}/${P}-vendor-breakpad.patch" |
190 |
+ |
191 |
# chromium patches |
192 |
cd "${CHROMIUM_S}" || die |
193 |
|
194 |
- eapply "${FILESDIR}/chromium-FORTIFY_SOURCE.patch" |
195 |
- eapply "${FILESDIR}/chromium-glibc-2.24.patch" |
196 |
- eapply "${FILESDIR}/chromium-56-gcc4.patch" |
197 |
- eapply "${FILESDIR}/chromium-system-ffmpeg-r4.patch" |
198 |
- eapply "${FILESDIR}/chromium-disable-widevine.patch" |
199 |
- eapply "${FILESDIR}/chromium-remove-gardiner-mod-font-r1.patch" |
200 |
- eapply "${FILESDIR}/chromium-shared-v8-r2.patch" |
201 |
- eapply "${FILESDIR}/chromium-lto-fixes-r3.patch" |
202 |
- |
203 |
# libcc chromium patches |
204 |
_unnest_patches "${LIBCC_S}/patches" |
205 |
|
206 |
EPATCH_SOURCE="${LIBCC_S}/patches" \ |
207 |
EPATCH_SUFFIX="patch" \ |
208 |
EPATCH_FORCE="yes" \ |
209 |
- EPATCH_EXCLUDE="third_party_icu*" \ |
210 |
EPATCH_MULTI_MSG="Applying libchromiumcontent patches..." \ |
211 |
epatch |
212 |
|
213 |
+ # Apply Gentoo-specific Chromium patches |
214 |
+ local p |
215 |
+ for p in ${CHROMIUM_PATCHES}; do |
216 |
+ eapply "${FILESDIR}/${p}" |
217 |
+ done |
218 |
+ |
219 |
# Merge chromiumcontent component into chromium source tree. |
220 |
mkdir -p "${CHROMIUM_S}/chromiumcontent" || die |
221 |
cp -a "${LIBCC_S}/chromiumcontent" "${CHROMIUM_S}/" || die |
222 |
@@ -504,8 +527,10 @@ src_prepare() { |
223 |
fi |
224 |
|
225 |
# Remove most bundled libraries. Some are still needed. |
226 |
+ ebegin "Unbundling libraries" |
227 |
build/linux/unbundle/remove_bundled_libraries.py \ |
228 |
"${keeplibs[@]}" --do-remove || die |
229 |
+ eend |
230 |
|
231 |
cd "${S}" || die |
232 |
|
233 |
@@ -633,6 +658,8 @@ src_configure() { |
234 |
# Define a custom toolchain for GN |
235 |
myconf_gn+=" custom_toolchain=\"${FILESDIR}/toolchain:default\"" |
236 |
|
237 |
+ myconf_gn+=" icu_use_data_file=false" |
238 |
+ |
239 |
use lto && myconf_gn+=" allow_posix_link_time_opt=true" |
240 |
|
241 |
# Tools for building programs to be executed on the build system, bug #410883. |
242 |
@@ -725,6 +752,8 @@ src_compile() { |
243 |
local libcc_output="${CHROMIUM_S}/out/Release/obj/chromiumcontent" |
244 |
local libcc_output_shared="${libcc_output}-shared" |
245 |
local target_arch=$(_get_target_arch) |
246 |
+ local l="" |
247 |
+ local create_dist_args="" |
248 |
|
249 |
tc-export AR CC CXX NM |
250 |
|
251 |
@@ -735,6 +764,7 @@ src_compile() { |
252 |
# Build mksnapshot and pax-mark it. |
253 |
eninja -C "${chromium_target}" mksnapshot || die |
254 |
pax-mark m "${chromium_target}/mksnapshot" |
255 |
+ cp -a "${chromium_target}/mksnapshot" "${compile_target}/" || die |
256 |
|
257 |
# Build chromedriver. |
258 |
eninja -C "${chromium_target}" chromedriver |
259 |
@@ -746,18 +776,18 @@ src_compile() { |
260 |
cd "${S}" || die |
261 |
|
262 |
# Gather and prepare built components of libchromiumcontent. |
263 |
+ create_dist_args+=" --target_arch=${target_arch} --component=static_library" |
264 |
+ create_dist_args+=" --no_zip" |
265 |
+ create_dist_args+=" --system-icu" |
266 |
CHROMIUM_BUILD_DIR="${chromium_target}" \ |
267 |
- python2 "${libcc_path}"/script/create-dist \ |
268 |
- --target_arch=${target_arch} \ |
269 |
- --component=static_library \ |
270 |
- --no_zip || die |
271 |
+ "${EPYTHON}" "${libcc_path}"/script/create-dist ${create_dist_args} || die |
272 |
|
273 |
# v8 is built as a shared library, so copy it manually |
274 |
# for generate_filenames_gypi to find. |
275 |
mkdir -p "${libcc_dist_shared_path}" || die |
276 |
cp "${chromium_target}/libv8.so" "${libcc_dist_shared_path}" || die |
277 |
|
278 |
- python2 "${libcc_path}"/tools/generate_filenames_gypi.py \ |
279 |
+ "${EPYTHON}" "${libcc_path}"/tools/generate_filenames_gypi.py \ |
280 |
"${libcc_dist_path}/filenames.gypi" \ |
281 |
"${CHROMIUM_S}" \ |
282 |
"${libcc_dist_shared_path}" \ |
283 |
@@ -771,6 +801,8 @@ src_compile() { |
284 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
285 |
$(gyp_use lto)" |
286 |
|
287 |
+ myconf_gyp+=" -Duse_system_icu=1" |
288 |
+ |
289 |
if [[ $(tc-getCC) == *clang* ]]; then |
290 |
myconf_gyp+=" -Dclang=1" |
291 |
else |
292 |
@@ -788,6 +820,7 @@ src_compile() { |
293 |
-Dsysroot=" |
294 |
|
295 |
myconf_gyp+=" -Dtarget_arch=${target_arch}" |
296 |
+ myconf_gyp+=" -Dpython=${EPYTHON}" |
297 |
|
298 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
299 |
# Depending on GCC version the warnings are different and we don't want |
300 |
@@ -797,20 +830,19 @@ src_compile() { |
301 |
# Disable fatal linker warnings, bug 506268. |
302 |
myconf_gyp+=" -Ddisable_fatal_linker_warnings=1" |
303 |
|
304 |
- # Needed for system icu - we don't need additional data files. |
305 |
myconf_gyp+=" -Dicu_use_data_file_flag=0" |
306 |
myconf_gyp+=" -Dgenerate_character_data=0" |
307 |
|
308 |
myconf_gyp+=" -Dlibchromiumcontent_component=0" |
309 |
myconf_gyp+=" -Dcomponent=static_library" |
310 |
myconf_gyp+=" -Dlibrary=static_library" |
311 |
- myconf_gyp+=" -Ivendor/node/config.gypi -Icommon.gypi electron.gyp" |
312 |
+ myconf_gyp+=" -Icommon.gypi electron.gyp" |
313 |
|
314 |
EGYP_CHROMIUM_COMMAND="${CHROMIUM_S}/build/gyp_chromium" \ |
315 |
egyp_chromium ${myconf_gyp} || die |
316 |
|
317 |
- # Copy libv8 and snapshot files so the node binary can find them. |
318 |
mkdir -p "${compile_target}/lib/" || die |
319 |
+ # Copy libv8 and snapshot files so the node binary can find them. |
320 |
cp "${chromium_target}/libv8.so" "${compile_target}/lib/" || die |
321 |
cp "${chromium_target}/natives_blob.bin" "${compile_target}" || die |
322 |
cp "${chromium_target}/snapshot_blob.bin" "${compile_target}" || die |
323 |
@@ -846,9 +878,11 @@ src_install() { |
324 |
newexe out/R/nodebin node |
325 |
doexe out/R/electron |
326 |
doexe out/R/chromedriver |
327 |
+ doexe out/R/mksnapshot |
328 |
doins out/R/libv8.so |
329 |
+ fperms +x "${install_dir}/libv8.so" |
330 |
doins out/R/libnode.so |
331 |
- fperms +x "${install_dir}/libv8.so" "${install_dir}/libnode.so" |
332 |
+ fperms +x "${install_dir}/libnode.so" |
333 |
doins out/R/natives_blob.bin |
334 |
doins out/R/snapshot_blob.bin |
335 |
doins out/R/blink_image_resources_200_percent.pak |
336 |
|
337 |
diff --git a/dev-util/electron/files/chromium-gcc-7-r0.patch b/dev-util/electron/files/chromium-gcc-7-r0.patch |
338 |
new file mode 100644 |
339 |
index 00000000000..7a7ded275cd |
340 |
--- /dev/null |
341 |
+++ b/dev-util/electron/files/chromium-gcc-7-r0.patch |
342 |
@@ -0,0 +1,114 @@ |
343 |
+From 19597ff341e55fef78c7fae794574785bfde9acd Mon Sep 17 00:00:00 2001 |
344 |
+From: Elvis Pranskevichus <elvis@×××××.io> |
345 |
+Date: Thu, 7 Dec 2017 09:25:03 -0500 |
346 |
+Subject: [PATCH] GCC-7 compatibility |
347 |
+ |
348 |
+--- |
349 |
+ .../Source/platform/graphics/gpu/SharedGpuContext.h | 1 + |
350 |
+ third_party/WebKit/Source/wtf/LinkedHashSet.h | 1 + |
351 |
+ v8/src/objects-body-descriptors.h | 2 +- |
352 |
+ v8/src/objects-inl.h | 19 +++++++++++++++++++ |
353 |
+ v8/src/objects.h | 20 ++++---------------- |
354 |
+ 5 files changed, 26 insertions(+), 17 deletions(-) |
355 |
+ |
356 |
+diff --git a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h |
357 |
+index 7c32007346..dd2d637085 100644 |
358 |
+--- a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h |
359 |
++++ b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h |
360 |
+@@ -5,6 +5,7 @@ |
361 |
+ #include "platform/PlatformExport.h" |
362 |
+ #include "wtf/ThreadSpecific.h" |
363 |
+ |
364 |
++#include <functional> |
365 |
+ #include <memory> |
366 |
+ |
367 |
+ namespace gpu { |
368 |
+diff --git a/third_party/WebKit/Source/wtf/LinkedHashSet.h b/third_party/WebKit/Source/wtf/LinkedHashSet.h |
369 |
+index 65f5100a8f..7c6c9fc5d8 100644 |
370 |
+--- a/third_party/WebKit/Source/wtf/LinkedHashSet.h |
371 |
++++ b/third_party/WebKit/Source/wtf/LinkedHashSet.h |
372 |
+@@ -630,6 +630,7 @@ inline LinkedHashSet<T, U, V, W>& LinkedHashSet<T, U, V, W>::operator=( |
373 |
+ return *this; |
374 |
+ } |
375 |
+ |
376 |
++inline void swapAnchor(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b); |
377 |
+ template <typename T, typename U, typename V, typename W> |
378 |
+ inline void LinkedHashSet<T, U, V, W>::swap(LinkedHashSet& other) { |
379 |
+ m_impl.swap(other.m_impl); |
380 |
+diff --git a/v8/src/objects-body-descriptors.h b/v8/src/objects-body-descriptors.h |
381 |
+index 91cb8883be..a1c3634bd7 100644 |
382 |
+--- a/v8/src/objects-body-descriptors.h |
383 |
++++ b/v8/src/objects-body-descriptors.h |
384 |
+@@ -99,7 +99,7 @@ class FixedBodyDescriptor final : public BodyDescriptorBase { |
385 |
+ |
386 |
+ template <typename StaticVisitor> |
387 |
+ static inline void IterateBody(HeapObject* obj, int object_size) { |
388 |
+- IterateBody(obj); |
389 |
++ IterateBody<StaticVisitor>(obj); |
390 |
+ } |
391 |
+ }; |
392 |
+ |
393 |
+diff --git a/v8/src/objects-inl.h b/v8/src/objects-inl.h |
394 |
+index 1a8274cbf1..6c4b13c0d0 100644 |
395 |
+--- a/v8/src/objects-inl.h |
396 |
++++ b/v8/src/objects-inl.h |
397 |
+@@ -39,6 +39,25 @@ |
398 |
+ namespace v8 { |
399 |
+ namespace internal { |
400 |
+ |
401 |
++template <typename Derived, typename Shape, typename Key> |
402 |
++uint32_t HashTable<Derived, Shape, Key>::Hash(Key key) { |
403 |
++ if (Shape::UsesSeed) { |
404 |
++ return Shape::SeededHash(key, GetHeap()->HashSeed()); |
405 |
++ } else { |
406 |
++ return Shape::Hash(key); |
407 |
++ } |
408 |
++} |
409 |
++ |
410 |
++template <typename Derived, typename Shape, typename Key> |
411 |
++uint32_t HashTable<Derived, Shape, Key>::HashForObject(Key key, |
412 |
++ Object* object) { |
413 |
++ if (Shape::UsesSeed) { |
414 |
++ return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object); |
415 |
++ } else { |
416 |
++ return Shape::HashForObject(key, object); |
417 |
++ } |
418 |
++} |
419 |
++ |
420 |
+ PropertyDetails::PropertyDetails(Smi* smi) { |
421 |
+ value_ = smi->value(); |
422 |
+ } |
423 |
+diff --git a/v8/src/objects.h b/v8/src/objects.h |
424 |
+index 747a4f0511..b9279640e2 100644 |
425 |
+--- a/v8/src/objects.h |
426 |
++++ b/v8/src/objects.h |
427 |
+@@ -3531,22 +3531,10 @@ class HashTable : public HashTableBase { |
428 |
+ public: |
429 |
+ typedef Shape ShapeT; |
430 |
+ |
431 |
+- // Wrapper methods |
432 |
+- inline uint32_t Hash(Key key) { |
433 |
+- if (Shape::UsesSeed) { |
434 |
+- return Shape::SeededHash(key, GetHeap()->HashSeed()); |
435 |
+- } else { |
436 |
+- return Shape::Hash(key); |
437 |
+- } |
438 |
+- } |
439 |
+- |
440 |
+- inline uint32_t HashForObject(Key key, Object* object) { |
441 |
+- if (Shape::UsesSeed) { |
442 |
+- return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object); |
443 |
+- } else { |
444 |
+- return Shape::HashForObject(key, object); |
445 |
+- } |
446 |
+- } |
447 |
++ // Wrapper methods. Defined in src/objects-inl.h |
448 |
++ // to break a cycle with src/heap/heap.h. |
449 |
++ inline uint32_t Hash(Key key); |
450 |
++ inline uint32_t HashForObject(Key key, Object* object); |
451 |
+ |
452 |
+ // Returns a new HashTable object. |
453 |
+ MUST_USE_RESULT static Handle<Derived> New( |
454 |
+-- |
455 |
+2.14.3 |
456 |
+ |
457 |
|
458 |
diff --git a/dev-util/electron/files/chromium-icu-59-r0.patch b/dev-util/electron/files/chromium-icu-59-r0.patch |
459 |
new file mode 100644 |
460 |
index 00000000000..31dd6983592 |
461 |
--- /dev/null |
462 |
+++ b/dev-util/electron/files/chromium-icu-59-r0.patch |
463 |
@@ -0,0 +1,582 @@ |
464 |
+From f041627ec383536d124002b81301c80b7a1757f7 Mon Sep 17 00:00:00 2001 |
465 |
+From: jshin <jshin@××××××××.org> |
466 |
+Date: Thu, 23 Mar 2017 02:57:16 -0700 |
467 |
+Subject: [PATCH] Prepare Chromium and Blink for ICU 59 |
468 |
+ |
469 |
+ICU 59 uses char16_t as UChar instead of {wchar_t, uint16_t}. |
470 |
+As a result, char16_t is not compatible with char16 any more. |
471 |
+When constructing string16 from UnicodeString/UChar buffer, we need to |
472 |
+reinterpret_cast with a barrier (to avoid an anti-aliasing optimzation |
473 |
+by some compilers). |
474 |
+ |
475 |
+Add UnicodeStringToString16() to base/i18n that utilizes ICU 59-to-be's |
476 |
+helper for the casting regardless of anti-aliasing optimization. |
477 |
+ |
478 |
+And, refactor UnicodeString->string16->UTF8 string to UnicodeString->UTF8 |
479 |
+in a few places. |
480 |
+ |
481 |
+For ICU C API "clients", UChar will be configured to be {wchar_t, uint16_t} |
482 |
+so that there's little to be changed. |
483 |
+ |
484 |
+This was tested with an ICU branch with char16_t as UChar. |
485 |
+ |
486 |
+http://source.icu-project.org/repos/icu/branches/markus/ucharptr2/ |
487 |
+ |
488 |
+BUG=693640 |
489 |
+TEST=trybots are all green. |
490 |
+ |
491 |
+Review-Url: https://codereview.chromium.org/2740673002 |
492 |
+Cr-Commit-Position: refs/heads/master@{#459034} |
493 |
+--- |
494 |
+ ash/common/system/date/date_view.cc | 30 ++------------------ |
495 |
+ base/BUILD.gn | 1 + |
496 |
+ base/i18n/message_formatter.cc | 5 ++-- |
497 |
+ base/i18n/number_formatting.cc | 5 ++-- |
498 |
+ base/i18n/string_compare.cc | 5 ++-- |
499 |
+ base/i18n/time_formatting.cc | 9 +++--- |
500 |
+ base/i18n/time_formatting_unittest.cc | 3 +- |
501 |
+ base/i18n/timezone.cc | 4 +-- |
502 |
+ base/i18n/unicodestring.h | 32 ++++++++++++++++++++++ |
503 |
+ chrome/browser/chromeos/system/timezone_util.cc | 6 ++-- |
504 |
+ .../webui/md_downloads/downloads_list_tracker.cc | 4 +-- |
505 |
+ chromeos/settings/timezone_settings.cc | 4 +-- |
506 |
+ .../core/browser/autofill_profile_comparator.cc | 3 +- |
507 |
+ components/autofill/core/browser/credit_card.cc | 7 +++-- |
508 |
+ .../browser/android/date_time_chooser_android.cc | 4 +-- |
509 |
+ content/renderer/android/email_detector.cc | 4 +-- |
510 |
+ ios/chrome/browser/notification_promo_unittest.cc | 10 ++----- |
511 |
+ net/ftp/ftp_util.cc | 5 ++-- |
512 |
+ .../Source/core/html/forms/EmailInputType.cpp | 13 +++++++-- |
513 |
+ 19 files changed, 88 insertions(+), 66 deletions(-) |
514 |
+ create mode 100644 base/i18n/unicodestring.h |
515 |
+ |
516 |
+diff --git a/ash/common/system/date/date_view.cc b/ash/common/system/date/date_view.cc |
517 |
+index 41aa1919a980..8d9c416fd392 100644 |
518 |
+--- a/ash/common/system/date/date_view.cc |
519 |
++++ b/ash/common/system/date/date_view.cc |
520 |
+@@ -57,43 +57,19 @@ bool UseMd() { |
521 |
+ return MaterialDesignController::IsSystemTrayMenuMaterial(); |
522 |
+ } |
523 |
+ |
524 |
+-base::string16 FormatDateWithPattern(const base::Time& time, |
525 |
+- const char* pattern) { |
526 |
+- UErrorCode status = U_ZERO_ERROR; |
527 |
+- std::unique_ptr<icu::DateTimePatternGenerator> generator( |
528 |
+- icu::DateTimePatternGenerator::createInstance(status)); |
529 |
+- DCHECK(U_SUCCESS(status)); |
530 |
+- icu::UnicodeString generated_pattern = |
531 |
+- generator->getBestPattern(icu::UnicodeString(pattern), status); |
532 |
+- DCHECK(U_SUCCESS(status)); |
533 |
+- icu::SimpleDateFormat simple_formatter(generated_pattern, status); |
534 |
+- DCHECK(U_SUCCESS(status)); |
535 |
+- icu::UnicodeString date_string; |
536 |
+- simple_formatter.format(static_cast<UDate>(time.ToDoubleT() * 1000), |
537 |
+- date_string, status); |
538 |
+- DCHECK(U_SUCCESS(status)); |
539 |
+- return base::string16(date_string.getBuffer(), |
540 |
+- static_cast<size_t>(date_string.length())); |
541 |
+-} |
542 |
+- |
543 |
+ base::string16 FormatDate(const base::Time& time) { |
544 |
+ if (UseMd()) { |
545 |
+ // Use 'short' month format (e.g., "Oct") followed by non-padded day of |
546 |
+ // month (e.g., "2", "10"). |
547 |
+- return FormatDateWithPattern(time, "LLLd"); |
548 |
++ return base::TimeFormatWithPattern(time, "LLLd"); |
549 |
+ } else { |
550 |
+- icu::UnicodeString date_string; |
551 |
+- std::unique_ptr<icu::DateFormat> formatter( |
552 |
+- icu::DateFormat::createDateInstance(icu::DateFormat::kMedium)); |
553 |
+- formatter->format(static_cast<UDate>(time.ToDoubleT() * 1000), date_string); |
554 |
+- return base::string16(date_string.getBuffer(), |
555 |
+- static_cast<size_t>(date_string.length())); |
556 |
++ return base::TimeFormatShortDate(time); |
557 |
+ } |
558 |
+ } |
559 |
+ |
560 |
+ base::string16 FormatDayOfWeek(const base::Time& time) { |
561 |
+ // Use 'short' day of week format (e.g., "Wed"). |
562 |
+- return FormatDateWithPattern(time, "EEE"); |
563 |
++ return base::TimeFormatWithPattern(time, "EEE"); |
564 |
+ } |
565 |
+ |
566 |
+ } // namespace |
567 |
+diff --git a/base/BUILD.gn b/base/BUILD.gn |
568 |
+index 3754be5f383f..29a60c1a265f 100644 |
569 |
+--- a/base/BUILD.gn |
570 |
++++ b/base/BUILD.gn |
571 |
+@@ -1564,6 +1564,7 @@ component("i18n") { |
572 |
+ "i18n/time_formatting.h", |
573 |
+ "i18n/timezone.cc", |
574 |
+ "i18n/timezone.h", |
575 |
++ "i18n/unicodestring.h", |
576 |
+ "i18n/utf8_validator_tables.cc", |
577 |
+ "i18n/utf8_validator_tables.h", |
578 |
+ ] |
579 |
+diff --git a/base/i18n/message_formatter.cc b/base/i18n/message_formatter.cc |
580 |
+index 702e51b94aaa..6962a2829755 100644 |
581 |
+--- a/base/i18n/message_formatter.cc |
582 |
++++ b/base/i18n/message_formatter.cc |
583 |
+@@ -4,6 +4,7 @@ |
584 |
+ |
585 |
+ #include "base/i18n/message_formatter.h" |
586 |
+ |
587 |
++#include "base/i18n/unicodestring.h" |
588 |
+ #include "base/logging.h" |
589 |
+ #include "base/numerics/safe_conversions.h" |
590 |
+ #include "base/time/time.h" |
591 |
+@@ -91,7 +92,7 @@ string16 MessageFormatter::FormatWithNumberedArgs( |
592 |
+ << u_errorName(error); |
593 |
+ return string16(); |
594 |
+ } |
595 |
+- return string16(formatted.getBuffer(), formatted.length()); |
596 |
++ return i18n::UnicodeStringToString16(formatted); |
597 |
+ } |
598 |
+ |
599 |
+ string16 MessageFormatter::FormatWithNamedArgs( |
600 |
+@@ -134,7 +135,7 @@ string16 MessageFormatter::FormatWithNamedArgs( |
601 |
+ << u_errorName(error); |
602 |
+ return string16(); |
603 |
+ } |
604 |
+- return string16(formatted.getBuffer(), formatted.length()); |
605 |
++ return i18n::UnicodeStringToString16(formatted); |
606 |
+ } |
607 |
+ |
608 |
+ } // namespace i18n |
609 |
+diff --git a/base/i18n/number_formatting.cc b/base/i18n/number_formatting.cc |
610 |
+index b51083348460..5a0503f77de1 100644 |
611 |
+--- a/base/i18n/number_formatting.cc |
612 |
++++ b/base/i18n/number_formatting.cc |
613 |
+@@ -10,6 +10,7 @@ |
614 |
+ |
615 |
+ #include "base/format_macros.h" |
616 |
+ #include "base/i18n/message_formatter.h" |
617 |
++#include "base/i18n/unicodestring.h" |
618 |
+ #include "base/lazy_instance.h" |
619 |
+ #include "base/logging.h" |
620 |
+ #include "base/strings/string_util.h" |
621 |
+@@ -60,7 +61,7 @@ string16 FormatNumber(int64_t number) { |
622 |
+ icu::UnicodeString ustr; |
623 |
+ number_format->format(number, ustr); |
624 |
+ |
625 |
+- return string16(ustr.getBuffer(), static_cast<size_t>(ustr.length())); |
626 |
++ return i18n::UnicodeStringToString16(ustr); |
627 |
+ } |
628 |
+ |
629 |
+ string16 FormatDouble(double number, int fractional_digits) { |
630 |
+@@ -76,7 +77,7 @@ string16 FormatDouble(double number, int fractional_digits) { |
631 |
+ icu::UnicodeString ustr; |
632 |
+ number_format->format(number, ustr); |
633 |
+ |
634 |
+- return string16(ustr.getBuffer(), static_cast<size_t>(ustr.length())); |
635 |
++ return i18n::UnicodeStringToString16(ustr); |
636 |
+ } |
637 |
+ |
638 |
+ string16 FormatPercent(int number) { |
639 |
+diff --git a/base/i18n/string_compare.cc b/base/i18n/string_compare.cc |
640 |
+index 2851e7d2dce1..649c28119fe3 100644 |
641 |
+--- a/base/i18n/string_compare.cc |
642 |
++++ b/base/i18n/string_compare.cc |
643 |
+@@ -6,6 +6,7 @@ |
644 |
+ |
645 |
+ #include "base/logging.h" |
646 |
+ #include "base/strings/utf_string_conversions.h" |
647 |
++#include "third_party/icu/source/common/unicode/unistr.h" |
648 |
+ |
649 |
+ namespace base { |
650 |
+ namespace i18n { |
651 |
+@@ -17,8 +18,8 @@ UCollationResult CompareString16WithCollator(const icu::Collator& collator, |
652 |
+ const string16& rhs) { |
653 |
+ UErrorCode error = U_ZERO_ERROR; |
654 |
+ UCollationResult result = collator.compare( |
655 |
+- static_cast<const UChar*>(lhs.c_str()), static_cast<int>(lhs.length()), |
656 |
+- static_cast<const UChar*>(rhs.c_str()), static_cast<int>(rhs.length()), |
657 |
++ icu::UnicodeString(FALSE, lhs.c_str(), static_cast<int>(lhs.length())), |
658 |
++ icu::UnicodeString(FALSE, rhs.c_str(), static_cast<int>(rhs.length())), |
659 |
+ error); |
660 |
+ DCHECK(U_SUCCESS(error)); |
661 |
+ return result; |
662 |
+diff --git a/base/i18n/time_formatting.cc b/base/i18n/time_formatting.cc |
663 |
+index 024b86510b5a..ae1c59eb411a 100644 |
664 |
+--- a/base/i18n/time_formatting.cc |
665 |
++++ b/base/i18n/time_formatting.cc |
666 |
+@@ -8,6 +8,7 @@ |
667 |
+ |
668 |
+ #include <memory> |
669 |
+ |
670 |
++#include "base/i18n/unicodestring.h" |
671 |
+ #include "base/logging.h" |
672 |
+ #include "base/strings/utf_string_conversions.h" |
673 |
+ #include "base/time/time.h" |
674 |
+@@ -26,8 +27,7 @@ string16 TimeFormat(const icu::DateFormat* formatter, |
675 |
+ icu::UnicodeString date_string; |
676 |
+ |
677 |
+ formatter->format(static_cast<UDate>(time.ToDoubleT() * 1000), date_string); |
678 |
+- return string16(date_string.getBuffer(), |
679 |
+- static_cast<size_t>(date_string.length())); |
680 |
++ return i18n::UnicodeStringToString16(date_string); |
681 |
+ } |
682 |
+ |
683 |
+ string16 TimeFormatWithoutAmPm(const icu::DateFormat* formatter, |
684 |
+@@ -46,8 +46,7 @@ string16 TimeFormatWithoutAmPm(const icu::DateFormat* formatter, |
685 |
+ begin--; |
686 |
+ time_string.removeBetween(begin, ampm_field.getEndIndex()); |
687 |
+ } |
688 |
+- return string16(time_string.getBuffer(), |
689 |
+- static_cast<size_t>(time_string.length())); |
690 |
++ return i18n::UnicodeStringToString16(time_string); |
691 |
+ } |
692 |
+ |
693 |
+ icu::SimpleDateFormat CreateSimpleDateFormatter(const char* pattern) { |
694 |
+@@ -168,7 +167,7 @@ string16 TimeDurationFormat(const TimeDelta& time, |
695 |
+ icu::UnicodeString formatted; |
696 |
+ icu::FieldPosition ignore(icu::FieldPosition::DONT_CARE); |
697 |
+ measure_format.formatMeasures(measures, 2, formatted, ignore, status); |
698 |
+- return base::string16(formatted.getBuffer(), formatted.length()); |
699 |
++ return i18n::UnicodeStringToString16(formatted); |
700 |
+ } |
701 |
+ |
702 |
+ HourClockType GetHourClockType() { |
703 |
+diff --git a/base/i18n/time_formatting_unittest.cc b/base/i18n/time_formatting_unittest.cc |
704 |
+index 51a48513aca6..eca8ea2cdaea 100644 |
705 |
+--- a/base/i18n/time_formatting_unittest.cc |
706 |
++++ b/base/i18n/time_formatting_unittest.cc |
707 |
+@@ -7,6 +7,7 @@ |
708 |
+ #include <memory> |
709 |
+ |
710 |
+ #include "base/i18n/rtl.h" |
711 |
++#include "base/i18n/unicodestring.h" |
712 |
+ #include "base/strings/utf_string_conversions.h" |
713 |
+ #include "base/test/icu_test_util.h" |
714 |
+ #include "base/time/time.h" |
715 |
+@@ -37,7 +38,7 @@ base::string16 GetShortTimeZone(const Time& time) { |
716 |
+ zone_formatter->format(UTZFMT_STYLE_SPECIFIC_SHORT, *zone, |
717 |
+ static_cast<UDate>(time.ToDoubleT() * 1000), |
718 |
+ name, nullptr); |
719 |
+- return base::string16(name.getBuffer(), name.length()); |
720 |
++ return i18n::UnicodeStringToString16(name); |
721 |
+ } |
722 |
+ |
723 |
+ #if defined(OS_ANDROID) |
724 |
+diff --git a/base/i18n/timezone.cc b/base/i18n/timezone.cc |
725 |
+index e881c9d680f8..95e7aee34c4c 100644 |
726 |
+--- a/base/i18n/timezone.cc |
727 |
++++ b/base/i18n/timezone.cc |
728 |
+@@ -610,9 +610,9 @@ std::string CountryCodeForCurrentTimezone() { |
729 |
+ std::unique_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault()); |
730 |
+ icu::UnicodeString id; |
731 |
+ zone->getID(id); |
732 |
+- string16 olson_code(id.getBuffer(), id.length()); |
733 |
++ std::string olson_code; |
734 |
+ return TimezoneMap::GetInstance()->CountryCodeForTimezone( |
735 |
+- UTF16ToUTF8(olson_code)); |
736 |
++ id.toUTF8String(olson_code)); |
737 |
+ } |
738 |
+ |
739 |
+ } // namespace base |
740 |
+diff --git a/base/i18n/unicodestring.h b/base/i18n/unicodestring.h |
741 |
+new file mode 100644 |
742 |
+index 000000000000..b62c5264deb4 |
743 |
+--- /dev/null |
744 |
++++ b/base/i18n/unicodestring.h |
745 |
+@@ -0,0 +1,32 @@ |
746 |
++// Copyright (c) 2017 The Chromium Authors. All rights reserved. |
747 |
++// Use of this source code is governed by a BSD-style license that can be |
748 |
++// found in the LICENSE file. |
749 |
++ |
750 |
++#ifndef BASE_I18N_UNICODESTRING_H_ |
751 |
++#define BASE_I18N_UNICODESTRING_H_ |
752 |
++ |
753 |
++#include "base/strings/string16.h" |
754 |
++#include "third_party/icu/source/common/unicode/unistr.h" |
755 |
++#include "third_party/icu/source/common/unicode/uvernum.h" |
756 |
++ |
757 |
++#if U_ICU_VERSION_MAJOR_NUM >= 59 |
758 |
++#include "third_party/icu/source/common/unicode/char16ptr.h" |
759 |
++#endif |
760 |
++ |
761 |
++namespace base { |
762 |
++namespace i18n { |
763 |
++ |
764 |
++inline string16 UnicodeStringToString16(const icu::UnicodeString& unistr) { |
765 |
++#if U_ICU_VERSION_MAJOR_NUM >= 59 |
766 |
++ return base::string16(icu::toUCharPtr(unistr.getBuffer()), |
767 |
++ static_cast<size_t>(unistr.length())); |
768 |
++#else |
769 |
++ return base::string16(unistr.getBuffer(), |
770 |
++ static_cast<size_t>(unistr.length())); |
771 |
++#endif |
772 |
++} |
773 |
++ |
774 |
++} // namespace i18n |
775 |
++} // namespace base |
776 |
++ |
777 |
++#endif // BASE_UNICODESTRING_H_ |
778 |
+diff --git a/chrome/browser/chromeos/system/timezone_util.cc b/chrome/browser/chromeos/system/timezone_util.cc |
779 |
+index 6c41a052197a..d01f60e03b9f 100644 |
780 |
+--- a/chrome/browser/chromeos/system/timezone_util.cc |
781 |
++++ b/chrome/browser/chromeos/system/timezone_util.cc |
782 |
+@@ -11,6 +11,7 @@ |
783 |
+ #include <utility> |
784 |
+ |
785 |
+ #include "base/i18n/rtl.h" |
786 |
++#include "base/i18n/unicodestring.h" |
787 |
+ #include "base/lazy_instance.h" |
788 |
+ #include "base/memory/ptr_util.h" |
789 |
+ #include "base/strings/string_util.h" |
790 |
+@@ -77,7 +78,7 @@ base::string16 GetExemplarCity(const icu::TimeZone& zone) { |
791 |
+ if (!U_FAILURE(status)) { |
792 |
+ city = icu::ures_getUnicodeStringByKey(zone_item.get(), "ec", &status); |
793 |
+ if (U_SUCCESS(status)) |
794 |
+- return base::string16(city.getBuffer(), city.length()); |
795 |
++ return base::i18n::UnicodeStringToString16(city); |
796 |
+ } |
797 |
+ |
798 |
+ // Fallback case in case of failure. |
799 |
+@@ -135,8 +136,7 @@ base::string16 GetTimezoneName(const icu::TimeZone& timezone) { |
800 |
+ } |
801 |
+ base::string16 result(l10n_util::GetStringFUTF16( |
802 |
+ IDS_OPTIONS_SETTINGS_TIMEZONE_DISPLAY_TEMPLATE, |
803 |
+- base::ASCIIToUTF16(offset_str), |
804 |
+- base::string16(name.getBuffer(), name.length()), |
805 |
++ base::ASCIIToUTF16(offset_str), base::i18n::UnicodeStringToString16(name), |
806 |
+ GetExemplarCity(timezone))); |
807 |
+ base::i18n::AdjustStringForLocaleDirection(&result); |
808 |
+ return result; |
809 |
+diff --git a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc |
810 |
+index caf07f69197c..38ed53586d6a 100644 |
811 |
+--- a/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc |
812 |
++++ b/chrome/browser/ui/webui/md_downloads/downloads_list_tracker.cc |
813 |
+@@ -9,6 +9,7 @@ |
814 |
+ #include "base/bind.h" |
815 |
+ #include "base/bind_helpers.h" |
816 |
+ #include "base/i18n/rtl.h" |
817 |
++#include "base/i18n/unicodestring.h" |
818 |
+ #include "base/strings/string16.h" |
819 |
+ #include "base/strings/string_number_conversions.h" |
820 |
+ #include "base/time/time.h" |
821 |
+@@ -74,8 +75,7 @@ base::string16 TimeFormatLongDate(const base::Time& time) { |
822 |
+ icu::DateFormat::createDateInstance(icu::DateFormat::kLong)); |
823 |
+ icu::UnicodeString date_string; |
824 |
+ formatter->format(static_cast<UDate>(time.ToDoubleT() * 1000), date_string); |
825 |
+- return base::string16(date_string.getBuffer(), |
826 |
+- static_cast<size_t>(date_string.length())); |
827 |
++ return base::i18n::UnicodeStringToString16(date_string); |
828 |
+ } |
829 |
+ |
830 |
+ } // namespace |
831 |
+diff --git a/chromeos/settings/timezone_settings.cc b/chromeos/settings/timezone_settings.cc |
832 |
+index 38ea65d653ac..63aa4c02f260 100644 |
833 |
+--- a/chromeos/settings/timezone_settings.cc |
834 |
++++ b/chromeos/settings/timezone_settings.cc |
835 |
+@@ -12,6 +12,7 @@ |
836 |
+ #include "base/bind.h" |
837 |
+ #include "base/files/file_path.h" |
838 |
+ #include "base/files/file_util.h" |
839 |
++#include "base/i18n/unicodestring.h" |
840 |
+ #include "base/location.h" |
841 |
+ #include "base/logging.h" |
842 |
+ #include "base/macros.h" |
843 |
+@@ -478,8 +479,7 @@ TimezoneSettings* TimezoneSettings::GetInstance() { |
844 |
+ // static |
845 |
+ base::string16 TimezoneSettings::GetTimezoneID(const icu::TimeZone& timezone) { |
846 |
+ icu::UnicodeString id; |
847 |
+- timezone.getID(id); |
848 |
+- return base::string16(id.getBuffer(), id.length()); |
849 |
++ return base::i18n::UnicodeStringToString16(timezone.getID(id)); |
850 |
+ } |
851 |
+ |
852 |
+ } // namespace system |
853 |
+diff --git a/components/autofill/core/browser/autofill_profile_comparator.cc b/components/autofill/core/browser/autofill_profile_comparator.cc |
854 |
+index edfe2450d679..227a5901c683 100644 |
855 |
+--- a/components/autofill/core/browser/autofill_profile_comparator.cc |
856 |
++++ b/components/autofill/core/browser/autofill_profile_comparator.cc |
857 |
+@@ -9,6 +9,7 @@ |
858 |
+ |
859 |
+ #include "base/i18n/case_conversion.h" |
860 |
+ #include "base/i18n/char_iterator.h" |
861 |
++#include "base/i18n/unicodestring.h" |
862 |
+ #include "base/strings/string_piece.h" |
863 |
+ #include "base/strings/string_split.h" |
864 |
+ #include "base/strings/string_util.h" |
865 |
+@@ -128,7 +129,7 @@ base::string16 AutofillProfileComparator::NormalizeForComparison( |
866 |
+ |
867 |
+ icu::UnicodeString value = icu::UnicodeString(result.data(), result.length()); |
868 |
+ transliterator_->transliterate(value); |
869 |
+- return base::string16(value.getBuffer(), value.length()); |
870 |
++ return base::i18n::UnicodeStringToString16(value); |
871 |
+ } |
872 |
+ |
873 |
+ bool AutofillProfileComparator::AreMergeable(const AutofillProfile& p1, |
874 |
+diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc |
875 |
+index 75a34c75a260..76867e0391c2 100644 |
876 |
+--- a/components/autofill/core/browser/credit_card.cc |
877 |
++++ b/components/autofill/core/browser/credit_card.cc |
878 |
+@@ -12,6 +12,8 @@ |
879 |
+ #include <string> |
880 |
+ |
881 |
+ #include "base/guid.h" |
882 |
++#include "base/i18n/time_formatting.h" |
883 |
++#include "base/i18n/unicodestring.h" |
884 |
+ #include "base/logging.h" |
885 |
+ #include "base/macros.h" |
886 |
+ #include "base/metrics/histogram_macros.h" |
887 |
+@@ -806,7 +808,8 @@ bool CreditCard::ConvertMonth(const base::string16& month, |
888 |
+ int32_t num_months; |
889 |
+ const icu::UnicodeString* months = date_format_symbols.getMonths(num_months); |
890 |
+ for (int32_t i = 0; i < num_months; ++i) { |
891 |
+- const base::string16 icu_month(months[i].getBuffer(), months[i].length()); |
892 |
++ const base::string16 icu_month( |
893 |
++ base::i18n::UnicodeStringToString16(months[i])); |
894 |
+ if (compare.StringsEqual(icu_month, month)) { |
895 |
+ *num = i + 1; // Adjust from 0-indexed to 1-indexed. |
896 |
+ return true; |
897 |
+@@ -819,7 +822,7 @@ bool CreditCard::ConvertMonth(const base::string16& month, |
898 |
+ base::string16 trimmed_month; |
899 |
+ base::TrimString(month, ASCIIToUTF16("."), &trimmed_month); |
900 |
+ for (int32_t i = 0; i < num_months; ++i) { |
901 |
+- base::string16 icu_month(months[i].getBuffer(), months[i].length()); |
902 |
++ base::string16 icu_month(base::i18n::UnicodeStringToString16(months[i])); |
903 |
+ base::TrimString(icu_month, ASCIIToUTF16("."), &icu_month); |
904 |
+ if (compare.StringsEqual(icu_month, trimmed_month)) { |
905 |
+ *num = i + 1; // Adjust from 0-indexed to 1-indexed. |
906 |
+diff --git a/content/browser/android/date_time_chooser_android.cc b/content/browser/android/date_time_chooser_android.cc |
907 |
+index ba20ad53bd5c..28b6d03344f0 100644 |
908 |
+--- a/content/browser/android/date_time_chooser_android.cc |
909 |
++++ b/content/browser/android/date_time_chooser_android.cc |
910 |
+@@ -9,6 +9,7 @@ |
911 |
+ #include "base/android/jni_android.h" |
912 |
+ #include "base/android/jni_string.h" |
913 |
+ #include "base/i18n/char_iterator.h" |
914 |
++#include "base/i18n/unicodestring.h" |
915 |
+ #include "content/common/date_time_suggestion.h" |
916 |
+ #include "content/common/view_messages.h" |
917 |
+ #include "content/public/browser/render_view_host.h" |
918 |
+@@ -36,8 +37,7 @@ base::string16 SanitizeSuggestionString(const base::string16& string) { |
919 |
+ sanitized.append(c); |
920 |
+ sanitized_iterator.Advance(); |
921 |
+ } |
922 |
+- return base::string16(sanitized.getBuffer(), |
923 |
+- static_cast<size_t>(sanitized.length())); |
924 |
++ return base::i18n::UnicodeStringToString16(sanitized); |
925 |
+ } |
926 |
+ |
927 |
+ } // namespace |
928 |
+diff --git a/content/renderer/android/email_detector.cc b/content/renderer/android/email_detector.cc |
929 |
+index 564f3417305f..1a0db8b07a85 100644 |
930 |
+--- a/content/renderer/android/email_detector.cc |
931 |
++++ b/content/renderer/android/email_detector.cc |
932 |
+@@ -62,8 +62,8 @@ bool EmailDetector::FindContent(const base::string16::const_iterator& begin, |
933 |
+ DCHECK(U_SUCCESS(status)); |
934 |
+ icu::UnicodeString content_ustr(matcher->group(status)); |
935 |
+ DCHECK(U_SUCCESS(status)); |
936 |
+- base::UTF16ToUTF8(content_ustr.getBuffer(), content_ustr.length(), |
937 |
+- content_text); |
938 |
++ content_text->clear(); |
939 |
++ content_ustr.toUTF8String(*content_text); |
940 |
+ return true; |
941 |
+ } |
942 |
+ |
943 |
+diff --git a/ios/chrome/browser/notification_promo_unittest.cc b/ios/chrome/browser/notification_promo_unittest.cc |
944 |
+index 830d9c5f65a0..d5356e8e6dcb 100644 |
945 |
+--- a/ios/chrome/browser/notification_promo_unittest.cc |
946 |
++++ b/ios/chrome/browser/notification_promo_unittest.cc |
947 |
+@@ -34,18 +34,14 @@ bool YearFromNow(double* date_epoch, std::string* date_string) { |
948 |
+ UErrorCode status = U_ZERO_ERROR; |
949 |
+ icu::SimpleDateFormat simple_formatter(icu::UnicodeString(kDateFormat), |
950 |
+ icu::Locale("en_US"), status); |
951 |
+- if (!U_SUCCESS(status)) |
952 |
+- return false; |
953 |
+- |
954 |
+ icu::UnicodeString date_unicode_string; |
955 |
+ simple_formatter.format(static_cast<UDate>(*date_epoch * 1000), |
956 |
+ date_unicode_string, status); |
957 |
+- if (!U_SUCCESS(status)) |
958 |
++ if (U_FAILURE(status)) |
959 |
+ return false; |
960 |
+ |
961 |
+- return base::UTF16ToUTF8(date_unicode_string.getBuffer(), |
962 |
+- static_cast<size_t>(date_unicode_string.length()), |
963 |
+- date_string); |
964 |
++ date_unicode_string.toUTF8String(*date_string); |
965 |
++ return true; |
966 |
+ } |
967 |
+ |
968 |
+ } // namespace |
969 |
+diff --git a/net/ftp/ftp_util.cc b/net/ftp/ftp_util.cc |
970 |
+index 00b23b7c10b7..e9331ab3818b 100644 |
971 |
+--- a/net/ftp/ftp_util.cc |
972 |
++++ b/net/ftp/ftp_util.cc |
973 |
+@@ -9,6 +9,7 @@ |
974 |
+ |
975 |
+ #include "base/i18n/case_conversion.h" |
976 |
+ #include "base/i18n/char_iterator.h" |
977 |
++#include "base/i18n/unicodestring.h" |
978 |
+ #include "base/logging.h" |
979 |
+ #include "base/macros.h" |
980 |
+ #include "base/memory/singleton.h" |
981 |
+@@ -175,8 +176,8 @@ class AbbreviatedMonthsMap { |
982 |
+ format_symbols.getShortMonths(months_count); |
983 |
+ |
984 |
+ for (int32_t month = 0; month < months_count; month++) { |
985 |
+- base::string16 month_name(months[month].getBuffer(), |
986 |
+- static_cast<size_t>(months[month].length())); |
987 |
++ base::string16 month_name( |
988 |
++ base::i18n::UnicodeStringToString16(months[month])); |
989 |
+ |
990 |
+ // Ignore the case of the month names. The simplest way to handle that |
991 |
+ // is to make everything lowercase. |
992 |
+diff --git a/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp b/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp |
993 |
+index 07d10a31ffde..4dab06aa19a5 100644 |
994 |
+--- a/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp |
995 |
++++ b/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp |
996 |
+@@ -23,6 +23,9 @@ |
997 |
+ |
998 |
+ #include "core/html/forms/EmailInputType.h" |
999 |
+ |
1000 |
++#include <unicode/idna.h> |
1001 |
++#include <unicode/unistr.h> |
1002 |
++#include <unicode/uvernum.h> |
1003 |
+ #include "bindings/core/v8/ScriptRegexp.h" |
1004 |
+ #include "core/InputTypeNames.h" |
1005 |
+ #include "core/html/HTMLInputElement.h" |
1006 |
+@@ -31,8 +34,10 @@ |
1007 |
+ #include "platform/text/PlatformLocale.h" |
1008 |
+ #include "public/platform/Platform.h" |
1009 |
+ #include "wtf/text/StringBuilder.h" |
1010 |
+-#include <unicode/idna.h> |
1011 |
+-#include <unicode/unistr.h> |
1012 |
++ |
1013 |
++#if U_ICU_VERSION_MAJOR_NUM >= 59 |
1014 |
++#include <unicode/char16ptr.h> |
1015 |
++#endif |
1016 |
+ |
1017 |
+ namespace blink { |
1018 |
+ |
1019 |
+@@ -87,7 +92,11 @@ String EmailInputType::convertEmailAddressToASCII(const ScriptRegexp& regexp, |
1020 |
+ |
1021 |
+ StringBuilder builder; |
1022 |
+ builder.append(address, 0, atPosition + 1); |
1023 |
++#if U_ICU_VERSION_MAJOR_NUM >= 59 |
1024 |
++ builder.append(icu::toUCharPtr(domainName.getBuffer()), domainName.length()); |
1025 |
++#else |
1026 |
+ builder.append(domainName.getBuffer(), domainName.length()); |
1027 |
++#endif |
1028 |
+ String asciiEmail = builder.toString(); |
1029 |
+ return isValidEmailAddress(regexp, asciiEmail) ? asciiEmail : address; |
1030 |
+ } |
1031 |
+diff --git a/third_party/sfntly/src/cpp/src/sample/chromium/subsetter_impl.cc b/third_party/sfntly/src/cpp/src/sample/chromium/subsetter_impl.cc |
1032 |
+index c53e607..17452e1 100644 |
1033 |
+--- a/third_party/sfntly/src/cpp/src/sample/chromium/subsetter_impl.cc |
1034 |
++++ b/third_party/sfntly/src/cpp/src/sample/chromium/subsetter_impl.cc |
1035 |
+@@ -23,6 +23,8 @@ |
1036 |
+ #include <map> |
1037 |
+ #include <set> |
1038 |
+ |
1039 |
++#include <unicode/unistr.h> |
1040 |
++ |
1041 |
+ #include "sfntly/table/bitmap/eblc_table.h" |
1042 |
+ #include "sfntly/table/bitmap/ebdt_table.h" |
1043 |
+ #include "sfntly/table/bitmap/index_sub_table.h" |
1044 |
+-- |
1045 |
+2.14.3 |
1046 |
|
1047 |
diff --git a/dev-util/electron/files/chromium-icu-60-r0.patch b/dev-util/electron/files/chromium-icu-60-r0.patch |
1048 |
new file mode 100644 |
1049 |
index 00000000000..f6f98497ba0 |
1050 |
--- /dev/null |
1051 |
+++ b/dev-util/electron/files/chromium-icu-60-r0.patch |
1052 |
@@ -0,0 +1,66 @@ |
1053 |
+From 020c458932087a7da9b514563c3926be5a406d55 Mon Sep 17 00:00:00 2001 |
1054 |
+From: Jungshik Shin <jshin@××××××××.org> |
1055 |
+Date: Mon, 4 Dec 2017 09:42:01 -0500 |
1056 |
+Subject: [PATCH] Disallow 5 aspirational scripts in IDN display |
1057 |
+ |
1058 |
+UTS 31 (http://www.unicode.org/reports/tr31/#Aspirational_Use_Scripts ) |
1059 |
+used to list 5 scripts in Table 6 as 'aspirational scripts', but it |
1060 |
+deprecated the category and moved 5 scripts to Table 7 for limited use |
1061 |
+scripts. |
1062 |
+ |
1063 |
+Given this, there's no basis to treat those 5 scripts differently from |
1064 |
+other limited use scripts. Note that Mozilla stopped allowding those 5 |
1065 |
+scripts in IDN display a while ago. |
1066 |
+ |
1067 |
+This is also necessary for updating ICU to version 60. |
1068 |
+--- |
1069 |
+ components/url_formatter/url_formatter.cc | 33 ------------------------------- |
1070 |
+ 1 file changed, 33 deletions(-) |
1071 |
+ |
1072 |
+diff --git a/components/url_formatter/url_formatter.cc b/components/url_formatter/url_formatter.cc |
1073 |
+index a93bf1154c..6b000c3480 100644 |
1074 |
+--- a/components/url_formatter/url_formatter.cc |
1075 |
++++ b/components/url_formatter/url_formatter.cc |
1076 |
+@@ -426,39 +426,6 @@ void IDNSpoofChecker::SetAllowedUnicodeSet(UErrorCode* status) { |
1077 |
+ const icu::UnicodeSet* inclusion_set = uspoof_getInclusionUnicodeSet(status); |
1078 |
+ allowed_set.addAll(*inclusion_set); |
1079 |
+ |
1080 |
+- // Five aspirational scripts are taken from UTR 31 Table 6 at |
1081 |
+- // http://www.unicode.org/reports/tr31/#Aspirational_Use_Scripts . |
1082 |
+- // Not all the characters of aspirational scripts are suitable for |
1083 |
+- // identifiers. Therefore, only characters belonging to |
1084 |
+- // [:Identifier_Type=Aspirational:] (listed in 'Status/Type=Aspirational' |
1085 |
+- // section at |
1086 |
+- // http://www.unicode.org/Public/security/latest/xidmodifications.txt) are |
1087 |
+- // are added to the allowed set. The list has to be updated when a new |
1088 |
+- // version of Unicode is released. The current version is 9.0.0 and ICU 60 |
1089 |
+- // will have Unicode 10.0 data. |
1090 |
+-#if U_ICU_VERSION_MAJOR_NUM < 60 |
1091 |
+- const icu::UnicodeSet aspirational_scripts( |
1092 |
+- icu::UnicodeString( |
1093 |
+- // Unified Canadian Syllabics |
1094 |
+- "[\\u1401-\\u166C\\u166F-\\u167F" |
1095 |
+- // Mongolian |
1096 |
+- "\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA" |
1097 |
+- // Unified Canadian Syllabics |
1098 |
+- "\\u18B0-\\u18F5" |
1099 |
+- // Tifinagh |
1100 |
+- "\\u2D30-\\u2D67\\u2D7F" |
1101 |
+- // Yi |
1102 |
+- "\\uA000-\\uA48C" |
1103 |
+- // Miao |
1104 |
+- "\\U00016F00-\\U00016F44\\U00016F50-\\U00016F7E" |
1105 |
+- "\\U00016F8F-\\U00016F9F]", |
1106 |
+- -1, US_INV), |
1107 |
+- *status); |
1108 |
+- allowed_set.addAll(aspirational_scripts); |
1109 |
+-#else |
1110 |
+-#error "Update aspirational_scripts per Unicode 10.0" |
1111 |
+-#endif |
1112 |
+- |
1113 |
+ // U+0338 is included in the recommended set, while U+05F4 and U+2027 are in |
1114 |
+ // the inclusion set. However, they are blacklisted as a part of Mozilla's |
1115 |
+ // IDN blacklist (http://kb.mozillazine.org/Network.IDN.blacklist_chars). |
1116 |
+-- |
1117 |
+2.14.3 |
1118 |
+ |
1119 |
|
1120 |
diff --git a/dev-util/electron/files/chromium-python3-compat-r0.patch b/dev-util/electron/files/chromium-python3-compat-r0.patch |
1121 |
new file mode 100644 |
1122 |
index 00000000000..d91ea8a4c1b |
1123 |
--- /dev/null |
1124 |
+++ b/dev-util/electron/files/chromium-python3-compat-r0.patch |
1125 |
@@ -0,0 +1,34 @@ |
1126 |
+diff --git a/v8/gypfiles/detect_v8_host_arch.py b/v8/gypfiles/detect_v8_host_arch.py |
1127 |
+index 89e8286..cc61946 100644 |
1128 |
+--- a/v8/gypfiles/detect_v8_host_arch.py |
1129 |
++++ b/v8/gypfiles/detect_v8_host_arch.py |
1130 |
+@@ -28,13 +28,15 @@ |
1131 |
+ |
1132 |
+ """Outputs host CPU architecture in format recognized by gyp.""" |
1133 |
+ |
1134 |
++from __future__ import print_function |
1135 |
++ |
1136 |
+ import platform |
1137 |
+ import re |
1138 |
+ import sys |
1139 |
+ |
1140 |
+ |
1141 |
+ def main(): |
1142 |
+- print DoMain([]) |
1143 |
++ print(DoMain([])) |
1144 |
+ return 0 |
1145 |
+ |
1146 |
+ def DoMain(_): |
1147 |
+diff --git a/v8/gypfiles/toolchain.gypi b/v8/gypfiles/toolchain.gypi |
1148 |
+index 95eb1d9..1ec652a 100644 |
1149 |
+--- a/v8/gypfiles/toolchain.gypi |
1150 |
++++ b/v8/gypfiles/toolchain.gypi |
1151 |
+@@ -40,7 +40,7 @@ |
1152 |
+ 'has_valgrind%': 0, |
1153 |
+ 'coverage%': 0, |
1154 |
+ 'v8_target_arch%': '<(target_arch)', |
1155 |
+- 'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")', |
1156 |
++ 'v8_host_byteorder%': '<!(python -c "from __future__ import print_function; import sys; print(sys.byteorder)")', |
1157 |
+ 'force_dynamic_crt%': 0, |
1158 |
+ |
1159 |
+ # Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP |
1160 |
|
1161 |
diff --git a/dev-util/electron/files/chromium-shared-v8-r2.patch b/dev-util/electron/files/chromium-shared-v8-r2.patch |
1162 |
index 475da8193a9..82d87d48d9f 100644 |
1163 |
--- a/dev-util/electron/files/chromium-shared-v8-r2.patch |
1164 |
+++ b/dev-util/electron/files/chromium-shared-v8-r2.patch |
1165 |
@@ -1,79 +1,19 @@ |
1166 |
-diff --git a/v8/BUILD.gn.orig b/v8/BUILD.gn |
1167 |
-index 8587356..4365e03 100644 |
1168 |
---- a/v8/BUILD.gn |
1169 |
-+++ b/v8/BUILD.gn |
1170 |
-@@ -113,7 +113,7 @@ config("internal_config") { |
1171 |
- |
1172 |
- include_dirs = [ "." ] |
1173 |
- |
1174 |
-- if (is_component_build) { |
1175 |
-+ if (is_component_build || is_electron_build) { |
1176 |
- defines = [ "BUILDING_V8_SHARED" ] |
1177 |
- } |
1178 |
- } |
1179 |
-@@ -127,14 +127,14 @@ config("internal_config_base") { |
1180 |
- # This config should be applied to code using the libplatform. |
1181 |
- config("libplatform_config") { |
1182 |
- include_dirs = [ "include" ] |
1183 |
-- if (is_component_build) { |
1184 |
-+ if (is_component_build || is_electron_build) { |
1185 |
- defines = [ "USING_V8_PLATFORM_SHARED" ] |
1186 |
- } |
1187 |
+diff --git a/v8/gni/v8.gni.orig b/v8/gni/v8.gni |
1188 |
+index 264c1de..df17239 100644 |
1189 |
+--- a/v8/gni/v8.gni.orig |
1190 |
++++ b/v8/gni/v8.gni |
1191 |
+@@ -114,13 +114,7 @@ template("v8_executable") { |
1192 |
} |
1193 |
|
1194 |
- # This config should be applied to code using the libbase. |
1195 |
- config("libbase_config") { |
1196 |
-- if (is_component_build) { |
1197 |
-+ if (is_component_build || is_electron_build) { |
1198 |
- defines = [ "USING_V8_BASE_SHARED" ] |
1199 |
- } |
1200 |
- libs = [] |
1201 |
-@@ -151,7 +151,7 @@ config("libsampler_config") { |
1202 |
- # This config should only be applied to code using V8 and not any V8 code |
1203 |
- # itself. |
1204 |
- config("external_config") { |
1205 |
-- if (is_component_build) { |
1206 |
-+ if (is_component_build || is_electron_build) { |
1207 |
- defines = [ "USING_V8_SHARED" ] |
1208 |
- } |
1209 |
- include_dirs = [ "include" ] |
1210 |
-@@ -2265,7 +2265,7 @@ v8_component("v8_libbase") { |
1211 |
- |
1212 |
- defines = [] |
1213 |
- |
1214 |
-- if (is_component_build) { |
1215 |
-+ if (is_component_build || is_electron_build) { |
1216 |
- defines = [ "BUILDING_V8_BASE_SHARED" ] |
1217 |
- } |
1218 |
- |
1219 |
-@@ -2355,7 +2355,7 @@ v8_component("v8_libplatform") { |
1220 |
- |
1221 |
- configs = [ ":internal_config_base" ] |
1222 |
- |
1223 |
-- if (is_component_build) { |
1224 |
-+ if (is_component_build || is_electron_build) { |
1225 |
- defines = [ "BUILDING_V8_PLATFORM_SHARED" ] |
1226 |
- } |
1227 |
- |
1228 |
-@@ -2498,7 +2498,7 @@ group("gn_all") { |
1229 |
- } |
1230 |
- } |
1231 |
- |
1232 |
--if (is_component_build) { |
1233 |
-+if (is_component_build || is_electron_build) { |
1234 |
- v8_component("v8") { |
1235 |
- sources = [ |
1236 |
- "src/v8dll-main.cc", |
1237 |
-diff --git a/v8/src/inspector/BUILD.gn b/v8/src/inspector/BUILD.gn |
1238 |
-index 6ebb91c..b6a2489 100644 |
1239 |
---- a/v8/src/inspector/BUILD.gn |
1240 |
-+++ b/v8/src/inspector/BUILD.gn |
1241 |
-@@ -106,7 +106,7 @@ config("inspector_config") { |
1242 |
- "/wd4996", # Deprecated function call. |
1243 |
- ] |
1244 |
- } |
1245 |
-- if (is_component_build) { |
1246 |
-+ if (is_component_build || is_electron_build) { |
1247 |
- defines = [ "BUILDING_V8_SHARED" ] |
1248 |
- } |
1249 |
- } |
1250 |
+ template("v8_component") { |
1251 |
+- if (is_electron_build && !is_component_build && |
1252 |
+- (target_name == "v8_libbase" || target_name == "v8_libplatform")) { |
1253 |
+- v8_component = "source_set" |
1254 |
+- } else { |
1255 |
+- v8_component = component_electron |
1256 |
+- } |
1257 |
+- target(v8_component, target_name) { |
1258 |
++ component(target_name) { |
1259 |
+ forward_variables_from(invoker, "*", [ "configs" ]) |
1260 |
+ configs += invoker.configs |
1261 |
+ configs -= v8_remove_configs |
1262 |
|
1263 |
diff --git a/dev-util/electron/files/chromium-system-icu-r0.patch b/dev-util/electron/files/chromium-system-icu-r0.patch |
1264 |
new file mode 100644 |
1265 |
index 00000000000..484a1974e81 |
1266 |
--- /dev/null |
1267 |
+++ b/dev-util/electron/files/chromium-system-icu-r0.patch |
1268 |
@@ -0,0 +1,140 @@ |
1269 |
+From 520c62f2b87a42bf4f8f8820f6bcde15e342fe4a Mon Sep 17 00:00:00 2001 |
1270 |
+From: floppymaster <floppymaster@×××××.com> |
1271 |
+Date: Mon, 12 Jun 2017 09:44:54 -0700 |
1272 |
+Subject: [PATCH] ICU unbundling fixes |
1273 |
+ |
1274 |
+Update instructions to generate ICU header lists |
1275 |
+Update header list for unbundling ICU 59 |
1276 |
+ |
1277 |
+Bug: https://bugs.gentoo.org/619796#c2 |
1278 |
+Review-Url: https://codereview.chromium.org/2935603002 |
1279 |
+Cr-Commit-Position: refs/heads/master@{#478662} |
1280 |
+--- |
1281 |
+ build/linux/unbundle/icu.gn | 29 +++++++++++++++++------------ |
1282 |
+ 1 file changed, 17 insertions(+), 12 deletions(-) |
1283 |
+ |
1284 |
+diff --git a/build/linux/unbundle/icu.gn b/build/linux/unbundle/icu.gn |
1285 |
+index f3734b7a01a3..5bdd91555df7 100644 |
1286 |
+--- a/build/linux/unbundle/icu.gn |
1287 |
++++ b/build/linux/unbundle/icu.gn |
1288 |
+@@ -16,6 +16,7 @@ config("icu_config") { |
1289 |
+ defines = [ |
1290 |
+ "USING_SYSTEM_ICU=1", |
1291 |
+ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC", |
1292 |
++ "UCHAR_TYPE=uint16_t", |
1293 |
+ ] |
1294 |
+ } |
1295 |
+ |
1296 |
+@@ -50,10 +51,9 @@ source_set("icuuc") { |
1297 |
+ shim_headers("icui18n_shim") { |
1298 |
+ root_path = "source/i18n" |
1299 |
+ headers = [ |
1300 |
+- # This list can easily be updated using the command below: |
1301 |
+- # find third_party/icu/source/i18n/unicode \ |
1302 |
+- # -iname '*.h' -printf '"%p",\n' | \ |
1303 |
+- # sed -e 's|third_party/icu/i18n/common/||' | sort -u |
1304 |
++ # This list can easily be updated using the commands below: |
1305 |
++ # cd third_party/icu/source/i18n |
1306 |
++ # find unicode -iname '*.h' -printf ' "%p",\n' | LC_ALL=C sort -u |
1307 |
+ "unicode/alphaindex.h", |
1308 |
+ "unicode/basictz.h", |
1309 |
+ "unicode/calendar.h", |
1310 |
+@@ -78,7 +78,6 @@ shim_headers("icui18n_shim") { |
1311 |
+ "unicode/fpositer.h", |
1312 |
+ "unicode/gender.h", |
1313 |
+ "unicode/gregocal.h", |
1314 |
+- "unicode/locdspnm.h", |
1315 |
+ "unicode/measfmt.h", |
1316 |
+ "unicode/measunit.h", |
1317 |
+ "unicode/measure.h", |
1318 |
+@@ -113,15 +112,12 @@ shim_headers("icui18n_shim") { |
1319 |
+ "unicode/ucol.h", |
1320 |
+ "unicode/ucoleitr.h", |
1321 |
+ "unicode/ucsdet.h", |
1322 |
+- "unicode/ucurr.h", |
1323 |
+ "unicode/udat.h", |
1324 |
+ "unicode/udateintervalformat.h", |
1325 |
+ "unicode/udatpg.h", |
1326 |
+- "unicode/udisplaycontext.h", |
1327 |
+ "unicode/ufieldpositer.h", |
1328 |
+ "unicode/uformattable.h", |
1329 |
+ "unicode/ugender.h", |
1330 |
+- "unicode/uldnames.h", |
1331 |
+ "unicode/ulocdata.h", |
1332 |
+ "unicode/umsg.h", |
1333 |
+ "unicode/unirepl.h", |
1334 |
+@@ -130,6 +126,7 @@ shim_headers("icui18n_shim") { |
1335 |
+ "unicode/upluralrules.h", |
1336 |
+ "unicode/uregex.h", |
1337 |
+ "unicode/uregion.h", |
1338 |
++ "unicode/ureldatefmt.h", |
1339 |
+ "unicode/usearch.h", |
1340 |
+ "unicode/uspoof.h", |
1341 |
+ "unicode/utmscale.h", |
1342 |
+@@ -141,20 +138,22 @@ shim_headers("icui18n_shim") { |
1343 |
+ shim_headers("icuuc_shim") { |
1344 |
+ root_path = "source/common" |
1345 |
+ headers = [ |
1346 |
+- # This list can easily be updated using the command below: |
1347 |
+- # find third_party/icu/source/common/unicode \ |
1348 |
+- # -iname '*.h' -printf '"%p",\n' | \ |
1349 |
+- # sed -e 's|third_party/icu/source/common/||' | sort -u |
1350 |
++ # This list can easily be updated using the commands below: |
1351 |
++ # cd third_party/icu/source/common |
1352 |
++ # find unicode -iname '*.h' -printf ' "%p",\n' | LC_ALL=C sort -u |
1353 |
+ "unicode/appendable.h", |
1354 |
+ "unicode/brkiter.h", |
1355 |
+ "unicode/bytestream.h", |
1356 |
+ "unicode/bytestrie.h", |
1357 |
+ "unicode/bytestriebuilder.h", |
1358 |
+ "unicode/caniter.h", |
1359 |
++ "unicode/casemap.h", |
1360 |
++ "unicode/char16ptr.h", |
1361 |
+ "unicode/chariter.h", |
1362 |
+ "unicode/dbbi.h", |
1363 |
+ "unicode/docmain.h", |
1364 |
+ "unicode/dtintrv.h", |
1365 |
++ "unicode/edits.h", |
1366 |
+ "unicode/enumset.h", |
1367 |
+ "unicode/errorcode.h", |
1368 |
+ "unicode/filteredbrk.h", |
1369 |
+@@ -163,6 +162,7 @@ shim_headers("icuuc_shim") { |
1370 |
+ "unicode/idna.h", |
1371 |
+ "unicode/listformatter.h", |
1372 |
+ "unicode/localpointer.h", |
1373 |
++ "unicode/locdspnm.h", |
1374 |
+ "unicode/locid.h", |
1375 |
+ "unicode/messagepattern.h", |
1376 |
+ "unicode/normalizer2.h", |
1377 |
+@@ -176,12 +176,14 @@ shim_headers("icuuc_shim") { |
1378 |
+ "unicode/rep.h", |
1379 |
+ "unicode/resbund.h", |
1380 |
+ "unicode/schriter.h", |
1381 |
++ "unicode/simpleformatter.h", |
1382 |
+ "unicode/std_string.h", |
1383 |
+ "unicode/strenum.h", |
1384 |
+ "unicode/stringpiece.h", |
1385 |
+ "unicode/stringtriebuilder.h", |
1386 |
+ "unicode/symtable.h", |
1387 |
+ "unicode/ubidi.h", |
1388 |
++ "unicode/ubiditransform.h", |
1389 |
+ "unicode/ubrk.h", |
1390 |
+ "unicode/ucasemap.h", |
1391 |
+ "unicode/ucat.h", |
1392 |
+@@ -195,10 +197,13 @@ shim_headers("icuuc_shim") { |
1393 |
+ "unicode/ucnv_err.h", |
1394 |
+ "unicode/ucnvsel.h", |
1395 |
+ "unicode/uconfig.h", |
1396 |
++ "unicode/ucurr.h", |
1397 |
+ "unicode/udata.h", |
1398 |
++ "unicode/udisplaycontext.h", |
1399 |
+ "unicode/uenum.h", |
1400 |
+ "unicode/uidna.h", |
1401 |
+ "unicode/uiter.h", |
1402 |
++ "unicode/uldnames.h", |
1403 |
+ "unicode/ulistformatter.h", |
1404 |
+ "unicode/uloc.h", |
1405 |
+ "unicode/umachine.h", |
1406 |
+-- |
1407 |
+2.14.3 |
1408 |
+ |
1409 |
|
1410 |
diff --git a/dev-util/electron/files/chromium-v8-icu-59-r0.patch b/dev-util/electron/files/chromium-v8-icu-59-r0.patch |
1411 |
new file mode 100644 |
1412 |
index 00000000000..d963db9db93 |
1413 |
--- /dev/null |
1414 |
+++ b/dev-util/electron/files/chromium-v8-icu-59-r0.patch |
1415 |
@@ -0,0 +1,83 @@ |
1416 |
+From fd5b3e755df541b44128caed625215017ef59989 Mon Sep 17 00:00:00 2001 |
1417 |
+From: jshin <jshin@××××××××.org> |
1418 |
+Date: Thu, 9 Mar 2017 12:01:15 -0800 |
1419 |
+Subject: [PATCH] Prepare for ICU's switch to char16_t |
1420 |
+ |
1421 |
+ICU's UChar was uint16_t (non-Win) or wchar_t (Windows). It's switching |
1422 |
+to char16_t in both C/C++ API. It needs some changes. Fortunately, |
1423 |
+v8 needs only a couple of changes because v8 has been using |
1424 |
+reinterpret_cast in many places calling ICU API. |
1425 |
+ |
1426 |
+This change was confirmed to work fine with ICU-59-to-be. |
1427 |
+ |
1428 |
+BUG=v8:6062 |
1429 |
+TEST=trybot |
1430 |
+ |
1431 |
+Review-Url: https://codereview.chromium.org/2738503008 |
1432 |
+Cr-Commit-Position: refs/heads/master@{#43707} |
1433 |
+--- |
1434 |
+ src/i18n.cc | 12 +++++++++++- |
1435 |
+ src/runtime/runtime-i18n.cc | 10 ++++++---- |
1436 |
+ 2 files changed, 17 insertions(+), 5 deletions(-) |
1437 |
+ |
1438 |
+diff --git a/v8/src/i18n.cc b/v8/src/i18n.cc |
1439 |
+index d2245ef34a9..7c22871ff5e 100644 |
1440 |
+--- a/v8/src/i18n.cc |
1441 |
++++ b/v8/src/i18n.cc |
1442 |
+@@ -30,8 +30,13 @@ |
1443 |
+ #include "unicode/ucol.h" |
1444 |
+ #include "unicode/ucurr.h" |
1445 |
+ #include "unicode/unum.h" |
1446 |
++#include "unicode/uvernum.h" |
1447 |
+ #include "unicode/uversion.h" |
1448 |
+ |
1449 |
++#if U_ICU_VERSION_MAJOR_NUM >= 59 |
1450 |
++#include "unicode/char16ptr.h" |
1451 |
++#endif |
1452 |
++ |
1453 |
+ namespace v8 { |
1454 |
+ namespace internal { |
1455 |
+ |
1456 |
+@@ -270,8 +275,13 @@ icu::DecimalFormat* CreateICUNumberFormat( |
1457 |
+ } |
1458 |
+ |
1459 |
+ UErrorCode status_digits = U_ZERO_ERROR; |
1460 |
++#if U_ICU_VERSION_MAJOR_NUM >= 59 |
1461 |
+ uint32_t fraction_digits = ucurr_getDefaultFractionDigits( |
1462 |
+- currency.getTerminatedBuffer(), &status_digits); |
1463 |
++ icu::toUCharPtr(currency.getTerminatedBuffer()), &status_digits); |
1464 |
++#else |
1465 |
++ uint32_t fraction_digits = ucurr_getDefaultFractionDigits( |
1466 |
++ currency.getTerminatedBuffer(), &status_digits); |
1467 |
++#endif |
1468 |
+ if (U_SUCCESS(status_digits)) { |
1469 |
+ number_format->setMinimumFractionDigits(fraction_digits); |
1470 |
+ number_format->setMaximumFractionDigits(fraction_digits); |
1471 |
+diff --git a/v8/src/runtime/runtime-i18n.cc b/v8/src/runtime/runtime-i18n.cc |
1472 |
+index 0b453819146..e89175a37db 100644 |
1473 |
+--- a/v8/src/runtime/runtime-i18n.cc |
1474 |
++++ b/v8/src/runtime/runtime-i18n.cc |
1475 |
+@@ -43,6 +43,7 @@ |
1476 |
+ #include "unicode/uloc.h" |
1477 |
+ #include "unicode/unistr.h" |
1478 |
+ #include "unicode/unum.h" |
1479 |
++#include "unicode/ustring.h" |
1480 |
+ #include "unicode/uversion.h" |
1481 |
+ |
1482 |
+ |
1483 |
+@@ -609,10 +610,11 @@ RUNTIME_FUNCTION(Runtime_InternalCompare) { |
1484 |
+ String::FlatContent flat2 = string2->GetFlatContent(); |
1485 |
+ std::unique_ptr<uc16[]> sap1; |
1486 |
+ std::unique_ptr<uc16[]> sap2; |
1487 |
+- const UChar* string_val1 = GetUCharBufferFromFlat(flat1, &sap1, length1); |
1488 |
+- const UChar* string_val2 = GetUCharBufferFromFlat(flat2, &sap2, length2); |
1489 |
+- result = |
1490 |
+- collator->compare(string_val1, length1, string_val2, length2, status); |
1491 |
++ icu::UnicodeString string_val1( |
1492 |
++ FALSE, GetUCharBufferFromFlat(flat1, &sap1, length1), length1); |
1493 |
++ icu::UnicodeString string_val2( |
1494 |
++ FALSE, GetUCharBufferFromFlat(flat2, &sap2, length2), length2); |
1495 |
++ result = collator->compare(string_val1, string_val2, status); |
1496 |
+ } |
1497 |
+ if (U_FAILURE(status)) return isolate->ThrowIllegalOperation(); |
1498 |
+ |
1499 |
|
1500 |
diff --git a/dev-util/electron/files/electron-1.6.11-vendor-libchromiumcontent.patch b/dev-util/electron/files/electron-1.6.11-vendor-libchromiumcontent.patch |
1501 |
deleted file mode 100644 |
1502 |
index d724e41f1fd..00000000000 |
1503 |
--- a/dev-util/electron/files/electron-1.6.11-vendor-libchromiumcontent.patch |
1504 |
+++ /dev/null |
1505 |
@@ -1,86 +0,0 @@ |
1506 |
-From 0a28ad879b544f73f74491ddd58646750335bf1d Mon Sep 17 00:00:00 2001 |
1507 |
-From: Elvis Pranskevichus <elvis@×××××.io> |
1508 |
-Date: Fri, 28 Apr 2017 17:22:38 -0400 |
1509 |
-Subject: [PATCH] Gentoo build fixes |
1510 |
- |
1511 |
---- |
1512 |
- chromiumcontent/BUILD.gn | 8 ++------ |
1513 |
- chromiumcontent/build_libs.py | 2 +- |
1514 |
- script/create-dist | 4 ---- |
1515 |
- script/lib/config.py | 2 +- |
1516 |
- 4 files changed, 4 insertions(+), 12 deletions(-) |
1517 |
- |
1518 |
-diff --git a/chromiumcontent/BUILD.gn b/chromiumcontent/BUILD.gn |
1519 |
-index e4e4166..25be865 100644 |
1520 |
---- a/chromiumcontent/BUILD.gn |
1521 |
-+++ b/chromiumcontent/BUILD.gn |
1522 |
-@@ -343,12 +343,8 @@ if (is_electron_build && !is_component_build) { |
1523 |
- } |
1524 |
- } |
1525 |
- |
1526 |
-- static_library("v8") { |
1527 |
-- complete_static_lib = true |
1528 |
-- sources = [] |
1529 |
-- if (defined(obj_v8)) { |
1530 |
-- sources += obj_v8 |
1531 |
-- } |
1532 |
-+ shared_library("v8") { |
1533 |
-+ deps = [ "//v8:v8", "//v8:v8_libplatform" ] |
1534 |
- } |
1535 |
- |
1536 |
- } else { |
1537 |
-diff --git a/chromiumcontent/build_libs.py b/chromiumcontent/build_libs.py |
1538 |
-index e10f320..716c5f2 100644 |
1539 |
---- a/chromiumcontent/build_libs.py |
1540 |
-+++ b/chromiumcontent/build_libs.py |
1541 |
-@@ -82,7 +82,7 @@ with open(args.out, 'w') as out: |
1542 |
- "third_party/usrsctp", |
1543 |
- "third_party/woff2", |
1544 |
- "third_party/zlib", |
1545 |
-- "tools", |
1546 |
-+ "tools/battor_agent", |
1547 |
- "ui", |
1548 |
- "url", |
1549 |
- ]) |
1550 |
-diff --git a/script/create-dist b/script/create-dist |
1551 |
-index aec75e5..64c7401 100755 |
1552 |
---- a/script/create-dist |
1553 |
-+++ b/script/create-dist |
1554 |
-@@ -45,7 +45,6 @@ COMPONENTS = ['static_library', 'shared_library'] |
1555 |
- BINARIES = { |
1556 |
- 'all': [ |
1557 |
- 'content_shell.pak', |
1558 |
-- 'icudtl.dat', |
1559 |
- 'natives_blob.bin', |
1560 |
- 'snapshot_blob.bin', |
1561 |
- os.path.join('gen', 'blink', 'public', 'resources', 'blink_image_resources_200_percent.pak'), |
1562 |
-@@ -59,7 +58,6 @@ BINARIES = { |
1563 |
- 'libffmpeg.dylib', |
1564 |
- ], |
1565 |
- 'linux': [ |
1566 |
-- 'libffmpeg.so', |
1567 |
- ], |
1568 |
- 'win32': [ |
1569 |
- 'd3dcompiler_47.dll', |
1570 |
-@@ -312,8 +310,6 @@ def main(): |
1571 |
- copy_generated_sources(target_arch, component) |
1572 |
- copy_locales(target_arch, component) |
1573 |
- |
1574 |
-- copy_ffmpeg(target_arch) |
1575 |
-- copy_sources() |
1576 |
- generate_licenses() |
1577 |
- if not args.no_zip: |
1578 |
- create_zip(create_debug_archive) |
1579 |
-diff --git a/script/lib/config.py b/script/lib/config.py |
1580 |
-index 3455161..195b2a1 100644 |
1581 |
---- a/script/lib/config.py |
1582 |
-+++ b/script/lib/config.py |
1583 |
-@@ -4,4 +4,4 @@ import os |
1584 |
- |
1585 |
- |
1586 |
- def get_output_dir(source_root, target_arch, component): |
1587 |
-- return os.path.join(source_root, 'src', 'out-' + target_arch, component) |
1588 |
-+ return os.environ.get('CHROMIUM_BUILD_DIR') |
1589 |
--- |
1590 |
-2.13.3 |
1591 |
- |
1592 |
|
1593 |
diff --git a/dev-util/electron/files/electron-1.6.15-vendor-breakpad.patch b/dev-util/electron/files/electron-1.6.15-vendor-breakpad.patch |
1594 |
new file mode 100644 |
1595 |
index 00000000000..15a60c6f148 |
1596 |
--- /dev/null |
1597 |
+++ b/dev-util/electron/files/electron-1.6.15-vendor-breakpad.patch |
1598 |
@@ -0,0 +1,223 @@ |
1599 |
+From 6f067da77b786787c6a3c3253198b0516da79904 Mon Sep 17 00:00:00 2001 |
1600 |
+From: Elvis Pranskevichus <elvis@×××××.io> |
1601 |
+Date: Mon, 27 Nov 2017 17:26:03 -0500 |
1602 |
+Subject: [PATCH] glibc-2.26 compatibility fix |
1603 |
+ |
1604 |
+--- |
1605 |
+ .../linux/dump_writer_common/ucontext_reader.cc | 30 +++++++++++----------- |
1606 |
+ .../linux/dump_writer_common/ucontext_reader.h | 10 ++++---- |
1607 |
+ src/client/linux/handler/exception_handler.cc | 10 ++++---- |
1608 |
+ src/client/linux/handler/exception_handler.h | 2 +- |
1609 |
+ .../linux/microdump_writer/microdump_writer.cc | 2 +- |
1610 |
+ .../linux/minidump_writer/minidump_writer.cc | 2 +- |
1611 |
+ 6 files changed, 28 insertions(+), 28 deletions(-) |
1612 |
+ |
1613 |
+diff --git a/src/client/linux/dump_writer_common/ucontext_reader.cc b/src/client/linux/dump_writer_common/ucontext_reader.cc |
1614 |
+index c80724dd..93b4d9f8 100644 |
1615 |
+--- a/src/client/linux/dump_writer_common/ucontext_reader.cc |
1616 |
++++ b/src/client/linux/dump_writer_common/ucontext_reader.cc |
1617 |
+@@ -40,15 +40,15 @@ namespace google_breakpad { |
1618 |
+ |
1619 |
+ #if defined(__i386__) |
1620 |
+ |
1621 |
+-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) { |
1622 |
++uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) { |
1623 |
+ return uc->uc_mcontext.gregs[REG_ESP]; |
1624 |
+ } |
1625 |
+ |
1626 |
+-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) { |
1627 |
++uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) { |
1628 |
+ return uc->uc_mcontext.gregs[REG_EIP]; |
1629 |
+ } |
1630 |
+ |
1631 |
+-void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1632 |
++void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc, |
1633 |
+ const struct _libc_fpstate* fp) { |
1634 |
+ const greg_t* regs = uc->uc_mcontext.gregs; |
1635 |
+ |
1636 |
+@@ -88,15 +88,15 @@ void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1637 |
+ |
1638 |
+ #elif defined(__x86_64) |
1639 |
+ |
1640 |
+-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) { |
1641 |
++uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) { |
1642 |
+ return uc->uc_mcontext.gregs[REG_RSP]; |
1643 |
+ } |
1644 |
+ |
1645 |
+-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) { |
1646 |
++uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) { |
1647 |
+ return uc->uc_mcontext.gregs[REG_RIP]; |
1648 |
+ } |
1649 |
+ |
1650 |
+-void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1651 |
++void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc, |
1652 |
+ const struct _libc_fpstate* fpregs) { |
1653 |
+ const greg_t* regs = uc->uc_mcontext.gregs; |
1654 |
+ |
1655 |
+@@ -145,15 +145,15 @@ void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1656 |
+ |
1657 |
+ #elif defined(__ARM_EABI__) |
1658 |
+ |
1659 |
+-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) { |
1660 |
++uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) { |
1661 |
+ return uc->uc_mcontext.arm_sp; |
1662 |
+ } |
1663 |
+ |
1664 |
+-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) { |
1665 |
++uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) { |
1666 |
+ return uc->uc_mcontext.arm_pc; |
1667 |
+ } |
1668 |
+ |
1669 |
+-void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc) { |
1670 |
++void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc) { |
1671 |
+ out->context_flags = MD_CONTEXT_ARM_FULL; |
1672 |
+ |
1673 |
+ out->iregs[0] = uc->uc_mcontext.arm_r0; |
1674 |
+@@ -184,15 +184,15 @@ void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc) { |
1675 |
+ |
1676 |
+ #elif defined(__aarch64__) |
1677 |
+ |
1678 |
+-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) { |
1679 |
++uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) { |
1680 |
+ return uc->uc_mcontext.sp; |
1681 |
+ } |
1682 |
+ |
1683 |
+-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) { |
1684 |
++uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) { |
1685 |
+ return uc->uc_mcontext.pc; |
1686 |
+ } |
1687 |
+ |
1688 |
+-void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1689 |
++void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc, |
1690 |
+ const struct fpsimd_context* fpregs) { |
1691 |
+ out->context_flags = MD_CONTEXT_ARM64_FULL; |
1692 |
+ |
1693 |
+@@ -210,15 +210,15 @@ void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1694 |
+ |
1695 |
+ #elif defined(__mips__) |
1696 |
+ |
1697 |
+-uintptr_t UContextReader::GetStackPointer(const struct ucontext* uc) { |
1698 |
++uintptr_t UContextReader::GetStackPointer(const ucontext_t* uc) { |
1699 |
+ return uc->uc_mcontext.gregs[MD_CONTEXT_MIPS_REG_SP]; |
1700 |
+ } |
1701 |
+ |
1702 |
+-uintptr_t UContextReader::GetInstructionPointer(const struct ucontext* uc) { |
1703 |
++uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) { |
1704 |
+ return uc->uc_mcontext.pc; |
1705 |
+ } |
1706 |
+ |
1707 |
+-void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext *uc) { |
1708 |
++void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc) { |
1709 |
+ #if _MIPS_SIM == _ABI64 |
1710 |
+ out->context_flags = MD_CONTEXT_MIPS64_FULL; |
1711 |
+ #elif _MIPS_SIM == _ABIO32 |
1712 |
+diff --git a/src/client/linux/dump_writer_common/ucontext_reader.h b/src/client/linux/dump_writer_common/ucontext_reader.h |
1713 |
+index b6e77b4b..2369a9ad 100644 |
1714 |
+--- a/src/client/linux/dump_writer_common/ucontext_reader.h |
1715 |
++++ b/src/client/linux/dump_writer_common/ucontext_reader.h |
1716 |
+@@ -41,21 +41,21 @@ namespace google_breakpad { |
1717 |
+ |
1718 |
+ // Wraps platform-dependent implementations of accessors to ucontext structs. |
1719 |
+ struct UContextReader { |
1720 |
+- static uintptr_t GetStackPointer(const struct ucontext* uc); |
1721 |
++ static uintptr_t GetStackPointer(const ucontext_t* uc); |
1722 |
+ |
1723 |
+- static uintptr_t GetInstructionPointer(const struct ucontext* uc); |
1724 |
++ static uintptr_t GetInstructionPointer(const ucontext_t* uc); |
1725 |
+ |
1726 |
+ // Juggle a arch-specific ucontext into a minidump format |
1727 |
+ // out: the minidump structure |
1728 |
+ // info: the collection of register structures. |
1729 |
+ #if defined(__i386__) || defined(__x86_64) |
1730 |
+- static void FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1731 |
++ static void FillCPUContext(RawContextCPU *out, const ucontext_t *uc, |
1732 |
+ const struct _libc_fpstate* fp); |
1733 |
+ #elif defined(__aarch64__) |
1734 |
+- static void FillCPUContext(RawContextCPU *out, const ucontext *uc, |
1735 |
++ static void FillCPUContext(RawContextCPU *out, const ucontext_t *uc, |
1736 |
+ const struct fpsimd_context* fpregs); |
1737 |
+ #else |
1738 |
+- static void FillCPUContext(RawContextCPU *out, const ucontext *uc); |
1739 |
++ static void FillCPUContext(RawContextCPU *out, const ucontext_t *uc); |
1740 |
+ #endif |
1741 |
+ }; |
1742 |
+ |
1743 |
+diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc |
1744 |
+index 148d61f9..9d53c11e 100644 |
1745 |
+--- a/src/client/linux/handler/exception_handler.cc |
1746 |
++++ b/src/client/linux/handler/exception_handler.cc |
1747 |
+@@ -439,9 +439,9 @@ bool ExceptionHandler::HandleSignal(int sig, siginfo_t* info, void* uc) { |
1748 |
+ // Fill in all the holes in the struct to make Valgrind happy. |
1749 |
+ memset(&g_crash_context_, 0, sizeof(g_crash_context_)); |
1750 |
+ memcpy(&g_crash_context_.siginfo, info, sizeof(siginfo_t)); |
1751 |
+- memcpy(&g_crash_context_.context, uc, sizeof(struct ucontext)); |
1752 |
++ memcpy(&g_crash_context_.context, uc, sizeof(ucontext_t)); |
1753 |
+ #if defined(__aarch64__) |
1754 |
+- struct ucontext* uc_ptr = (struct ucontext*)uc; |
1755 |
++ ucontext_t* uc_ptr = (ucontext_t*)uc; |
1756 |
+ struct fpsimd_context* fp_ptr = |
1757 |
+ (struct fpsimd_context*)&uc_ptr->uc_mcontext.__reserved; |
1758 |
+ if (fp_ptr->head.magic == FPSIMD_MAGIC) { |
1759 |
+@@ -450,9 +450,9 @@ bool ExceptionHandler::HandleSignal(int sig, siginfo_t* info, void* uc) { |
1760 |
+ } |
1761 |
+ #elif !defined(__ARM_EABI__) && !defined(__mips__) |
1762 |
+ // FP state is not part of user ABI on ARM Linux. |
1763 |
+- // In case of MIPS Linux FP state is already part of struct ucontext |
1764 |
++ // In case of MIPS Linux FP state is already part of ucontext_t |
1765 |
+ // and 'float_state' is not a member of CrashContext. |
1766 |
+- struct ucontext* uc_ptr = (struct ucontext*)uc; |
1767 |
++ ucontext_t* uc_ptr = (ucontext_t*)uc; |
1768 |
+ if (uc_ptr->uc_mcontext.fpregs) { |
1769 |
+ memcpy(&g_crash_context_.float_state, uc_ptr->uc_mcontext.fpregs, |
1770 |
+ sizeof(g_crash_context_.float_state)); |
1771 |
+@@ -476,7 +476,7 @@ bool ExceptionHandler::SimulateSignalDelivery(int sig) { |
1772 |
+ // ExceptionHandler::HandleSignal(). |
1773 |
+ siginfo.si_code = SI_USER; |
1774 |
+ siginfo.si_pid = getpid(); |
1775 |
+- struct ucontext context; |
1776 |
++ ucontext_t context; |
1777 |
+ getcontext(&context); |
1778 |
+ return HandleSignal(sig, &siginfo, &context); |
1779 |
+ } |
1780 |
+diff --git a/src/client/linux/handler/exception_handler.h b/src/client/linux/handler/exception_handler.h |
1781 |
+index 591c3108..846df772 100644 |
1782 |
+--- a/src/client/linux/handler/exception_handler.h |
1783 |
++++ b/src/client/linux/handler/exception_handler.h |
1784 |
+@@ -191,7 +191,7 @@ class ExceptionHandler { |
1785 |
+ struct CrashContext { |
1786 |
+ siginfo_t siginfo; |
1787 |
+ pid_t tid; // the crashing thread. |
1788 |
+- struct ucontext context; |
1789 |
++ ucontext_t context; |
1790 |
+ #if !defined(__ARM_EABI__) && !defined(__mips__) |
1791 |
+ // #ifdef this out because FP state is not part of user ABI for Linux ARM. |
1792 |
+ // In case of MIPS Linux FP state is already part of struct |
1793 |
+diff --git a/src/client/linux/microdump_writer/microdump_writer.cc b/src/client/linux/microdump_writer/microdump_writer.cc |
1794 |
+index d459d9ec..759f432e 100644 |
1795 |
+--- a/src/client/linux/microdump_writer/microdump_writer.cc |
1796 |
++++ b/src/client/linux/microdump_writer/microdump_writer.cc |
1797 |
+@@ -416,7 +416,7 @@ class MicrodumpWriter { |
1798 |
+ |
1799 |
+ void* Alloc(unsigned bytes) { return dumper_->allocator()->Alloc(bytes); } |
1800 |
+ |
1801 |
+- const struct ucontext* const ucontext_; |
1802 |
++ const ucontext_t* const ucontext_; |
1803 |
+ #if !defined(__ARM_EABI__) && !defined(__mips__) |
1804 |
+ const google_breakpad::fpstate_t* const float_state_; |
1805 |
+ #endif |
1806 |
+diff --git a/src/client/linux/minidump_writer/minidump_writer.cc b/src/client/linux/minidump_writer/minidump_writer.cc |
1807 |
+index f407caa7..407c1e32 100644 |
1808 |
+--- a/src/client/linux/minidump_writer/minidump_writer.cc |
1809 |
++++ b/src/client/linux/minidump_writer/minidump_writer.cc |
1810 |
+@@ -1240,7 +1240,7 @@ class MinidumpWriter { |
1811 |
+ const int fd_; // File descriptor where the minidum should be written. |
1812 |
+ const char* path_; // Path to the file where the minidum should be written. |
1813 |
+ |
1814 |
+- const struct ucontext* const ucontext_; // also from the signal handler |
1815 |
++ const ucontext_t* const ucontext_; // also from the signal handler |
1816 |
+ #if !defined(__ARM_EABI__) && !defined(__mips__) |
1817 |
+ const google_breakpad::fpstate_t* const float_state_; // ditto |
1818 |
+ #endif |
1819 |
+-- |
1820 |
+2.14.3 |
1821 |
+ |
1822 |
|
1823 |
diff --git a/dev-util/electron/files/electron-1.6.11-vendor-brightray.patch b/dev-util/electron/files/electron-1.6.15-vendor-brightray.patch |
1824 |
similarity index 80% |
1825 |
rename from dev-util/electron/files/electron-1.6.11-vendor-brightray.patch |
1826 |
rename to dev-util/electron/files/electron-1.6.15-vendor-brightray.patch |
1827 |
index a1a351195d0..6acf412173e 100644 |
1828 |
--- a/dev-util/electron/files/electron-1.6.11-vendor-brightray.patch |
1829 |
+++ b/dev-util/electron/files/electron-1.6.15-vendor-brightray.patch |
1830 |
@@ -1,15 +1,15 @@ |
1831 |
-From 610ee2681f9532a13f63edf78aab55b1dcb8abf2 Mon Sep 17 00:00:00 2001 |
1832 |
+From 055fb62fc58ef7027b444dd235bc4781effa30d7 Mon Sep 17 00:00:00 2001 |
1833 |
From: Elvis Pranskevichus <elvis@×××××.io> |
1834 |
-Date: Mon, 8 Feb 2016 15:14:58 -0500 |
1835 |
-Subject: [PATCH] brightray build fixes |
1836 |
+Date: Mon, 2 Oct 2017 15:22:51 -0400 |
1837 |
+Subject: [PATCH] Gentoo build fixes |
1838 |
|
1839 |
--- |
1840 |
- brightray.gyp | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- |
1841 |
- brightray.gypi | 14 ++----------- |
1842 |
- 2 files changed, 64 insertions(+), 16 deletions(-) |
1843 |
+ brightray.gyp | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++----- |
1844 |
+ brightray.gypi | 14 ++------- |
1845 |
+ 2 files changed, 88 insertions(+), 19 deletions(-) |
1846 |
|
1847 |
diff --git a/brightray.gyp b/brightray.gyp |
1848 |
-index e60d17a..37e5159 100644 |
1849 |
+index e60d17a..79e0618 100644 |
1850 |
--- a/brightray.gyp |
1851 |
+++ b/brightray.gyp |
1852 |
@@ -1,7 +1,7 @@ |
1853 |
@@ -21,52 +21,59 @@ index e60d17a..37e5159 100644 |
1854 |
}, |
1855 |
'includes': [ |
1856 |
'filenames.gypi', |
1857 |
-@@ -9,6 +9,10 @@ |
1858 |
+@@ -9,6 +9,11 @@ |
1859 |
'targets': [ |
1860 |
{ |
1861 |
'target_name': 'brightray', |
1862 |
+ 'dependencies': [ |
1863 |
+ 'cups', |
1864 |
+ 'gconf', |
1865 |
++ 'icu', |
1866 |
+ ], |
1867 |
'type': 'static_library', |
1868 |
'include_dirs': [ |
1869 |
'.', |
1870 |
-@@ -130,18 +134,30 @@ |
1871 |
+@@ -130,18 +135,33 @@ |
1872 |
}, { |
1873 |
'link_settings': { |
1874 |
'libraries': [ |
1875 |
- # Link with ffmpeg. |
1876 |
- '<(libchromiumcontent_dir)/libffmpeg.so', |
1877 |
# Following libraries are required by libchromiumcontent: |
1878 |
++ '-lFLAC', |
1879 |
'-lasound', |
1880 |
++ '-lavcodec', |
1881 |
++ '-lavformat', |
1882 |
++ '-lavutil', |
1883 |
'-lcap', |
1884 |
- '-lcups', |
1885 |
- '-lrt', |
1886 |
+- '-lrt', |
1887 |
++ '-lcrypto', |
1888 |
'-ldl', |
1889 |
- '-lresolv', |
1890 |
+- '-lresolv', |
1891 |
++ '-lexpat', |
1892 |
'-lfontconfig', |
1893 |
'-lfreetype', |
1894 |
- '-lexpat', |
1895 |
-+ '-lre2', |
1896 |
-+ '-ljpeg', |
1897 |
-+ '-lsnappy', |
1898 |
+- '-lexpat', |
1899 |
+ '-lharfbuzz', |
1900 |
++ '-ljpeg', |
1901 |
++ '-lminizip', |
1902 |
+ '-lpng', |
1903 |
-+ '-lxml2', |
1904 |
-+ '-lxslt', |
1905 |
++ '-lre2', |
1906 |
++ '-lresolv', |
1907 |
++ '-lrt', |
1908 |
++ '-lsnappy', |
1909 |
++ '-lssl', |
1910 |
++ '-lvpx', |
1911 |
+ '-lwebp', |
1912 |
+ '-lwebpdemux', |
1913 |
-+ '-lavcodec', |
1914 |
-+ '-lavformat', |
1915 |
-+ '-lavutil', |
1916 |
-+ '-lvpx', |
1917 |
-+ '-lFLAC', |
1918 |
-+ '-lminizip', |
1919 |
++ '-lxml2', |
1920 |
++ '-lxslt', |
1921 |
++ '-lz', |
1922 |
], |
1923 |
}, |
1924 |
}], |
1925 |
-@@ -390,5 +406,47 @@ |
1926 |
+@@ -390,5 +410,64 @@ |
1927 |
}], # OS=="win" |
1928 |
], |
1929 |
}, |
1930 |
@@ -112,6 +119,23 @@ index e60d17a..37e5159 100644 |
1931 |
+ }], |
1932 |
+ ], |
1933 |
+ }, |
1934 |
++ { |
1935 |
++ 'target_name': 'icu', |
1936 |
++ 'type': 'none', |
1937 |
++ 'conditions': [ |
1938 |
++ ['use_system_icu==1', { |
1939 |
++ 'direct_dependent_settings': { |
1940 |
++ 'link_settings': { |
1941 |
++ 'libraries': [ |
1942 |
++ '-licui18n', |
1943 |
++ '-licuuc', |
1944 |
++ '-licudata', |
1945 |
++ ], |
1946 |
++ }, |
1947 |
++ }, |
1948 |
++ }], |
1949 |
++ ], |
1950 |
++ }, |
1951 |
], |
1952 |
} |
1953 |
diff --git a/brightray.gypi b/brightray.gypi |
1954 |
@@ -159,5 +183,5 @@ index 064ae1a..95d6f14 100644 |
1955 |
], |
1956 |
}], # OS=="linux" |
1957 |
-- |
1958 |
-2.13.3 |
1959 |
+2.14.3 |
1960 |
|
1961 |
|
1962 |
diff --git a/dev-util/electron/files/electron-1.6.15-vendor-libchromiumcontent.patch b/dev-util/electron/files/electron-1.6.15-vendor-libchromiumcontent.patch |
1963 |
new file mode 100644 |
1964 |
index 00000000000..9360646ff68 |
1965 |
--- /dev/null |
1966 |
+++ b/dev-util/electron/files/electron-1.6.15-vendor-libchromiumcontent.patch |
1967 |
@@ -0,0 +1,202 @@ |
1968 |
+From 0352e8df546c58b85e79714f77c616832c8c72ac Mon Sep 17 00:00:00 2001 |
1969 |
+From: Elvis Pranskevichus <elvis@×××××.io> |
1970 |
+Date: Fri, 28 Apr 2017 17:22:38 -0400 |
1971 |
+Subject: [PATCH] Gentoo build fixes |
1972 |
+ |
1973 |
+--- |
1974 |
+ chromiumcontent/BUILD.gn | 9 +++------ |
1975 |
+ chromiumcontent/build_libs.py | 2 +- |
1976 |
+ script/create-dist | 39 ++++++++++++++++++++++++++------------- |
1977 |
+ script/lib/config.py | 2 +- |
1978 |
+ 4 files changed, 31 insertions(+), 21 deletions(-) |
1979 |
+ |
1980 |
+diff --git a/chromiumcontent/BUILD.gn b/chromiumcontent/BUILD.gn |
1981 |
+index e4e4166..f88fab3 100644 |
1982 |
+--- a/chromiumcontent/BUILD.gn |
1983 |
++++ b/chromiumcontent/BUILD.gn |
1984 |
+@@ -343,12 +343,9 @@ if (is_electron_build && !is_component_build) { |
1985 |
+ } |
1986 |
+ } |
1987 |
+ |
1988 |
+- static_library("v8") { |
1989 |
+- complete_static_lib = true |
1990 |
+- sources = [] |
1991 |
+- if (defined(obj_v8)) { |
1992 |
+- sources += obj_v8 |
1993 |
+- } |
1994 |
++ shared_library("v8") { |
1995 |
++ deps = [ "//v8:v8", "//v8:v8_libplatform" ] |
1996 |
++ ldflags = [ "-Wl,-rpath=\$ORIGIN/" ] |
1997 |
+ } |
1998 |
+ |
1999 |
+ } else { |
2000 |
+diff --git a/chromiumcontent/build_libs.py b/chromiumcontent/build_libs.py |
2001 |
+index e10f320..716c5f2 100644 |
2002 |
+--- a/chromiumcontent/build_libs.py |
2003 |
++++ b/chromiumcontent/build_libs.py |
2004 |
+@@ -82,7 +82,7 @@ with open(args.out, 'w') as out: |
2005 |
+ "third_party/usrsctp", |
2006 |
+ "third_party/woff2", |
2007 |
+ "third_party/zlib", |
2008 |
+- "tools", |
2009 |
++ "tools/battor_agent", |
2010 |
+ "ui", |
2011 |
+ "url", |
2012 |
+ ]) |
2013 |
+diff --git a/script/create-dist b/script/create-dist |
2014 |
+index aec75e5..cf2f62c 100755 |
2015 |
+--- a/script/create-dist |
2016 |
++++ b/script/create-dist |
2017 |
+@@ -45,7 +45,6 @@ COMPONENTS = ['static_library', 'shared_library'] |
2018 |
+ BINARIES = { |
2019 |
+ 'all': [ |
2020 |
+ 'content_shell.pak', |
2021 |
+- 'icudtl.dat', |
2022 |
+ 'natives_blob.bin', |
2023 |
+ 'snapshot_blob.bin', |
2024 |
+ os.path.join('gen', 'blink', 'public', 'resources', 'blink_image_resources_200_percent.pak'), |
2025 |
+@@ -59,7 +58,6 @@ BINARIES = { |
2026 |
+ 'libffmpeg.dylib', |
2027 |
+ ], |
2028 |
+ 'linux': [ |
2029 |
+- 'libffmpeg.so', |
2030 |
+ ], |
2031 |
+ 'win32': [ |
2032 |
+ 'd3dcompiler_47.dll', |
2033 |
+@@ -308,12 +306,11 @@ def main(): |
2034 |
+ |
2035 |
+ for component in COMPONENTS: |
2036 |
+ if args.component == 'all' or args.component == component: |
2037 |
+- copy_binaries(target_arch, component, create_debug_archive) |
2038 |
++ copy_binaries(target_arch, component, create_debug_archive, |
2039 |
++ args.system_icu) |
2040 |
+ copy_generated_sources(target_arch, component) |
2041 |
+ copy_locales(target_arch, component) |
2042 |
+ |
2043 |
+- copy_ffmpeg(target_arch) |
2044 |
+- copy_sources() |
2045 |
+ generate_licenses() |
2046 |
+ if not args.no_zip: |
2047 |
+ create_zip(create_debug_archive) |
2048 |
+@@ -331,6 +328,8 @@ def parse_args(): |
2049 |
+ help='static_library or shared_library or all') |
2050 |
+ parser.add_argument('--no_zip', action='store_true', |
2051 |
+ help='Do not create zip distribution') |
2052 |
++ parser.add_argument('--system-icu', action='store_true', dest='system_icu', |
2053 |
++ help='Use system icu.') |
2054 |
+ return parser.parse_args() |
2055 |
+ |
2056 |
+ |
2057 |
+@@ -355,15 +354,17 @@ def check_create_debug_archive(target_arch): |
2058 |
+ def copy_with_blacklist(target_arch, src, dest): |
2059 |
+ if os.path.basename(src) in ARCH_BLACKLIST[target_arch]: |
2060 |
+ return |
2061 |
+- shutil.copy2(src, dest) |
2062 |
++ link_or_copy(src, dest) |
2063 |
+ |
2064 |
+ |
2065 |
+-def copy_binaries(target_arch, component, create_debug_archive): |
2066 |
++def copy_binaries(target_arch, component, create_debug_archive, system_icu): |
2067 |
+ output_dir = get_output_dir(SOURCE_ROOT, target_arch, component) |
2068 |
+ target_dir = os.path.join(MAIN_DIR, component) |
2069 |
+ mkdir_p(target_dir) |
2070 |
+ |
2071 |
+ binaries = BINARIES['all'] + BINARIES[TARGET_PLATFORM] |
2072 |
++ if not system_icu: |
2073 |
++ binaries.append('icudtl.dat') |
2074 |
+ if component == 'shared_library': |
2075 |
+ binaries += BINARIES_SHARED_LIBRARY[TARGET_PLATFORM] |
2076 |
+ for binary in binaries: |
2077 |
+@@ -371,7 +372,7 @@ def copy_binaries(target_arch, component, create_debug_archive): |
2078 |
+ |
2079 |
+ # Copy all static libraries from chromiumcontent |
2080 |
+ for library in glob.glob(os.path.join(output_dir, 'obj', 'chromiumcontent', '*.' + STATIC_LIBRARY_SUFFIX)): |
2081 |
+- shutil.copy2(library, target_dir) |
2082 |
++ link_or_copy(library, target_dir) |
2083 |
+ |
2084 |
+ if component == 'shared_library': |
2085 |
+ match = '*.{0}'.format(SHARED_LIBRARY_SUFFIX) |
2086 |
+@@ -396,7 +397,7 @@ def copy_binaries(target_arch, component, create_debug_archive): |
2087 |
+ for root, _, filenames in os.walk(output_dir): |
2088 |
+ for pdb in filenames: |
2089 |
+ if pdb.endswith('.pdb'): |
2090 |
+- shutil.copy2(os.path.join(root, pdb), target_dir) |
2091 |
++ link_or_copy(os.path.join(root, pdb), target_dir) |
2092 |
+ |
2093 |
+ if TARGET_PLATFORM == 'linux': |
2094 |
+ if component == 'shared_library': |
2095 |
+@@ -433,7 +434,7 @@ def copy_binaries(target_arch, component, create_debug_archive): |
2096 |
+ |
2097 |
+ ffmpeg_output_dir = get_output_dir(SOURCE_ROOT, target_arch, 'ffmpeg') |
2098 |
+ for binary in binaries: |
2099 |
+- shutil.copy2(os.path.join(ffmpeg_output_dir, binary), target_dir) |
2100 |
++ link_or_copy(os.path.join(ffmpeg_output_dir, binary), target_dir) |
2101 |
+ |
2102 |
+ |
2103 |
+ def copy_generated_sources(target_arch, component): |
2104 |
+@@ -452,7 +453,7 @@ def copy_locales(target_arch, component): |
2105 |
+ for src_file in glob.glob(os.path.join(src_dir, 'content_strings_*.pak')): |
2106 |
+ filename = os.path.basename(src_file) |
2107 |
+ new_name = re.sub('content_strings_', '', filename) |
2108 |
+- shutil.copy2(src_file, os.path.join(target_dir, new_name)) |
2109 |
++ link_or_copy(src_file, os.path.join(target_dir, new_name)) |
2110 |
+ |
2111 |
+ def copy_sources(): |
2112 |
+ for include_path in INCLUDE_DIRS: |
2113 |
+@@ -477,7 +478,7 @@ def copy_ffmpeg(target_arch): |
2114 |
+ |
2115 |
+ target_dir = os.path.join(MAIN_DIR, 'ffmpeg') |
2116 |
+ mkdir_p(target_dir) |
2117 |
+- shutil.copy2(os.path.join(output_dir, binary), target_dir) |
2118 |
++ link_or_copy(os.path.join(output_dir, binary), target_dir) |
2119 |
+ |
2120 |
+ |
2121 |
+ |
2122 |
+@@ -494,7 +495,7 @@ def copy_source_file(absolute_path, relative_to, destination): |
2123 |
+ relative_path = os.path.relpath(absolute_path, start=relative_to) |
2124 |
+ final_path = os.path.join(destination, relative_path) |
2125 |
+ mkdir_p(os.path.dirname(final_path)) |
2126 |
+- shutil.copy2(absolute_path, final_path) |
2127 |
++ link_or_copy(absolute_path, final_path) |
2128 |
+ |
2129 |
+ |
2130 |
+ def copy_dir(relative_path, relative_to, destination): |
2131 |
+@@ -531,6 +532,7 @@ def link_binary_to_debug_file(objcopy, binfile, symfile, dirname): |
2132 |
+ def run_strip(target_arch, filename, create_debug_archive): |
2133 |
+ # Static libraries are not stripped because it would remove |
2134 |
+ # all the symbols in it. |
2135 |
++ return |
2136 |
+ if filename.endswith('.a'): |
2137 |
+ return |
2138 |
+ |
2139 |
+@@ -620,6 +622,17 @@ def rm_rf(path): |
2140 |
+ raise |
2141 |
+ |
2142 |
+ |
2143 |
++def link_or_copy(src, dst): |
2144 |
++ if os.path.isfile(src): |
2145 |
++ if os.path.isdir(dst): |
2146 |
++ dst = os.path.join(dst, os.path.basename(src)) |
2147 |
++ try: |
2148 |
++ os.link(src, dst) |
2149 |
++ except OSError: |
2150 |
++ shutil.copy2(src, dst) |
2151 |
++ else: |
2152 |
++ shutil.copy2(src, dst) |
2153 |
++ |
2154 |
+ def safe_unlink(path): |
2155 |
+ try: |
2156 |
+ os.unlink(path) |
2157 |
+diff --git a/script/lib/config.py b/script/lib/config.py |
2158 |
+index 3455161..195b2a1 100644 |
2159 |
+--- a/script/lib/config.py |
2160 |
++++ b/script/lib/config.py |
2161 |
+@@ -4,4 +4,4 @@ import os |
2162 |
+ |
2163 |
+ |
2164 |
+ def get_output_dir(source_root, target_arch, component): |
2165 |
+- return os.path.join(source_root, 'src', 'out-' + target_arch, component) |
2166 |
++ return os.environ.get('CHROMIUM_BUILD_DIR') |
2167 |
+-- |
2168 |
+2.13.6 |
2169 |
+ |
2170 |
|
2171 |
diff --git a/dev-util/electron/files/electron-1.6.11-vendor-node.patch b/dev-util/electron/files/electron-1.6.15-vendor-node.patch |
2172 |
similarity index 63% |
2173 |
rename from dev-util/electron/files/electron-1.6.11-vendor-node.patch |
2174 |
rename to dev-util/electron/files/electron-1.6.15-vendor-node.patch |
2175 |
index 2f931771f91..43e7c098f3b 100644 |
2176 |
--- a/dev-util/electron/files/electron-1.6.11-vendor-node.patch |
2177 |
+++ b/dev-util/electron/files/electron-1.6.15-vendor-node.patch |
2178 |
@@ -1,30 +1,30 @@ |
2179 |
-From fc6ba3a74ffa88b22435531d6522d934a52187e5 Mon Sep 17 00:00:00 2001 |
2180 |
+From 672445004bafb94ea14cbb89c12c205c731eb288 Mon Sep 17 00:00:00 2001 |
2181 |
From: Elvis Pranskevichus <elvis@×××××.io> |
2182 |
Date: Wed, 10 Feb 2016 14:45:13 -0500 |
2183 |
Subject: [PATCH] Build fixes |
2184 |
|
2185 |
--- |
2186 |
- lib/internal/bootstrap_node.js | 2 ++ |
2187 |
- node.gyp | 9 +++++++++ |
2188 |
- src/node_main.cc | 2 ++ |
2189 |
- 3 files changed, 13 insertions(+) |
2190 |
+ lib/internal/bootstrap_node.js | 2 ++ |
2191 |
+ node.gyp | 14 +++++++++----- |
2192 |
+ src/node_main.cc | 4 ++++ |
2193 |
+ 3 files changed, 15 insertions(+), 5 deletions(-) |
2194 |
|
2195 |
diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js |
2196 |
-index 085ea00fd0..cb49fc87a7 100644 |
2197 |
+index aee7261f23..b921843643 100644 |
2198 |
--- a/lib/internal/bootstrap_node.js |
2199 |
+++ b/lib/internal/bootstrap_node.js |
2200 |
-@@ -40,7 +40,9 @@ |
2201 |
+@@ -39,7 +39,9 @@ |
2202 |
setupGlobalConsole(); |
2203 |
} |
2204 |
|
2205 |
-+ if (!process.env.ELECTRON_NODE_DISABLE_ASAR_SUPPORT) { |
2206 |
++ if (!process.env._ELECTRON_BUILD_NO_ASAR) { |
2207 |
setupAsarSupport(); |
2208 |
+ } |
2209 |
|
2210 |
const _process = NativeModule.require('internal/process'); |
2211 |
|
2212 |
diff --git a/node.gyp b/node.gyp |
2213 |
-index 95f24933fc..1434904324 100644 |
2214 |
+index c0bc2d7d4c..e5920f6a33 100644 |
2215 |
--- a/node.gyp |
2216 |
+++ b/node.gyp |
2217 |
@@ -17,6 +17,7 @@ |
2218 |
@@ -35,7 +35,7 @@ index 95f24933fc..1434904324 100644 |
2219 |
'node_v8_options%': '', |
2220 |
'node_enable_v8_vtunejit%': 'false', |
2221 |
'node_core_target_name%': 'node', |
2222 |
-@@ -133,6 +134,7 @@ |
2223 |
+@@ -146,6 +147,7 @@ |
2224 |
], |
2225 |
|
2226 |
'include_dirs': [ |
2227 |
@@ -43,7 +43,7 @@ index 95f24933fc..1434904324 100644 |
2228 |
'src', |
2229 |
'tools/msvs/genfiles', |
2230 |
'deps/uv/src/ares', |
2231 |
-@@ -238,6 +240,13 @@ |
2232 |
+@@ -261,6 +263,13 @@ |
2233 |
'V8_DEPRECATION_WARNINGS=1', |
2234 |
], |
2235 |
|
2236 |
@@ -57,11 +57,23 @@ index 95f24933fc..1434904324 100644 |
2237 |
|
2238 |
'conditions': [ |
2239 |
[ 'node_shared=="false"', { |
2240 |
+@@ -950,11 +959,6 @@ |
2241 |
+ }] |
2242 |
+ ] |
2243 |
+ }], |
2244 |
+- [ 'node_use_v8_platform=="true"', { |
2245 |
+- 'dependencies': [ |
2246 |
+- 'deps/v8/src/v8.gyp:v8_libplatform', |
2247 |
+- ], |
2248 |
+- }], |
2249 |
+ [ 'node_use_bundled_v8=="true"', { |
2250 |
+ 'dependencies': [ |
2251 |
+ 'deps/v8/src/v8.gyp:v8', |
2252 |
diff --git a/src/node_main.cc b/src/node_main.cc |
2253 |
-index 16bda81ae6..fd559ef1c3 100644 |
2254 |
+index 16bda81ae6..2eb1d08369 100644 |
2255 |
--- a/src/node_main.cc |
2256 |
+++ b/src/node_main.cc |
2257 |
-@@ -50,11 +50,13 @@ int wmain(int argc, wchar_t *wargv[]) { |
2258 |
+@@ -50,11 +50,15 @@ int wmain(int argc, wchar_t *wargv[]) { |
2259 |
} |
2260 |
#else |
2261 |
// UNIX |
2262 |
@@ -71,10 +83,12 @@ index 16bda81ae6..fd559ef1c3 100644 |
2263 |
// calls elsewhere in the program (e.g., any logging from V8.) |
2264 |
setvbuf(stdout, nullptr, _IONBF, 0); |
2265 |
setvbuf(stderr, nullptr, _IONBF, 0); |
2266 |
-+ putenv("ELECTRON_NODE_DISABLE_ASAR_SUPPORT=1"); |
2267 |
++#ifdef ELECTRON_NODE_BUILD_NO_ASAR |
2268 |
++ setenv("_ELECTRON_BUILD_NO_ASAR", "1", 1); |
2269 |
++#endif |
2270 |
return node::Start(argc, argv); |
2271 |
} |
2272 |
#endif |
2273 |
-- |
2274 |
-2.13.3 |
2275 |
+2.14.3 |
2276 |
|
2277 |
|
2278 |
diff --git a/dev-util/electron/files/electron-1.6.11.patch b/dev-util/electron/files/electron-1.6.15.patch |
2279 |
similarity index 83% |
2280 |
rename from dev-util/electron/files/electron-1.6.11.patch |
2281 |
rename to dev-util/electron/files/electron-1.6.15.patch |
2282 |
index b40d471348a..9d74753fc6d 100644 |
2283 |
--- a/dev-util/electron/files/electron-1.6.11.patch |
2284 |
+++ b/dev-util/electron/files/electron-1.6.15.patch |
2285 |
@@ -1,25 +1,26 @@ |
2286 |
-From b756fa976480791c76e9338a16ee2b0a29265b93 Mon Sep 17 00:00:00 2001 |
2287 |
+From 8aa9ca32e88f7b6e66ded532d3110f4e84e99a9b Mon Sep 17 00:00:00 2001 |
2288 |
From: Elvis Pranskevichus <elvis@×××××.io> |
2289 |
Date: Mon, 8 Feb 2016 15:16:40 -0500 |
2290 |
Subject: [PATCH] electron build fixes |
2291 |
|
2292 |
--- |
2293 |
- common.gypi | 43 ++++++++++++++++++++++----- |
2294 |
- electron.gyp | 74 +++++++++++++++++++++++++++++++++++---------- |
2295 |
- toolchain.gypi | 76 +++++++++++++++++++---------------------------- |
2296 |
- tools/ar-flags.py | 15 ++++++++++ |
2297 |
- tools/atom_source_root.py | 5 ++++ |
2298 |
- tools/browserify.py | 24 +++++++++++++++ |
2299 |
- tools/get-endianness.py | 4 +++ |
2300 |
- tools/js2asar.py | 13 ++++---- |
2301 |
- 8 files changed, 179 insertions(+), 75 deletions(-) |
2302 |
+ common.gypi | 70 ++++++++++++++++++++++++++++++++++----- |
2303 |
+ electron.gyp | 70 +++++++++++++++++++++++++++++++-------- |
2304 |
+ toolchain.gypi | 76 +++++++++++++++++-------------------------- |
2305 |
+ tools/ar-flags.py | 15 +++++++++ |
2306 |
+ tools/atom_source_root.py | 5 +++ |
2307 |
+ tools/browserify.py | 24 ++++++++++++++ |
2308 |
+ tools/get-endianness.py | 4 +++ |
2309 |
+ tools/js2asar.py | 13 ++++---- |
2310 |
+ tools/list-browserify-deps.py | 3 +- |
2311 |
+ 9 files changed, 204 insertions(+), 76 deletions(-) |
2312 |
create mode 100644 tools/ar-flags.py |
2313 |
create mode 100644 tools/atom_source_root.py |
2314 |
create mode 100644 tools/browserify.py |
2315 |
create mode 100644 tools/get-endianness.py |
2316 |
|
2317 |
diff --git a/common.gypi b/common.gypi |
2318 |
-index 7c1bf366a..c441ae04b 100644 |
2319 |
+index 7c1bf366a..7892926eb 100644 |
2320 |
--- a/common.gypi |
2321 |
+++ b/common.gypi |
2322 |
@@ -2,6 +2,7 @@ |
2323 |
@@ -30,8 +31,24 @@ index 7c1bf366a..c441ae04b 100644 |
2324 |
], |
2325 |
'variables': { |
2326 |
# Tell crashpad to build as external project. |
2327 |
-@@ -16,26 +17,23 @@ |
2328 |
+@@ -11,31 +12,44 @@ |
2329 |
+ 'chromeos': 0, |
2330 |
+ # Reflects node's config.gypi. |
2331 |
+ 'component%': 'static_library', |
2332 |
+- 'python': 'python', |
2333 |
++ 'python%': 'python', |
2334 |
+ 'openssl_fips': '', |
2335 |
'openssl_no_asm': 1, |
2336 |
++ |
2337 |
++ 'host_arch': '<!(python <(DEPTH)/chromium/v8/gypfiles/detect_v8_host_arch.py)', |
2338 |
++ |
2339 |
++ # ICU configuration for Node. |
2340 |
++ # Note: the use of icu-system.gyp does not necessarily |
2341 |
++ # indicate that the system ICU will be used, it merely |
2342 |
++ # disables the use of the version bundled with Node. |
2343 |
++ 'icu_gyp_path': 'tools/icu/icu-system.gyp', |
2344 |
++ 'icu_small': 'false', |
2345 |
++ |
2346 |
'use_openssl_def': 0, |
2347 |
'OPENSSL_PRODUCT': 'libopenssl.a', |
2348 |
- 'node_release_urlbase': 'https://atom.io/download/atom-shell', |
2349 |
@@ -43,12 +60,17 @@ index 7c1bf366a..c441ae04b 100644 |
2350 |
'node_install_npm': 'false', |
2351 |
'node_prefix': '', |
2352 |
'node_shared': 'true', |
2353 |
-- 'node_shared_cares': 'false', |
2354 |
+ 'node_shared_cares': 'false', |
2355 |
- 'node_shared_http_parser': 'false', |
2356 |
- 'node_shared_libuv': 'false', |
2357 |
- 'node_shared_openssl': 'false', |
2358 |
'node_shared_v8': 'true', |
2359 |
- 'node_shared_zlib': 'false', |
2360 |
++ 'node_shared_http_parser': 'true', |
2361 |
++ # There are ABI-incompatible modifications to libuv |
2362 |
++ 'node_shared_libuv': 'false', |
2363 |
++ 'node_shared_openssl': 'true', |
2364 |
++ 'node_shared_zlib': 'true', |
2365 |
'node_tag': '', |
2366 |
'node_use_dtrace': 'false', |
2367 |
'node_use_etw': 'false', |
2368 |
@@ -62,10 +84,11 @@ index 7c1bf366a..c441ae04b 100644 |
2369 |
'node_enable_d8': 'false', |
2370 |
'uv_library': 'static_library', |
2371 |
'uv_parent_path': 'vendor/node/deps/uv', |
2372 |
-@@ -44,10 +42,16 @@ |
2373 |
+@@ -44,10 +58,17 @@ |
2374 |
'v8_postmortem_support': 'false', |
2375 |
'v8_enable_i18n_support': 'false', |
2376 |
'v8_inspector': 'false', |
2377 |
++ 'v8_host_byteorder': '<!(python <(DEPTH)/tools/get-endianness.py)', |
2378 |
+ 'v8_use_snapshot': 'true', |
2379 |
+ 'v8_use_external_startup_data': 1, |
2380 |
}, |
2381 |
@@ -79,7 +102,7 @@ index 7c1bf366a..c441ae04b 100644 |
2382 |
['_target_name in ["libuv", "http_parser", "openssl", "openssl-cli", "cares", "node", "zlib"]', { |
2383 |
'msvs_disabled_warnings': [ |
2384 |
4003, # not enough actual parameters for macro 'V' |
2385 |
-@@ -128,6 +132,14 @@ |
2386 |
+@@ -128,6 +149,20 @@ |
2387 |
], |
2388 |
}], |
2389 |
['_target_name=="node"', { |
2390 |
@@ -91,10 +114,27 @@ index 7c1bf366a..c441ae04b 100644 |
2391 |
+ 'cflags_cc!': [ |
2392 |
+ '-fvisibility-inlines-hidden', |
2393 |
+ ], |
2394 |
++ 'libraries': [ |
2395 |
++ '-lz', |
2396 |
++ '-lhttp_parser', |
2397 |
++ '-lcrypto', |
2398 |
++ '-lssl', |
2399 |
++ ], |
2400 |
'include_dirs': [ |
2401 |
'<(libchromiumcontent_src_dir)', |
2402 |
'<(libchromiumcontent_src_dir)/third_party/icu/source/common', |
2403 |
-@@ -228,6 +240,21 @@ |
2404 |
+@@ -167,7 +202,9 @@ |
2405 |
+ '-Wl,--no-whole-archive', |
2406 |
+ ], |
2407 |
+ }, { |
2408 |
+- 'libraries': [ '<@(libchromiumcontent_v8_libraries)' ], |
2409 |
++ 'libraries': [ |
2410 |
++ '<@(libchromiumcontent_v8_libraries)', |
2411 |
++ ], |
2412 |
+ }], |
2413 |
+ ], |
2414 |
+ }], |
2415 |
+@@ -228,6 +265,21 @@ |
2416 |
}], # OS=="win" |
2417 |
], |
2418 |
}], |
2419 |
@@ -117,7 +157,7 @@ index 7c1bf366a..c441ae04b 100644 |
2420 |
'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail. |
2421 |
'msvs_disabled_warnings': [ |
2422 |
diff --git a/electron.gyp b/electron.gyp |
2423 |
-index b415525b1..4d0185561 100644 |
2424 |
+index f82de1e1f..2c398fe75 100644 |
2425 |
--- a/electron.gyp |
2426 |
+++ b/electron.gyp |
2427 |
@@ -191,7 +191,7 @@ |
2428 |
@@ -129,15 +169,7 @@ index b415525b1..4d0185561 100644 |
2429 |
], |
2430 |
}], |
2431 |
], |
2432 |
-@@ -200,7 +200,6 @@ |
2433 |
- 'files': [ |
2434 |
- '<@(copied_libraries)', |
2435 |
- '<(libchromiumcontent_dir)/locales', |
2436 |
-- '<(libchromiumcontent_dir)/icudtl.dat', |
2437 |
- '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak', |
2438 |
- '<(libchromiumcontent_dir)/content_resources_200_percent.pak', |
2439 |
- '<(libchromiumcontent_dir)/content_shell.pak', |
2440 |
-@@ -245,15 +244,17 @@ |
2441 |
+@@ -244,8 +244,8 @@ |
2442 |
'<@(lib_sources)', |
2443 |
], |
2444 |
'include_dirs': [ |
2445 |
@@ -146,10 +178,8 @@ index b415525b1..4d0185561 100644 |
2446 |
+ '.', |
2447 |
'vendor/brightray', |
2448 |
'vendor/native_mate', |
2449 |
-+ # libicu headers shim. |
2450 |
-+ '<(SHARED_INTERMEDIATE_DIR)/shim_headers/icui18n_shim', |
2451 |
-+ '<(SHARED_INTERMEDIATE_DIR)/shim_headers/icuuc_shim', |
2452 |
- # Include atom_natives.h. |
2453 |
+ # libicu headers shim. |
2454 |
+@@ -255,7 +255,6 @@ |
2455 |
'<(SHARED_INTERMEDIATE_DIR)', |
2456 |
# Include directories for uv and node. |
2457 |
'vendor/node/src', |
2458 |
@@ -157,7 +187,7 @@ index b415525b1..4d0185561 100644 |
2459 |
'vendor/node/deps/uv/include', |
2460 |
# The `node.h` is using `#include"v8.h"`. |
2461 |
'<(libchromiumcontent_src_dir)/v8/include', |
2462 |
-@@ -342,11 +343,12 @@ |
2463 |
+@@ -344,11 +343,12 @@ |
2464 |
'<@(lib_sources_nss)', |
2465 |
], |
2466 |
'link_settings': { |
2467 |
@@ -171,7 +201,7 @@ index b415525b1..4d0185561 100644 |
2468 |
# Make native module dynamic loading work. |
2469 |
'-rdynamic', |
2470 |
], |
2471 |
-@@ -368,6 +370,9 @@ |
2472 |
+@@ -370,6 +370,9 @@ |
2473 |
{ |
2474 |
'target_name': 'js2asar', |
2475 |
'type': 'none', |
2476 |
@@ -181,7 +211,7 @@ index b415525b1..4d0185561 100644 |
2477 |
'actions': [ |
2478 |
{ |
2479 |
'action_name': 'js2asar', |
2480 |
-@@ -389,6 +394,7 @@ |
2481 |
+@@ -391,6 +394,7 @@ |
2482 |
'action': [ |
2483 |
'python', |
2484 |
'tools/js2asar.py', |
2485 |
@@ -189,7 +219,7 @@ index b415525b1..4d0185561 100644 |
2486 |
'<@(_outputs)', |
2487 |
'lib', |
2488 |
'<@(_inputs)', |
2489 |
-@@ -399,6 +405,9 @@ |
2490 |
+@@ -401,6 +405,9 @@ |
2491 |
{ |
2492 |
'target_name': 'app2asar', |
2493 |
'type': 'none', |
2494 |
@@ -199,7 +229,7 @@ index b415525b1..4d0185561 100644 |
2495 |
'actions': [ |
2496 |
{ |
2497 |
'action_name': 'app2asar', |
2498 |
-@@ -420,6 +429,7 @@ |
2499 |
+@@ -422,6 +429,7 @@ |
2500 |
'action': [ |
2501 |
'python', |
2502 |
'tools/js2asar.py', |
2503 |
@@ -207,7 +237,7 @@ index b415525b1..4d0185561 100644 |
2504 |
'<@(_outputs)', |
2505 |
'default_app', |
2506 |
'<@(_inputs)', |
2507 |
-@@ -445,6 +455,7 @@ |
2508 |
+@@ -447,6 +455,7 @@ |
2509 |
'dependencies': [ |
2510 |
# depend on this target to ensure the '<(js2c_input_dir)' is created |
2511 |
'atom_js2c_copy', |
2512 |
@@ -215,7 +245,7 @@ index b415525b1..4d0185561 100644 |
2513 |
], |
2514 |
'variables': { |
2515 |
'sandbox_args': [ |
2516 |
-@@ -474,11 +485,9 @@ |
2517 |
+@@ -476,11 +485,9 @@ |
2518 |
'<(js2c_input_dir)/preload_bundle.js', |
2519 |
], |
2520 |
'action': [ |
2521 |
@@ -230,7 +260,7 @@ index b415525b1..4d0185561 100644 |
2522 |
'<@(sandbox_args)', |
2523 |
'-o', |
2524 |
'<@(_outputs)', |
2525 |
-@@ -493,12 +502,11 @@ |
2526 |
+@@ -495,12 +502,11 @@ |
2527 |
'<(js2c_input_dir)/isolated_bundle.js', |
2528 |
], |
2529 |
'action': [ |
2530 |
@@ -247,7 +277,7 @@ index b415525b1..4d0185561 100644 |
2531 |
'-o', |
2532 |
'<@(_outputs)', |
2533 |
], |
2534 |
-@@ -533,6 +541,42 @@ |
2535 |
+@@ -535,6 +541,42 @@ |
2536 |
} |
2537 |
], |
2538 |
}, # target atom_js2c |
2539 |
@@ -507,6 +537,20 @@ index adad1751e..ca7686893 100755 |
2540 |
|
2541 |
|
2542 |
def safe_mkdir(path): |
2543 |
+diff --git a/tools/list-browserify-deps.py b/tools/list-browserify-deps.py |
2544 |
+index c25007d2a..bbd921bc6 100755 |
2545 |
+--- a/tools/list-browserify-deps.py |
2546 |
++++ b/tools/list-browserify-deps.py |
2547 |
+@@ -9,7 +9,8 @@ BROWSERIFY = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'browserify') |
2548 |
+ if sys.platform == 'win32': |
2549 |
+ BROWSERIFY += '.cmd' |
2550 |
+ |
2551 |
+-deps = subprocess.check_output([BROWSERIFY, '--list'] + sys.argv[1:]) |
2552 |
++deps = subprocess.check_output([BROWSERIFY, '--list'] + sys.argv[1:], |
2553 |
++ universal_newlines=True) |
2554 |
+ for dep in deps.split('\n'): |
2555 |
+ if dep: |
2556 |
+ dep = os.path.relpath(dep, SOURCE_ROOT) |
2557 |
-- |
2558 |
-2.14.1 |
2559 |
+2.14.3 |
2560 |
|
2561 |
|
2562 |
diff --git a/dev-util/electron/files/electron-system-icu-r0.patch b/dev-util/electron/files/electron-system-icu-r0.patch |
2563 |
new file mode 100644 |
2564 |
index 00000000000..859e351c906 |
2565 |
--- /dev/null |
2566 |
+++ b/dev-util/electron/files/electron-system-icu-r0.patch |
2567 |
@@ -0,0 +1,34 @@ |
2568 |
+From 065c936e74d629b51f5258fb3b58899bd5857b53 Mon Sep 17 00:00:00 2001 |
2569 |
+From: Elvis Pranskevichus <elvis@×××××.io> |
2570 |
+Date: Sun, 29 Oct 2017 16:38:40 -0400 |
2571 |
+Subject: [PATCH] system-icu support |
2572 |
+ |
2573 |
+--- |
2574 |
+ electron.gyp | 4 +++- |
2575 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
2576 |
+ |
2577 |
+diff --git a/electron.gyp b/electron.gyp |
2578 |
+index 43f3ffb51..2c398fe75 100644 |
2579 |
+--- a/electron.gyp |
2580 |
++++ b/electron.gyp |
2581 |
+@@ -200,7 +200,6 @@ |
2582 |
+ 'files': [ |
2583 |
+ '<@(copied_libraries)', |
2584 |
+ '<(libchromiumcontent_dir)/locales', |
2585 |
+- '<(libchromiumcontent_dir)/icudtl.dat', |
2586 |
+ '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak', |
2587 |
+ '<(libchromiumcontent_dir)/content_resources_200_percent.pak', |
2588 |
+ '<(libchromiumcontent_dir)/content_shell.pak', |
2589 |
+@@ -249,6 +248,9 @@ |
2590 |
+ '.', |
2591 |
+ 'vendor/brightray', |
2592 |
+ 'vendor/native_mate', |
2593 |
++ # libicu headers shim. |
2594 |
++ '<(SHARED_INTERMEDIATE_DIR)/shim_headers/icui18n_shim', |
2595 |
++ '<(SHARED_INTERMEDIATE_DIR)/shim_headers/icuuc_shim', |
2596 |
+ # Include atom_natives.h. |
2597 |
+ '<(SHARED_INTERMEDIATE_DIR)', |
2598 |
+ # Include directories for uv and node. |
2599 |
+-- |
2600 |
+2.14.3 |
2601 |
+ |