Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: mail-client/thunderbird/
Date: Sun, 09 Jan 2022 16:20:00
Message-Id: 1641745183.7345fa4a898306fd2df62adf4f9049225058e0f7.juippis@gentoo
1 commit: 7345fa4a898306fd2df62adf4f9049225058e0f7
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 9 16:19:02 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 9 16:19:43 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=7345fa4a
7
8 mail-client/thunderbird: add 91.4.1
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 mail-client/thunderbird/Manifest | 64 ++
13 mail-client/thunderbird/thunderbird-91.4.1.ebuild | 1130 +++++++++++++++++++++
14 2 files changed, 1194 insertions(+)
15
16 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
17 index 1632b291..a525c88d 100644
18 --- a/mail-client/thunderbird/Manifest
19 +++ b/mail-client/thunderbird/Manifest
20 @@ -63,3 +63,67 @@ DIST thunderbird-91.4.0-vi.xpi 706359 BLAKE2B e94cab57c25110b0d7ad38d98bfe24d4d4
21 DIST thunderbird-91.4.0-zh-CN.xpi 714608 BLAKE2B d1932a4b0cd1698291d1838973d8ea677a2084359fa3ebfc6f6fa4100d61e4f4ab747cb5cdf55b59d0d4a8e5015240bc3b2044dad35ab67231fbcc117afd9495 SHA512 d91f7d7ac2cd9ef3f57d446354c15a9a828167bcca4c574aa910b80bb2c1d4ad24b5f38fc5629bd43412bf8e6bc0ab704272ba6221d0ab55a4ee11880d1be06c
22 DIST thunderbird-91.4.0-zh-TW.xpi 715957 BLAKE2B 0bfc3b3cbc415e429feaee7564b8b948db81a717eef8c738648bab7ad9ed04d996c284fbd1ef40013c39955d49502a1e23b6764e0866ae60d082ccefd0633a6e SHA512 e146d14ecfb96ee85e38680bbcdec34ad13228ebe5dc10128992280905a216ad1028171a6d7b289285c3dbc943dbea6db46533db93906134a1ad4a28373f95bc
23 DIST thunderbird-91.4.0.source.tar.xz 401512224 BLAKE2B c3daf5e0d4d916b0d5f258599a5866a0d4f0b272ca15a083d4a5533546aa6033a7b076da77b74f8698b2828b6b3f786469017ef51e313fb55753e59cb8bbf974 SHA512 f19eba17b8018d11358258f6c9fbe4b2d20858f5afdf82ad5a81de5f6191f833ecf01ee4631297b0880dfa8b76baa1f9cd09a976cab2d2206ca5a902283fa102
24 +DIST thunderbird-91.4.1-af.xpi 560246 BLAKE2B 95239a0d07de28b7bd7f31d458924cf8cba5f553858e5e05811b166456166547fd347e057a44ef5f224324f6475272ce9e5c486c535693ffc447cb503e66cae1 SHA512 9d16103bffb0caec1dda18efe4784ef2a680e38305d16e00a833a914085f5505630cec79f59574da080efe01e12a3ee2ef80bebd3c26bce8d7c1255843eed530
25 +DIST thunderbird-91.4.1-ar.xpi 660313 BLAKE2B c2c154f84984309231597c2adf9e05453b59d1b279b7bb57cc1ac8ad98dd3c60838b3b0bdf4e70a73b1732290891f0af2332d8c7f39fa8638bfd10c560e75525 SHA512 0f366a7abbc5c8db13eb28b3a1dd0e376785b30d708620f3a4642e620f624cd8786de5714d34f0c10f01bca688cbea4b11da1ffea309574e3be9385e55f0aac2
26 +DIST thunderbird-91.4.1-ast.xpi 577053 BLAKE2B e0fabe62f470792f5c098e801b2dec58fc91e272bdf5fedd40c98babaa7161da0e6dc950984b14400f7c900592af74f3f0a685ff25334e88d90ae85dd5155c90 SHA512 9c5e8482009cbadac5f843bc53560bd9d5d6d85117f86916832a964e8aaec08f8b0d57365c91a5b680edfaa18766f8467ff72bb7b738aaaa369cdb4468e6a451
27 +DIST thunderbird-91.4.1-be.xpi 687228 BLAKE2B 80c35dbccb29556ea05e722ac350d6efc556560064d671d751ba8ba40376d61df1ee2d7a9d3ca098c90171702213dc707d6bcabd54c70e69c0984a05112cb2a8 SHA512 a25443bc776875eb1b83360d90c79be6fd9aa514f71a71cc4d7adc7a26b6074ef09aed3c4b77b32964add76ee4b2b25992add40b52844c113c198e46fd2dbb38
28 +DIST thunderbird-91.4.1-bg.xpi 686417 BLAKE2B 444f29037a2a64eb6862d1e3f4a7cc7903ebac0d855934648b6e0a0000a8f10131c9a0e92e66f6c0b53eba8a4f4d7ffab933eb40e5b7f786a2a2411fc53af292 SHA512 4a8a31984d7eb2a277b7bf464a0477380b81b0836afa037af484b4443906e86176c3947463fea6600486c054bdd8b94a5c6d83ac5822eabcbbc0cfff7366ce92
29 +DIST thunderbird-91.4.1-br.xpi 616017 BLAKE2B b13c758fe51f5b85d6e3d2642d415a4df07f7f5f650e5a2d6e205e9a7e824cc78821d90331d415fb383cf09ed189dd8a9e21122fd86f63e4b25e68728ee84d72 SHA512 b3db289fe6a81191fadf567da66ebfb4acf691e326e23e87172637e495791403b5c77d1c6ae18da9bd0e411e9f1a539f1e567b8f7a04710667ee963d0c7ad728
30 +DIST thunderbird-91.4.1-ca.xpi 641159 BLAKE2B 171280020e5fec93b793c3a9c1babfc1a13905669ecc3e92b004cbb15356b681087caeb894c7973f4008006c556c3ce4318c1ee5d5c5115ef4fed58b6b3c79d6 SHA512 430ba739825d7cc4f546e6769496f27e724ecbd8c30898fa2bf675bed91775710a975bc572bf6ba3ca90efd7ab07524428555be357a92a08bbbe14948fb1826c
31 +DIST thunderbird-91.4.1-cak.xpi 647217 BLAKE2B b756b3f65801f044c251fb9a4d47b9f1dd3aeaebdc9831af5f20aff25048c78f735afcf53957f60b9be2b3193f1cfb15454bdfa5ae0ab2476fa4bb220a400eaf SHA512 73252550fadc91b29f75014041b65aca8998efa07354660f8ed32befb8e16618522c00de98952f426c950cbbcd2ba62a49a8d6a815786839256a446acc55f534
32 +DIST thunderbird-91.4.1-cs.xpi 698289 BLAKE2B 84f6603e35f669f08c7d9b7b4613d5da56b65ad00c0a25267e106aa06f799ed6dc6698a058135d20a010237a070606dc94704a3d378c806e5dc5762a15c32c19 SHA512 4a8018e983dfb153f3f8578556a5a3a47092881fa597ddc8e39ba2e7adcf7a1a6ebd06966c53eedd623a567f6d9adb18782eb5a1b5d18ad51a7515d869d45dc3
33 +DIST thunderbird-91.4.1-cy.xpi 673998 BLAKE2B c5f8c84e847d71c91ae79fd46ef6ec7efaa42e4de41ebc95c86eab7249e6f22a3ad3551891d85da9c4523b44362620dc2ecb606ef3647dc4a7e550318bcfd47b SHA512 82869097158ccc38c79b3c9a54c13f2d17c135aad49e27fc603b9a09fe89a5865d75f5b0daa0eb6ccbbc199e3217de0938a54627fa5889547ce4fa8de8e1b5c3
34 +DIST thunderbird-91.4.1-da.xpi 655952 BLAKE2B 17f01695864c7463737f11511005ca026ee7b19825b21dcd7521e78c98c28011488862f95fa760e9c94e96be02401f5b33a7518d0fe5ea47412b74a0585b240d SHA512 6b6847223824a0d93c2875c7aab7ffcb522f361dcdc7828e29f8868aabb1ab47ff50c466c3594ce31472a9398d9dfb963fd6c8feda38183851e2b90a04787df3
35 +DIST thunderbird-91.4.1-de.xpi 687004 BLAKE2B c46fc96430c0b5e53911924af653f7fb1ab6c6cabb6c0d5c28f27b2fcd39695a9cfa5179b06acc502a6ed34690a185753263c5ea18f9f3ef50be6bad6847b854 SHA512 63c13b0256ff83494f70d39cc458b8b1b76d37d57fd0824345ace7cabf3a8bd0afff185320942aa80385d42cb2f246c2fbbe6a30777d591fc37a4ab5756ab7e6
36 +DIST thunderbird-91.4.1-dsb.xpi 707237 BLAKE2B 17d4c9edd9cba8779058fec8fb3c313f78b12987a12792d0b34830dd868b321c307a34d3dbc30aa91e90d9d971b1c8b40ab92b37fbb2b7060dad9d7737e1b852 SHA512 a70bf6f691696349f94eef6704a534164cf253baf969fa784ea5b883e9a2b9b00598468106c98212b442d6510e42aed51273b370ef667b5c59a9beb3a22814f5
37 +DIST thunderbird-91.4.1-el.xpi 803556 BLAKE2B cbb949d4390d81b6221941004488152685af001e3afae704e05051b27c0b3626f2f3032c22f9c74c1ae460d221eda5affb5110511c9aa797a74a872334c8d171 SHA512 7006a5a03536bf425b61cf815cad32d86dc56a09cf170bb48a39404780decc761a7b06f7f25022f088e4607ce44f8619efb4637e51edbf080221c542f8f26b51
38 +DIST thunderbird-91.4.1-en-CA.xpi 634128 BLAKE2B 82d6ba831a92b149fdc3351a3313ea3b3b33d593b7b046b29ffa121d6b5bdf7fbe2480178556a89e94e559f9f0168ec9c4b4cf493b07c60a7f28ce7e63a13012 SHA512 55485b9c6281474c032a4b51c128b7f02f847cdc9e92aaac07dc65c92f090b2deb982b96debe844ee4fea683a890eaa5b0b6cc5f5af2577e452cac084f99755b
39 +DIST thunderbird-91.4.1-en-GB.xpi 636516 BLAKE2B 71a85c2393e94b1bdba629907023e2e297b3873569fccdd1add095e7e134a5431113f37710112e6220365c0181ec4ff1bf3db379f680294c6d8e43ceb2b6209d SHA512 465951f7279a2c18aabd26ef5d3b31022167b6c30a7d490163643dff0a2cbf3c723e460f38d05a7285571f649c2396d1d8ecf73488cbb1ca79ee213d7bd4bd84
40 +DIST thunderbird-91.4.1-es-AR.xpi 685106 BLAKE2B 8ee71caaeabb1f958bac1f294a1fac894cf5311ab2dcc76f2d7807676746fe08861633121d3becc42b4d0a85dc464c16d4871ad1462da5cfc4771344da6afce3 SHA512 845397a154cd9c26491aba614e2193859343253d8d0c00bc500336e9184d736c9819a7135176b1cdfecdb0ae6be6a4dacef4da858924c3696a748a5bb5286dbe
41 +DIST thunderbird-91.4.1-es-ES.xpi 573863 BLAKE2B 050523996c80cffa075aa6f5f8965e0d8fddc2b6da62eeacf24106c4f66d64535e197026c54d2098b545b1bec353dcd9867b1e0e6c8354db28b24aaad4f6b4ae SHA512 d6b5eb08335f7b36de9be0b2ca6b25d6918ed83aa591c8a67daa4a8f93fbadcfee2466a696926c2c39fd2701d61dd27642d6565d4ce7b17a04992a9a3fe318e9
42 +DIST thunderbird-91.4.1-et.xpi 598834 BLAKE2B 47d2d65536977150a5e33b50f8e0bfb06528fe4894d056cd36626373040f5347d1171e430a24157f3987b0353c3a17c3f607396876d0e0d27303f58d9afeec3f SHA512 e2c60b1c16e306c89732c8b49c2071598a5e286826e845e21abbf8b4352d3ab342ee77120db99c7dabea4f1420395035e0ee282fa93a8a3cfe43a788b8c5081f
43 +DIST thunderbird-91.4.1-eu.xpi 666126 BLAKE2B 48280ce0d1079eec357f21ea88c8b9866298ce72023ad09c29b334731b475969275a4906270c2d15aacf1be91706f7d0e17343b8c6e0ad3cfd91012067c875f9 SHA512 efe46649f5db6c68a2cbe2d429ddf8dedfe62e26c0456f6038a6e871abb63bfcabdc4056ca0b61d97318ae4aa924bcbe0a8a08b26471a37a53bf07bb1a20a8e2
44 +DIST thunderbird-91.4.1-fi.xpi 664680 BLAKE2B 02cf643c40858b45b9594a4d737e6e0a15016c5fd0f8456939a2eec0aea859921a05ffb371288225d7c9b9ed255126162c67d6ab941dd044f67b35638928f698 SHA512 dbedd79f6cf0fb8b191a22154242dde86ee987d3b7c7edb3d33976aba7c242d71833626bce952d2d3816e24962906e9a7e65e44fdc5d16137f0e7741b23593ed
45 +DIST thunderbird-91.4.1-fr.xpi 697506 BLAKE2B 3610effab4459561982d9c94480a6e4d3e7f9e07db6d2a7a244e77b794a5dc7968ca93ec99f8a648f3fcc6c07d13bc46d1a99a324850b33684ee58300d97a7a7 SHA512 2c3f0d6f0dadd09b4251e296154dcc83791487ffb18984a1556dfec48381b93f8274bd33a7031f261ac029bf600379734233fe58ab847842bd5f621068bcdc9d
46 +DIST thunderbird-91.4.1-fy-NL.xpi 680172 BLAKE2B cd20fe34d40ff6dfd4465e0af662587b3ff8421aa3ce60ad48dafe76eab2b6bc6a94382eeebcc5f533c2850280d4b601e792f0ee72435e8b0bd2e72c87dc499e SHA512 7b1fd22aef57e9e22f0c5149fb74796a542d502025273e984195c247f0172115a4069198a80b99790278c07e85d4896f5be7ad361b8c532e2df891cd4e4ddf04
47 +DIST thunderbird-91.4.1-ga-IE.xpi 601909 BLAKE2B f278ed45afa59d1ec1d092de96af454a47b2f0083e9e5c7457f17a3e827643f5343f389cdc93fb8af469df86658993a6ea4aa169a260a8a2d28d23c6bf65db2c SHA512 00051ced5c1186eb9798764c3221344db3bed2436162e5691b74a7ed0f09149e9ee07c671b6a84c95cd3fed348419698b7507a89c9843eb32bd447f929dd599a
48 +DIST thunderbird-91.4.1-gd.xpi 635777 BLAKE2B 95f7b6d6e3b3346af350c19edcdc9d276057ef8923fa3e021c7a0b176ddc47feafef4c61b6b1c8b9ac971570ae42664b9b0a2c5ab9ff25edbd8ab47ff670ed19 SHA512 8c20acb907b2c25327aac6ab47fb03a30a8e407584384b4d8e45dbf99b19c001fcdd49fdf18cec0558422a909ad779d8b2aa2761e9e17ecebba07c50542aa5cf
49 +DIST thunderbird-91.4.1-gl.xpi 671076 BLAKE2B 20c4996e966c69cd484dfcd6342094f1f28dc8a6b31ab8421d7a8390eb08f86732fb3af301f6fc2b343879e3b450a7b389b8003c341ab9ae46d49b995cf34fe9 SHA512 2fee05db8eb7310d672bb8ce22c29e70cab50f9b577a1dbe4da9e7a6194b9aac73a69a84525feaebdff48c16019d4471adcc5d967a198ade3c6eb3ff06b4d0df
50 +DIST thunderbird-91.4.1-he.xpi 665956 BLAKE2B 4edfb447075f10b6f7a6fc88414540bae2379ffe088e47c7bae31f425a934a9d2b33b2a06406c1d4beb965dd57ed9c600a0e2c83450ce8ec86541e99f57c802b SHA512 76e9451fa02a8b4f08bf519cf720e574698542f9a1ca5e85508bd429efb7df4d2897a1a19c36644e91e15260df50adcfeb25ed6d275367a78fb03ff702913885
51 +DIST thunderbird-91.4.1-hr.xpi 641173 BLAKE2B 3f4273f7e0236142ca42b3b9891418fa9aa05992f7c939a6dddd7564ed6552e534e325b5190dfeb23f28e25036243c6032af34ed14054194157a747e188be0c5 SHA512 8272a9a22662911afb4082152e2ca07014ceeda6641150a015849d1765e323f035cb5b98ed34d6347f9f685346f137a4dbbd661444734b8e177f438e9b45ab90
52 +DIST thunderbird-91.4.1-hsb.xpi 704706 BLAKE2B eeda0279e87ef3dede961598670dec15b17b517d16696014f1666f3c1ac960afc86f5ab36b54d55e7c94331b8f7b493acc7b774847bf1dbbd2fb97bab275ef4a SHA512 1c0c51a789f7823421ff0afa8bd775a7980bba7c6dd3882a35ade2ed3436adf84c249333071a51d2de61d46c86b28b91c86bb8548309e95f4e6fcf646272e3b9
53 +DIST thunderbird-91.4.1-hu.xpi 707541 BLAKE2B 0327c9427499f898c6d680b7b92b521b3a9af5fd13921e89c9189f96dc8bd82e8112316e9f06df033af1640279b6313bf73a74840afa6a97cb9fabd8fc33d963 SHA512 ef37bf12fcd637542ef6661858ad54ee47f76ca3f0280a4d1df7deb46ded59fbf773f4b3c5684397b0c6dedbadd930c0cac8fe9bb9bc06423d186e35d4fd7360
54 +DIST thunderbird-91.4.1-id.xpi 639036 BLAKE2B d1ea4d37d86b74a4ee3fcd752343f56aedff20e919b21f00a942c445b012d5ba92d450d7dbe3254dddd6bb7ac8a30be22d3f0337dcac318fbfacf6ab425dfdd0 SHA512 42dca44531dc90c70808992eeab9f634001ccdce99efea775b6a7222bc3faf366679019d57c1ad3881c7c7efd87e90d4fde71383188413ff9a082eaf6b1f51b8
55 +DIST thunderbird-91.4.1-is.xpi 575007 BLAKE2B d1913b54b14a0c3482661e1842d1393bf517f8f075c44636e6649178e798835f57265d06ee18204f4704253c89982d96cc4c8609c364b0941e5a796b5480d595 SHA512 a4bbf5af715763c86fb85ecd63acfb61ba76dab1c586871e5ffca82bba39d0fadffeb2813dac3922ba2344a8f18f15d1ac9ea2aefeb1b9d41a4544e7bead6445
56 +DIST thunderbird-91.4.1-it.xpi 600162 BLAKE2B e75693f0deef68a602d6503296c9aa6e67c5d25af748a4d244a19bf357fcb9fc95f3751ec6296104276f9b95147296aefafcb7c464808a84d4eed89227091339 SHA512 d7f1c29950e6458563c9052041eecf2ae7a097af2567512613dba29ad593b3252d0a9a4a040e3121a0018cf05d168d7d9277a003beabe92345eebf764e6be44c
57 +DIST thunderbird-91.4.1-ja.xpi 741230 BLAKE2B 8459e5b3b38b36aa4da9dc9dcae53da94172ab79fdaad86225e3676ec12951dd2c03c1b882488ec803607e86fe1f2de59fa2033e7ff08902e7d2c79054efc604 SHA512 2b054c3a2b6552ab15b680a49f082e45e6d4a3276cdec699be4d0bc139f4e85085a42aeacbd0165962dee7d2a550a51e492e3f3c7515ce11718bea79e26309b8
58 +DIST thunderbird-91.4.1-ka.xpi 746753 BLAKE2B 7e98c3f4e104c61da35ef1d870ed0081a0c63f7ed902e6759776ef36b478d0f566b51e587ef63e79347f237423caef39df4331985070e6cc51d7e8b4a0e2695c SHA512 f9098ab0c5fe9a4c9aefd9c2bd79b5b47e4043440cd2f47517396b204c5902d19d5afdbcfcb777148b9e57dcdd2b9b65d8db0baf1f4e2f2d65957223dc1f2142
59 +DIST thunderbird-91.4.1-kab.xpi 672041 BLAKE2B de100f27c7551489fd6796cdf1225ea5858c1e0e6184401eb37ef375d8d76f2fd3aa1bacc6d52b8856c0cd40f72e091ada8f315d2dcaface8ae4f9cf182c166b SHA512 471b97ae72c70b5ef79146b3e1b8ecc76439cc37fa47e0e66edd1c9b353a6f9857833724a70ca2896e17570f2d62a445c845f98c6dde63999ec06a9ddd7f91a7
60 +DIST thunderbird-91.4.1-kk.xpi 731350 BLAKE2B 27c69e0064f30e76c9e1f43108d888fa4717c8b95d7a9d9202c3a65d758f0fb729315c69472fb6086ba2226eb40ebe5fb658e319b33a9b56e8a70dc3a1d30ba0 SHA512 8669879c7b4debfd880d8e477692fe18aa8cada29fb3abd0e0294a32ba9d2aa5de58ab9dd303e36a7757ca8aba301e1149ca30324d32e1efb5c1670088ba42f1
61 +DIST thunderbird-91.4.1-ko.xpi 695482 BLAKE2B 4837dd1524c72a0256b601296712f27a5e62e8fbca53e6fc433df4e2cd60f2aac75efcc935f9d7701792e3643691374ec5616c26ee61fefa60880e48889e95bd SHA512 d281f98215b92d54e6c5b845e684fa5ac3fb5240a3bbb3ff8f1ae19c863a62c7034e306485eb2724905c0e6a8e66b74bc6d60815f8b1a3b2378b69e50e1a8d70
62 +DIST thunderbird-91.4.1-lt.xpi 688961 BLAKE2B 21d9510065c93de320a02283cb3d3b422dfe97ce40dfbc5df7dec6cd3a21b14a2660f02c05a0954ded36b22d595b2479eedfe67cce4789993b73417a30bf8fb8 SHA512 a2e14b4c91e7c2afbc06df8a0114e16a0a9b0416e0d2d08d81d5f3c07d384c9f812ff6f124e47dd0c26124abf3aa20d70242d71884f6502ca4b450a6496d22f0
63 +DIST thunderbird-91.4.1-lv.xpi 614288 BLAKE2B dba930f61b008e73c3a1876118456600935b12bf2422b327b3a6cb7072dbfce8d33b20e2eb9523039bd3c2b6f0c5a6d79ba3ddd58bfbb51243483321c09da18a SHA512 a80a53aa5f2a16a96e76a410041754798445d39945186d6916f3ad45b3a4ebb6556e9f061ae018e7c6abe38333f754d3b8d230549d28bdb54f82f9b27e271652
64 +DIST thunderbird-91.4.1-ms.xpi 574046 BLAKE2B 6968ebd8c18ae9fd68d49bbe408973870545fac02a1d5b87ff0b7d5514b09fa2d922bfd1dfb1bd526e5767042a0b4472dddf7b43a118df303129e463531c36d9 SHA512 f9df949af74b019f037c063ac1b8c1d047a4b66d64d9be9733727c0039b2a154b0bc08f5b5ec33ed4caa5f9bc10d9ac90888330da858d5870f68b9e6558444a2
65 +DIST thunderbird-91.4.1-nb-NO.xpi 645842 BLAKE2B cccf0daeeabbcfc446e571585b98ef8fe2225f50d2fa99379de6f13a52ac9e7b948265c700a973f497d1cead7995d947e3f9c3a5f382fb2ce01a5d61096ec420 SHA512 bd1d02ba42a8807d7053e98b83a5e8e085c7cc0b50c6a48ed222da8c859ec5434979ed7ca292165f80aa148386e4e835ea782fc1bc1f0ba32cf769b116ed4465
66 +DIST thunderbird-91.4.1-nl.xpi 671291 BLAKE2B 99ec0596df4014925f5ce044e9b3949fe448eb9775773020a595c60b7c7a32d8b438679209973dd314f8f8179c8d6e6aaf5283acb83ef30e0e1fccc25025579a SHA512 d86b2f004498a4a73a4791d537792eadbf260fbdca611c9475a03345ce50e0dd87241d98524277267df4f2ed0b2ced4445634432841aaa613d64d4d471f901d9
67 +DIST thunderbird-91.4.1-nn-NO.xpi 649227 BLAKE2B 332531bc9afbd76c251943cc92f8cf1e968c0c99f7c2c477b62254f35d51f4f778f54abd6b850d29356ea1ac14b6c40f82667ac5efe2d14a24e7484e0558f248 SHA512 491908db3b145e5707500e584d8ecc9f0659345a712e223bb4719f6547909d0891ba52340a1eee03678c74c6861b55d8bd961e84e7bd5895f3a63fc21434346c
68 +DIST thunderbird-91.4.1-pa-IN.xpi 647736 BLAKE2B 2b1840ef534e55aa6f91f920e4121bda43f20e748429dc2bf2042c4b762d8694998361484daa9fac0403fe1299a99a30633f121ec6a75c02599e95521ec70ee6 SHA512 6f1ec506660b8eede4a46a10f1c373559bf95ad8cb598b93d6cdc44ab03a021164399ad5ae2776fe679277fda38a9b5aa2f2eed7a677d8ecaaa5881da0c25e00
69 +DIST thunderbird-91.4.1-pl.xpi 680303 BLAKE2B aebd923996bae366d14f055816fe9643ed2d4800d65999c02e057edb36b6543de3b4209116611310cd3ffeeb5b0e11dff56a3fb30c5817cf68cde5a7437266d4 SHA512 5227a55d2c91553d96b6cba2e06b473c9018ce11522b2d0e141bdfe4a43803cbb82d7b6ca0d3c35203a762f37c08e5924c26cdea321b1f5951e30e19e7d32ca7
70 +DIST thunderbird-91.4.1-pt-BR.xpi 678982 BLAKE2B 3e81a8103d0cf0e29555b4605201ee10b470108785d93a95a15254362271c2af91edd47e5ea6c9c6f8216d7ecdbeb4241e42d876349eeeb2fc9d649c56a6a8f6 SHA512 385d598e4d49ffc401c5f106894b57385471cf4fd29b28e7d9b66cc7852e8bb1d83fae04f0bb2658b1513e340526750019cde73463308a73324c6b52bfdece04
71 +DIST thunderbird-91.4.1-pt-PT.xpi 665710 BLAKE2B ccc2e5b297fbdbfc8952273b29c9e0bdde47f0651a245d6771ec04ea77d56cd856ed1e4dc1a4a773abb7f9dbc431c340dd5c6de3c51eb1535788f4c8197adac7 SHA512 8c9ae02a81340bac2981555f03b9bf490d6e63abab3569db11de34adef4e3e6397acceec9ec8a6fb3e105a84f94d2622b9aae422e3c0079adcd5b71bbc951738
72 +DIST thunderbird-91.4.1-rm.xpi 671678 BLAKE2B 52905453ed5836525ee5d99f52a438ac266419cc38d38b23d5a9238c62ad7eabdb2deba2824d4fdc755b1b373ed288c839ac4195e6b2b5bfe223f27e1847611b SHA512 7b94912cc2867d4105a404e60239584714dc1cedc5e22fa31246f65e30fb28eb564d0b9f38b782b2df4ce7d5cfbe16051258a986ddc61a5051ff1c7c2ad86463
73 +DIST thunderbird-91.4.1-ro.xpi 656465 BLAKE2B b985752c66ab7134bf3f13fd5e0dee608105c2b5fc6e3f4e80d54c0d3fd67d3716c5dcc1f6571c670a2c9ba61fe4601aa46e989c51804c539dad40430d6591d4 SHA512 a686efb134d53985ab8cafa7b2d9668190dcd0d08aa1c505489b443606eafd7cb70bb7b40acb03d2f77f49ed8eaab8e7467b43ae8404702136248e5dcc9b7af6
74 +DIST thunderbird-91.4.1-ru.xpi 783359 BLAKE2B c3ae8fae7a17974c4154bda8bc6f5884100976626206568aa90e11d443f009c3fd060ee352f1b30108162a51a5d7dabc34827072e439b45958906ba170b42d4c SHA512 3133603ff09377c35e9f1a915a033243ca3446be23e1fe680ccb998de0069f21333ee9349c5f0426352691fd7e80b93a98f0333257cd18c00104a82c3217872b
75 +DIST thunderbird-91.4.1-sk.xpi 707731 BLAKE2B b1b704798924a573b8227df05b52dfd8b3935f5ec2a8a623303f4beda02b0650369a2bcd29a49d1a05d20463953b7887e85536f963d29b90030005e1a726623c SHA512 4073fab914b5b8e519ffad67b2f354b69a0e957cf541ee2d3c4c045164af2969654599e4baa0ed10dda101bf5887da8812cc4397ae00f70aa4525c0cbf04ae2c
76 +DIST thunderbird-91.4.1-sl.xpi 660447 BLAKE2B 25db7239e3bc1fbd3b8f9b70b697f02aa9a56ca5c09148b4dfb55c75e63c1f5010979520972faf3a61a16c398fb8a48a5574cbfd94bd4f0b8fb2b719d15bf23d SHA512 f56d1efaf7b25f36ece50196a1034eee1f9d4bf86c82e03c458e575fd6f9b23a444ddc1fc810cb234a77c456db2726ed4e6d41194555a68537f1bef587f0919b
77 +DIST thunderbird-91.4.1-sq.xpi 693389 BLAKE2B edd42e5d23f229fc80a7b13a8af406e1d90d2a89fb4978aa303fce6abe3d295ebe7c282ffef1de3b47a177a6d7719329edc90c7e75513c5e182e44f5fb6e863f SHA512 44c49e0d28020229801538d65e4c531e9d78190e8d6ff09806a0369f62781c45b53be865d3447a86b3d7d6ebccd8e9ca29e658dde96748fd659ec89fbd8c7c6c
78 +DIST thunderbird-91.4.1-sr.xpi 703327 BLAKE2B ca0dffa110030e408f74e97e4f41da7cfee1b0de54e17f8133298de10541836fcaacf0c5ad01900b650da2803c06b6fb37a44a71a8033b957a6520d497fabf80 SHA512 672920d69a2dbcd9835e8ddd9bae53fbd93879fd097ff059cfb7dccb7467d7f547a504744e8a69e8aec5bd5b4e8018de4922164d91b2626063ba02cad71ab06b
79 +DIST thunderbird-91.4.1-sv-SE.xpi 675813 BLAKE2B 679674889e0392f7142ecf083dc3fa1ef60b3e0fdd554a27f4107cfebeeaff80fc9f5ba21e01cda551cd4b7b4a6e899f6673eec9ab3787c301897cfe10335707 SHA512 6e40f6e3e17acc0149c3949f11fa62cf98abc8e9e7fdcde1a16c437c0496093c3ae23101331df9f2e5709e52c36153abfa0da729eff148b5554617c1838f3596
80 +DIST thunderbird-91.4.1-th.xpi 741243 BLAKE2B c06a4510fc3759bbd4a2f585b686f6c8533d733bb26cb1e8c6f637764d965a392160216e37e112aa4bccfd874b777d05ae70aca9bb5e341d0963554e66c14ac7 SHA512 67aecdb4d232a9f91beeeb613077fa805b57a9e76fc68e3446adb7c1560d3e1f1f5f1137242a75426ef1bef1113bdc5257966f4e6e2f9c61f7fb02369354f4ed
81 +DIST thunderbird-91.4.1-tr.xpi 685073 BLAKE2B d414ed733e5acbf462649d3de3ad1eeb5e50e0b4050b41c1fa52ebbfbe65fbcb002890e482726237b0c5c93aeefd7f77ce36d3899eeceb7b51e4b13bb6260056 SHA512 43391233895d6f3cc54eb8d500bba07d36f745bdd3668c8323bfb66b19520586ff57ea2fb482ce108553218504f73cc74320eda948c7eacf3d9433b47010b8db
82 +DIST thunderbird-91.4.1-uk.xpi 780971 BLAKE2B f61575b1292a5f4c561bfa8a3d990aae4357525e01fdc0cecd0b171ff453768aefc17e5c205e9f9509dcebce29dc7749047f6039b41419be91fcaa043d452cd9 SHA512 d6065783ec5e047306a083db728ce1b5f83c48a2021700aa1e6af5f38e592c22a404a0940f794a238bd9fc514d3f2e0b3d613b20b9e8c86ed17107ee848bb36a
83 +DIST thunderbird-91.4.1-uz.xpi 588118 BLAKE2B b1c0526e316af5c30dba79e6c52d9e8ec3494aa1719127896357d60f55333097aae2438e30fcd04a36bab95e6b60994e20b25c4b0e17aeeb7e607da76bda5716 SHA512 7a5c576587919466d1fd5424e054a0c2207de979a8bfef1d32bd60ea2e35d1bd199f8ea3617521b0a6d9bb8abc9b5e4a796c084760adf0fd47dbf95fa2e564b5
84 +DIST thunderbird-91.4.1-vi.xpi 706360 BLAKE2B 9c06b70220402d9c04256528fc62260b774f0ed7ec5db99b0329ccbe4edf5faa1dfd4001b455ec6685557f52fdb88f4ce3bb5f81fe59a5742b8e03f3dc2d979d SHA512 907f641363331b4d9170b1a71fbe8a9f793a0520137ec84eb5d925f097b9d204f9f2f0a8094c04668f5a6ad371809b03480a19ac8df6db8b64e23cf609fcd543
85 +DIST thunderbird-91.4.1-zh-CN.xpi 714609 BLAKE2B 5681115a1b4418d4c82308115b42910401d62ccb718679b3aa5075fb703cc4bf186885ccb83f51240594e576e3037de8afc9ad5ed0f61d01e978960e377b5976 SHA512 62dd3f25eadad68192f9e9a2e24580ba19638bca97ad243d2546c0912cd2db1107303678ec68f06bf7205f182582449ab030dac56371987626ef9fdc7d0c6523
86 +DIST thunderbird-91.4.1-zh-TW.xpi 715956 BLAKE2B 6f500459be5ac8e610909c4802268f9e142071cb0549864d540a913a17da9125069017660f062eafae737707e5e1bf9e7fabe1a7f0e6055e1ddd05d27a12a25c SHA512 33905cb91ecddcf63240886fd51dba3454edf23fbf09a3ec19d8ea0585b5e54bcc79dd37b3e87d1e571bb5c4c317fb732546d51917b9e41b47339e3819a8fa91
87 +DIST thunderbird-91.4.1.source.tar.xz 408805472 BLAKE2B b12d55ca45579c7a7d230100b9e4af1e6461ba6b6778b23d951ccfb3b497e2cf86e3952e09c57bc3477742f66283e9101f70edf70cf3bd92296982b25ef6c448 SHA512 aa442ef886277f5091ebadff907a29451a0ee6542f24adb5c1fb4223193d719c2cb01474d3ccd96067695b19ce3cbf042893b0beaaeb7c65e0660ab5072bf82e
88
89 diff --git a/mail-client/thunderbird/thunderbird-91.4.1.ebuild b/mail-client/thunderbird/thunderbird-91.4.1.ebuild
90 new file mode 100644
91 index 00000000..785fc691
92 --- /dev/null
93 +++ b/mail-client/thunderbird/thunderbird-91.4.1.ebuild
94 @@ -0,0 +1,1130 @@
95 +# Copyright 1999-2021 Gentoo Authors
96 +# Distributed under the terms of the GNU General Public License v2
97 +
98 +EAPI="7"
99 +
100 +FIREFOX_PATCHSET="firefox-91esr-patches-03.tar.xz"
101 +
102 +LLVM_MAX_SLOT=13
103 +
104 +PYTHON_COMPAT=( python3_{7..10} )
105 +PYTHON_REQ_USE="ncurses,sqlite,ssl"
106 +
107 +WANT_AUTOCONF="2.1"
108 +
109 +VIRTUALX_REQUIRED="pgo"
110 +
111 +MOZ_ESR=
112 +
113 +MOZ_PV=${PV}
114 +MOZ_PV_SUFFIX=
115 +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
116 + MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
117 +
118 + # Convert the ebuild version to the upstream Mozilla version
119 + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
120 + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
121 + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
122 +fi
123 +
124 +if [[ -n ${MOZ_ESR} ]] ; then
125 + # ESR releases have slightly different version numbers
126 + MOZ_PV="${MOZ_PV}esr"
127 +fi
128 +
129 +MOZ_PN="${PN%-bin}"
130 +MOZ_P="${MOZ_PN}-${MOZ_PV}"
131 +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
132 +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
133 +
134 +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
135 + llvm multiprocessing pax-utils python-any-r1 toolchain-funcs \
136 + virtualx xdg
137 +
138 +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
139 +
140 +if [[ ${PV} == *_rc* ]] ; then
141 + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
142 +fi
143 +
144 +PATCH_URIS=(
145 + https://dev.gentoo.org/~{polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
146 +)
147 +
148 +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
149 + ${PATCH_URIS[@]}"
150 +
151 +DESCRIPTION="Thunderbird Mail Client"
152 +HOMEPAGE="https://www.thunderbird.net/"
153 +
154 +KEYWORDS="amd64 ~arm64 ~ppc64 x86"
155 +
156 +SLOT="0/$(ver_cut 1)"
157 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
158 +
159 +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
160 +IUSE+=" jack lto +openh264 pgo pulseaudio sndio selinux"
161 +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx +system-webp"
162 +IUSE+=" wayland wifi"
163 +
164 +REQUIRED_USE="debug? ( !system-av1 )
165 + pgo? ( lto )
166 + wifi? ( dbus )"
167 +
168 +BDEPEND="${PYTHON_DEPS}
169 + app-arch/unzip
170 + app-arch/zip
171 + >=dev-util/cbindgen-0.19.0
172 + >=net-libs/nodejs-10.23.1
173 + virtual/pkgconfig
174 + >=virtual/rust-1.51.0
175 + || (
176 + (
177 + sys-devel/clang:13
178 + sys-devel/llvm:13
179 + clang? (
180 + =sys-devel/lld-13*
181 + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
182 + )
183 + )
184 + (
185 + sys-devel/clang:12
186 + sys-devel/llvm:12
187 + clang? (
188 + =sys-devel/lld-12*
189 + pgo? ( =sys-libs/compiler-rt-sanitizers-12*[profile] )
190 + )
191 + )
192 + (
193 + sys-devel/clang:11
194 + sys-devel/llvm:11
195 + clang? (
196 + =sys-devel/lld-11*
197 + pgo? ( =sys-libs/compiler-rt-sanitizers-11*[profile] )
198 + )
199 + )
200 + )
201 + amd64? ( >=dev-lang/nasm-2.13 )
202 + x86? ( >=dev-lang/nasm-2.13 )"
203 +
204 +CDEPEND="
205 + >=dev-libs/nss-3.68
206 + >=dev-libs/nspr-4.32
207 + dev-libs/atk
208 + dev-libs/expat
209 + >=x11-libs/cairo-1.10[X]
210 + >=x11-libs/gtk+-3.4.0:3[X]
211 + x11-libs/gdk-pixbuf
212 + >=x11-libs/pango-1.22.0
213 + >=media-libs/mesa-10.2:*
214 + media-libs/fontconfig
215 + >=media-libs/freetype-2.4.10
216 + >=media-libs/libpng-1.6.35:0=[apng(+)]
217 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) )
218 + virtual/freedesktop-icon-theme
219 + >=x11-libs/pixman-0.19.2
220 + >=dev-libs/glib-2.26:2
221 + >=sys-libs/zlib-1.2.3
222 + >=dev-libs/libffi-3.0.10:=
223 + media-video/ffmpeg
224 + x11-libs/libX11
225 + x11-libs/libxcb
226 + x11-libs/libXcomposite
227 + x11-libs/libXdamage
228 + x11-libs/libXext
229 + x11-libs/libXfixes
230 + x11-libs/libXrender
231 + x11-libs/libXt
232 + dbus? (
233 + sys-apps/dbus
234 + dev-libs/dbus-glib
235 + )
236 + system-av1? (
237 + >=media-libs/dav1d-0.8.1:=
238 + >=media-libs/libaom-1.0.0:=
239 + )
240 + system-harfbuzz? (
241 + >=media-libs/harfbuzz-2.8.1:0=
242 + >=media-gfx/graphite2-1.3.13
243 + )
244 + system-icu? ( >=dev-libs/icu-69.1:= )
245 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
246 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
247 + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
248 + system-webp? ( >=media-libs/libwebp-1.1.0:0= )
249 + wifi? (
250 + kernel_linux? (
251 + sys-apps/dbus
252 + dev-libs/dbus-glib
253 + net-misc/networkmanager
254 + )
255 + )
256 + jack? ( virtual/jack )
257 + selinux? ( sec-policy/selinux-mozilla )
258 + sndio? ( media-sound/sndio )"
259 +
260 +RDEPEND="${CDEPEND}
261 + jack? ( virtual/jack )
262 + openh264? ( media-libs/openh264:*[plugin] )
263 + pulseaudio? (
264 + || (
265 + media-sound/pulseaudio
266 + >=media-sound/apulse-0.1.12-r4
267 + )
268 + )
269 + selinux? ( sec-policy/selinux-mozilla )
270 + !<x11-plugins/enigmail-2.2"
271 +
272 +DEPEND="${CDEPEND}
273 + x11-libs/libICE
274 + x11-libs/libSM
275 + pulseaudio? (
276 + || (
277 + media-sound/pulseaudio
278 + >=media-sound/apulse-0.1.12-r4[sdk]
279 + )
280 + )
281 + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] )
282 + amd64? ( virtual/opengl )
283 + x86? ( virtual/opengl )"
284 +
285 +S="${WORKDIR}/${PN}-${PV%_*}"
286 +
287 +llvm_check_deps() {
288 + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
289 + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
290 + return 1
291 + fi
292 +
293 + if use clang ; then
294 + if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
295 + einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
296 + return 1
297 + fi
298 +
299 + if use pgo ; then
300 + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
301 + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
302 + return 1
303 + fi
304 + fi
305 + fi
306 +
307 + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
308 +}
309 +
310 +MOZ_LANGS=(
311 + af ar ast be bg br ca cak cs cy da de dsb
312 + el en-CA en-GB en-US es-AR es-ES et eu
313 + fi fr fy-NL ga-IE gd gl he hr hsb hu
314 + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
315 + pa-IN pl pt-BR pt-PT rm ro ru
316 + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
317 +)
318 +
319 +mozilla_set_globals() {
320 + # https://bugs.gentoo.org/587334
321 + local MOZ_TOO_REGIONALIZED_FOR_L10N=(
322 + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
323 + )
324 +
325 + local lang xflag
326 + for lang in "${MOZ_LANGS[@]}" ; do
327 + # en and en_US are handled internally
328 + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
329 + continue
330 + fi
331 +
332 + # strip region subtag if $lang is in the list
333 + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
334 + xflag=${lang%%-*}
335 + else
336 + xflag=${lang}
337 + fi
338 +
339 + SRC_URI+=" l10n_${xflag/[_@]/-}? ("
340 + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
341 + SRC_URI+=" )"
342 + IUSE+=" l10n_${xflag/[_@]/-}"
343 + done
344 +}
345 +mozilla_set_globals
346 +
347 +moz_clear_vendor_checksums() {
348 + debug-print-function ${FUNCNAME} "$@"
349 +
350 + if [[ ${#} -ne 1 ]] ; then
351 + die "${FUNCNAME} requires exact one argument"
352 + fi
353 +
354 + einfo "Clearing cargo checksums for ${1} ..."
355 +
356 + sed -i \
357 + -e 's/\("files":{\)[^}]*/\1/' \
358 + "${S}"/third_party/rust/${1}/.cargo-checksum.json \
359 + || die
360 +}
361 +
362 +moz_install_xpi() {
363 + debug-print-function ${FUNCNAME} "$@"
364 +
365 + if [[ ${#} -lt 2 ]] ; then
366 + die "${FUNCNAME} requires at least two arguments"
367 + fi
368 +
369 + local DESTDIR=${1}
370 + shift
371 +
372 + insinto "${DESTDIR}"
373 +
374 + local emid xpi_file xpi_tmp_dir
375 + for xpi_file in "${@}" ; do
376 + emid=
377 + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
378 +
379 + # Unpack XPI
380 + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
381 +
382 + # Determine extension ID
383 + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
384 + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
385 + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
386 + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
387 + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
388 + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
389 + else
390 + die "failed to determine extension id"
391 + fi
392 +
393 + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
394 + newins "${xpi_file}" "${emid}.xpi"
395 + done
396 +}
397 +
398 +mozconfig_add_options_ac() {
399 + debug-print-function ${FUNCNAME} "$@"
400 +
401 + if [[ ${#} -lt 2 ]] ; then
402 + die "${FUNCNAME} requires at least two arguments"
403 + fi
404 +
405 + local reason=${1}
406 + shift
407 +
408 + local option
409 + for option in ${@} ; do
410 + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
411 + done
412 +}
413 +
414 +mozconfig_add_options_mk() {
415 + debug-print-function ${FUNCNAME} "$@"
416 +
417 + if [[ ${#} -lt 2 ]] ; then
418 + die "${FUNCNAME} requires at least two arguments"
419 + fi
420 +
421 + local reason=${1}
422 + shift
423 +
424 + local option
425 + for option in ${@} ; do
426 + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
427 + done
428 +}
429 +
430 +mozconfig_use_enable() {
431 + debug-print-function ${FUNCNAME} "$@"
432 +
433 + if [[ ${#} -lt 1 ]] ; then
434 + die "${FUNCNAME} requires at least one arguments"
435 + fi
436 +
437 + local flag=$(use_enable "${@}")
438 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
439 +}
440 +
441 +mozconfig_use_with() {
442 + debug-print-function ${FUNCNAME} "$@"
443 +
444 + if [[ ${#} -lt 1 ]] ; then
445 + die "${FUNCNAME} requires at least one arguments"
446 + fi
447 +
448 + local flag=$(use_with "${@}")
449 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
450 +}
451 +
452 +pkg_pretend() {
453 + if [[ ${MERGE_TYPE} != binary ]] ; then
454 + if use pgo ; then
455 + if ! has usersandbox $FEATURES ; then
456 + die "You must enable usersandbox as X server can not run as root!"
457 + fi
458 + fi
459 +
460 + # Ensure we have enough disk space to compile
461 + if use pgo || use lto || use debug ; then
462 + CHECKREQS_DISK_BUILD="13500M"
463 + else
464 + CHECKREQS_DISK_BUILD="6400M"
465 + fi
466 +
467 + check-reqs_pkg_pretend
468 + fi
469 +}
470 +
471 +pkg_setup() {
472 + if [[ ${MERGE_TYPE} != binary ]] ; then
473 + if use pgo ; then
474 + if ! has userpriv ${FEATURES} ; then
475 + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
476 + fi
477 + fi
478 +
479 + # Ensure we have enough disk space to compile
480 + if use pgo || use lto || use debug ; then
481 + CHECKREQS_DISK_BUILD="13500M"
482 + else
483 + CHECKREQS_DISK_BUILD="6400M"
484 + fi
485 +
486 + check-reqs_pkg_setup
487 +
488 + llvm_pkg_setup
489 +
490 + if use clang && use lto ; then
491 + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
492 + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
493 + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
494 +
495 + # temp fix for https://bugs.gentoo.org/768543
496 + # we can assume that rust 1.{49,50}.0 always uses llvm 11
497 + local version_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'release:' | awk '{ print $2 }')
498 + [[ -n ${version_rust} ]] && version_rust=$(ver_cut 1-2 "${version_rust}")
499 + [[ -z ${version_rust} ]] && die "Failed to read version from rustc!"
500 +
501 + if ver_test "${version_rust}" -ge "1.49" && ver_test "${version_rust}" -le "1.50" ; then
502 + local version_llvm_rust="11"
503 + else
504 + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
505 + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
506 + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
507 + fi
508 +
509 + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
510 + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
511 + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
512 + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
513 + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
514 + eerror " - Build ${CATEGORY}/${PN} without USE=lto"
515 + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
516 + fi
517 + fi
518 +
519 + if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \
520 + && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then
521 + # bug 792705
522 + eerror "Using GCC 11 to compile firefox is currently known to be broken (see bug #792705)."
523 + die "Set USE=clang or select <gcc-11 to build ${CATEGORY}/${P}."
524 + fi
525 +
526 + python-any-r1_pkg_setup
527 +
528 + # Avoid PGO profiling problems due to enviroment leakage
529 + # These should *always* be cleaned up anyway
530 + unset \
531 + DBUS_SESSION_BUS_ADDRESS \
532 + DISPLAY \
533 + ORBIT_SOCKETDIR \
534 + SESSION_MANAGER \
535 + XAUTHORITY \
536 + XDG_CACHE_HOME \
537 + XDG_SESSION_COOKIE
538 +
539 + # Build system is using /proc/self/oom_score_adj, bug #604394
540 + addpredict /proc/self/oom_score_adj
541 +
542 + if use pgo ; then
543 + # Allow access to GPU during PGO run
544 + local ati_cards mesa_cards nvidia_cards render_cards
545 + shopt -s nullglob
546 +
547 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
548 + if [[ -n "${ati_cards}" ]] ; then
549 + addpredict "${ati_cards}"
550 + fi
551 +
552 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
553 + if [[ -n "${mesa_cards}" ]] ; then
554 + addpredict "${mesa_cards}"
555 + fi
556 +
557 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
558 + if [[ -n "${nvidia_cards}" ]] ; then
559 + addpredict "${nvidia_cards}"
560 + fi
561 +
562 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
563 + if [[ -n "${render_cards}" ]] ; then
564 + addpredict "${render_cards}"
565 + fi
566 +
567 + shopt -u nullglob
568 + fi
569 +
570 + if ! mountpoint -q /dev/shm ; then
571 + # If /dev/shm is not available, configure is known to fail with
572 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
573 + ewarn "/dev/shm is not mounted -- expect build failures!"
574 + fi
575 +
576 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
577 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
578 + # get your own set of keys.
579 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
580 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
581 + fi
582 +
583 + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
584 + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
585 + fi
586 +
587 + # Mozilla API keys (see https://location.services.mozilla.com/api)
588 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
589 + # get your own set of keys.
590 + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
591 + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
592 + fi
593 +
594 + # Ensure we use C locale when building, bug #746215
595 + export LC_ALL=C
596 + fi
597 +}
598 +
599 +src_unpack() {
600 + local _lp_dir="${WORKDIR}/language_packs"
601 + local _src_file
602 +
603 + if [[ ! -d "${_lp_dir}" ]] ; then
604 + mkdir "${_lp_dir}" || die
605 + fi
606 +
607 + for _src_file in ${A} ; do
608 + if [[ ${_src_file} == *.xpi ]]; then
609 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
610 + else
611 + unpack ${_src_file}
612 + fi
613 + done
614 +}
615 +
616 +src_prepare() {
617 + use lto && rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch
618 + eapply "${WORKDIR}/firefox-patches"
619 +
620 + # Allow user to apply any additional patches without modifing ebuild
621 + eapply_user
622 +
623 + # Make LTO respect MAKEOPTS
624 + sed -i \
625 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
626 + "${S}"/build/moz.configure/lto-pgo.configure \
627 + || die "sed failed to set num_cores"
628 +
629 + # Make ICU respect MAKEOPTS
630 + sed -i \
631 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
632 + "${S}"/intl/icu_sources_data.py \
633 + || die "sed failed to set num_cores"
634 +
635 + # sed-in toolchain prefix
636 + sed -i \
637 + -e "s/objdump/${CHOST}-objdump/" \
638 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
639 + || die "sed failed to set toolchain prefix"
640 +
641 + sed -i \
642 + -e 's/ccache_stats = None/return None/' \
643 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
644 + || die "sed failed to disable ccache stats call"
645 +
646 + einfo "Removing pre-built binaries ..."
647 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
648 +
649 + # Clearing checksums where we have applied patches
650 + moz_clear_vendor_checksums target-lexicon-0.9.0
651 +
652 + # Create build dir
653 + BUILD_DIR="${WORKDIR}/${PN}_build"
654 + mkdir -p "${BUILD_DIR}" || die
655 +
656 + # Write API keys to disk
657 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
658 + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
659 + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
660 +
661 + xdg_src_prepare
662 +}
663 +
664 +src_configure() {
665 + # Show flags set at the beginning
666 + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
667 + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
668 + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
669 + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
670 + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
671 +
672 + local have_switched_compiler=
673 + if use clang && ! tc-is-clang ; then
674 + # Force clang
675 + einfo "Enforcing the use of clang due to USE=clang ..."
676 + have_switched_compiler=yes
677 + AR=llvm-ar
678 + CC=${CHOST}-clang
679 + CXX=${CHOST}-clang++
680 + NM=llvm-nm
681 + RANLIB=llvm-ranlib
682 + elif ! use clang && ! tc-is-gcc ; then
683 + # Force gcc
684 + have_switched_compiler=yes
685 + einfo "Enforcing the use of gcc due to USE=-clang ..."
686 + AR=gcc-ar
687 + CC=${CHOST}-gcc
688 + CXX=${CHOST}-g++
689 + NM=gcc-nm
690 + RANLIB=gcc-ranlib
691 + fi
692 +
693 + if [[ -n "${have_switched_compiler}" ]] ; then
694 + # Because we switched active compiler we have to ensure
695 + # that no unsupported flags are set
696 + strip-unsupported-flags
697 + fi
698 +
699 + # Ensure we use correct toolchain
700 + export HOST_CC="$(tc-getBUILD_CC)"
701 + export HOST_CXX="$(tc-getBUILD_CXX)"
702 + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
703 +
704 + # Pass the correct toolchain paths through cbindgen
705 + if tc-is-cross-compiler ; then
706 + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
707 + fi
708 +
709 + # Set MOZILLA_FIVE_HOME
710 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
711 +
712 + # python/mach/mach/mixin/process.py fails to detect SHELL
713 + export SHELL="${EPREFIX}/bin/bash"
714 +
715 + # Set state path
716 + export MOZBUILD_STATE_PATH="${BUILD_DIR}"
717 +
718 + # Set MOZCONFIG
719 + export MOZCONFIG="${S}/.mozconfig"
720 +
721 + # Initialize MOZCONFIG
722 + mozconfig_add_options_ac '' --enable-application=comm/mail
723 +
724 + # Set Gentoo defaults
725 + export MOZILLA_OFFICIAL=1
726 +
727 + mozconfig_add_options_ac 'Gentoo default' \
728 + --allow-addon-sideload \
729 + --disable-cargo-incremental \
730 + --disable-crashreporter \
731 + --disable-install-strip \
732 + --disable-strip \
733 + --disable-updater \
734 + --enable-js-shell \
735 + --enable-official-branding \
736 + --enable-release \
737 + --enable-system-ffi \
738 + --enable-system-pixman \
739 + --host="${CBUILD:-${CHOST}}" \
740 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
741 + --prefix="${EPREFIX}/usr" \
742 + --target="${CHOST}" \
743 + --without-ccache \
744 + --with-intl-api \
745 + --with-libclang-path="$(llvm-config --libdir)" \
746 + --with-system-nspr \
747 + --with-system-nss \
748 + --with-system-png \
749 + --with-system-zlib \
750 + --with-toolchain-prefix="${CHOST}-" \
751 + --with-unsigned-addon-scopes=app,system \
752 + --x-includes="${SYSROOT}${EPREFIX}/usr/include" \
753 + --x-libraries="${SYSROOT}${EPREFIX}/usr/$(get_libdir)"
754 +
755 + # Set update channel
756 + local update_channel=release
757 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
758 + mozconfig_add_options_ac '' --update-channel=${update_channel}
759 +
760 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
761 + mozconfig_add_options_ac '' --enable-rust-simd
762 + fi
763 +
764 + if [[ -s "${S}/api-google.key" ]] ; then
765 + local key_origin="Gentoo default"
766 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
767 + key_origin="User value"
768 + fi
769 +
770 + mozconfig_add_options_ac "${key_origin}" \
771 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
772 + else
773 + einfo "Building without Google API key ..."
774 + fi
775 +
776 + if [[ -s "${S}/api-location.key" ]] ; then
777 + local key_origin="Gentoo default"
778 + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
779 + key_origin="User value"
780 + fi
781 +
782 + mozconfig_add_options_ac "${key_origin}" \
783 + --with-google-location-service-api-keyfile="${S}/api-location.key"
784 + else
785 + einfo "Building without Location API key ..."
786 + fi
787 +
788 + if [[ -s "${S}/api-mozilla.key" ]] ; then
789 + local key_origin="Gentoo default"
790 + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
791 + key_origin="User value"
792 + fi
793 +
794 + mozconfig_add_options_ac "${key_origin}" \
795 + --with-mozilla-api-keyfile="${S}/api-mozilla.key"
796 + else
797 + einfo "Building without Mozilla API key ..."
798 + fi
799 +
800 + mozconfig_use_with system-av1
801 + mozconfig_use_with system-harfbuzz
802 + mozconfig_use_with system-harfbuzz system-graphite2
803 + mozconfig_use_with system-icu
804 + mozconfig_use_with system-jpeg
805 + mozconfig_use_with system-libevent system-libevent "${SYSROOT}${EPREFIX}/usr"
806 + mozconfig_use_with system-libvpx
807 + mozconfig_use_with system-webp
808 +
809 + mozconfig_use_enable dbus
810 +
811 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
812 +
813 + if use hardened ; then
814 + mozconfig_add_options_ac "+hardened" --enable-hardening
815 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
816 + fi
817 +
818 + mozconfig_use_enable jack
819 +
820 + mozconfig_use_enable pulseaudio
821 + # force the deprecated alsa sound code if pulseaudio is disabled
822 + if use kernel_linux && ! use pulseaudio ; then
823 + mozconfig_add_options_ac '-pulseaudio' --enable-alsa
824 + fi
825 +
826 + mozconfig_use_enable sndio
827 +
828 + mozconfig_use_enable wifi necko-wifi
829 +
830 + if use wayland ; then
831 + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland
832 + else
833 + mozconfig_add_options_ac '' --enable-default-toolkit=cairo-gtk3
834 + fi
835 +
836 + if use lto ; then
837 + if use clang ; then
838 + # Upstream only supports lld when using clang
839 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
840 +
841 + mozconfig_add_options_ac '+lto' --enable-lto=cross
842 + else
843 + # ld.gold is known to fail:
844 + # /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld.gold: internal error in set_xindex, at /var/tmp/portage/sys-devel/binutils-2.37_p1-r1/work/binutils-2.37/gold/object.h:1050
845 +
846 + # ThinLTO is currently broken, see bmo#1644409
847 + mozconfig_add_options_ac '+lto' --enable-lto=full
848 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
849 + fi
850 +
851 + if use pgo ; then
852 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
853 +
854 + if use clang ; then
855 + # Used in build/pgo/profileserver.py
856 + export LLVM_PROFDATA="llvm-profdata"
857 + fi
858 + fi
859 + else
860 + # Avoid auto-magic on linker
861 + if use clang ; then
862 + # This is upstream's default
863 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
864 + else
865 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
866 + fi
867 + fi
868 +
869 + # LTO flag was handled via configure
870 + filter-flags '-flto*'
871 +
872 + mozconfig_use_enable debug
873 + if use debug ; then
874 + mozconfig_add_options_ac '+debug' --disable-optimize
875 + else
876 + if is-flag '-g*' ; then
877 + if use clang ; then
878 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
879 + else
880 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
881 + fi
882 + else
883 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
884 + fi
885 +
886 + if is-flag '-O0' ; then
887 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
888 + elif is-flag '-O4' ; then
889 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
890 + elif is-flag '-O3' ; then
891 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
892 + elif is-flag '-O1' ; then
893 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
894 + elif is-flag '-Os' ; then
895 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
896 + else
897 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
898 + fi
899 + fi
900 +
901 + # Debug flag was handled via configure
902 + filter-flags '-g*'
903 +
904 + # Optimization flag was handled via configure
905 + filter-flags '-O*'
906 +
907 + # Modifications to better support ARM, bug #553364
908 + if use cpu_flags_arm_neon ; then
909 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
910 +
911 + if ! tc-is-clang ; then
912 + # thumb options aren't supported when using clang, bug 666966
913 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
914 + --with-thumb=yes \
915 + --with-thumb-interwork=no
916 + fi
917 + fi
918 +
919 + if [[ ${CHOST} == armv*h* ]] ; then
920 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
921 +
922 + if ! use system-libvpx ; then
923 + sed -i \
924 + -e "s|softfp|hard|" \
925 + "${S}"/media/libvpx/moz.build \
926 + || die
927 + fi
928 + fi
929 +
930 + if use clang ; then
931 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
932 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
933 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
934 + local disable_elf_hack=
935 + if use amd64 ; then
936 + disable_elf_hack=yes
937 + elif use x86 ; then
938 + disable_elf_hack=yes
939 + elif use arm ; then
940 + disable_elf_hack=yes
941 + fi
942 +
943 + if [[ -n ${disable_elf_hack} ]] ; then
944 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
945 + fi
946 + elif tc-is-gcc ; then
947 + if ver_test $(gcc-fullversion) -ge 10 ; then
948 + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
949 + append-cxxflags -fno-tree-loop-vectorize
950 + fi
951 + fi
952 +
953 + # Additional ARCH support
954 + case "${ARCH}" in
955 + arm)
956 + # Reduce the memory requirements for linking
957 + if use clang ; then
958 + # Nothing to do
959 + :;
960 + elif tc-ld-is-gold || use lto ; then
961 + append-ldflags -Wl,--no-keep-memory
962 + else
963 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
964 + fi
965 + ;;
966 + esac
967 +
968 + if ! use elibc_glibc ; then
969 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
970 + fi
971 +
972 + # Allow elfhack to work in combination with unstripped binaries
973 + # when they would normally be larger than 2GiB.
974 + append-ldflags "-Wl,--compress-debug-sections=zlib"
975 +
976 + # Make revdep-rebuild.sh happy; Also required for musl
977 + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
978 +
979 + # Pass $MAKEOPTS to build system
980 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
981 +
982 + # Use system's Python environment
983 + export MACH_USE_SYSTEM_PYTHON=1
984 +
985 + # Disable notification when build system has finished
986 + export MOZ_NOSPAM=1
987 +
988 + # Portage sets XARGS environment variable to "xargs -r" by default which
989 + # breaks build system's check_prog() function which doesn't support arguments
990 + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
991 +
992 + # Set build dir
993 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
994 +
995 + # Show flags we will use
996 + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
997 + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
998 + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
999 + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
1000 + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
1001 +
1002 + # Handle EXTRA_CONF and show summary
1003 + local ac opt hash reason
1004 +
1005 + # Apply EXTRA_ECONF entries to $MOZCONFIG
1006 + if [[ -n ${EXTRA_ECONF} ]] ; then
1007 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1008 + for opt in "${ac[@]}"; do
1009 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1010 + done
1011 + fi
1012 +
1013 + echo
1014 + echo "=========================================================="
1015 + echo "Building ${PF} with the following configuration"
1016 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1017 + [[ -z ${hash} || ${hash} == \# ]] \
1018 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1019 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1020 + done
1021 + echo "=========================================================="
1022 + echo
1023 +
1024 + ./mach configure || die
1025 +}
1026 +
1027 +src_compile() {
1028 + local virtx_cmd=
1029 +
1030 + if use pgo ; then
1031 + virtx_cmd=virtx
1032 +
1033 + # Reset and cleanup environment variables used by GNOME/XDG
1034 + gnome2_environment_reset
1035 +
1036 + addpredict /root
1037 + fi
1038 +
1039 + local -x GDK_BACKEND=x11
1040 +
1041 + ${virtx_cmd} ./mach build --verbose \
1042 + || die
1043 +}
1044 +
1045 +src_install() {
1046 + # xpcshell is getting called during install
1047 + pax-mark m \
1048 + "${BUILD_DIR}"/dist/bin/xpcshell \
1049 + "${BUILD_DIR}"/dist/bin/${PN} \
1050 + "${BUILD_DIR}"/dist/bin/plugin-container
1051 +
1052 + DESTDIR="${D}" ./mach install || die
1053 +
1054 + # Upstream cannot ship symlink but we can (bmo#658850)
1055 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1056 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1057 +
1058 + # Don't install llvm-symbolizer from sys-devel/llvm package
1059 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1060 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1061 + fi
1062 +
1063 + # Install policy (currently only used to disable application updates)
1064 + insinto "${MOZILLA_FIVE_HOME}/distribution"
1065 + newins "${FILESDIR}"/distribution.ini distribution.ini
1066 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1067 +
1068 + # Install system-wide preferences
1069 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1070 + insinto "${PREFS_DIR}"
1071 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1072 +
1073 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1074 +
1075 + # Set dictionary path to use system hunspell
1076 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1077 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1078 + EOF
1079 +
1080 + # Force hwaccel prefs if USE=hwaccel is enabled
1081 + if use hwaccel ; then
1082 + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1083 + >>"${GENTOO_PREFS}" \
1084 + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1085 + fi
1086 +
1087 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1088 + if use system-harfbuzz ; then
1089 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1090 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
1091 + EOF
1092 + fi
1093 +
1094 + # Install language packs
1095 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1096 + if [[ -n "${langpacks}" ]] ; then
1097 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1098 + fi
1099 +
1100 + # Install icons
1101 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1102 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1103 +
1104 + insinto /usr/share/icons/hicolor/symbolic/apps
1105 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1106 +
1107 + local icon size
1108 + for icon in "${icon_srcdir}"/default*.png ; do
1109 + size=${icon%.png}
1110 + size=${size##*/default}
1111 +
1112 + if [[ ${size} -eq 48 ]] ; then
1113 + newicon "${icon}" ${PN}.png
1114 + fi
1115 +
1116 + newicon -s ${size} "${icon}" ${PN}.png
1117 + done
1118 +
1119 + # Install menu
1120 + local app_name="Mozilla ${MOZ_PN^}"
1121 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1122 + local desktop_filename="${PN}.desktop"
1123 + local exec_command="${PN}"
1124 + local icon="${PN}"
1125 + local use_wayland="false"
1126 +
1127 + if use wayland ; then
1128 + use_wayland="true"
1129 + fi
1130 +
1131 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1132 +
1133 + sed -i \
1134 + -e "s:@NAME@:${app_name}:" \
1135 + -e "s:@EXEC@:${exec_command}:" \
1136 + -e "s:@ICON@:${icon}:" \
1137 + "${WORKDIR}/${PN}.desktop-template" \
1138 + || die
1139 +
1140 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1141 +
1142 + rm "${WORKDIR}/${PN}.desktop-template" || die
1143 +
1144 + # Install wrapper script
1145 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1146 + newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1147 +
1148 + # Update wrapper
1149 + sed -i \
1150 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1151 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1152 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1153 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1154 + "${ED}/usr/bin/${PN}" \
1155 + || die
1156 +}
1157 +
1158 +pkg_preinst() {
1159 + xdg_pkg_preinst
1160 +
1161 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1162 + # does not need to be forced into the LD_LIBRARY_PATH
1163 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1164 + einfo "APULSE found; Generating library symlinks for sound support ..."
1165 + local lib
1166 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1167 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1168 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1169 + # so we need to avoid creating them if they already exist.
1170 + if [[ ! -L ${lib##*/} ]] ; then
1171 + ln -s "${lib}" ${lib##*/} || die
1172 + fi
1173 + done
1174 + popd &>/dev/null || die
1175 + fi
1176 +}
1177 +
1178 +pkg_postinst() {
1179 + xdg_pkg_postinst
1180 +
1181 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1182 + elog "Apulse was detected at merge time on this system and so it will always be"
1183 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1184 + elog "media-sound/apulse."
1185 + elog
1186 + fi
1187 +
1188 + local show_doh_information
1189 + local show_shortcut_information
1190 +
1191 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1192 + # New install; Tell user that DoH is disabled by default
1193 + show_doh_information=yes
1194 + show_shortcut_information=no
1195 + else
1196 + local replacing_version
1197 + for replacing_version in ${REPLACING_VERSIONS} ; do
1198 + if ver_test "${replacing_version}" -lt 91.0 ; then
1199 + # Tell user that we no longer install a shortcut
1200 + # per supported display protocol
1201 + show_shortcut_information=yes
1202 + fi
1203 + done
1204 + fi
1205 +
1206 + if [[ -n "${show_doh_information}" ]] ; then
1207 + elog
1208 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1209 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1210 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1211 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1212 + elog "(\"Off by choice\") by default."
1213 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1214 + fi
1215 +
1216 + if [[ -n "${show_shortcut_information}" ]] ; then
1217 + elog
1218 + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1219 + elog "each supported display protocol. Instead we will only install"
1220 + elog "one generic Mozilla ${PN^} shortcut."
1221 + elog "If you still want to be able to select between running Mozilla ${PN^}"
1222 + elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1223 + fi
1224 +}