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: Thu, 01 Sep 2022 07:32:51
Message-Id: 1662017564.203c90993047f118427890df54c6e3c52b2d9dd6.juippis@gentoo
1 commit: 203c90993047f118427890df54c6e3c52b2d9dd6
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 07:32:29 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 07:32:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=203c9099
7
8 mail-client/thunderbird: security cleanup
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 mail-client/thunderbird/Manifest | 65 --
13 mail-client/thunderbird/thunderbird-102.2.0.ebuild | 1169 --------------------
14 2 files changed, 1234 deletions(-)
15
16 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
17 index 6336ec88d995..da39ace333ce 100644
18 --- a/mail-client/thunderbird/Manifest
19 +++ b/mail-client/thunderbird/Manifest
20 @@ -1,70 +1,5 @@
21 DIST firefox-102esr-patches-02j.tar.xz 19688 BLAKE2B f26b8dd2613712ab49db34247c432769386ac066238b86c0eea367cebbd167334f822866129d0874efc35da4da686e6185881649b0b3095dede28ec8c658a3b2 SHA512 456cd2b7d9f907080afb5225d353154117624fa938f24dcfae7ada03f5b39572e5d6d6e1a4bba7825465b48f6d38b04e5c0f69556c82d4ebbe1463e11dc809d7
22 DIST firefox-91esr-patches-10j.tar.xz 18320 BLAKE2B ec882411eed19bafab8676e3d79f4ae43947bb97c44571c1497bb93a44fcfec99de06ebacbdf8c4944dcecdf949e4f684908d7ce4226cdcec60241e62e75810e SHA512 670a14d852bb74b9074c3fef9310650f71ce1c56314109c49aea02a7a69acc836af60a8beab11da53e21b10a8e6da341fcfa18b68a1dfd33b26978dd63758e9c
23 -DIST thunderbird-102.2.0-af.xpi 543820 BLAKE2B c240bcb5f3128ae95e0864efc98a3e71fd18c2968b97f95f206269f9b18021e0c30a758bb4f2d120b1292c9ceb0cf07e0089c828ac780bbaee2b5dd86c24c8da SHA512 9b91fdd7f27106185f9b84debce5fcddd2c68829491f5e772b30d5e978a5fbe0b37f8fdd5e151a9b2db0a655893fe012f096dfae55d50c6bdef37ff9d298027a
24 -DIST thunderbird-102.2.0-ar.xpi 651968 BLAKE2B 18435157fd58fbef1ef1f111e3d24d6a538a23d68a9180f86006f35f36103cffa4fe46881ef6db291c0320631dfd8bfce90c2e4a21f9aa8c4771168bb7da6017 SHA512 0e454a561323d68b22bc7fe48f4c03bce225549f6e208bd2977e4adc2f8ed783654e9cc340fdd20cb3fd4bc8fa9f9ae2a409e5f893b72cdefb71961e2b8eab9b
25 -DIST thunderbird-102.2.0-ast.xpi 568944 BLAKE2B d54a65e3282073acb5f11f2b7d4c2e63fa759532d663a8bf565d726d1be3df36e525d1685620b6c1462259dffa615fad4ff2369f635266f9bd4c4ae2f439771e SHA512 e87f4776dcb67afb2b06e5e6c72ec5454250608bf5a3194bbfb5f98a0a1af7e90a7fda8e15b61c7b6f918f4015429529acef14e16852f2bb55719086033657fd
26 -DIST thunderbird-102.2.0-be.xpi 683057 BLAKE2B 86ca76020c1456fc04e800663c3bd2840753fee8674415220b88e4b07e1c5cfe034188e4fa0288a2d463d9d1f518e94886f111511fe69ddde4d1a008803c1dd0 SHA512 42a853381981ea17653e09fe59a97e6644e51eae53d44b623705a0c63e828f2a1a3d157d0ee45eac75a2e1e0d2eeb60879ad78d618b504a0c58e837cac328f55
27 -DIST thunderbird-102.2.0-bg.xpi 679942 BLAKE2B 35921b2303d56a5b6e855e42e57af7f8ebc7a776ee45b318a0e02755a51675abbe618f5e48e0f7edd9266704505a72cb72c95882e8fc40244cf5b9ad55212623 SHA512 15b0b5225fcc97569694b43a549867409abcccba2432759c9350a8fe0b2886dc3abee1ba2e4e6d237f57967f00c36863ab043b7c98a0c1bcfcd98ab5e0deee42
28 -DIST thunderbird-102.2.0-br.xpi 610581 BLAKE2B 64a7bf69f1e8f53d599ca512aa83c3e6eaee9f48f0685ddcef332e65ff6ec3e6bc20afec50303c65192f8c0eafe8a32612aa066107da956d1635a8b88fdfb55d SHA512 904826116a903d8a6e7787a4eb43adcd627630218eb72c22203a65ed39c769f47ae4c59de566624a2f2618e0184913135fa5a149d57991b7cf7051f360755395
29 -DIST thunderbird-102.2.0-ca.xpi 633909 BLAKE2B e3be362cec459bbe427a59b1d4e140419595fd269c51fbb18b8b3c0417853c6f71fa12c630cc2651aef8b266231841c3e9a91e7e921f9edff7df07884f84e9f7 SHA512 5369b59eb81824ebb12c90cec799318f5c5af9973dcbdc845423bbded06f3954bdbaa20d1032338fa64a088b7461efcf7c43861c095e1f39ba781c7064353b92
30 -DIST thunderbird-102.2.0-cak.xpi 640359 BLAKE2B ac5817aa65e21dfc9e19a4cce4184bde719f462a2ede5452c3c2ed01152e08bf67cb10b5813fc855fc817a9ba6b8280e3ba91f78f591e0a39d58a3f24afab787 SHA512 e134b723945fb841795e3efef8094b61e335e3562e2b00bad4f753e0a4ca30b36afaf2861dc7775eb651d2757b2bb1c919e3a2e2900dd0b4b92f5a58c868ed02
31 -DIST thunderbird-102.2.0-cs.xpi 705051 BLAKE2B 84c30527ea1a35e76c4e2635cef94fad2211a231cb6afce75ef30705dbde3881fe1493e7f2ecd4a66cc23d05593db0fa4e957389efea46b2aef9690ea3fc195a SHA512 44336cfd4f4c27379dd72fdf4e4cbbec32118a5ad30830fbdb51fd172ee0ce78528440ea2f0273de9053792e187d0c62e288ae0ce3810ac32e2aca14ffd4e9e3
32 -DIST thunderbird-102.2.0-cy.xpi 681282 BLAKE2B 33035b28ebb681cf52ada4652b6be602adbdfd8356f129ce6b09c51e4783a70b5d9cffad60a9b90e0db9a690acd1532441b3586c7ca249e345f3c06a13fd3b6d SHA512 56e89bdb1628f6c08d1261db2d031281c0e3a789acdcfc104a053cebce030b68586955aeb7b49d4a37d0a1f2ab88b9345f6c424314792c3d3f5f26c6efd44e82
33 -DIST thunderbird-102.2.0-da.xpi 666139 BLAKE2B 0b2379b0b40fa06b74c8c49937a3d7f5295800f9fd20dd7658c6acea2d87c181fe67eafc7b6613415c5238676c9f6c00ce6d6ba81fae13710d6be21d563819c2 SHA512 3170488ad32c0559e321fd9f07f41f2b274ddabb0794c08eaabfd849656810471fbcface2ab11c8ca39b12f8bcb908d2eb6c92a9df17474d8c33ba1305fec714
34 -DIST thunderbird-102.2.0-de.xpi 700979 BLAKE2B 05f1302b2e92636f767b0eef05b7134449966b74877dae9c636959ae21da5fd96fae0c181ed094a8e7ce626b44b3c266b0aedf2b2f2751e842762e2260d57fea SHA512 ec9e5255071750eeaf53a913f4f3cf3d0c8b4a7e3fd4aa2d2c1e7472cb472e9131d7b8b0710185973ff823fa3ffc30ed64f9f9db8a22d758630668a447639d2d
35 -DIST thunderbird-102.2.0-dsb.xpi 714625 BLAKE2B ab037d2f91325fe35159d661fd14446819e959680de71e1edc82fbb98f41ee2a6dd70900fdf6ff4cad87812b9709bf7cde3a66a97a2a1a3528d9e305670d3642 SHA512 18fab34ceaab60c5d7d0737793f5d7443c5ee2f240ef99d7616f1ff0ab4f51c902af647b4cc4e4c479b0d49627a6fd8e362f0037cc18db470e53aec31bb8c17b
36 -DIST thunderbird-102.2.0-el.xpi 810797 BLAKE2B c9883aa10fd611e6feea799642d879e4f4cb75f47031e6a72472e17d4f3bf42bcd8c1d585acdaa725a74e95510200d861dd08dbcd0f33ba086c0ad915326a019 SHA512 720d80ec02891f1847f78a371378a1beb8530cc33e16a31db0f32bd81630ac839203927c1f09145d0f2991959ca42f58ecef75eb0bb8c5ac8a65b0700cac2952
37 -DIST thunderbird-102.2.0-en-CA.xpi 640660 BLAKE2B 4c69abfe1742115f78eb6dd601ba138fec35e2267263f14985facc9f2cd2bcec43853d426c44370a93c6d3179a622a170d7b28f07729de64b88668c6cff3f7bb SHA512 150e0098d7071b6b3752e74e3ab6ab4bde331d2a923a376d884feecfdccd8858203a5b51c359c452660d76290d11dc3c44a218404d7e772ada66c3ad6a1121aa
38 -DIST thunderbird-102.2.0-en-GB.xpi 641869 BLAKE2B 036eb4cb5e49818a0d661bd031bc7b3d76d20b05e98d274554fb429450b8c104b0933a7e945c729243ae875c7ca77dce8e27cb7b4ac49b450b083be11a64cfa4 SHA512 a3c7bd48eacf2d87ddc8bf65323269426156b43f2c0ccb4a00e66db57c1e1f2f32887e3bc562448452ee1a022cf34416109b0d4ee491015c63f4ffb7d61cb10a
39 -DIST thunderbird-102.2.0-es-AR.xpi 691408 BLAKE2B cff2af00152348b269db39294dacff59874f81fcb2fbf40d85c6b7d0413fc96fe6a93bd443a7a97c68bc665dddd0ae17654fc2aea5ef9776a6297262ac65578f SHA512 6aa701604b4e4d42f1bce1e87dd32a6dfbfd3f7f3189c616c74d0a732f06ea2521bfbaea9595533d382f43093ab8b2f9e0a40ca376d804934d1b65f0bd483a0b
40 -DIST thunderbird-102.2.0-es-ES.xpi 646436 BLAKE2B 0c9d3b69b84fb3aefd07358a9f16bebfb07a6bf35400a1e3d8c6eb38c0748817b5fcc7847acfb28570e4cc418dca15569da7a69082e85d2cf14874a441b3e2c5 SHA512 c0a9a87bc69ee5dbf09b9767bc4e012b5873006ce6a0c70b3b966cb066ebc218a13fee5ae9ecce2426cea4044b3a7eed57090bf2de0b40a805c7ecfccbeea09e
41 -DIST thunderbird-102.2.0-es-MX.xpi 694104 BLAKE2B e2862e2c15256be9e341d964c550450e229851b7b36444197a9400e6f6ca01ab421b62e4192b680405371946ae8e3f52756b94a1561d01512ab74ec7b59b1aeb SHA512 574bafd5f3fee7c65bf484d0d463a902fd1d3b9f7ef160edb7e874545b3f0b15fe9c177bcdf11a64efadf57d213c23613cf4b10591d99b9cebcead7c351a5e9a
42 -DIST thunderbird-102.2.0-et.xpi 664263 BLAKE2B 91558b393e6510b7f79fa40877ec6b1b8349aa83fff4d5eb3026e5a929da318e493517066ad4db9aa4f14d8ef87e91c98e2bf07aa6a93f7eff13405d0d71c093 SHA512 d839952672b596aecda03db25206a47b9850fb4bdaa4256048a468d2a68b5d357c534cfa3faac4a11218827d1da349d8df69ae0515dfa7f746f81206aa410eb2
43 -DIST thunderbird-102.2.0-eu.xpi 674932 BLAKE2B 9d67f13e967235e779dcfb984a6e52a29d89f4f60f8fc94f4c433e9ca15020536426eacdff4c97d5a9f344c765276d2932773c41653c94330188a3a074ce0f9c SHA512 f7fc5c3312483a522946b25b497263220171395dbb87e957c685dac9ce4ba5baed24cde3543f223e48f6ed25fd787e8425152fc16fa7cc3ee649f5b6619776b5
44 -DIST thunderbird-102.2.0-fi.xpi 667057 BLAKE2B eb1681d4ac26306ca18f1c0a8827fedee56d11a1d2d9fff962b68539d934dc4e75d5502f1803f20d811f9cc171693590e6cfba53aebca4c4b203ba5ff834cc2b SHA512 3a1e260df0ad3427e948f887f0f89a049f2421a5097eb98dce941e917b3c9814319eadad702fc171003183d5e215d753ea719d04f793c4832353b7e1dc29b9a5
45 -DIST thunderbird-102.2.0-fr.xpi 703971 BLAKE2B 501ccc7fb4d971ddacca05ce0fd39cc6f2179ded1c5b246d7dbbaa19dae1a948791f731f00aa066cb6d22e7a6ef5d8c4ab2c14a9c8328c4f5d792bae952cfe02 SHA512 040e012b8885070af57c0f5f054319fb50bda4e229449ee55737951a4699875681c465b45aac1958f42c07abb9ce45ec3058f02f087e5fe41d9454b734c550aa
46 -DIST thunderbird-102.2.0-fy-NL.xpi 686547 BLAKE2B e471b368b4cc46d8f1e7ca7681a0153b7ca5b038b8f9f8a7fecd31c55ae8a66e842850c25e5fd8d5868e4daf035c2e7fcecf7c11efec30def66a4b58f7f19bcd SHA512 7667a799aa4d99890014e568041872b32c7878ea20ba1424f0243e7a807ce7fbb603789d6833305272d39d638ee36feb3265e3fc13b5ec7709523803c208d9cb
47 -DIST thunderbird-102.2.0-ga-IE.xpi 604504 BLAKE2B 8a8f1d54a11775b38ad6954152c898ec547a55fa60b74813b06f2da68f68b760f4027f34b0832fc41f56a519fa6893d6e55a35017703f18bf77d174ed7e8e244 SHA512 c1d18b026f9bcbb77769db50eedf3ae263846ab3441283723c2cf7c574be2e9869d2f710887a12b90659822f1c51bf9aa3855e7e0e5fdb14bbf9df511dd0d586
48 -DIST thunderbird-102.2.0-gd.xpi 628948 BLAKE2B 02a6c033826358fce9d0095e86087dc9f19e70b8d1d0c0bd856fb4bc37ff9dbcc441f0b863afe5b022d1e995c0cbbb9c70b146b36d51e31919e0f07ca2dcbc8b SHA512 850607ea7b9f2fa33681d014629a9531c9f631ba14445afef075e67a8591062f03b9cb73bb848d328ab187fd6cce024ab6c39e2ed9a48de321749b268526d8b5
49 -DIST thunderbird-102.2.0-gl.xpi 661860 BLAKE2B d73c5a620336d6359926953f951d2873a28ace9e5e5257670802637b690744f428641bca82f65f71d5a63e4e63b50be5a12354bbfd20eaac46b71a594bea1798 SHA512 2b35db1e0b8a274f882a4a99d7fc60bfa50f89570bf1c51fe43c9eaf0c0479c60508e305711c9a5acc1e353d226e93e1697dbbfa46ad8e6b7c491fe09d3875cd
50 -DIST thunderbird-102.2.0-he.xpi 659613 BLAKE2B 1f7c9fd90153e4f510089e17fc42894b203bcb17593332f097ce6bd1545e2117bb1f3c7f279eb0c9c50e46eaa55e90b138f3dd2bfdb9804cb5d5b8bde6fa47b3 SHA512 359a129d31d4376a423af28d4a958b4108e0b60edd6dafb9a61981d92dfbc7e1d9dba8423976f78d674b63745b8fedd249ddf606e5f24342925f9785a1cff9fc
51 -DIST thunderbird-102.2.0-hr.xpi 659427 BLAKE2B fe8b709aab7d3b4b58bb6a02552a6339ae35ad3180ddd84216b6e38e29a8861f3fe608fe7af6943ab5e1e3072f86b9b5cb78557eaa787a68b995ce570ef9d360 SHA512 dc940c934c24aa217f959590abe0b0b332239194d8cea874149d80757c014315138ecfac2e715086f33dc1d9ec265b4a89205375b0efb54c266b1fac3c5407dd
52 -DIST thunderbird-102.2.0-hsb.xpi 711589 BLAKE2B 3fcaff59c73bc96674adebea02e56005a73071aad5dbf412fde8afa9c1485dfc685f2acec3fd167625ca7c2fab2507bc18df25922029f1cae976d1620fa04866 SHA512 532ccad8b2d5d3f0c507be38515e5b226cc8516608884b2d553477aec8608d6531e06c1a14d1586abc082d150dcdda09178d4cf4177b4a84a8d793cdf51e2e7d
53 -DIST thunderbird-102.2.0-hu.xpi 714300 BLAKE2B 80f3bfe3c5fd5de714cd6cf92e073f85407da48b32bec0c2741e37b1db2d5e0001fb492d52087fbb540bf63d7ea164184cbc7e7b2f7f56b8daf945ea2055e73e SHA512 6a761fadf63ac5291f1b5101372a21faaef40c89d787173c03854b6b9fa615df61dd2974c63fede9a049856fad07803bd08166f9e0f7272ab9f7c0b3815a6bf1
54 -DIST thunderbird-102.2.0-id.xpi 637799 BLAKE2B 9047feb05705f66e893d6e0fc67177206e0e747f8f9c8cea589ae2d4894cd85fd1eb08002cba4c469921016535bde5453c8aa41d2afd4ac32ab75fe0b9454a38 SHA512 841aba25c87e6f544770954359c7e7149c1d25e828ac3f556a22f38428fbd8b2f51bd3e0e82d046326d5232a2f9a0f346c58f6d859d3a5926efee91d0206e7fb
55 -DIST thunderbird-102.2.0-is.xpi 677224 BLAKE2B b6a3d585e889e52b8ad6fcc8579be32b9cea92cbe358589024660973fd34db1b9115be59f8f3625fe5048fc1a1a18a5e5566823af9ac522b3e9ffab7c6a2f924 SHA512 4e6a02ee28d2e3937639f00ad630c200ebe96e94d6511bb58ac0b64463ba633377328f00a16c0e2702283906c2a993476aa3cfb86729a47be3fc4bb4af8c1c9e
56 -DIST thunderbird-102.2.0-it.xpi 596393 BLAKE2B 5fce13afac66db0e3072fb18ab9ce222de3c5ffea786c9359c9b9f517085288d13a239e11331643ff0c4caea2695f66706b3e760bf52f57ccbe9633153136cc9 SHA512 c2147bfc1456482f67865ae5f2e8b2297c2ecec776586e4fc8e503a614ddc35e9d2fa76d5d929a1cd7acff43a3071097b58030d052e2f03f5eed4f52b92e74c9
57 -DIST thunderbird-102.2.0-ja.xpi 733248 BLAKE2B 2cbd856d4b524f23d84f8e6c5f0f218e5e72e5f0aae19b0e26e7207a146f48eaa5a6deee30811627ea4c99aba523fd23027311fe4f76ba038afd10807f6ce925 SHA512 95d738775ac062f970d879ed93874ac2ad3491a9b396294364a6beedb7d14bd845898f67b714a7056dbaf1e5fd7f7d740dcf564f0e70f7bfcdbab7b57963ac68
58 -DIST thunderbird-102.2.0-ka.xpi 747191 BLAKE2B df1db2c0c17f1114dfb457840199aa83386d1e1532c30e39a445b4d347ef141f2aa6c134eb3fb6c1626524ffd53c9dd8592dd7fbb04892caf8ed6978e333d517 SHA512 a7164a9c9ed8c4fcbbbaf755ee9661c153144b01116b75fb54886814bf2197077dcdeb3ec47081455c9c7ffc0bb04134214bc730986f7f991cf0e6761fcc958f
59 -DIST thunderbird-102.2.0-kab.xpi 685788 BLAKE2B fcef99f141d9c626ae67886bd237b87293a7b38d5c9ea3ee5a2d42a8ed385cf2c977b9eb083953582918fa1f4d7a962c3cb78cba042c88e207652a8aec2daf1c SHA512 429fbdf1c32b0cbb2d4d52610e0b0d10b2632176be2f2674dcf84bbac0cbd3019ed96792e3c9e058577a05e7e4e61befd6ad6d4de92ce1088001f7b97d3369fa
60 -DIST thunderbird-102.2.0-kk.xpi 728823 BLAKE2B 7cce83d54d06334db683ceab8c0f484fff2fda0aca097eb0a505b6c4d11edf036a8855020c840a20ee3869bf0ac5b55dad49277577acb9e059e82e0306a23510 SHA512 97f3ef86224c55a12ca7070860d681fbd3028c2e8a76091f2ce6f36f6bd460b31f1be02ba2b1f53955cb533c466523939670c345971ab68e02b500f7fcfc855c
61 -DIST thunderbird-102.2.0-ko.xpi 691194 BLAKE2B ee10b020f9aa8dbaa5af899e57b1547976a35b1f215f8d9d9a463136eb6b34f7d7d7710b87539e954bcc79ab07ae0d100697e4d94ac8146b32369273610dee8e SHA512 7a831c276490a0df438c1415c45f16218e20fb4e8036beb1e08c0ddd37bceeb6fbfb8645e0eaa8b7c923de38d9d915d3c3bde8d007c8fc84099d159d95751c4e
62 -DIST thunderbird-102.2.0-lt.xpi 679638 BLAKE2B 2da3038a1f19d92bc88a03812876348167990afd663a05b399b0c1f67579a2e9593d941f5fea89c1c3fda6788ea9a74fba4047c1b28ae12b5e6f5d91d2623940 SHA512 a736a88593b832b6b87090192f5e0e9ae059ab9956ac6da7340dbf2c65efd65549cde0fb21b486fc05c2d7ed9ebf39f66430d6baae19349edc28c66a3946edc6
63 -DIST thunderbird-102.2.0-lv.xpi 607225 BLAKE2B 17d1585242bd161e6062ae05b88aeeef1e9bb4758c5eb994bf0936d07cb3bda6ecd848e751c5a82abf2280d6dc0281bd50bf0d1d566b0f7db5dbb710991c4f61 SHA512 7834157e11bea72c9e339e980268283d1ec1b04205a7d1de803be1053674a314b1b7f59d46fce21fca12208cee2ae46694195d091a914d095aafcd93d9b28f7b
64 -DIST thunderbird-102.2.0-ms.xpi 568092 BLAKE2B d5977d58cd6ffbf819eb969336a32eda6e03e6ee90250e950f4a9c6dc6f4c7736ac72622e95db749599dabb1d9606510e22fe12012888afb8919ae0d1931dba0 SHA512 022343cb8dab35fc76675f5de72cc79ad400d705c29e50474502965f4b8819d9e387463fe914a8eaa147c34e57bac82c9576dcbbbe1469ff80fcebd4876030f5
65 -DIST thunderbird-102.2.0-nb-NO.xpi 645730 BLAKE2B 33848f965b7789957d17eac6168576a51ad43c0f23874cddd11f256f2ae566dd68bf10ba9ecd1679d5fade6a3ee23da833fc2685a9937a169c8f5df7f22216ca SHA512 0432d23222b3dc8fb39a1b236e607662394908db82e2bb04a9258b4f16ed2faa832d2a04748084a4dfe9b9c2a3006b1a3b7dd185abc655562159591d621998b9
66 -DIST thunderbird-102.2.0-nl.xpi 676883 BLAKE2B 5735e0cc0f00606d20fb0898d7e95f5e13b62b644cf7276b45529b902e90b0a9815101ab6e029a15d4fff18af21975dba95f88402a8989ab861077ca1e1e0390 SHA512 e1fb338ab25d229462948d7bc58cfb691bdfb5a24afed8bdaa6ce778d6466cf93ce75ebf589f9b2b8aafec5547bc7d08fcc793695cbe95ae89b66013475f2469
67 -DIST thunderbird-102.2.0-nn-NO.xpi 652869 BLAKE2B c393e12fec53109abc517c9e8479a9dd3bcdb670c68eafdedf70f36c99539e0b8a3b1ac1338c3e500c1c2171d4a37b4e65393e7a833d1a448ce327ced3c7be56 SHA512 afe98a022a7313a2b0bb66ffd958d892e6176254256f08490483acb8099bc5eb4a07fd82d58786b4c08e9778f46285f4aa57c3481435ba5a940dfccf2730c7ee
68 -DIST thunderbird-102.2.0-pa-IN.xpi 642751 BLAKE2B 211381be58462cb3c12362feab84a4fefafa68eaf4282b5f3704f88a23c9325684603f32c38633b6da69be4351a418a30429de0d8998b2badcc749d3fb69e6e4 SHA512 cce27bbabb68d4f748412b6c9d4ab1601d6b23cf15770e82cb137f19877bbcba0dd280262ca675a8b07a6e480fc2ee00ccfc17ac07441cba74ec0dc7ca4663f0
69 -DIST thunderbird-102.2.0-pl.xpi 690492 BLAKE2B 379bf6752d70438b19a9b7186473ea11703b23abdef5d56a331129c86fcc3e2d62aef1982426f5898cfecd1acb6132c866a3927e04cd87f7d070a2d34ecb483c SHA512 d549b57fd06e1681f6cb0fd62f0fff368656b7fc01650d39a1c23beebfbf6ec938d042f74d0bd4454687834da027f757d49dd4dc27a27ae7b79f8433b4747e2d
70 -DIST thunderbird-102.2.0-pt-BR.xpi 685720 BLAKE2B d5d464360e0ac323d10d6ba0674701eaee74196d4081a6f6673ac2a210661d9e181d1aad0fa005b052a17525383072a5ae48965d48dbd693e20ae49e4c2e90cd SHA512 2dbf0f2fc9d96ad10a887cac0603e628c0ca1e5aacc8ac2beb14c711d065d4d601ca29a93fb560be34a4c58e49aed80cf113e243a4dd04cdf80541ecc673756d
71 -DIST thunderbird-102.2.0-pt-PT.xpi 663981 BLAKE2B 39b40096a424d21c3984e966894b35cbcb3a4623a4b1b9e116ce4ae1ca02459e390b0841afa4b0f22db05028556dd27c1febf34432e9cdacea7e0909a5da36cb SHA512 1d519470ae72ebaf9395a32db58837132cceef65c7c4e40d2fea9a7bef4779046a704c75e0efdabc7b1f6588cfb2d06c1db46234f6d827cd7d9fef2dc3c9c488
72 -DIST thunderbird-102.2.0-rm.xpi 678859 BLAKE2B 53a28a63e2c3f3002b1fd3823b0a616e8d615142d596134d82646c74d4d116ac32eea86df075c7864465c559af06c61a68c32e5fa3d0fdc4d212325ba43d628d SHA512 ef236e2787676a6f0f418604a3f00ea01a95bd066492bd33793425d660e6e49f77f4810ef13c1dc1bb9357fc6b1414af51d228c04ce4a94e477c136b26686312
73 -DIST thunderbird-102.2.0-ro.xpi 649337 BLAKE2B 06829468bc66950b3a000d26b2f5492a0b626dcbd295ca2a937671917c791529f6aed791c265bb68d40c5970f67c8eb52f70068bc9942139cd5da244a5b6c445 SHA512 ee5ca88e49b0a8d8f3e0c2baa99a59d89595237546b6f2d0d76cdf1a5ffba3316c8c55ca1e76b3f339b13d247b9ec37652aeba56b4a0f25e78082280fdeef14a
74 -DIST thunderbird-102.2.0-ru.xpi 795706 BLAKE2B 7d578578414836bcbc71c548aafa5931453f0da61ba1cf907848d39ebbac65fdd2a15f120e05a7c9cb34bce60c0790ee0ee71cae268a36d0199090bb2e81e386 SHA512 7bc492493ce56d31c5e111d89456908a29446c3961a864434c0a58cad0583f06798ead68430194bda76d0aade2380e20a33ea119f7c6d04abb97ac4adb8d0a33
75 -DIST thunderbird-102.2.0-sk.xpi 714082 BLAKE2B 953606956f821c4ffc3a2ecee9196641757402164f003cc1b461068607368cbd33d8ec5f86581dad6223d0fce6998458cc349164007c2a0c1ef5d6a4fda1ff11 SHA512 54813217bbcc80f60a454918855a8567b78a0108a15e66ac64fe2b3f9b159a5ccda5165e2939e5ca196b3fe68b148b7240ec8820e2d2281bf6ba62431fa9831e
76 -DIST thunderbird-102.2.0-sl.xpi 677735 BLAKE2B d047b6ddbcfdbca2285704ec7e2610db035e2e3d15e75cbc070667b954e70d50cbb58615047f43447c0d73f1c2e17c45cab7fe0c7791d9ae990ffdb312485220 SHA512 03488c85aca9e8a81015862513d92f747612b8bbce27e7c9993f3c69d7b32ecf0c43684aa28f9772f089ae4f00fa273c6d7489f2dec41be131c390748e3b84b8
77 -DIST thunderbird-102.2.0-sq.xpi 688532 BLAKE2B 86de5f45d7b93be81c85082ad05ae03bca13ec0f4498bbd7f67c50ed63edf0bc6438807f718e0a7a99dfc0fea8c142cb52284b26468e35043bbe7e60befc3eb4 SHA512 faa0d2c60811eb6025bdbeb868a10b46f01c570f1040ad56ff85170bd15104a5af280f00557813a325b51c3aac7e2dd5905aada8d3bf26d0d7feb11a6e7ab621
78 -DIST thunderbird-102.2.0-sr.xpi 697001 BLAKE2B fa6b646cefb39ec62c3686f6d93252a7bf863340f48bde00a7ebae1ad6e183766b33b4c3614775367e69c8d5aa5bd75c7a2b7946485d55330c63253f2a005d15 SHA512 fe4e4fe3af381efea820a8fbe49cdbb9eee261a3a47344af6cdb26d541ed822d6039458a70675d753200abf08cfdfd05708bd4804ac661fdc7a280fb1432e227
79 -DIST thunderbird-102.2.0-sv-SE.xpi 681720 BLAKE2B 2592ac5c9c824f821b49ac882d7e016441dfd5a61c26acc668ad117d16900e1893d38496371d5c4b36b3d230f488daf77cc5de7fc9a58d82eba968c64d6e1c76 SHA512 dd92c12411469f572e6a993c7a7ab0bfb9923faf25e3f12084374dcd81194811b69646b5b402c96a95471fde064051b563ef2edea44ba18765d1e9d37477d789
80 -DIST thunderbird-102.2.0-th.xpi 732904 BLAKE2B 7654c64a9a43a82e18521e740632cc036043022f46ba8079a47c4304a4fb34dfe7a293361c5b45a534d1583021783304af2ca08c9de747d3428f1963f4a440e0 SHA512 dbba401f0c686c30f0f9f0bc4c969d628bb1e74772abdf94d72287d1bf3384f13199c131c11f124e143612ac0b075437fa081d8d3707130696d9ad671b6c45c8
81 -DIST thunderbird-102.2.0-tr.xpi 688927 BLAKE2B d60ddde13e318d25b3e7f8f0b28754d935f9ac2496127960f5bcad619f4c2a4ca18a16e5f51da02ccbf9704616e4801da7c719b7fd2bb0f8276871cd20a3f71e SHA512 844846ad577e43b15be25115e03c623342121cd6f32f3c23ca0505dc1902ad9643af6a78386399c38febacb848add8f700f890b6ed4374d3dbab0a19e12c4ce5
82 -DIST thunderbird-102.2.0-uk.xpi 788495 BLAKE2B ee9529a3e25e266ae96b22ba555c463bb254fb1b7c0ce4a411473b2e3b5a1de05cd9745e93737e1783385be026123f582068e1473af0470c292f1e09d63878ca SHA512 eaab3069a1edaa42160db419c81c5756537adb2cc1d05e80e1a2049b037feee83b9e8e585b07ed8a6742f8a1c39cee21d5c026409e5158fb604d455d3459f1d5
83 -DIST thunderbird-102.2.0-uz.xpi 585406 BLAKE2B c57ad4d7570911a41a809bcf5d7075e1dd1df0d1b7fb567be99ba7df149b5256101be91bb88fafcbf8d55f2d2df5c744474bb711ae724ea7d834d2ec04e65289 SHA512 c175a82d809fc058e82dc237efe8e08bcdb739be4ce6cf2c19035833ff3664cda7cacc24d173e76ffcfdf4406433cf474a2e212c73a36a0767180686c365f938
84 -DIST thunderbird-102.2.0-vi.xpi 719956 BLAKE2B 0fe46a18b7886280df5050532b7259aed8c81385fce4d1da014c5a314b298309ed324110ff0a1b4661e98b15bbf5aedd377c25bd58d8a0a8a29affee66c714a2 SHA512 a5a8ea3cb6dc61b309e394345c23e256542e370e16f2acfb724b66c06ecbb7f7038c710f3257c9335abf9325feed08612b01dc1052c0ec42a432884bc399df0a
85 -DIST thunderbird-102.2.0-zh-CN.xpi 716463 BLAKE2B 91d9022eff74adbac74cd036074134804ee0f4f82e93bb74bc183837b736a574f712ac9cf1f2af0dd939e69378272a204d7473863e972d86da739384c03031fb SHA512 3d12e086151cf7680dcf9fdb417431eff36dc9b8de7ecb876d9d726c8ed8829831d7b62021ba67e55c2952acab8a161e62a22cfadbe026b1cfbfea715c4efe58
86 -DIST thunderbird-102.2.0-zh-TW.xpi 722339 BLAKE2B 0a6d8498a8209798326fcb8ec868db550a594b57cb0450268d9fa9c49ffbbc8163baea214fa4b09e3c4497d101a4758552e7a12f1f70400d6945e333e1e4988e SHA512 98243637a26161cc857ccfbabc39a58d31962b8cf695f000fda58328b106a5850ccab55b9f5b59794f5c23bd529c987ad65e3d9850095d50120a374fbfdf6b44
87 -DIST thunderbird-102.2.0.source.tar.xz 500331516 BLAKE2B 1c48e2c0fa02f4c2745e5f5db7efc393efd2c2a882cf5be02751be1e0d04dd217afb6cb393ee698416081de533a7583ae7f6a9312fca8c2dd9c0ae3a777321c1 SHA512 a9ca311e3c55c8703aaecfe30f8a8040a16acc445530f7462baeaaf941f7221e60b66b0894ea0b3c0eb83ccc882706674cfa319ae93557405946ffffb1f6b5dc
88 DIST thunderbird-102.2.1-af.xpi 550105 BLAKE2B e9bc1b0daed89d6ba0c0098a07efa028a348a83cc770aecf90583600963a9131d4131fca95ec0b20bec3bc92b15eb4c1dcbbb3339b5c64dae86472b44f911b2e SHA512 3d01ed1ed68515d8c3e4dd74f98dfd624be3dc1c825bbdc21ba387f84741960d5cb35f3e26b05bf44c4682ab02f52570ae235bb4173f41832a1734a87abf8bf2
89 DIST thunderbird-102.2.1-ar.xpi 653972 BLAKE2B 7778728e756c61af75a32f1737f39ef56c462045d83c4c5f90e312be429325bc0f0256514e7a55e8c3afbf1609716708952ed12fa7f1120de4d76b281721728e SHA512 3dcf18dd2c3233d0698f47211cb6ab02e86a4104cf7885e048dba9e18dd9353f95477d657def270c8b54eb1f9a47c550254c1011b8eb260add12a94bcf763ab2
90 DIST thunderbird-102.2.1-ast.xpi 570833 BLAKE2B 811d65e39bf4739a8b69c33ec2010768264f8094ca20fcc31d4b96ba319eef8a41261dd164db79e5558dbd14d8aabea0b0f5e762db3256c828b79840cb3339f6 SHA512 a256e8a63e2551dabd278b7e1d863716efa35836031af0b8beec22e4e0c8cfdc9606ffc436617f4e7d2c252742937c6df5321b6482a44e40578e1bec27b48e28
91
92 diff --git a/mail-client/thunderbird/thunderbird-102.2.0.ebuild b/mail-client/thunderbird/thunderbird-102.2.0.ebuild
93 deleted file mode 100644
94 index 5b45a09b43e3..000000000000
95 --- a/mail-client/thunderbird/thunderbird-102.2.0.ebuild
96 +++ /dev/null
97 @@ -1,1169 +0,0 @@
98 -# Copyright 1999-2022 Gentoo Authors
99 -# Distributed under the terms of the GNU General Public License v2
100 -
101 -EAPI=8
102 -
103 -FIREFOX_PATCHSET="firefox-102esr-patches-02j.tar.xz"
104 -
105 -LLVM_MAX_SLOT=14
106 -
107 -PYTHON_COMPAT=( python3_{8..11} )
108 -PYTHON_REQ_USE="ncurses,sqlite,ssl"
109 -
110 -WANT_AUTOCONF="2.1"
111 -
112 -VIRTUALX_REQUIRED="pgo"
113 -
114 -MOZ_ESR=
115 -
116 -MOZ_PV=${PV}
117 -MOZ_PV_SUFFIX=
118 -if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
119 - MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
120 -
121 - # Convert the ebuild version to the upstream Mozilla version
122 - MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
123 - MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
124 - MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
125 -fi
126 -
127 -if [[ -n ${MOZ_ESR} ]] ; then
128 - # ESR releases have slightly different version numbers
129 - MOZ_PV="${MOZ_PV}esr"
130 -fi
131 -
132 -MOZ_PN="${PN%-bin}"
133 -MOZ_P="${MOZ_PN}-${MOZ_PV}"
134 -MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
135 -MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
136 -
137 -inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
138 - llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
139 - virtualx xdg
140 -
141 -MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
142 -
143 -if [[ ${PV} == *_rc* ]] ; then
144 - MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
145 -fi
146 -
147 -PATCH_URIS=(
148 - https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET}
149 -)
150 -
151 -SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
152 - ${PATCH_URIS[@]}"
153 -
154 -DESCRIPTION="Thunderbird Mail Client"
155 -HOMEPAGE="https://www.thunderbird.net/"
156 -
157 -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
158 -
159 -SLOT="0"
160 -LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
161 -
162 -IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
163 -IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
164 -IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
165 -IUSE+=" wayland wifi"
166 -
167 -# Thunderbird-only USE flags.
168 -IUSE+=" +system-librnp"
169 -
170 -REQUIRED_USE="debug? ( !system-av1 )
171 - pgo? ( lto )
172 - wifi? ( dbus )"
173 -
174 -# Thunderbird-only dependencies.
175 -TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
176 - selinux? ( sec-policy/selinux-thunderbird )
177 - !system-librnp? ( dev-libs/jsoncpp )
178 - system-librnp? ( dev-util/librnp )"
179 -BDEPEND="${PYTHON_DEPS}
180 - app-arch/unzip
181 - app-arch/zip
182 - >=dev-util/cbindgen-0.24.3
183 - net-libs/nodejs
184 - virtual/pkgconfig
185 - virtual/rust
186 - || (
187 - (
188 - sys-devel/clang:14
189 - sys-devel/llvm:14
190 - clang? (
191 - =sys-devel/lld-14*
192 - pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
193 - )
194 - )
195 - (
196 - sys-devel/clang:13
197 - sys-devel/llvm:13
198 - clang? (
199 - =sys-devel/lld-13*
200 - pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
201 - )
202 - )
203 - )
204 - amd64? ( >=dev-lang/nasm-2.14 )
205 - x86? ( >=dev-lang/nasm-2.14 )"
206 -
207 -COMMON_DEPEND="${TB_ONLY_DEPEND}
208 - dev-libs/atk
209 - dev-libs/expat
210 - dev-libs/glib:2
211 - dev-libs/libffi:=
212 - >=dev-libs/nss-3.79
213 - >=dev-libs/nspr-4.34
214 - media-libs/alsa-lib
215 - media-libs/fontconfig
216 - media-libs/freetype
217 - media-libs/mesa
218 - media-video/ffmpeg
219 - sys-libs/zlib
220 - virtual/freedesktop-icon-theme
221 - virtual/opengl
222 - x11-libs/cairo[X]
223 - x11-libs/gdk-pixbuf
224 - x11-libs/gtk+:3[X]
225 - x11-libs/libX11
226 - x11-libs/libXcomposite
227 - x11-libs/libXdamage
228 - x11-libs/libXext
229 - x11-libs/libXfixes
230 - x11-libs/libXrandr
231 - x11-libs/libXtst
232 - x11-libs/libxcb:=
233 - x11-libs/libxkbcommon[X]
234 - x11-libs/pango
235 - x11-libs/pixman
236 - dbus? (
237 - dev-libs/dbus-glib
238 - sys-apps/dbus
239 - )
240 - jack? ( virtual/jack )
241 - libproxy? ( net-libs/libproxy )
242 - sndio? ( >=media-sound/sndio-1.8.0-r1 )
243 - system-av1? (
244 - >=media-libs/dav1d-1.0.0:=
245 - >=media-libs/libaom-1.0.0:=
246 - )
247 - system-harfbuzz? (
248 - >=media-gfx/graphite2-1.3.13
249 - >=media-libs/harfbuzz-2.8.1:0=
250 - )
251 - system-icu? ( >=dev-libs/icu-71.1:= )
252 - system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
253 - system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
254 - system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
255 - system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
256 - system-webp? ( >=media-libs/libwebp-1.1.0:0= )
257 - wayland? (
258 - x11-libs/gtk+:3[wayland]
259 - x11-libs/libdrm
260 - x11-libs/libxkbcommon[wayland]
261 - )
262 - wifi? (
263 - kernel_linux? (
264 - dev-libs/dbus-glib
265 - net-misc/networkmanager
266 - sys-apps/dbus
267 - )
268 - )"
269 -
270 -RDEPEND="${COMMON_DEPEND}
271 - jack? ( virtual/jack )
272 - openh264? ( media-libs/openh264:*[plugin] )
273 - pulseaudio? (
274 - || (
275 - media-sound/pulseaudio
276 - >=media-sound/apulse-0.1.12-r4
277 - )
278 - )"
279 -
280 -DEPEND="${COMMON_DEPEND}
281 - x11-libs/libICE
282 - x11-libs/libSM
283 - pulseaudio? (
284 - || (
285 - media-sound/pulseaudio
286 - >=media-sound/apulse-0.1.12-r4[sdk]
287 - )
288 - )"
289 -
290 -S="${WORKDIR}/${PN}-${PV%_*}"
291 -
292 -llvm_check_deps() {
293 - if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
294 - einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
295 - return 1
296 - fi
297 -
298 - if use clang ; then
299 - if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
300 - einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
301 - return 1
302 - fi
303 -
304 - if use pgo ; then
305 - if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
306 - einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
307 - return 1
308 - fi
309 - fi
310 - fi
311 -
312 - einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
313 -}
314 -
315 -MOZ_LANGS=(
316 - af ar ast be bg br ca cak cs cy da de dsb
317 - el en-CA en-GB en-US es-AR es-ES es-MX et eu
318 - fi fr fy-NL ga-IE gd gl he hr hsb hu
319 - id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
320 - pa-IN pl pt-BR pt-PT rm ro ru
321 - sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
322 -)
323 -
324 -mozilla_set_globals() {
325 - # https://bugs.gentoo.org/587334
326 - local MOZ_TOO_REGIONALIZED_FOR_L10N=(
327 - fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
328 - )
329 -
330 - local lang xflag
331 - for lang in "${MOZ_LANGS[@]}" ; do
332 - # en and en_US are handled internally
333 - if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
334 - continue
335 - fi
336 -
337 - # strip region subtag if $lang is in the list
338 - if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
339 - xflag=${lang%%-*}
340 - else
341 - xflag=${lang}
342 - fi
343 -
344 - SRC_URI+=" l10n_${xflag/[_@]/-}? ("
345 - SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
346 - SRC_URI+=" )"
347 - IUSE+=" l10n_${xflag/[_@]/-}"
348 - done
349 -}
350 -mozilla_set_globals
351 -
352 -moz_clear_vendor_checksums() {
353 - debug-print-function ${FUNCNAME} "$@"
354 -
355 - if [[ ${#} -ne 1 ]] ; then
356 - die "${FUNCNAME} requires exact one argument"
357 - fi
358 -
359 - einfo "Clearing cargo checksums for ${1} ..."
360 -
361 - sed -i \
362 - -e 's/\("files":{\)[^}]*/\1/' \
363 - "${S}"/third_party/rust/${1}/.cargo-checksum.json \
364 - || die
365 -}
366 -
367 -moz_install_xpi() {
368 - debug-print-function ${FUNCNAME} "$@"
369 -
370 - if [[ ${#} -lt 2 ]] ; then
371 - die "${FUNCNAME} requires at least two arguments"
372 - fi
373 -
374 - local DESTDIR=${1}
375 - shift
376 -
377 - insinto "${DESTDIR}"
378 -
379 - local emid xpi_file xpi_tmp_dir
380 - for xpi_file in "${@}" ; do
381 - emid=
382 - xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
383 -
384 - # Unpack XPI
385 - unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
386 -
387 - # Determine extension ID
388 - if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
389 - emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
390 - [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
391 - elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
392 - emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
393 - [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
394 - else
395 - die "failed to determine extension id"
396 - fi
397 -
398 - einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
399 - newins "${xpi_file}" "${emid}.xpi"
400 - done
401 -}
402 -
403 -mozconfig_add_options_ac() {
404 - debug-print-function ${FUNCNAME} "$@"
405 -
406 - if [[ ${#} -lt 2 ]] ; then
407 - die "${FUNCNAME} requires at least two arguments"
408 - fi
409 -
410 - local reason=${1}
411 - shift
412 -
413 - local option
414 - for option in ${@} ; do
415 - echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
416 - done
417 -}
418 -
419 -mozconfig_add_options_mk() {
420 - debug-print-function ${FUNCNAME} "$@"
421 -
422 - if [[ ${#} -lt 2 ]] ; then
423 - die "${FUNCNAME} requires at least two arguments"
424 - fi
425 -
426 - local reason=${1}
427 - shift
428 -
429 - local option
430 - for option in ${@} ; do
431 - echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
432 - done
433 -}
434 -
435 -mozconfig_use_enable() {
436 - debug-print-function ${FUNCNAME} "$@"
437 -
438 - if [[ ${#} -lt 1 ]] ; then
439 - die "${FUNCNAME} requires at least one arguments"
440 - fi
441 -
442 - local flag=$(use_enable "${@}")
443 - mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
444 -}
445 -
446 -mozconfig_use_with() {
447 - debug-print-function ${FUNCNAME} "$@"
448 -
449 - if [[ ${#} -lt 1 ]] ; then
450 - die "${FUNCNAME} requires at least one arguments"
451 - fi
452 -
453 - local flag=$(use_with "${@}")
454 - mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
455 -}
456 -
457 -pkg_pretend() {
458 - if [[ ${MERGE_TYPE} != binary ]] ; then
459 - if use pgo ; then
460 - if ! has usersandbox $FEATURES ; then
461 - die "You must enable usersandbox as X server can not run as root!"
462 - fi
463 - fi
464 -
465 - # Ensure we have enough disk space to compile
466 - if use pgo || use lto || use debug ; then
467 - CHECKREQS_DISK_BUILD="13500M"
468 - else
469 - CHECKREQS_DISK_BUILD="6600M"
470 - fi
471 -
472 - check-reqs_pkg_pretend
473 - fi
474 -}
475 -
476 -pkg_setup() {
477 - if [[ ${MERGE_TYPE} != binary ]] ; then
478 - if use pgo ; then
479 - if ! has userpriv ${FEATURES} ; then
480 - eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
481 - fi
482 - fi
483 -
484 - # Ensure we have enough disk space to compile
485 - if use pgo || use lto || use debug ; then
486 - CHECKREQS_DISK_BUILD="13500M"
487 - else
488 - CHECKREQS_DISK_BUILD="6400M"
489 - fi
490 -
491 - check-reqs_pkg_setup
492 -
493 - llvm_pkg_setup
494 -
495 - if use clang && use lto ; then
496 - local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
497 - [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
498 - [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
499 -
500 - local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
501 - [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
502 - [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
503 -
504 - if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
505 - eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
506 - eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
507 - eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
508 - eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
509 - eerror " - Build ${CATEGORY}/${PN} without USE=lto"
510 - eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
511 - eerror " llvm/clang/lld/rust chain depending on your @world updates)"
512 - die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
513 - fi
514 - fi
515 -
516 - python-any-r1_pkg_setup
517 -
518 - # Avoid PGO profiling problems due to enviroment leakage
519 - # These should *always* be cleaned up anyway
520 - unset \
521 - DBUS_SESSION_BUS_ADDRESS \
522 - DISPLAY \
523 - ORBIT_SOCKETDIR \
524 - SESSION_MANAGER \
525 - XAUTHORITY \
526 - XDG_CACHE_HOME \
527 - XDG_SESSION_COOKIE
528 -
529 - # Build system is using /proc/self/oom_score_adj, bug #604394
530 - addpredict /proc/self/oom_score_adj
531 -
532 - if use pgo ; then
533 - # Allow access to GPU during PGO run
534 - local ati_cards mesa_cards nvidia_cards render_cards
535 - shopt -s nullglob
536 -
537 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
538 - if [[ -n "${ati_cards}" ]] ; then
539 - addpredict "${ati_cards}"
540 - fi
541 -
542 - mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
543 - if [[ -n "${mesa_cards}" ]] ; then
544 - addpredict "${mesa_cards}"
545 - fi
546 -
547 - nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
548 - if [[ -n "${nvidia_cards}" ]] ; then
549 - addpredict "${nvidia_cards}"
550 - fi
551 -
552 - render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
553 - if [[ -n "${render_cards}" ]] ; then
554 - addpredict "${render_cards}"
555 - fi
556 -
557 - shopt -u nullglob
558 - fi
559 -
560 - if ! mountpoint -q /dev/shm ; then
561 - # If /dev/shm is not available, configure is known to fail with
562 - # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
563 - ewarn "/dev/shm is not mounted -- expect build failures!"
564 - fi
565 -
566 - # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
567 - # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
568 - # get your own set of keys.
569 - if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
570 - MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
571 - fi
572 -
573 - if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
574 - MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
575 - fi
576 -
577 - # Mozilla API keys (see https://location.services.mozilla.com/api)
578 - # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
579 - # get your own set of keys.
580 - if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
581 - MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
582 - fi
583 -
584 - # Ensure we use C locale when building, bug #746215
585 - export LC_ALL=C
586 - fi
587 -}
588 -
589 -src_unpack() {
590 - local _lp_dir="${WORKDIR}/language_packs"
591 - local _src_file
592 -
593 - if [[ ! -d "${_lp_dir}" ]] ; then
594 - mkdir "${_lp_dir}" || die
595 - fi
596 -
597 - for _src_file in ${A} ; do
598 - if [[ ${_src_file} == *.xpi ]]; then
599 - cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
600 - else
601 - unpack ${_src_file}
602 - fi
603 - done
604 -}
605 -
606 -src_prepare() {
607 - if use lto; then
608 - rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
609 - fi
610 -
611 - eapply "${WORKDIR}/firefox-patches"
612 -
613 - # Allow user to apply any additional patches without modifing ebuild
614 - eapply_user
615 -
616 - # Make cargo respect MAKEOPTS
617 - export CARGO_BUILD_JOBS="$(makeopts_jobs)"
618 -
619 - # Make LTO respect MAKEOPTS
620 - sed -i \
621 - -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
622 - "${S}"/build/moz.configure/lto-pgo.configure \
623 - || die "sed failed to set num_cores"
624 -
625 - # Make ICU respect MAKEOPTS
626 - sed -i \
627 - -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
628 - "${S}"/intl/icu_sources_data.py \
629 - || die "sed failed to set num_cores"
630 -
631 - # sed-in toolchain prefix
632 - sed -i \
633 - -e "s/objdump/${CHOST}-objdump/" \
634 - "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
635 - || die "sed failed to set toolchain prefix"
636 -
637 - sed -i \
638 - -e 's/ccache_stats = None/return None/' \
639 - "${S}"/python/mozbuild/mozbuild/controller/building.py \
640 - || die "sed failed to disable ccache stats call"
641 -
642 - einfo "Removing pre-built binaries ..."
643 - find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
644 -
645 - # Clearing checksums where we have applied patches
646 - moz_clear_vendor_checksums audioipc
647 - moz_clear_vendor_checksums audioipc-client
648 - moz_clear_vendor_checksums audioipc-server
649 -
650 - # Create build dir
651 - BUILD_DIR="${WORKDIR}/${PN}_build"
652 - mkdir -p "${BUILD_DIR}" || die
653 -
654 - # Write API keys to disk
655 - echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
656 - echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
657 - echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
658 -
659 - xdg_environment_reset
660 -}
661 -
662 -src_configure() {
663 - # Show flags set at the beginning
664 - einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
665 - einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
666 - einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
667 - einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
668 - einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
669 -
670 - local have_switched_compiler=
671 - if use clang && ! tc-is-clang ; then
672 - # Force clang
673 - einfo "Enforcing the use of clang due to USE=clang ..."
674 - have_switched_compiler=yes
675 - AR=llvm-ar
676 - AS=llvm-as
677 - CC=${CHOST}-clang
678 - CXX=${CHOST}-clang++
679 - NM=llvm-nm
680 - RANLIB=llvm-ranlib
681 - elif ! use clang && ! tc-is-gcc ; then
682 - # Force gcc
683 - have_switched_compiler=yes
684 - einfo "Enforcing the use of gcc due to USE=-clang ..."
685 - AR=gcc-ar
686 - CC=${CHOST}-gcc
687 - CXX=${CHOST}-g++
688 - NM=gcc-nm
689 - RANLIB=gcc-ranlib
690 - fi
691 -
692 - if [[ -n "${have_switched_compiler}" ]] ; then
693 - # Because we switched active compiler we have to ensure
694 - # that no unsupported flags are set
695 - strip-unsupported-flags
696 - fi
697 -
698 - # Ensure we use correct toolchain
699 - export HOST_CC="$(tc-getBUILD_CC)"
700 - export HOST_CXX="$(tc-getBUILD_CXX)"
701 - tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
702 -
703 - # Pass the correct toolchain paths through cbindgen
704 - if tc-is-cross-compiler ; then
705 - export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
706 - fi
707 -
708 - # Set MOZILLA_FIVE_HOME
709 - export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
710 -
711 - # python/mach/mach/mixin/process.py fails to detect SHELL
712 - export SHELL="${EPREFIX}/bin/bash"
713 -
714 - # Set state path
715 - export MOZBUILD_STATE_PATH="${BUILD_DIR}"
716 -
717 - # Set MOZCONFIG
718 - export MOZCONFIG="${S}/.mozconfig"
719 -
720 - # Initialize MOZCONFIG
721 - mozconfig_add_options_ac '' --enable-application=comm/mail
722 -
723 - # Set Gentoo defaults
724 - export MOZILLA_OFFICIAL=1
725 -
726 - mozconfig_add_options_ac 'Gentoo default' \
727 - --allow-addon-sideload \
728 - --disable-cargo-incremental \
729 - --disable-crashreporter \
730 - --disable-gpsd \
731 - --disable-install-strip \
732 - --disable-parental-controls \
733 - --disable-strip \
734 - --disable-updater \
735 - --enable-js-shell \
736 - --enable-negotiateauth \
737 - --enable-new-pass-manager \
738 - --enable-official-branding \
739 - --enable-release \
740 - --enable-system-ffi \
741 - --enable-system-pixman \
742 - --host="${CBUILD:-${CHOST}}" \
743 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
744 - --prefix="${EPREFIX}/usr" \
745 - --target="${CHOST}" \
746 - --without-ccache \
747 - --without-wasm-sandboxed-libraries \
748 - --with-intl-api \
749 - --with-libclang-path="$(llvm-config --libdir)" \
750 - --with-system-nspr \
751 - --with-system-nss \
752 - --with-system-zlib \
753 - --with-toolchain-prefix="${CHOST}-" \
754 - --with-unsigned-addon-scopes=app,system \
755 - --x-includes="${ESYSROOT}/usr/include" \
756 - --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
757 -
758 - # Set update channel
759 - local update_channel=release
760 - [[ -n ${MOZ_ESR} ]] && update_channel=esr
761 - mozconfig_add_options_ac '' --update-channel=${update_channel}
762 -
763 - if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
764 - mozconfig_add_options_ac '' --enable-rust-simd
765 - fi
766 -
767 - # For future keywording: This is currently (97.0) only supported on:
768 - # amd64, arm, arm64 & x86.
769 - # Might want to flip the logic around if Firefox is to support more arches.
770 - if use ppc64; then
771 - mozconfig_add_options_ac '' --disable-sandbox
772 - else
773 - mozconfig_add_options_ac '' --enable-sandbox
774 - fi
775 -
776 - if [[ -s "${S}/api-google.key" ]] ; then
777 - local key_origin="Gentoo default"
778 - if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
779 - key_origin="User value"
780 - fi
781 -
782 - mozconfig_add_options_ac "${key_origin}" \
783 - --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
784 - else
785 - einfo "Building without Google API key ..."
786 - fi
787 -
788 - if [[ -s "${S}/api-location.key" ]] ; then
789 - local key_origin="Gentoo default"
790 - if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
791 - key_origin="User value"
792 - fi
793 -
794 - mozconfig_add_options_ac "${key_origin}" \
795 - --with-google-location-service-api-keyfile="${S}/api-location.key"
796 - else
797 - einfo "Building without Location API key ..."
798 - fi
799 -
800 - if [[ -s "${S}/api-mozilla.key" ]] ; then
801 - local key_origin="Gentoo default"
802 - if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
803 - key_origin="User value"
804 - fi
805 -
806 - mozconfig_add_options_ac "${key_origin}" \
807 - --with-mozilla-api-keyfile="${S}/api-mozilla.key"
808 - else
809 - einfo "Building without Mozilla API key ..."
810 - fi
811 -
812 - mozconfig_use_with system-av1
813 - mozconfig_use_with system-harfbuzz
814 - mozconfig_use_with system-harfbuzz system-graphite2
815 - mozconfig_use_with system-icu
816 - mozconfig_use_with system-jpeg
817 - mozconfig_use_with system-libevent
818 - mozconfig_use_with system-libvpx
819 - mozconfig_use_with system-png
820 - mozconfig_use_with system-webp
821 -
822 - if use system-librnp; then
823 - mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
824 - mozconfig_use_with system-librnp
825 - fi
826 -
827 - mozconfig_use_enable dbus
828 - mozconfig_use_enable libproxy
829 -
830 - use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
831 -
832 - if use hardened ; then
833 - mozconfig_add_options_ac "+hardened" --enable-hardening
834 - append-ldflags "-Wl,-z,relro -Wl,-z,now"
835 - fi
836 -
837 - local myaudiobackends=""
838 - use jack && myaudiobackends+="jack,"
839 - use sndio && myaudiobackends+="sndio,"
840 - use pulseaudio && myaudiobackends+="pulseaudio,"
841 - ! use pulseaudio && myaudiobackends+="alsa,"
842 -
843 - mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
844 -
845 - mozconfig_use_enable wifi necko-wifi
846 -
847 - if use wayland ; then
848 - mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
849 - else
850 - mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
851 - fi
852 -
853 - if use lto ; then
854 - if use clang ; then
855 - # Upstream only supports lld when using clang
856 - mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
857 -
858 - mozconfig_add_options_ac '+lto' --enable-lto=cross
859 -
860 - else
861 - # ThinLTO is currently broken, see bmo#1644409
862 - mozconfig_add_options_ac '+lto' --enable-lto=full
863 - mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
864 - fi
865 -
866 - if use pgo ; then
867 - mozconfig_add_options_ac '+pgo' MOZ_PGO=1
868 -
869 - if use clang ; then
870 - # Used in build/pgo/profileserver.py
871 - export LLVM_PROFDATA="llvm-profdata"
872 - fi
873 - fi
874 - else
875 - # Avoid auto-magic on linker
876 - if use clang ; then
877 - # This is upstream's default
878 - mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
879 - else
880 - mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
881 - fi
882 - fi
883 -
884 - # LTO flag was handled via configure
885 - filter-flags '-flto*'
886 -
887 - mozconfig_use_enable debug
888 - if use debug ; then
889 - mozconfig_add_options_ac '+debug' --disable-optimize
890 - else
891 - if is-flag '-g*' ; then
892 - if use clang ; then
893 - mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
894 - else
895 - mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
896 - fi
897 - else
898 - mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
899 - fi
900 -
901 - if is-flag '-O0' ; then
902 - mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
903 - elif is-flag '-O4' ; then
904 - mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
905 - elif is-flag '-O3' ; then
906 - mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
907 - elif is-flag '-O1' ; then
908 - mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
909 - elif is-flag '-Os' ; then
910 - mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
911 - else
912 - mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
913 - fi
914 - fi
915 -
916 - # Debug flag was handled via configure
917 - filter-flags '-g*'
918 -
919 - # Optimization flag was handled via configure
920 - filter-flags '-O*'
921 -
922 - # Modifications to better support ARM, bug #553364
923 - if use cpu_flags_arm_neon ; then
924 - mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
925 -
926 - if ! tc-is-clang ; then
927 - # thumb options aren't supported when using clang, bug 666966
928 - mozconfig_add_options_ac '+cpu_flags_arm_neon' \
929 - --with-thumb=yes \
930 - --with-thumb-interwork=no
931 - fi
932 - fi
933 -
934 - if [[ ${CHOST} == armv*h* ]] ; then
935 - mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
936 -
937 - if ! use system-libvpx ; then
938 - sed -i \
939 - -e "s|softfp|hard|" \
940 - "${S}"/media/libvpx/moz.build \
941 - || die
942 - fi
943 - fi
944 -
945 - if use clang ; then
946 - # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
947 - # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
948 - # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
949 - local disable_elf_hack=
950 - if use amd64 ; then
951 - disable_elf_hack=yes
952 - elif use x86 ; then
953 - disable_elf_hack=yes
954 - elif use arm ; then
955 - disable_elf_hack=yes
956 - fi
957 -
958 - if [[ -n ${disable_elf_hack} ]] ; then
959 - mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
960 - fi
961 - elif tc-is-gcc ; then
962 - if ver_test $(gcc-fullversion) -ge 10 ; then
963 - einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
964 - append-cxxflags -fno-tree-loop-vectorize
965 - fi
966 - fi
967 -
968 - # Additional ARCH support
969 - case "${ARCH}" in
970 - arm)
971 - # Reduce the memory requirements for linking
972 - if use clang ; then
973 - # Nothing to do
974 - :;
975 - elif use lto ; then
976 - append-ldflags -Wl,--no-keep-memory
977 - else
978 - append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
979 - fi
980 - ;;
981 - esac
982 -
983 - if ! use elibc_glibc ; then
984 - mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
985 - fi
986 -
987 - # Allow elfhack to work in combination with unstripped binaries
988 - # when they would normally be larger than 2GiB.
989 - append-ldflags "-Wl,--compress-debug-sections=zlib"
990 -
991 - # Make revdep-rebuild.sh happy; Also required for musl
992 - append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
993 -
994 - # Pass $MAKEOPTS to build system
995 - export MOZ_MAKE_FLAGS="${MAKEOPTS}"
996 -
997 - # Use system's Python environment
998 - PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
999 -
1000 - if use system-python-libs; then
1001 - export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
1002 - else
1003 - export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
1004 - fi
1005 -
1006 - # Disable notification when build system has finished
1007 - export MOZ_NOSPAM=1
1008 -
1009 - # Portage sets XARGS environment variable to "xargs -r" by default which
1010 - # breaks build system's check_prog() function which doesn't support arguments
1011 - mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
1012 -
1013 - # Set build dir
1014 - mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
1015 -
1016 - # Show flags we will use
1017 - einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
1018 - einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
1019 - einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
1020 - einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
1021 - einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
1022 -
1023 - # Handle EXTRA_CONF and show summary
1024 - local ac opt hash reason
1025 -
1026 - # Apply EXTRA_ECONF entries to $MOZCONFIG
1027 - if [[ -n ${EXTRA_ECONF} ]] ; then
1028 - IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1029 - for opt in "${ac[@]}"; do
1030 - mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1031 - done
1032 - fi
1033 -
1034 - echo
1035 - echo "=========================================================="
1036 - echo "Building ${PF} with the following configuration"
1037 - grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1038 - [[ -z ${hash} || ${hash} == \# ]] \
1039 - || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1040 - printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1041 - done
1042 - echo "=========================================================="
1043 - echo
1044 -
1045 - ./mach configure || die
1046 -}
1047 -
1048 -src_compile() {
1049 - local virtx_cmd=
1050 -
1051 - if use pgo ; then
1052 - virtx_cmd=virtx
1053 -
1054 - # Reset and cleanup environment variables used by GNOME/XDG
1055 - gnome2_environment_reset
1056 -
1057 - addpredict /root
1058 - fi
1059 -
1060 - local -x GDK_BACKEND=x11
1061 -
1062 - ${virtx_cmd} ./mach build --verbose \
1063 - || die
1064 -}
1065 -
1066 -src_install() {
1067 - # xpcshell is getting called during install
1068 - pax-mark m \
1069 - "${BUILD_DIR}"/dist/bin/xpcshell \
1070 - "${BUILD_DIR}"/dist/bin/${PN} \
1071 - "${BUILD_DIR}"/dist/bin/plugin-container
1072 -
1073 - DESTDIR="${D}" ./mach install || die
1074 -
1075 - # Upstream cannot ship symlink but we can (bmo#658850)
1076 - rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1077 - dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1078 -
1079 - # Don't install llvm-symbolizer from sys-devel/llvm package
1080 - if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1081 - rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1082 - fi
1083 -
1084 - # Install policy (currently only used to disable application updates)
1085 - insinto "${MOZILLA_FIVE_HOME}/distribution"
1086 - newins "${FILESDIR}"/distribution.ini distribution.ini
1087 - newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1088 -
1089 - # Install system-wide preferences
1090 - local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1091 - insinto "${PREFS_DIR}"
1092 - newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1093 -
1094 - local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1095 -
1096 - # Set dictionary path to use system hunspell
1097 - cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1098 - pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1099 - EOF
1100 -
1101 - # Force hwaccel prefs if USE=hwaccel is enabled
1102 - if use hwaccel ; then
1103 - cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1104 - >>"${GENTOO_PREFS}" \
1105 - || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1106 -
1107 - if use wayland; then
1108 - cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
1109 - pref("gfx.x11-egl.force-enabled", false);
1110 - EOF
1111 - else
1112 - cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
1113 - pref("gfx.x11-egl.force-enabled", true);
1114 - EOF
1115 - fi
1116 - fi
1117 -
1118 - # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1119 - if use system-harfbuzz ; then
1120 - cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1121 - sticky_pref("gfx.font_rendering.graphite.enabled", true);
1122 - EOF
1123 - fi
1124 -
1125 - # Install language packs
1126 - local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1127 - if [[ -n "${langpacks}" ]] ; then
1128 - moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1129 - fi
1130 -
1131 - # Install icons
1132 - local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1133 - local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1134 -
1135 - insinto /usr/share/icons/hicolor/symbolic/apps
1136 - newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1137 -
1138 - local icon size
1139 - for icon in "${icon_srcdir}"/default*.png ; do
1140 - size=${icon%.png}
1141 - size=${size##*/default}
1142 -
1143 - if [[ ${size} -eq 48 ]] ; then
1144 - newicon "${icon}" ${PN}.png
1145 - fi
1146 -
1147 - newicon -s ${size} "${icon}" ${PN}.png
1148 - done
1149 -
1150 - # Install menu
1151 - local app_name="Mozilla ${MOZ_PN^}"
1152 - local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1153 - local desktop_filename="${PN}.desktop"
1154 - local exec_command="${PN}"
1155 - local icon="${PN}"
1156 - local use_wayland="false"
1157 -
1158 - if use wayland ; then
1159 - use_wayland="true"
1160 - fi
1161 -
1162 - cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1163 -
1164 - sed -i \
1165 - -e "s:@NAME@:${app_name}:" \
1166 - -e "s:@EXEC@:${exec_command}:" \
1167 - -e "s:@ICON@:${icon}:" \
1168 - "${WORKDIR}/${PN}.desktop-template" \
1169 - || die
1170 -
1171 - newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1172 -
1173 - rm "${WORKDIR}/${PN}.desktop-template" || die
1174 -
1175 - # Install wrapper script
1176 - [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1177 - newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1178 -
1179 - # Update wrapper
1180 - sed -i \
1181 - -e "s:@PREFIX@:${EPREFIX}/usr:" \
1182 - -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1183 - -e "s:@APULSELIB_DIR@:${apulselib}:" \
1184 - -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1185 - "${ED}/usr/bin/${PN}" \
1186 - || die
1187 -}
1188 -
1189 -pkg_preinst() {
1190 - xdg_pkg_preinst
1191 -
1192 - # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1193 - # does not need to be forced into the LD_LIBRARY_PATH
1194 - if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1195 - einfo "APULSE found; Generating library symlinks for sound support ..."
1196 - local lib
1197 - pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1198 - for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1199 - # A quickpkg rolled by hand will grab symlinks as part of the package,
1200 - # so we need to avoid creating them if they already exist.
1201 - if [[ ! -L ${lib##*/} ]] ; then
1202 - ln -s "${lib}" ${lib##*/} || die
1203 - fi
1204 - done
1205 - popd &>/dev/null || die
1206 - fi
1207 -}
1208 -
1209 -pkg_postinst() {
1210 - xdg_pkg_postinst
1211 -
1212 - if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1213 - elog "Apulse was detected at merge time on this system and so it will always be"
1214 - elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1215 - elog "media-sound/apulse."
1216 - elog
1217 - fi
1218 -
1219 - local show_doh_information
1220 - local show_shortcut_information
1221 -
1222 - if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1223 - # New install; Tell user that DoH is disabled by default
1224 - show_doh_information=yes
1225 - show_shortcut_information=no
1226 - else
1227 - local replacing_version
1228 - for replacing_version in ${REPLACING_VERSIONS} ; do
1229 - if ver_test "${replacing_version}" -lt 91.0 ; then
1230 - # Tell user that we no longer install a shortcut
1231 - # per supported display protocol
1232 - show_shortcut_information=yes
1233 - fi
1234 - done
1235 - fi
1236 -
1237 - if [[ -n "${show_doh_information}" ]] ; then
1238 - elog
1239 - elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1240 - elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1241 - elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1242 - elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1243 - elog "(\"Off by choice\") by default."
1244 - elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1245 - fi
1246 -
1247 - if [[ -n "${show_shortcut_information}" ]] ; then
1248 - elog
1249 - elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1250 - elog "each supported display protocol. Instead we will only install"
1251 - elog "one generic Mozilla ${PN^} shortcut."
1252 - elog "If you still want to be able to select between running Mozilla ${PN^}"
1253 - elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1254 - fi
1255 -
1256 - # bug 835078
1257 - if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
1258 - ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
1259 - ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
1260 - ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
1261 - ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
1262 - fi
1263 -
1264 - optfeature_header "Optional runtime features:"
1265 - optfeature "encrypted chat support" net-libs/libotr
1266 -}