Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/
Date: Wed, 04 May 2022 10:31:35
Message-Id: 1651660287.49c815ae935c23af7370cc060b1a9f0458f7e96b.juippis@gentoo
1 commit: 49c815ae935c23af7370cc060b1a9f0458f7e96b
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 10:24:32 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 10:31:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49c815ae
7
8 mail-client/thunderbird: add 91.9.0
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 mail-client/thunderbird/Manifest | 64 ++
13 mail-client/thunderbird/thunderbird-91.9.0.ebuild | 1139 +++++++++++++++++++++
14 2 files changed, 1203 insertions(+)
15
16 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
17 index d01c60b49d84..1d04d63a2369 100644
18 --- a/mail-client/thunderbird/Manifest
19 +++ b/mail-client/thunderbird/Manifest
20 @@ -127,3 +127,67 @@ DIST thunderbird-91.8.1-vi.xpi 725526 BLAKE2B 3511130169dc5687234e037e35048446b7
21 DIST thunderbird-91.8.1-zh-CN.xpi 730901 BLAKE2B 6001708f9760a81f34bfacf5216c383b8f8726364cb56e70d144f37d42a2d72983c27804eae0bf9f1f45558c8e65058ab7c27af59606b9507325f919e3e3c73f SHA512 aaa6ccd11325fed781d67f0a004c60c1beb1c902c7746a7c7a945abb2424a5afcbd10cf09655e6872754884ad2de062d012eb9de5fb687bd04074ebceeed2932
22 DIST thunderbird-91.8.1-zh-TW.xpi 731944 BLAKE2B 3d09cfe5ba5a23c85745d006c4669485b37b2452f4a0f4e7cc7e5de1ad4cd183682225dca812bc31d474772b525440f125b2f41835d0f017f5ca990124062103 SHA512 c0047a86346a509a73002f89d3b34db76436cb4e09f736dca3f61513a710a632248a6eb8e9b0e8fb3ec3311f49d99d688b827b7723e693e3750b6fdbb050cf54
23 DIST thunderbird-91.8.1.source.tar.xz 403849008 BLAKE2B 77cc2304c656c317e367a9037b6bbbabf382a7be0643ba9ef7e3e95ae5ee7c1f1540c990065973988ce6cd2041a392306be00d0297ee448562fd3529347b6678 SHA512 1591f3e9c76c1f2ea7fa5e194a7d030c8657a7855a95c8a177e8067c5aa838f0d8ca2652cd049b4bc88d0c9e604285a47b0c8316c190e2ceadfc1130d1e4de6c
24 +DIST thunderbird-91.9.0-af.xpi 561893 BLAKE2B a960b28e1076edb28253d6ba37cbabd7ec5e28390b2a03d3534523bf38526fe53c39662962253e796a86e78765e1f2464aaa8834ab89d8347d4d52ce1b04f5b0 SHA512 88ff48ab1881908070abe982cf3de1b6d2e956a7a8b12f2504369e27e1a6f7b00af3cdfccc6f6e6eaba916f05811b88b8ef36218373c1fd709ab5814ad94e67c
25 +DIST thunderbird-91.9.0-ar.xpi 665729 BLAKE2B 89a32911b8efaef9865458440cad6c184df9c70b5aafa580ee49d520dc729f7885eeaeaf83fc28a25b8f5789e5b2e3364beaaf2aa7b87e0cdc5924d5046b8b6c SHA512 ea28bb9b5b13c0d93429239e27f4166a1c408b21973c850482ddf717addfb900e418930dbbfdc86ba6f41a4b561584ca6d3ae4d9118a461ebd856b9b9fe6b488
26 +DIST thunderbird-91.9.0-ast.xpi 580510 BLAKE2B d8af41d54f8b555f678b4f0ae1139153a7d82b7f330f8546b583a7e641b5553b0c1d257a4fd28857f20172416426c1158dae273dd357481f281c4e1a62335e72 SHA512 673575fc93a75631b443ed09df2c3c211f980059202494bd8320d9c4e7d2bdfe7611b83eda7d2c08695cfd7dc7adbbd7edf99e9419d36726434ec5bbd2f61a8e
27 +DIST thunderbird-91.9.0-be.xpi 695198 BLAKE2B f8886653e14038f8866da66f1bf5d1d68e76706b507e17a7085e4ec90651f16edb2ba1ce87fbba2ee90e3cfd408f7ecfebc331edf0e3474ff5f71662fd742a02 SHA512 578dacbda7a6d1fa9759b6bfc2c9118a2918777e19d9f07d32b35b30f8d2e285c69a8bd446d970f135797a41b233fa21a7e73e593bb5d264584e256ebe9e4ccf
28 +DIST thunderbird-91.9.0-bg.xpi 690995 BLAKE2B d7493477749b8fbf720b24857c4e1245bcfc2b130f092d7499c9aaf9e7266c8d25465ca15df6a94a5209b2d792378cac45c3c6eb571825099bbfa793cfbd1e0c SHA512 e6b73c1d372821c0789c195042461ba5339893ca877c63ee3a49f34f8a362e2d1af0eb259168eb0d81565f01f5550e00ee33ac8570d25c3edd4b5ffc10db8444
29 +DIST thunderbird-91.9.0-br.xpi 620587 BLAKE2B 3a6f7b3ff36005e9039a52b80dd7750da7686b883610f5fbb531ee3b078d3e135d3a1f65890eea6d88eed497fd2a2f2d7db1e2e6ba695b9ae19c328d4a6d5cd5 SHA512 54c160a072b51749c4362ea2dadfdf2a1a01183910e8986b33a93f2882218a8f74e250a7bc9fd1c4c9c8cb13c8a5569b0c4a44a91f89f52128ba63a5d86e50bf
30 +DIST thunderbird-91.9.0-ca.xpi 645974 BLAKE2B b149440506fda3cd1512bbe2ed5296e85b2d03d2de2b64a993c3a0797340deaaa0d161eba1f63584ce2065c056b9d9d769191725f3b75ed7affa3ab678b47654 SHA512 af31836f18d45886d8da2fadf9052f6df60f1d4727dde10e21a14e26590a579b4d712cf9a6349bf49a47378723b003f0abbe648e1ec6898924c2256709b4910f
31 +DIST thunderbird-91.9.0-cak.xpi 652066 BLAKE2B b9b8f3b6005d1b4e4b8d04d87e77ee2080b0db92b8d653fd85d29f506a58adea2a41063d9f092683cdfe0e727d833f3c6ede97e5192be59550b0a7025a932b31 SHA512 de05481fefc407713d6d62132099526aa065a4b29c320f4132f622f81d205149f18a7bc7bb60897b2739dabfb72017a2f68cd2427178490b6bd3220101282db8
32 +DIST thunderbird-91.9.0-cs.xpi 711939 BLAKE2B 9c5db0a812dc8ab627093e6ebd466db6375d9a1959d5ec404f24dc6f4a78012e31c446c8c3d82af0eba6043479f39ac83ebd09132727442c4887c16eacf2d19f SHA512 a2199359fd70a7fe19c21028c81e51267d66b908a39434cb9c4166ccab552a5f755e10677a7a2701e1c0514bf6c2d48495c15805403339f01eadbc1b98ee71b0
33 +DIST thunderbird-91.9.0-cy.xpi 688889 BLAKE2B cbf6edb5fab8202c2e5c5eb711fa659c71175d524c0716dcfbd31949b37b7f5cbc95b15a57aa6ce1952e5699942be1e0bab255480ce68d45158e280f9d94bb23 SHA512 354f373faed70932a19aa62a6159c56dd85b7e06576497e8ab954d1293c7393aab20bc8ae03527860d24e69c949963af06606098a87c904eba837af41401a937
34 +DIST thunderbird-91.9.0-da.xpi 674445 BLAKE2B bdc17f982af80ba85a5138ef3650d33d5129f12a4d4f28211a999f5012fffd9ed8031a83cfbbc1b516b26738c718c1c94deb3031cfbc06f9360a5edcc053bbad SHA512 085e2b7af5b01636721dd0162925677e983fd016eba2247a5b5ebf856014e7228cf70b9fc70390cd42575488cb7f3becc63b75777953adcfe6fe93cbaa7622e1
35 +DIST thunderbird-91.9.0-de.xpi 697527 BLAKE2B 452cff7e8ca3f7d10f58504dedbcc42a01e766429ff434bafce3b39e7758cc8fbb20b7652f98f5cdacb2f92f05193e9fa83afa5f1b45aeb34bd6ba15ed80c769 SHA512 b639499d8aded54909098515ded0b522d8d219b4d0ab8a665a4e273f9b103090775bdb15592f369a146e0f72b7d553f54f7f8855896750b6e7590ac22144f182
36 +DIST thunderbird-91.9.0-dsb.xpi 724000 BLAKE2B 9f5f34878c3297aa32050beb31807356ff1921773fc60a0f7922db3bd14e2facaffc42b9b09a2179554121b2cdb7be1d02911b112f156c7f5d4d65f071752b51 SHA512 53971dbd9aaf39a08b5b90b961a63e4ff82a994efede605df6aa88984ab16732e18885ec1abe8aa4e974ebe5a475079de0dea3275498c50080ff5e9ef5be86f5
37 +DIST thunderbird-91.9.0-el.xpi 821181 BLAKE2B 8f1eab436fe7885a72486ccad10266df3dc42dc2468807589708cd42baad1b5bfa96a797236bf541951fbf9ec9a532f36db9364e911da52d0c3c985c118eca27 SHA512 d58983a1473915922c913d42e2c6ce2346cf6221d27c0ac0ec303c99552586752bb381e473d8a669214828a3d446b8303b6a24c63704ceeb658cc4b1f2604ce6
38 +DIST thunderbird-91.9.0-en-CA.xpi 647813 BLAKE2B 5da9891b01efac97c970784178c5a9fdd8c542d9ea72c01a0f03b97e74d371bcf6e6cb19e40c0727c0b321c0bf09bf30ca3c163f6f10f3ec9ae1395242c1e492 SHA512 56608d95b5d79544b5649cf3e8d7d108098f072b9fb1136dd305369a106966acaabc8c0f4ea399c77c726eed5cedd38b9b965c4affcada704362387b7b89b932
39 +DIST thunderbird-91.9.0-en-GB.xpi 650553 BLAKE2B b215bf535dd86ae2ea53a5f1464e2a3d18517c4f9f6d7219d558c38c33fc92b8e747f7910ffd7e8a05773a3322cd1e08f936844a2b902bf4ec20c473b75591cf SHA512 71b4e64388c03c736910b5684375c7c97ac26247304d21d34952e7427613f72997ddf7b972b73c48fc5b60dcbfbbc71476fb71fc278275dc3b958ab105896911
40 +DIST thunderbird-91.9.0-es-AR.xpi 700497 BLAKE2B f809ef5107e619e085a4a4fd3ef56806d93769d582809ddcde1cdb0b75980b7d19d65e6e2e322e9445e79b2f335f88b3fe41e5ed344f201ac0ea5312c3e23095 SHA512 281362a6155144a20a4671127530a5abde1fb3a8d8f6fa7555cdb11f335787eca20c1a65513ac0124d7cc33b0b1afce5454fcebc4323270821da52e77862b199
41 +DIST thunderbird-91.9.0-es-ES.xpi 630920 BLAKE2B 1196ff9935b0b2e64ac033309944503f4c9778caddbfcf2eb76af913db83999fe59cd24cea65b68529515501037454a338e55b83cb80650c0d1e358062a15c95 SHA512 dfac9afd8fb756c072382cdb5ff47974a0b846b8fe5ffca81581fd07167d4f24416e4d3cf1ecea163f5c278c9130a00c061139ee79edf2e18cd58e30f9d4cb06
42 +DIST thunderbird-91.9.0-et.xpi 672170 BLAKE2B c5e555ea9a88a175a70a1ed6c0478cadd0e0e20029cf1efb52073f19368f8ca231fccb583f5aece1ad982f15d42265c75ae21aad7b6b2481e53c6a292a6c53c2 SHA512 fa6b590ace0ce60e36241479466fa67179d9514bea80d61ce1343fd418aa37b8f46e693d6ec6004bd91fd96b5725cd940d329a65de6773f44c16066179730a33
43 +DIST thunderbird-91.9.0-eu.xpi 678262 BLAKE2B be60dbb231b6264476f990120d4ec79549660e97c70e610c92a6568c3d4068bfff37410a1bd079b4a5d1c31620dda037c4334fff054657e0cf0e2d7502f71041 SHA512 b7bbc9321e122e32bd615390d326c12fab1090cbb5bdae04acacdc377d76126f1c5e90b588215ff6eb2c5e9c1c6b147f5777af2eac2f03d63962f1c2ab0ddf44
44 +DIST thunderbird-91.9.0-fi.xpi 676630 BLAKE2B 8a2a57814b2395b04f1db3bc96268452456e0699e4318dc4a2fd0c82df7bbbeec33fb248c7886cbcf0076f7f5dee111aa3780e900288c00de0889aecdd7eb6b5 SHA512 ee2e6d538ead1921ed7936a691bcef876283c559a78c19fc66c4e17d3c0d7f673152a0c929ba260877fca579978c2891edcbaad6c59c73236e63e642f8df8afb
45 +DIST thunderbird-91.9.0-fr.xpi 711454 BLAKE2B 6b35a7495d0d38fbc20d114e2882b9a265ffb0efe290a2b5edec3fdbf31f8d66b78e496a0077d42c6bcb967f4e4a683fbeaa8cd331e951a55f4b2bf9d648d1e5 SHA512 7cb80474ebc3ede31377ffa41816c131cf199917ef144a9c5c888953c64463e36477837d9e9636f72f732ae3299dd4feead55e866bef0beb85bc8f1cffb6de3f
46 +DIST thunderbird-91.9.0-fy-NL.xpi 691879 BLAKE2B 4a172455c0f6dbcbd542df9b4e327f34500ca2216fa625fa51a47acd2edcfba42c5392f235b3d163b2990d1b3ce37b78b9c3ed150955da46c668fe780ae88df3 SHA512 a84a8eeb69ab9b3f0394e05318455c4c7c13169a835719805a1643f6a13c10ffe4466440e134dcd3d88f62ece4e6941e279b78dd8674f6c86796ea160e79728e
47 +DIST thunderbird-91.9.0-ga-IE.xpi 613123 BLAKE2B a998ee6a2064f2bb1b3bb34aa82b8585a5d9d7669f4ded7d1010b83c5a1488efb4d4a66c03b2cee78c5056e766fa5a479db7cb8747817fed949279ce5e97666d SHA512 1ab01b0933073d1e21d89018f75918d12adea1dc8fc9fefa7a439570c675f8602f1bcfd785e661169c62f01b748965dcf7ea622b92b198bcd5f8b84a7b6de28b
48 +DIST thunderbird-91.9.0-gd.xpi 640647 BLAKE2B 53ce6b0a81e7232ec68c3b0bf32bef6e199fdc2dd01fa0c5958ca955e18f22aead55fc8512055d61150d4da063e694ccbd97f6ae43bb24774c0a708086d040a5 SHA512 f6a84137ba5250c328b37a3536713b9ec720da023e5f0d36c559f08af63b063529263a8f5ece62f7d14200334f579ca538bebeb0f426b09d9fb45a6be85a041b
49 +DIST thunderbird-91.9.0-gl.xpi 677788 BLAKE2B 144c036b99b94af984d01a75aba0a870fef392489fff3ee79921c0431a3d6d52af4bb69b95078c166f41dd594ef65c35c4f500a9a2f86a38bcfe9d45c9695055 SHA512 97ad8be20e96bc44b26836df8422cf52131c12632369404bbc19aeb2a286d7724da3d4eed0ad26380ab056743d3e699a7ff8bb3f6f7ad4cfd99de3ff706210a0
50 +DIST thunderbird-91.9.0-he.xpi 673190 BLAKE2B 2e22621ee9dbe0bb913b3fa75ad7bb7dc02ebd833ae168260afefb9feb39d7b6432369a7218664b864fa915c07955c150efb7dfb3eb841a34b58dee3f39229c6 SHA512 0ad821aa399d3d8e5c6c9c4f50b7f2965b3aa0acdac03f033ae82096e1f0d28eafbf127bd67aaf0dab02fe09102de78dafd3e0666ac818ca448ee304ad4df689
51 +DIST thunderbird-91.9.0-hr.xpi 653579 BLAKE2B 61299c76d6dfcd7ad45735258cbac3ed52a12ce5286b17f132e4dd4021a8803651d38a16c80f315aeca1c07fd98ce3ccbc8635f3407390b35539a52d2ea9e25d SHA512 88cb14042028e2d71719d58c64a8a5e7c2cb61a041d24af7632424ec11dd4db2ea63e74b96e46e389f76ecd0f30c3827af3eeb60130dad89b8a24e92269341ab
52 +DIST thunderbird-91.9.0-hsb.xpi 720812 BLAKE2B eaa0d2334a1dac1b1d46fc3846500714b9a1315209e18f79495b6936093b1c6fe1e9c51115e70fb3aec5bf33181adc6a7c20a4c0a7fca7a91e1bbe968d31886a SHA512 a9ecaa1f1cffeb7ccfa4535980162e382a7de352429692a55aee9b9bdcda16ed8e0170dde55f88a8cbe2ff2809d36f2458b8f7173cfe75b09d4270a86fc717d4
53 +DIST thunderbird-91.9.0-hu.xpi 723400 BLAKE2B 4fee3c754f5753cddf8e125e05da74932379a042c69bbb86526a3583519e7de8858fc2986d8f41bccfcee0043444242dba993df14e518cd1a6ecac37ced6facc SHA512 5a5b4ab9861d8e112011357e78d9b0ca9c381bd573fc1964c6f611f6c0a7f7b3959861ec18a7c18649170f42f3a46129e6eea8fc97310013100bdd267a8d3414
54 +DIST thunderbird-91.9.0-id.xpi 648249 BLAKE2B b95977ecc4a70d23e9f3569d9952141b2073e8043571eeba9d0ca53007409129bf0e9fa64816267fbba2c953dc5034909cb98b6912f8f08773411ef39fc36480 SHA512 9274dec833ee126465303506996e4910829c99b815c036ed489a1b483f4bae0cb24558055861d9318a95f3021a5226e2f2c732223754c1239f4907a5787e0368
55 +DIST thunderbird-91.9.0-is.xpi 682262 BLAKE2B 9f68535300adbeff02b138a7e598bd4d0cbc401eaec3ce5ba080f90813f05a3b632a0c4dafc130dd151cedc77931b59ae272d061c10186f9aafcefad270c0294 SHA512 138791eebd4362903a6288a9ca4cffd0d2d09ffd95413a21ca4df7c9c0f6977aa5c1f077154b5a0a735d97e40f83cb9b121debfa08a0b4ea9fcc9c3af25d058f
56 +DIST thunderbird-91.9.0-it.xpi 613333 BLAKE2B b333a3b3b59599e43cd7c6bca94a5f28be3cef7ae6fc87c7e33ed2b578ca1125e09b2986a2f5678eed784d9f62fa992f82cf735f012b97f9f69a38cc66f60097 SHA512 52a6f549f2771c57025074e39845ef0ffc8d002e21118766bbe7f8e304000c45dfab23e602bc7327807d3d8301d5619d35c5b460fee0288a0348903ed4f03f57
57 +DIST thunderbird-91.9.0-ja.xpi 756466 BLAKE2B b59314d0fcb4a2c6f32a72bcf69ffd317fb49ceebd1dafb235278f0ee686ab4a6402fd3e42c2d8b5feaaeec08315820165068b1cfe0705619766fe690a18ae6c SHA512 2f715c015a02efe66da4b19aaa27fb8c4f49c14687e7ab22c40615ea6b5051f13f9e5c4dd008177b66cd42a470a366613bf660b698d9fe3c0c801ba54625e419
58 +DIST thunderbird-91.9.0-ka.xpi 762629 BLAKE2B 03c749271b7a4d420277a42f1cdd6c207b6e728e63d7c3cb3209611bfd8f1802b7560443ce84f8daa85fabbf6a4b098507edeae924279d3b480b64f5b81cabbc SHA512 651a5eb8a641db3bc82357d24bf9a545e591b189c3973ee2aebc6a4403d579911f9d2caf27a1239822b478ec07724b6da2c613e3dc73b996ab457f6a714866c6
59 +DIST thunderbird-91.9.0-kab.xpi 677086 BLAKE2B c117239ae7513d54d830ef4865b93c18bdc51d2585a37c6bd53f2a2061062fa5753bf44ca05399e9bdc1152a15462fac4427be8e5fe02fe3367fd789a5d0f176 SHA512 1d5552138ddc896efd0855af3bc4587c57fdc8a323f35b1b6f574b4bf243745295002a62f6c1b2f2d448542e6f68bbbd7472e152d9e39283bf814eda08c0af7f
60 +DIST thunderbird-91.9.0-kk.xpi 745522 BLAKE2B 544b6cc5f219dda5091dc06c71ddcf9fa17b4844acfa47108e8093cb560c9c0a23383607670554c034e138afc924e416ede094eaf68b18ab32c1b012d92f1f86 SHA512 4751002ff331e59c4da910c068e2415394bd77663b7b87d5a82dd4533cab9f7504a4ed433824fc313554f5c49f6d0acc73979bf94a48e620c2f268e440c1f921
61 +DIST thunderbird-91.9.0-ko.xpi 704769 BLAKE2B 647ed171218ea862591378f5e1580fa55e1372140d5b239a0b3e8ecca9e3a763e3726e561521c1f265009e3f476b347965e812c98ae93ad53636e9240d3f90b1 SHA512 ab45b4eeadf6cd465b0bf90873f146b8094323af795e201f7b033863139559ca35afd546e4333b01cf1ebb9eef9864f5c49ab9ba023ce677e5762a1cc1892313
62 +DIST thunderbird-91.9.0-lt.xpi 696043 BLAKE2B f001d8ac1b63cebd0c1e2b3808e09c88f60eafbf300fad6ee0cc1e099a83a7fcb9a4ec1951c8dc3e5c418e51b46b6a55ab469eaa04e7dad2bb0976b785706f94 SHA512 8529ad40230fe51c1e2cc8eade56cd8a4d9458408e737996614bb7cf5bca4b3fcb83e995ef722d16a364d6e14ed04bf103592c5a97289a5d261e6d8f0783e669
63 +DIST thunderbird-91.9.0-lv.xpi 618523 BLAKE2B 17e1c9ac9745c4584f711ec31c1f481c55a9be02f8e2326d5696836de21504b6a8d6e24538e9b0af9942e5dbf20ec8875ef5d0136a74e58d3fe0a581d2cd25ea SHA512 ae0820426139aa1e88d509d9559141fc2048f9c3b931ac4fc609b5552b7458cf0fb404fcb35218f4dc168b98c334bab261bffe15c0670d99f755ee63295c0eba
64 +DIST thunderbird-91.9.0-ms.xpi 578079 BLAKE2B 595bcaad49cf1a840ceb3992161977283103a9879719e1788eb1037191d33f0995d4edf6de038a76b6a05339fe475d1be8cf6d939561af2c60ae730449477d37 SHA512 1f5451d97ddcc0cf88be6f788b564d1675217dd27b57c418884b421c76cee429499b0678a0caf7f4538b69f168cc562b84e18b8fd1663aabdaf034366ada81a6
65 +DIST thunderbird-91.9.0-nb-NO.xpi 653325 BLAKE2B 78c244ff057e58bd97e6e8741fcaf07d556cacfb690f143371b4cbd394a2cee02cec5dc334f009a79c28040ba5f689d325e7c9fb309c53e0ed13d98411fbcaef SHA512 755dea2d0608afd85782554d6d5fdd8a952f1b78e34d27e6eff3460bc21fa1acf4795f969803892bea39ab7f07a22847a1f2dfef1e11c056df3a1aa642368911
66 +DIST thunderbird-91.9.0-nl.xpi 685342 BLAKE2B e692fb2d0925f47ddd36317e47011ba55fa92e78cd675c084a8a362b70359008236cdb1145d9a57aa6da1b25c9e3b6957d00d5205dc8294e3f21f62f25805f4a SHA512 9c451d80f4c0494cea1786e26933c1563d767d32eeb957a24c138c353aee6c972f977130242ffd4648141238983cd9c945037f56a43297db4366efc5806adaae
67 +DIST thunderbird-91.9.0-nn-NO.xpi 658572 BLAKE2B 400c7c211b77d88de42b0e689c0d7cc80643010cefc219c09a2030cdfe90228b6c34b9a410751fd431afe9556a2ff54c422260735d5466ba36f82956f436f006 SHA512 0fa3bb155c9d30b7f5d47c2b7b26fc9130b3479144920a4214ad39c5f811806b085b756a62ced7840174835c621d5b0c5ebdb286d742fb320562233d91a92a8a
68 +DIST thunderbird-91.9.0-pa-IN.xpi 652334 BLAKE2B dc03b3385a6ca9a299dc6aef455a7f482049ac305fd7f592ed389184bf7f8ba6893f4c4ae96a1cb99415d04248d90eaf3725886d744d85eda35cb5c36b10c0d9 SHA512 a180f8388d958af5ce54b7ae55b73c0d36950f94c73499c784c6c3314297713b314c95774dd53375db4a8b47d40ba315ae2574027127469b48bcc8c2010df1c0
69 +DIST thunderbird-91.9.0-pl.xpi 694111 BLAKE2B 00d7b6aee28790b8abe758fde4e6473950e7dfceb56c7dbd465593283e0078a48726f1f69e68dd115e2b9d34590d30dbcb5c6cee074868c419619c797c78fe51 SHA512 3dd4254fc63f44bf9e8171a4f2a0c4774496857db4d5334ef587ab6b2d4bccca5748ee4228e11373945b81f6339e7095a65faa3976a7cb2034f59fd5b4fb54cd
70 +DIST thunderbird-91.9.0-pt-BR.xpi 694133 BLAKE2B 617276cdfe1ebe175d4b31dac5b60abed7ee0d9d47ef6ddce544a8bc597aa6a9e751736fd25cce76722fa09fa71e69b0840e90bd4e9cb8af853393822a714c4d SHA512 75e4f329e69a5362915ee15a3a9e83030f0013b1a8bae0bfe32976ae8d2915d7bad4e1a372df90fde78e7392d53aade50450350b9adee573931eb7af7a20e364
71 +DIST thunderbird-91.9.0-pt-PT.xpi 674674 BLAKE2B 7860059703f3c3f53c4947743c6c88b17f672a9cd1b3e55eccbe11169f9b44a4f699b0f2eb0011872d25a8f5b2260e532cea6dab93c04f8d4c7f56a22abe2403 SHA512 a41c5975f80e2a7b6199a4eb89fd14578b3eb003faf50f2cf8e8960c6283005f0170cddae897b446f31326e6efe811fda76fdf590985ed383089372dc0e90632
72 +DIST thunderbird-91.9.0-rm.xpi 687613 BLAKE2B 8876019fba14ac1cb3f6f325f2a2a1fa2323f4e566f83de058ec890862e27201a9a8e2a527c135c2862c3989da3b0df6be1734b818a65f4c576950f4b9fa8928 SHA512 249367a350a23c4f65c87b10598e08b708cdb645152f0405f98c14c407309f39862a4112865fbf22d2c3c388f4a9c1b0233322f88928e98f592d53c02ceb4533
73 +DIST thunderbird-91.9.0-ro.xpi 661345 BLAKE2B e58308083c72db3980cee4fbb1980a786f3599bf9c057312b2f7c6fca53b5f15d8d361868cccb622ef036c01382da65b63c2d89e16ecd4a07bac361bed2296c3 SHA512 b260a659a55d3722add2eba16ad3bb871e9b4ad206139d280fc304289cc38927e3f9052a5791cfdde82995844ec0e857fa7f0909fa02e88ca7eb3ce231b0dbbc
74 +DIST thunderbird-91.9.0-ru.xpi 793375 BLAKE2B e3dbf6f667490ad5784e14e2f7f16387f8ba0c8d5ed6db21359f1696c0ff6cb12578435468b25a3766873a24a0c5dbc62bbd29148217e31569e64a855f0a2c4c SHA512 68f636e51bfcadd3bcfaf474d646786573f103d21d2a74b0b10efb7ea7c224e9712a78a46411850909c9cb51a3b2cd9c9986001df8c4871875516ba86b1ec77c
75 +DIST thunderbird-91.9.0-sk.xpi 721092 BLAKE2B e12237d25e9de32ec9264a3a50a9a37e651d1f9cc01c61158a14e44446c4bc57dcabd98fb25f9b2b57b321fd9d8dd77442dfb8d25da473b33c769a3019dda5ef SHA512 a7b557163897aebec1c9f541320a08e0d6135ee4450e628697371cc07891870db3cb2e4c0c1ca3792a099042b757681a2ee2a984f20367f44fe3f51007527032
76 +DIST thunderbird-91.9.0-sl.xpi 682544 BLAKE2B 60203f9194ee028a941153ef8f1c15ac3e560723fa5ea342269f285523bbcdf2b88fc3479c1afa6aab26eee6d0c6caab25e110d3b89121820f9083e87bb398cf SHA512 87b9143619d9d6b87b30246e22c387279c25a0739897d3d695e89ac0eb30eb292979793df37cc804c98546b99bd8d4310b287445c3925c81f807a747dbe09c68
77 +DIST thunderbird-91.9.0-sq.xpi 703626 BLAKE2B 30664accc70eb50f04f9431104af849d30c516d8b331009f6fbfd333bae4b7878a7f3096b9dd633e26c0756025f50a79df5c27f0952e155fcc09fbd3c6fb2e73 SHA512 b0e94ac7eece597d8b3539ae16a5b64f0023e5a597ee94a9d595f597022ba3f707b796425bf484d0b8105ce8307f1cb9fe0bb46d642db12462272a666a6bff3f
78 +DIST thunderbird-91.9.0-sr.xpi 710564 BLAKE2B 27b9eeef78c5119febdc144026c1c96ef0f7bf5aac96e643c846e483ca999eb9fe2df653e15c755afcfee25a06b2f572b49b9f08c2ab76ed4909f257b98d5a04 SHA512 553c34a62ebd2f15c993bef76c649760a532e22be2236509dc6c529a37549dcadaba8dcf929fcc8704712ca3740ae647a5d1fa7edeb279210cd624d0b788cdbf
79 +DIST thunderbird-91.9.0-sv-SE.xpi 690968 BLAKE2B 875a193a3436d3df7903bea03d90d5b152de46b22f59408b48eb290c113410e1f587ed97f80b706a37ef59ca9b4def64a6492475f64d86a096c025f320562607 SHA512 83874b839edb45be55ea428a4c57a2e75a59ce389bcc9a56a36b7257177d61599cfc11875529062f5ba4cdf40f4ed9374af6e846a3d02b1de2322b32ea2110ca
80 +DIST thunderbird-91.9.0-th.xpi 748754 BLAKE2B ddd63fc2d2de718d5d76fadf46b76aaa57a459d9777a6609a22796f5943004c7baa5640448d947a27fd306b60d36d18ff8a55cb83dbf30d31b5c15f990f7da27 SHA512 e12bdb07eca97361f1f7b0edcce5d127996a13829d882324f88f358f615eacb40ce15f3597181a529d747e986a49aa09cf40190623be1916320d4c373f8cdeb8
81 +DIST thunderbird-91.9.0-tr.xpi 699653 BLAKE2B e7af633ab015d55f55f7a7697c37adfb8e5e8aceded90577c787f191649f6cb63f94a5b7e3a2a592ad74914661e176441b9a7fb6e89089d0838cf88bd53d6847 SHA512 bfa109ab0cc8309100a653d8d3b39f14aa4178ed6aa490a825274d9ced25141f896a63bc93b4556d104ee3d930057e989ac9452f262f1f7e99a5a9b5f1d0ed5f
82 +DIST thunderbird-91.9.0-uk.xpi 798482 BLAKE2B 03518c9a11aa24c3db8a13670b7384befd324fcb362cbc26c7be7909d35b88afd20d5b32e097b71dd1c0b2974d682338ea2e823aade72de5ef2994112401b031 SHA512 f78b1ae06c75c518de7a0229d64f26b2eec6a60aed637d8f3c91d2a74c6d3082caf11d84b41ac2d1688c38804e48ea5c8a1da15f7da7e7b88c528396669e7999
83 +DIST thunderbird-91.9.0-uz.xpi 595923 BLAKE2B 891c2b2e6f053c0360025bd59a4320e79cd3fd673a47922a091361b3bb45d15f92e6ac112af94abb407be2bff22ac4ed3d5c647e0ad6ac5f502a9d2756ff8346 SHA512 d94cfa93c26f1f654da9d26419ed63102a88b94732806c6c6c1363afe3adfb10535b68aa2d2f0117854f9a5b9478fc45e165bf5cc714795e3080e2fe9f53d259
84 +DIST thunderbird-91.9.0-vi.xpi 725525 BLAKE2B 461921f0281f635f4538f3f6303857526fff956b3911aae4473d9e191cbaf9b3ab639f25d54fd0490439f8e6d8e0ef0a83ef33f066c4c48fb3b37bb95b982023 SHA512 1e0bcef6b3d5885d95b792ce86545eb52d57805ef0bf7315224e624ee849c3219c4cd97cf74d9496844887108e6f583d58b2258dedd9d0d60284d7655beca8f6
85 +DIST thunderbird-91.9.0-zh-CN.xpi 730902 BLAKE2B 7b4afa2580ee07dc098940df67e457470cc03cc5f9680e4703ea9001af352113955c54fb318df0335977d41e426b873e41ea2364a7040b75edcd3fdb7a275411 SHA512 7e08d73b0a720800440ec7eb2d5ffd0e7ab393c6e6ecca515f5005bf1e4369a2b048fe5f4805536fc067712aab3b321c9bd546a342762114eac51f59871dff57
86 +DIST thunderbird-91.9.0-zh-TW.xpi 731944 BLAKE2B f1735f02aa8b45ee25ae684e0d63cc132bb6d1993f612bad9882a053749065d8bc0549fb5d74ca97cb4af306e8add6a466c1c001e7c148ebaf18130609a0602a SHA512 6030ad6d3c3b467ceabffbfff4d808ab5c63ffac4ece12b6c81116cf1a9b7cc5ce447f050115b60226ba0d3f9720636cb634bc7beda877eeab55765f1eb799f2
87 +DIST thunderbird-91.9.0.source.tar.xz 403847916 BLAKE2B 6905f18cace97cea12c02776d6b96259fe893cd416e14b4945e2a5982b025d11b4c74736cb6929211c6a9d13f0a5099b77bd40337a3b2c6a8cb9ee5f8fe35cb7 SHA512 474b5aca9c5e54fdc72eebff938f0d217bc039c3ac8d1caf965fb61bd1cf349f389a1df751a525de567a1eeabd7bb1bf2246014e84c7aab89edce059fe2e72d1
88
89 diff --git a/mail-client/thunderbird/thunderbird-91.9.0.ebuild b/mail-client/thunderbird/thunderbird-91.9.0.ebuild
90 new file mode 100644
91 index 000000000000..a40dc07faedd
92 --- /dev/null
93 +++ b/mail-client/thunderbird/thunderbird-91.9.0.ebuild
94 @@ -0,0 +1,1139 @@
95 +# Copyright 1999-2022 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-06j.tar.xz"
101 +
102 +LLVM_MAX_SLOT=14
103 +
104 +PYTHON_COMPAT=( python3_{8..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 optfeature 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/~{juippis,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"
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-png +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:14
178 + sys-devel/llvm:14
179 + clang? (
180 + =sys-devel/lld-14*
181 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
182 + )
183 + )
184 + (
185 + sys-devel/clang:13
186 + sys-devel/llvm:13
187 + clang? (
188 + =sys-devel/lld-13*
189 + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
190 + )
191 + )
192 + (
193 + sys-devel/clang:12
194 + sys-devel/llvm:12
195 + clang? (
196 + =sys-devel/lld-12*
197 + pgo? ( =sys-libs/compiler-rt-sanitizers-12*[profile] )
198 + )
199 + )
200 + )
201 + amd64? ( >=dev-lang/nasm-2.13 )
202 + x86? ( >=dev-lang/nasm-2.13 )"
203 +
204 +COMMON_DEPEND="
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 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) )
217 + virtual/freedesktop-icon-theme
218 + >=x11-libs/pixman-0.19.2
219 + >=dev-libs/glib-2.26:2
220 + >=sys-libs/zlib-1.2.3
221 + >=dev-libs/libffi-3.0.10:=
222 + media-video/ffmpeg
223 + x11-libs/libX11
224 + x11-libs/libxcb:=
225 + x11-libs/libXcomposite
226 + x11-libs/libXdamage
227 + x11-libs/libXext
228 + x11-libs/libXfixes
229 + x11-libs/libXrender
230 + x11-libs/libXt
231 + dbus? (
232 + sys-apps/dbus
233 + dev-libs/dbus-glib
234 + )
235 + system-av1? (
236 + >=media-libs/dav1d-0.8.1:=
237 + >=media-libs/libaom-1.0.0:=
238 + )
239 + system-harfbuzz? (
240 + >=media-libs/harfbuzz-2.8.1:0=
241 + >=media-gfx/graphite2-1.3.13
242 + )
243 + system-icu? ( >=dev-libs/icu-69.1:= )
244 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
245 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
246 + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
247 + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
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="${COMMON_DEPEND}
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="${COMMON_DEPEND}
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 + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
496 + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
497 + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
498 +
499 + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
500 + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
501 + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
502 + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
503 + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
504 + eerror " - Build ${CATEGORY}/${PN} without USE=lto"
505 + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
506 + eerror " llvm/clang/lld/rust chain depending on your @world updates)"
507 + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
508 + fi
509 + fi
510 +
511 + if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \
512 + && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then
513 + # bug 792705
514 + eerror "Using GCC 11 to compile firefox is currently known to be broken (see bug #792705)."
515 + die "Set USE=clang or select <gcc-11 to build ${CATEGORY}/${P}."
516 + fi
517 +
518 + python-any-r1_pkg_setup
519 +
520 + # Avoid PGO profiling problems due to enviroment leakage
521 + # These should *always* be cleaned up anyway
522 + unset \
523 + DBUS_SESSION_BUS_ADDRESS \
524 + DISPLAY \
525 + ORBIT_SOCKETDIR \
526 + SESSION_MANAGER \
527 + XAUTHORITY \
528 + XDG_CACHE_HOME \
529 + XDG_SESSION_COOKIE
530 +
531 + # Build system is using /proc/self/oom_score_adj, bug #604394
532 + addpredict /proc/self/oom_score_adj
533 +
534 + if use pgo ; then
535 + # Allow access to GPU during PGO run
536 + local ati_cards mesa_cards nvidia_cards render_cards
537 + shopt -s nullglob
538 +
539 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
540 + if [[ -n "${ati_cards}" ]] ; then
541 + addpredict "${ati_cards}"
542 + fi
543 +
544 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
545 + if [[ -n "${mesa_cards}" ]] ; then
546 + addpredict "${mesa_cards}"
547 + fi
548 +
549 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
550 + if [[ -n "${nvidia_cards}" ]] ; then
551 + addpredict "${nvidia_cards}"
552 + fi
553 +
554 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
555 + if [[ -n "${render_cards}" ]] ; then
556 + addpredict "${render_cards}"
557 + fi
558 +
559 + shopt -u nullglob
560 + fi
561 +
562 + if ! mountpoint -q /dev/shm ; then
563 + # If /dev/shm is not available, configure is known to fail with
564 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
565 + ewarn "/dev/shm is not mounted -- expect build failures!"
566 + fi
567 +
568 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
569 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
570 + # get your own set of keys.
571 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
572 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
573 + fi
574 +
575 + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
576 + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
577 + fi
578 +
579 + # Mozilla API keys (see https://location.services.mozilla.com/api)
580 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
581 + # get your own set of keys.
582 + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
583 + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
584 + fi
585 +
586 + # Ensure we use C locale when building, bug #746215
587 + export LC_ALL=C
588 + fi
589 +}
590 +
591 +src_unpack() {
592 + local _lp_dir="${WORKDIR}/language_packs"
593 + local _src_file
594 +
595 + if [[ ! -d "${_lp_dir}" ]] ; then
596 + mkdir "${_lp_dir}" || die
597 + fi
598 +
599 + for _src_file in ${A} ; do
600 + if [[ ${_src_file} == *.xpi ]]; then
601 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
602 + else
603 + unpack ${_src_file}
604 + fi
605 + done
606 +}
607 +
608 +src_prepare() {
609 + if use lto; then
610 + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
611 + fi
612 +
613 + if use system-av1 && has_version "<media-libs/dav1d-1.0.0"; then
614 + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
615 + elog "<media-libs/dav1d-1.0.0 detected, removing 1.0.0 compat patch."
616 + elif ! use system-av1; then
617 + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
618 + elog "-system-av1 USE flag detected, removing 1.0.0 compat patch."
619 + fi
620 +
621 + eapply "${WORKDIR}/firefox-patches"
622 +
623 + # Allow user to apply any additional patches without modifing ebuild
624 + eapply_user
625 +
626 + # Make cargo respect MAKEOPTS
627 + export CARGO_BUILD_JOBS="$(makeopts_jobs)"
628 +
629 + # Make LTO respect MAKEOPTS
630 + sed -i \
631 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
632 + "${S}"/build/moz.configure/lto-pgo.configure \
633 + || die "sed failed to set num_cores"
634 +
635 + # Make ICU respect MAKEOPTS
636 + sed -i \
637 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
638 + "${S}"/intl/icu_sources_data.py \
639 + || die "sed failed to set num_cores"
640 +
641 + # sed-in toolchain prefix
642 + sed -i \
643 + -e "s/objdump/${CHOST}-objdump/" \
644 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
645 + || die "sed failed to set toolchain prefix"
646 +
647 + sed -i \
648 + -e 's/ccache_stats = None/return None/' \
649 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
650 + || die "sed failed to disable ccache stats call"
651 +
652 + einfo "Removing pre-built binaries ..."
653 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
654 +
655 + # Clearing checksums where we have applied patches
656 + moz_clear_vendor_checksums target-lexicon-0.9.0
657 +
658 + # Create build dir
659 + BUILD_DIR="${WORKDIR}/${PN}_build"
660 + mkdir -p "${BUILD_DIR}" || die
661 +
662 + # Write API keys to disk
663 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
664 + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
665 + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
666 +
667 + xdg_src_prepare
668 +}
669 +
670 +src_configure() {
671 + # Show flags set at the beginning
672 + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
673 + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
674 + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
675 + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
676 + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
677 +
678 + local have_switched_compiler=
679 + if use clang && ! tc-is-clang ; then
680 + # Force clang
681 + einfo "Enforcing the use of clang due to USE=clang ..."
682 + have_switched_compiler=yes
683 + AR=llvm-ar
684 + CC=${CHOST}-clang
685 + CXX=${CHOST}-clang++
686 + NM=llvm-nm
687 + RANLIB=llvm-ranlib
688 + elif ! use clang && ! tc-is-gcc ; then
689 + # Force gcc
690 + have_switched_compiler=yes
691 + einfo "Enforcing the use of gcc due to USE=-clang ..."
692 + AR=gcc-ar
693 + CC=${CHOST}-gcc
694 + CXX=${CHOST}-g++
695 + NM=gcc-nm
696 + RANLIB=gcc-ranlib
697 + fi
698 +
699 + if [[ -n "${have_switched_compiler}" ]] ; then
700 + # Because we switched active compiler we have to ensure
701 + # that no unsupported flags are set
702 + strip-unsupported-flags
703 + fi
704 +
705 + # Ensure we use correct toolchain
706 + export HOST_CC="$(tc-getBUILD_CC)"
707 + export HOST_CXX="$(tc-getBUILD_CXX)"
708 + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
709 +
710 + # Pass the correct toolchain paths through cbindgen
711 + if tc-is-cross-compiler ; then
712 + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
713 + fi
714 +
715 + # Set MOZILLA_FIVE_HOME
716 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
717 +
718 + # python/mach/mach/mixin/process.py fails to detect SHELL
719 + export SHELL="${EPREFIX}/bin/bash"
720 +
721 + # Set state path
722 + export MOZBUILD_STATE_PATH="${BUILD_DIR}"
723 +
724 + # Set MOZCONFIG
725 + export MOZCONFIG="${S}/.mozconfig"
726 +
727 + # Initialize MOZCONFIG
728 + mozconfig_add_options_ac '' --enable-application=comm/mail
729 +
730 + # Set Gentoo defaults
731 + export MOZILLA_OFFICIAL=1
732 +
733 + mozconfig_add_options_ac 'Gentoo default' \
734 + --allow-addon-sideload \
735 + --disable-cargo-incremental \
736 + --disable-crashreporter \
737 + --disable-install-strip \
738 + --disable-strip \
739 + --disable-updater \
740 + --enable-js-shell \
741 + --enable-official-branding \
742 + --enable-release \
743 + --enable-system-ffi \
744 + --enable-system-pixman \
745 + --host="${CBUILD:-${CHOST}}" \
746 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
747 + --prefix="${EPREFIX}/usr" \
748 + --target="${CHOST}" \
749 + --without-ccache \
750 + --with-intl-api \
751 + --with-libclang-path="$(llvm-config --libdir)" \
752 + --with-system-nspr \
753 + --with-system-nss \
754 + --with-system-zlib \
755 + --with-toolchain-prefix="${CHOST}-" \
756 + --with-unsigned-addon-scopes=app,system \
757 + --x-includes="${SYSROOT}${EPREFIX}/usr/include" \
758 + --x-libraries="${SYSROOT}${EPREFIX}/usr/$(get_libdir)"
759 +
760 + # Set update channel
761 + local update_channel=release
762 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
763 + mozconfig_add_options_ac '' --update-channel=${update_channel}
764 +
765 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
766 + mozconfig_add_options_ac '' --enable-rust-simd
767 + fi
768 +
769 + if [[ -s "${S}/api-google.key" ]] ; then
770 + local key_origin="Gentoo default"
771 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
772 + key_origin="User value"
773 + fi
774 +
775 + mozconfig_add_options_ac "${key_origin}" \
776 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
777 + else
778 + einfo "Building without Google API key ..."
779 + fi
780 +
781 + if [[ -s "${S}/api-location.key" ]] ; then
782 + local key_origin="Gentoo default"
783 + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
784 + key_origin="User value"
785 + fi
786 +
787 + mozconfig_add_options_ac "${key_origin}" \
788 + --with-google-location-service-api-keyfile="${S}/api-location.key"
789 + else
790 + einfo "Building without Location API key ..."
791 + fi
792 +
793 + if [[ -s "${S}/api-mozilla.key" ]] ; then
794 + local key_origin="Gentoo default"
795 + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
796 + key_origin="User value"
797 + fi
798 +
799 + mozconfig_add_options_ac "${key_origin}" \
800 + --with-mozilla-api-keyfile="${S}/api-mozilla.key"
801 + else
802 + einfo "Building without Mozilla API key ..."
803 + fi
804 +
805 + mozconfig_use_with system-av1
806 + mozconfig_use_with system-harfbuzz
807 + mozconfig_use_with system-harfbuzz system-graphite2
808 + mozconfig_use_with system-icu
809 + mozconfig_use_with system-jpeg
810 + mozconfig_use_with system-libevent system-libevent "${SYSROOT}${EPREFIX}/usr"
811 + mozconfig_use_with system-libvpx
812 + mozconfig_use_with system-png
813 + mozconfig_use_with system-webp
814 +
815 + mozconfig_use_enable dbus
816 +
817 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
818 +
819 + if use hardened ; then
820 + mozconfig_add_options_ac "+hardened" --enable-hardening
821 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
822 + fi
823 +
824 + mozconfig_use_enable jack
825 +
826 + mozconfig_use_enable pulseaudio
827 + # force the deprecated alsa sound code if pulseaudio is disabled
828 + if use kernel_linux && ! use pulseaudio ; then
829 + mozconfig_add_options_ac '-pulseaudio' --enable-alsa
830 + fi
831 +
832 + mozconfig_use_enable sndio
833 +
834 + mozconfig_use_enable wifi necko-wifi
835 +
836 + if use wayland ; then
837 + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland
838 + else
839 + mozconfig_add_options_ac '' --enable-default-toolkit=cairo-gtk3
840 + fi
841 +
842 + if use lto ; then
843 + if use clang ; then
844 + # Upstream only supports lld when using clang
845 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
846 +
847 + mozconfig_add_options_ac '+lto' --enable-lto=cross
848 + else
849 + # ld.gold is known to fail:
850 + # /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
851 +
852 + # ThinLTO is currently broken, see bmo#1644409
853 + mozconfig_add_options_ac '+lto' --enable-lto=full
854 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
855 + fi
856 +
857 + if use pgo ; then
858 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
859 +
860 + if use clang ; then
861 + # Used in build/pgo/profileserver.py
862 + export LLVM_PROFDATA="llvm-profdata"
863 + fi
864 + fi
865 + else
866 + # Avoid auto-magic on linker
867 + if use clang ; then
868 + # This is upstream's default
869 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
870 + else
871 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
872 + fi
873 + fi
874 +
875 + # LTO flag was handled via configure
876 + filter-flags '-flto*'
877 +
878 + mozconfig_use_enable debug
879 + if use debug ; then
880 + mozconfig_add_options_ac '+debug' --disable-optimize
881 + else
882 + if is-flag '-g*' ; then
883 + if use clang ; then
884 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
885 + else
886 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
887 + fi
888 + else
889 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
890 + fi
891 +
892 + if is-flag '-O0' ; then
893 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
894 + elif is-flag '-O4' ; then
895 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
896 + elif is-flag '-O3' ; then
897 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
898 + elif is-flag '-O1' ; then
899 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
900 + elif is-flag '-Os' ; then
901 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
902 + else
903 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
904 + fi
905 + fi
906 +
907 + # Debug flag was handled via configure
908 + filter-flags '-g*'
909 +
910 + # Optimization flag was handled via configure
911 + filter-flags '-O*'
912 +
913 + # Modifications to better support ARM, bug #553364
914 + if use cpu_flags_arm_neon ; then
915 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
916 +
917 + if ! tc-is-clang ; then
918 + # thumb options aren't supported when using clang, bug 666966
919 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
920 + --with-thumb=yes \
921 + --with-thumb-interwork=no
922 + fi
923 + fi
924 +
925 + if [[ ${CHOST} == armv*h* ]] ; then
926 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
927 +
928 + if ! use system-libvpx ; then
929 + sed -i \
930 + -e "s|softfp|hard|" \
931 + "${S}"/media/libvpx/moz.build \
932 + || die
933 + fi
934 + fi
935 +
936 + if use clang ; then
937 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
938 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
939 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
940 + local disable_elf_hack=
941 + if use amd64 ; then
942 + disable_elf_hack=yes
943 + elif use x86 ; then
944 + disable_elf_hack=yes
945 + elif use arm ; then
946 + disable_elf_hack=yes
947 + fi
948 +
949 + if [[ -n ${disable_elf_hack} ]] ; then
950 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
951 + fi
952 + elif tc-is-gcc ; then
953 + if ver_test $(gcc-fullversion) -ge 10 ; then
954 + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
955 + append-cxxflags -fno-tree-loop-vectorize
956 + fi
957 + fi
958 +
959 + # Additional ARCH support
960 + case "${ARCH}" in
961 + arm)
962 + # Reduce the memory requirements for linking
963 + if use clang ; then
964 + # Nothing to do
965 + :;
966 + elif tc-ld-is-gold || use lto ; then
967 + append-ldflags -Wl,--no-keep-memory
968 + else
969 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
970 + fi
971 + ;;
972 + esac
973 +
974 + if ! use elibc_glibc ; then
975 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
976 + fi
977 +
978 + # Allow elfhack to work in combination with unstripped binaries
979 + # when they would normally be larger than 2GiB.
980 + append-ldflags "-Wl,--compress-debug-sections=zlib"
981 +
982 + # Make revdep-rebuild.sh happy; Also required for musl
983 + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
984 +
985 + # Pass $MAKEOPTS to build system
986 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
987 +
988 + # Use system's Python environment
989 + export MACH_USE_SYSTEM_PYTHON=1
990 +
991 + # Disable notification when build system has finished
992 + export MOZ_NOSPAM=1
993 +
994 + # Portage sets XARGS environment variable to "xargs -r" by default which
995 + # breaks build system's check_prog() function which doesn't support arguments
996 + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
997 +
998 + # Set build dir
999 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
1000 +
1001 + # Show flags we will use
1002 + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
1003 + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
1004 + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
1005 + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
1006 + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
1007 +
1008 + # Handle EXTRA_CONF and show summary
1009 + local ac opt hash reason
1010 +
1011 + # Apply EXTRA_ECONF entries to $MOZCONFIG
1012 + if [[ -n ${EXTRA_ECONF} ]] ; then
1013 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1014 + for opt in "${ac[@]}"; do
1015 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1016 + done
1017 + fi
1018 +
1019 + echo
1020 + echo "=========================================================="
1021 + echo "Building ${PF} with the following configuration"
1022 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1023 + [[ -z ${hash} || ${hash} == \# ]] \
1024 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1025 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1026 + done
1027 + echo "=========================================================="
1028 + echo
1029 +
1030 + ./mach configure || die
1031 +}
1032 +
1033 +src_compile() {
1034 + local virtx_cmd=
1035 +
1036 + if use pgo ; then
1037 + virtx_cmd=virtx
1038 +
1039 + # Reset and cleanup environment variables used by GNOME/XDG
1040 + gnome2_environment_reset
1041 +
1042 + addpredict /root
1043 + fi
1044 +
1045 + local -x GDK_BACKEND=x11
1046 +
1047 + ${virtx_cmd} ./mach build --verbose \
1048 + || die
1049 +}
1050 +
1051 +src_install() {
1052 + # xpcshell is getting called during install
1053 + pax-mark m \
1054 + "${BUILD_DIR}"/dist/bin/xpcshell \
1055 + "${BUILD_DIR}"/dist/bin/${PN} \
1056 + "${BUILD_DIR}"/dist/bin/plugin-container
1057 +
1058 + DESTDIR="${D}" ./mach install || die
1059 +
1060 + # Upstream cannot ship symlink but we can (bmo#658850)
1061 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1062 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1063 +
1064 + # Don't install llvm-symbolizer from sys-devel/llvm package
1065 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1066 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1067 + fi
1068 +
1069 + # Install policy (currently only used to disable application updates)
1070 + insinto "${MOZILLA_FIVE_HOME}/distribution"
1071 + newins "${FILESDIR}"/distribution.ini distribution.ini
1072 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1073 +
1074 + # Install system-wide preferences
1075 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1076 + insinto "${PREFS_DIR}"
1077 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1078 +
1079 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1080 +
1081 + # Set dictionary path to use system hunspell
1082 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1083 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1084 + EOF
1085 +
1086 + # Force hwaccel prefs if USE=hwaccel is enabled
1087 + if use hwaccel ; then
1088 + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1089 + >>"${GENTOO_PREFS}" \
1090 + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1091 + fi
1092 +
1093 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1094 + if use system-harfbuzz ; then
1095 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1096 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
1097 + EOF
1098 + fi
1099 +
1100 + # Install language packs
1101 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1102 + if [[ -n "${langpacks}" ]] ; then
1103 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1104 + fi
1105 +
1106 + # Install icons
1107 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1108 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1109 +
1110 + insinto /usr/share/icons/hicolor/symbolic/apps
1111 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1112 +
1113 + local icon size
1114 + for icon in "${icon_srcdir}"/default*.png ; do
1115 + size=${icon%.png}
1116 + size=${size##*/default}
1117 +
1118 + if [[ ${size} -eq 48 ]] ; then
1119 + newicon "${icon}" ${PN}.png
1120 + fi
1121 +
1122 + newicon -s ${size} "${icon}" ${PN}.png
1123 + done
1124 +
1125 + # Install menu
1126 + local app_name="Mozilla ${MOZ_PN^}"
1127 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1128 + local desktop_filename="${PN}.desktop"
1129 + local exec_command="${PN}"
1130 + local icon="${PN}"
1131 + local use_wayland="false"
1132 +
1133 + if use wayland ; then
1134 + use_wayland="true"
1135 + fi
1136 +
1137 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1138 +
1139 + sed -i \
1140 + -e "s:@NAME@:${app_name}:" \
1141 + -e "s:@EXEC@:${exec_command}:" \
1142 + -e "s:@ICON@:${icon}:" \
1143 + "${WORKDIR}/${PN}.desktop-template" \
1144 + || die
1145 +
1146 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1147 +
1148 + rm "${WORKDIR}/${PN}.desktop-template" || die
1149 +
1150 + # Install wrapper script
1151 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1152 + newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1153 +
1154 + # Update wrapper
1155 + sed -i \
1156 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1157 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1158 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1159 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1160 + "${ED}/usr/bin/${PN}" \
1161 + || die
1162 +}
1163 +
1164 +pkg_preinst() {
1165 + xdg_pkg_preinst
1166 +
1167 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1168 + # does not need to be forced into the LD_LIBRARY_PATH
1169 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1170 + einfo "APULSE found; Generating library symlinks for sound support ..."
1171 + local lib
1172 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1173 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1174 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1175 + # so we need to avoid creating them if they already exist.
1176 + if [[ ! -L ${lib##*/} ]] ; then
1177 + ln -s "${lib}" ${lib##*/} || die
1178 + fi
1179 + done
1180 + popd &>/dev/null || die
1181 + fi
1182 +}
1183 +
1184 +pkg_postinst() {
1185 + xdg_pkg_postinst
1186 +
1187 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1188 + elog "Apulse was detected at merge time on this system and so it will always be"
1189 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1190 + elog "media-sound/apulse."
1191 + elog
1192 + fi
1193 +
1194 + local show_doh_information
1195 + local show_shortcut_information
1196 +
1197 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1198 + # New install; Tell user that DoH is disabled by default
1199 + show_doh_information=yes
1200 + show_shortcut_information=no
1201 + else
1202 + local replacing_version
1203 + for replacing_version in ${REPLACING_VERSIONS} ; do
1204 + if ver_test "${replacing_version}" -lt 91.0 ; then
1205 + # Tell user that we no longer install a shortcut
1206 + # per supported display protocol
1207 + show_shortcut_information=yes
1208 + fi
1209 + done
1210 + fi
1211 +
1212 + if [[ -n "${show_doh_information}" ]] ; then
1213 + elog
1214 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1215 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1216 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1217 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1218 + elog "(\"Off by choice\") by default."
1219 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1220 + fi
1221 +
1222 + if [[ -n "${show_shortcut_information}" ]] ; then
1223 + elog
1224 + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1225 + elog "each supported display protocol. Instead we will only install"
1226 + elog "one generic Mozilla ${PN^} shortcut."
1227 + elog "If you still want to be able to select between running Mozilla ${PN^}"
1228 + elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1229 + fi
1230 +
1231 + optfeature_header "Optional runtime features:"
1232 + optfeature "encrypted chat support" net-libs/libotr
1233 +}