commit: bac11447a9297df5b618c7fb5174dbd7a751f7a1
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 10 19:58:17 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Dec 10 19:58:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bac11447
mail-client/thunderbird: add 146.0
- sync changes from firefox (cbindgen, nss, nspr, ffmpeg version requirements)
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 66 ++
mail-client/thunderbird/thunderbird-146.0.ebuild | 1156 ++++++++++++++++++++++
2 files changed, 1222 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 4c1b686479c9..7d07e404e2d9 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -4,6 +4,7 @@ DIST firefox-140esr-patches-03t.tar.xz 13772 BLAKE2B
a62d981c81690306845b28375d1
DIST firefox-143-patches-02t.tar.xz 14036 BLAKE2B
7d84726e1d4ababc088052382e72aecce413ac02acb0ae0aaa974d258ebabe971a622b9c765f3f03d3a58a80e053f5d3c831c845b357df02bf88135fd416e7e4
SHA512
8d66d77a04b68018eac734b4eae4618d91b1a1f069733276a2187577ff13c4d08baee9fb0532159aaa3e3269716583ffc8af9f26502376907e87e3ed58bd6845
DIST firefox-144-patches-02.tar.xz 11860 BLAKE2B
94fc2a688a938059cb4127c20d674b042418bc994714becf815780c3c775cd3bbd6ee12a267cb38ae3b5b5daba045a692600881afa2b4435031a55838ff9de48
SHA512
187fdf7e8d094b89a17bac55448ef4e32879573b05afc4e21b2685fe0bf266526169614ff41516bd3fb05a02406f4c7c5dad680720913a964aebba23801ab334
DIST firefox-145-patches-01.tar.xz 10908 BLAKE2B
b5ec713e92609c44c58303e296098462f2a28c075394ad90cd9d0a5d3c54022f9d84a60cf95f521ef03ab14229fcf99d2bf0c95b91cae6851f5e87cb8d419e56
SHA512
4a99db63b9e24035e1bc290cc33cd7a01cb0e95ec682886828d25d494163bfd24f945e0743c60f2bcaefa168b825a06f4398ecafec603ba523bab0956515916a
+DIST firefox-146-patches-01.tar.xz 10568 BLAKE2B
643ed4298d7ab2251ae1f813473a7b461aa386dfb72984e46201b22b6cb0f69f28e92b44a4783dda32a81b4b0dacbe8b47a25b9232481ecd79a19550e74e4812
SHA512
9e2474eedda1c2644ddcb0f9fd2d90ede764469337eab1267d3d4dbe8e3487bb519106449acf1da9798050d61a51e96a882f365e4587f88747161f6418203e4e
DIST thunderbird-140.3.1esr-af.xpi 316218 BLAKE2B
bd4889a7accb2ff53ed2edcf31201729c94e05c8d5c6b3d9e1e1fdd4d760fd8cda4e9a0a66dd49c0fc53cb3138c03aedac724bf0ae24ead496a2eb19ba22c782
SHA512
4bedb9733204c0551245c18e7ffc5435ed0686812c50030351fca7dff277581747f0722c41fa64851c68e56aaebd9c99ee169e3b7ea465e5f7ef56ec6a768ea4
DIST thunderbird-140.3.1esr-ar.xpi 436173 BLAKE2B
27febf9e2424b7780fa9b493feda00bc376795d0b2d00a8f1be0a84346f46444fa841485a1a47face821bc670e634243af3819bfdaf6f50f6ecff9207be12be0
SHA512
5f6552aceea9c2fb67d104d4a08adfc6de5ef547d5c0debbe2fc61d71a2e6572c1624eb93ab542a67aeddfb8670c0bc2eabd4782da25b53cbfa3932cb53ab2c1
DIST thunderbird-140.3.1esr-ast.xpi 340599 BLAKE2B
9f6ccbbb78f4203b76cad603d1372ffc9b786ec3a02408c660fc492ca849ed91f342fc02c72853071a5fb3b62ec44196d65ceb69ec1c5f02a6a6c1920444a209
SHA512
dd2ec3b9f01bed8c0c2689b5b63e60a791fda2313dc67428030aaf6455bfdf7a60eadfc1288a6033f9651e7916078bdcdb4d868d570db687a8fb66112c735b27
@@ -459,3 +460,68 @@ DIST thunderbird-145.0-vi.xpi 524700 BLAKE2B
1facdaa111376af78f76a6661fc9ca92367
DIST thunderbird-145.0-zh-CN.xpi 513582 BLAKE2B
a49a67791c43220ff5e1a483cbbc63212d88f22ae7595749f01d4e95c84e32f3c01d57e8949a8df44b2d0b11dfe507919938e2ad9c20ee3a5b77cffa16a81b0e
SHA512
85390855bfe54f3988a627d027574fa28e27d4608fc338cafed204b7a4d15b4223c8bc238dde50e894cb91b2b9197b6e866371cdb7a383537403c5bb56bc73a8
DIST thunderbird-145.0-zh-TW.xpi 517231 BLAKE2B
29cd5e4e6bed9f98e89b74caae40006cb88ed2c12cfdef61e4ba158cf97e5fe3cd8183c1166d830fd60d10ed46560ffd7556c1b07494d29f3860f144918677fa
SHA512
18282da3d0cf2efddfefd79933d30ea073165fb93c0823dd10d1c50eebbdcb8149400583bf708d75f2105a440f59c6e29af3bf2c8300189216bec848ace8bab7
DIST thunderbird-145.0.source.tar.xz 782126204 BLAKE2B
1e7efa10abfef84dd6bc77a920f258c35a71349f96c2270f59c1bc92ca1f8f7e3a22168d230450fcd6945631546116747255d3d1ea4fc530ec1e325643ead02f
SHA512
f33835e4d740b32d072ac915124d988ef9d4cbe55d7c972c817991d19b64e8bc95b75b503ad3cb9abf4fd1d220fc7cb61720ea84dc49482faa13da1690d7d80e
+DIST thunderbird-146.0-af.xpi 312102 BLAKE2B
1002d405b855ab92e382ac171d078a8cfb1d40c502d71865906c1a29e1d3e5bc3b5dd5dd3a623f769dd8617872361808a64aff7731e9ba476a2fa6fde2e3628f
SHA512
21a4f2c6241d9252cad85b8a5a2111afb749dfb791abaa1f505ac433e4575247e7b1f3a47663f717e8c791f3c084b43bbb52312dd75787d7b0badbe243ff56b7
+DIST thunderbird-146.0-ar.xpi 433915 BLAKE2B
0fabb128da8e4685f489a928c38437bdb668a0c7d1c15b94c68718fc1df26303a5cf02d0d722b5ecc74b9a1521ca394941235647b8e6469825f3f13e3b57d6d1
SHA512
27e9fffe05fc2e52b902cf52399847d6f313dfb6cf7326e4a5ed8cdde55cf87694f39ceae38d5c7b680ede2b3bb1b5d7685df0e8751dcd8497ea0abea4451159
+DIST thunderbird-146.0-ast.xpi 336128 BLAKE2B
92491e55d73bcb204a23aa283d3b16d43fa0038bb24c6fcb0308d2c1d2d3017802995ff14a617eb9c5d5869943afc31ba1c96aa06eac2dff3989e9e41c2c9a7b
SHA512
f74087a0cebf61e8dd5fc86d31ad1c9786cde50f312f40664e247a478e7a1f4ddbe547af529e1ca58cffa21e711b4ec6d61903af62d306394e490e9353486b5b
+DIST thunderbird-146.0-be.xpi 521690 BLAKE2B
dda1c10cee0b3a5e730b95db97381ee9c75e803694e3298ed4454893e3b68b47f780a7e76dfee0b7dedd8b3805c78f82fa1bd4992f88ad5962ea79c35ce5fae2
SHA512
f9ed3b7bfb4132debb512a39d625fa2e229ecfd8eda2ae2217d6acc1f7732cb9c5397b6793ca6140db772261e91dc85654edb80cbb6f6f1980b99d32e3c1c19b
+DIST thunderbird-146.0-bg.xpi 542825 BLAKE2B
5f858dcec2985814ed2cf79eee8e1dbf30db9f52571fbbd3f373de27f0cbd215429fb573ee57f911ad74c60452f535d4873c375e137b8332a0ae8270f75a3e04
SHA512
d9dd3e044d4a76617e67128fbb4aceeeb41a7e4b45b63e4f837f5931ee10152cdb16c15059a0326c6a99ebe8043f870d5fa5029754c0ef67232f6696cfbebc07
+DIST thunderbird-146.0-br.xpi 400962 BLAKE2B
1ef8a29fd5c2b67dfce57112cbf32dc5b9a34a89849d4e4f7a58813cb116ede439c2023b11fbeaa08cfe169c9c4ee78e1b8016c705385515437e5012cb8c8a67
SHA512
bec10af90a6690252c1e1b8d7f44cd3184854038bd6184739ce56ec14b4995cddad8a6e7cf7eabe533ddf8c95e530a3118f782d1399aab955e15f48dbdf90839
+DIST thunderbird-146.0-ca.xpi 438173 BLAKE2B
cd6058fc10e1cee3f6a41b505456b4c430d0e6e5cd68aee928dfad07cb9fb8e014cb3bb45239482d9718a2d38820c6d5898bea26337298af8ea468488f9561d9
SHA512
7434ff610ff8bd9f7c6196a89e870644b21d21b95f01c85594d2c8e9949491734f4d54fd19f7fb55022485d7cd3b802a1a3ffc94edf230f2a3c9dcbe75c4337e
+DIST thunderbird-146.0-cak.xpi 414590 BLAKE2B
b466b6591943f29fb2005deee82edae79983e15d8f44f020811cb29ee48ed955f00da058b1f36236413a52b07070336a1c3400e620c681c2726010f2dce5e448
SHA512
70c53a5b0df279936c1cd06f38f3091f45b46d4c1b3eea6cdb6c40ba75c69e8db3271ae0cacd7409facd424b64c90d4aa5efc1b970848005e05fa981b3f1ecd9
+DIST thunderbird-146.0-cs.xpi 526516 BLAKE2B
0e5d78d7392d30ec41a44b7ae12a57238a96c6ea2cc95df0267979cf4e138fd2f05b72fc43b558f7d3f0288fdc8d5ebca7eab54d439354e17d24b0b7b219982e
SHA512
948b359cc7fad2e15b9cc2efc2cf61f265fb9c82b22d936557a23ff356d2d69ef5464bd69ddfced832126f391f7f97017bbe81236aec531b54fbf201a2c706a8
+DIST thunderbird-146.0-cy.xpi 494121 BLAKE2B
1d87589ca9c9ccc18c76f0fd708af430c052fd80961710dff8bc32a6843ae817bdf3d676f0fa323afbf9631f0c4a1c36f6086cd164cad705cfbe3b50a75e04ea
SHA512
120e242690bbe84373990772524e1c2757ded8a98ddd48872ba26dfcab3a6793c9dafd46186e2374835c22ef851e9d96edbd2f14fa5ec72b6480e701333cb984
+DIST thunderbird-146.0-da.xpi 482468 BLAKE2B
f50c1ca770825ea606e7d03d03551efaac25c7669e375719a1e032ef6674b9bedc38238224688ce2ebfa80ae4f4d8f13f8c5173ad2c9b3ba2a7de3c3302bcc35
SHA512
c9945c1eeed2e436ac7965c8541b45f71c6902a26a2abf28132487c490b8e01d050064d7a1563188baf91fd2047b3dc9af697f9bdd62312adb379a4962dee564
+DIST thunderbird-146.0-de.xpi 511098 BLAKE2B
38468eef0972ac7e2448ac79d72278557615482f4c0dc6b302247ab03ce5e3ffd711fa303bb2a1122b2b63a44dd676ae00350983b6807bfe76b95a7368e9f1d3
SHA512
5adc0b33d0a1a821a28e1aa4f49c40c373b0631a888f2591cac128107e357a6dc2b4549249c30a43653e1f32bb2dd4446f28292241d4368e37ffe4e53b19f683
+DIST thunderbird-146.0-dsb.xpi 524185 BLAKE2B
8727d61bb157baf2a5efaf60f8787e8b6969995193a65688b82d646b1f5d836966d9ed81c9a80e0bb5fd46e4c442e234856d579f4869599fc92cbb69a323886d
SHA512
11be83881b9db84cae559e23e58ea7f7be74a768646feb496b6d85a1485ce637e918b9cb48657e1e3d37ccd2eeb1abc9eca3ca6f176dd7155dfdc0722c9fd619
+DIST thunderbird-146.0-el.xpi 615879 BLAKE2B
1f54f9a1e82415c22c25f500437cffcb63a2c759283c3fa5525c14ff17cb66d046d8c6f6221939501fd0e9d5dd75b62d44fcd641e9e43d96deebc1cc60d76110
SHA512
d59c43880c480fd3a13ef670bbc31debb499e24f93d08d345d42dc20b8ba1f76a5d0169a4630e2a9ded0ae713b306c36710fcdf0e97be841aebcf97b3a24fa60
+DIST thunderbird-146.0-en-CA.xpi 457745 BLAKE2B
f82ab368e48b2369feedd9aaa31fb261e9a77a3e66314e760a58b30ff76d31a07f88b6ed60a681923c5053afdee80c7a9834cbc2fd6cfcf854a65413cb8bba69
SHA512
149ba6d2654f24fec835eba3c45880a590b8293796a988b0c04e40401261b167337637d80f7253d10923aeebca1fabff8815ff4404b952330c375cc5ac037643
+DIST thunderbird-146.0-en-GB.xpi 457595 BLAKE2B
b83ce023e0d94c3d8a0e22f87053c72a1dfefda7a7f73fae00d4ca925652d8abbfa0530f0f3e7aa540a1088d23b87448636cd8165b3f5aa20d9198b3d020a768
SHA512
a7a6ec041d9e733d3b8184d92b70c34d7900a974612e3c394eac837720ccca12bd6f3b6d0d6c03904f215c7163d319d12b1ea1c391b64e3c3354f07312c3bbef
+DIST thunderbird-146.0-es-AR.xpi 501279 BLAKE2B
e82be8627811e903427b840f84d858fbe3702d4a06a79ca7817a7e3c048c17faa260d1e2d9fcfbb4ac06bccde625a6f79d1711c5e68e9188613cecfbb2384281
SHA512
972570e0cbcc6878672a84b321ef6e983c7ff5f1a1506cb78274e04b4cd5802f52d6fffefe1abdc399795df3299c86866ee06574198b0af0ecea79dc2e7a0b72
+DIST thunderbird-146.0-es-ES.xpi 503404 BLAKE2B
d81408db4d3839c38b1004a48f6770af527042a428cb4088a6cdfe56d55ddee407da85dede404bd6684447ea6fc9eb938ebaae6e8cbd41e2a033983fa723c9a1
SHA512
ccdf469b374e94dbe41a99224502552d6a6ad1bd1188d9597afa60ca4c4a3c59d22edfe698edea7d79ea65d1cc58f834d8d173439528bd5ae355be4166de3aa3
+DIST thunderbird-146.0-es-MX.xpi 489583 BLAKE2B
dc27c406043e5d55f9547abc4977712d358834c783032d22345ff5f2042fc56910ca636c88072615ef21b22e253b50d346121fc809eca2cffedb15323a4b51e9
SHA512
3979018f7a1e35ca66974b3ed908fbbf013f0ecc6ab9228ef7376c5a7cb92bc6d583360f62ab3fedd0e12375a014512f86abc6468d79ee379a2f7242a6ed66a4
+DIST thunderbird-146.0-et.xpi 441172 BLAKE2B
1caeaeb4778c24dbb64aa820f3d4386f349f5511daad6acd321bb658eec3616c5a08b4f0e50dc5d57ea2ac9c07f5d16308be78f476bc0c1c34204c1bbd07307b
SHA512
1d23564521da241d5eeb72f215577e8f2ea8ca427d71a74891543c4aec00676a9def0f2fd994baf60066ba4a184ed65695b937089d3ab1ea8e5b5ad2cccdc74a
+DIST thunderbird-146.0-eu.xpi 475559 BLAKE2B
02a4e5a104378161a366befd0942bf8ada329a30b6a46571819b668b695f51a64c1381366f730be9c94e682700409898a9939bac9ddfda1cbb3d82fa087a6e98
SHA512
c36b15cde4baeee6f50f1f273f5a801e23078dd7aeab142d155c94b287f53270148a1ec7ae6ec903a3bbc14637acae20d93e8900f14a5549a70a6c05c4b5b7c2
+DIST thunderbird-146.0-fi.xpi 478477 BLAKE2B
38ac61c59f7c931391ac175249252dbbb2778ee3d47ce1be6ef77d55776b04cc6fd1aab104fa19b49e4149480d43ad1fa4dab008fa229471439e3a139f171c98
SHA512
3fc6d16a6772605fbf8ce5b613fe26ab36682cb6dd0188a7738e84d9ef0749e0ea9cdd17535aa42eabaf456da04e737f8e81e3f60ec47db55e93677193534eeb
+DIST thunderbird-146.0-fr.xpi 514482 BLAKE2B
96cf3f57d6eca0e2e508a7a2b36cdc836b29f62b791ff24a8da690a410fbfa045df2867ed894ffe31cb8c97a5f4fb386c0eb88056c313fa255534fe443cd0984
SHA512
24168737698f52075a42d8a5b6647913e53620993da80e3c292670c9e8d8e629692d85154980fc16064859602e02ddc9de39fd7e3691deebaf2d2d8693ebab5a
+DIST thunderbird-146.0-fy-NL.xpi 496787 BLAKE2B
1c89befc44262843ea65186b21c24bf57af0a035726ef552349793235c2c596a23346a6f165e2959cff4ef77ca15b7b325f6aad7f06bb0983002b06f095ab8b1
SHA512
4cad0a5755425fe04df34e957a07188464e1b028faaca51be11c0157a21316506394ab5669a0b92e6c57e9fce7f879ff73773b64e665ff842858699f930fe1b9
+DIST thunderbird-146.0-ga-IE.xpi 374084 BLAKE2B
fad967b7c40888bf2c9926857977a0520ca382f0c032a180e55238e4b7f4100130d663cf47811356070e85261fcc1bb710e7f27ffa8bf2cff4eac5e192b48108
SHA512
a0b230ce073681ea7bce0a2266fa7ec76d5ebed8d7f239299d653989ac903e15991ed0b0fa5c365641d8c73258e5fde63642393c1ca96a37bb64a2a0d587940a
+DIST thunderbird-146.0-gd.xpi 459531 BLAKE2B
d785a62adc934e35f7cd063dd6ed65e755234a8ddb341d7d4ef287349dcd0418f7ffb9e9cb209e29daedf1079c93c0fabd378610391db71db933f44c258440b5
SHA512
8711bbcd28bb6f8c46b2535ae1a412ca1092711abb7125f5d1faf88ea73b07d79f17583a30ac7392357ba77814e37827f3abc1f539499a5fbe4c8bc2f4a36b33
+DIST thunderbird-146.0-gl.xpi 488846 BLAKE2B
b089c22a54ea5a6a55995e99bc2eb33281d405e7a1b9914b54c1c8777c91ec936a9504e895eeb945dbaadd10e292701dddfba1551aa429738d297469d46a6106
SHA512
d58a782cf0a40050c4b6760df3e5e7f77f54a02020f09ca7facebc50c5aaea57758dd07822c0ab41abec34575929048d68f1a2f61f730b362ad792720b0911f6
+DIST thunderbird-146.0-he.xpi 441788 BLAKE2B
e1dc67ecc0492b4ab5e0648dbb467ac3f13c0ed9051f0c6571bab70f50c5a971f3d4525fc78d2e5cdcba7cfc93ecabecdd177fe3e5894ea608d04acd456aefe4
SHA512
442cfb7a896c3e6e63459a87fbdf6e48f0e3a8ad6f5f48e07cb559643c511666e664a69a6f20fa61c5008890f0726af018fc35fb49674c4ee49ac55d7d2e3a39
+DIST thunderbird-146.0-hr.xpi 468249 BLAKE2B
775312eda877a5ffa5d430035ca3a65ebf754b69a93964be2673a523825fcd2048aff3dd0b300c19bf7104a72112ce5990cb09e3679e2fe2b7383858fd21449f
SHA512
0f865d88ba6bcdcc72a5a7cdfb421d09fee70f6c229b749728b1070a82b79aa3f796529f0e41c411f5b40de4ef11b75938a19376b09ecf0ae1e35be73ded62fa
+DIST thunderbird-146.0-hsb.xpi 521215 BLAKE2B
3fb6a77281197b79bf7ff918322d12362995b3a7c1dda88d266154cafc5ee574f02104e0a4edc3b8bf4715b96c9a4152a4869b8d836d15ab724e642f716d7529
SHA512
46c308ebd1fe6a5bc2a689ddec023459f841d0f39a7a965f407abfefd71e97a4ff5c14b504f8ae7564ca27f48b5333d80903e960f0894b2ca9326c1991ae450f
+DIST thunderbird-146.0-hu.xpi 523851 BLAKE2B
f495198422087174df82ae556dc88338a3d0fc5bce61debecb072025443c33f6b294412ea33f8561cd8f475bde87b9da3d52c6be84e6196889fb29d8b4f057c6
SHA512
95d784546ec7c03545452399fa63708f94bbd05cd70edd64407350100c4bd8818bc67c0171fdfb46733e19b96d3b688fdcb10ba3a76467c675afde301edc03bf
+DIST thunderbird-146.0-id.xpi 468898 BLAKE2B
f884d5816230621c67a812c654e43f5f8b4001fbbaffa9e784b68e96ec8e78ed996fb565167568b4afd3935c9340f5c8fbe64a4dd2caf3747b37eacd7d63effc
SHA512
4929804fb207e119da915d54a62eaceba92a6dda57c2a85b98ac0b53999a9522aac26deecb29feb15d6bb14f6e2c0e38a2332812e6eb4a1b13bb79ba294e0385
+DIST thunderbird-146.0-is.xpi 485555 BLAKE2B
6817706fdcd18742b54f8c81309c0d27cf4d6a87972c71029ef323326e428a49f1c0342921226fe6fd4c8847a79ae1f98a6c421e756b2a10701f8020341d0683
SHA512
2c5cdaa64bd509678d9b81add8ab449a21b621d4f24f68af94796d1e0d3fab8cdad0a09e5e1aca9370167f21625e3dbb35784010190c2f5495971e77dfe6a8b2
+DIST thunderbird-146.0-it.xpi 494395 BLAKE2B
a4022d716300f1fafb6478432149e9ebf91e8a57225eed6814e9f40d09fb533aa8256a5ed6c684cf1a5301513484f76e85d6c9296d7bf2fb69589661f4c60070
SHA512
71de334874e21e808eb3d01b148d43c9a5811b47da1ca06ace1e494c67f9a2b6be9a8ffd987683fa3568e50b5106bd4eea2e354acd8c78fb1fb986160b11a65b
+DIST thunderbird-146.0-ja.xpi 545489 BLAKE2B
7dc2a0400e8fee18481510d4a9a69cf143004d98f6700cdde102b7bbc681306aed511c31687a00e9639eb17bde7ca61a39a0ebae1ed5cbec3ff5c706f57136ea
SHA512
0e7bc9079e634335f9e83fa2bec386988700c578d99c7640c9dbbe3db8b3c29c6d862c34e2943849282d4679bab47c96f63f0e4ee6be7976dfa501ccd6b5f034
+DIST thunderbird-146.0-ka.xpi 561846 BLAKE2B
c4963d9bdbdafb811b94f0565b555364b2819930cf997f61134da6c1fb98b2633cf98d390f3ea4ebcc8807d6df483f0988f6480e8bb116b44252729180fbff88
SHA512
62b69bd732cf155cac1b341e480617190a60fa16a3aeae367391a25eff46f7fc61e551438892b83d0fe611f7f8b6d58a62d55ee244a67eecd64a70145e54ae25
+DIST thunderbird-146.0-kab.xpi 468985 BLAKE2B
60fb5471ddbd362f9bf33a6b07f5698d542f60290a9cf1269517f42081d0839f409ea24c0b729a831cb28fe08df12e69d9a4846a858172144ded40433569ceaf
SHA512
13d5a63f7bdccd7a6ff21ddd4c205bb9b5d03605b488c9bff24527b755a1b2ca585904e4684fa1a6609b257cd5e050ffc911361e0f961760541b8d9bd74b5035
+DIST thunderbird-146.0-kk.xpi 576169 BLAKE2B
c67e1d3eaac4108572be97936e7b230caf81221751e60010225372eac7f05ebeee4dba3146e2c89caaaa8f1b61dfeeee9a39f2f44483a2d252ff5637b2e25336
SHA512
c76440d80c9f2be0495c920aee74bc32f090b29fa601ba39ce5cddcef8f7f3d00c48d850742f001cd61cc1ba547b25d3b581c6916e6ea9a747db0a0ee61759a3
+DIST thunderbird-146.0-ko.xpi 518737 BLAKE2B
69ec590996276b70bcc107458177f7fb746dbf463a558d7c29412bd4e795cf2dce6507cb575837144f235b9928f572c865f4de668a99460296255b4f3e799e11
SHA512
dea7ac1babd96e9ffac3b48224205ae0d1ed7de9bca2bb5f5c23dd71c5b9c8e92e6386ee3fb85229caeb0f5df8c55a532617870aaecd344d258a671be50e34df
+DIST thunderbird-146.0-lt.xpi 450964 BLAKE2B
a908e00102c8d75eee606bb407245bc3f706da44d3de60e7f048fee1dc0204fc57ba17159bf2ad1441dbe96875d162c8801afcb2f17f579532dc17e5ac466c2f
SHA512
75d227c9b8ef28ddf60327fc3f780ff78471bbf69afaf64e1b1d3beb62e53c9c38c593fff1b21f58f422561f53753d2557c600029265e92ee81f586aac59499b
+DIST thunderbird-146.0-lv.xpi 388650 BLAKE2B
149e4fccd157fdbeeab0dfd834855a1cb7c50039e6867b4a04cab4e888be860402ce7ebb7d6b52251b07a6531c9893bc3e2bc6468701c869d271bf0fbb03cc69
SHA512
1f38c84b1f681c9e54740ea598943838b1d0d4f02dfca7c07d0ccc3c6cda0e2d9f899533935b677d2428e0e61ef047367ced7b9c4b4b0c64cf6010ce189afca2
+DIST thunderbird-146.0-ms.xpi 350379 BLAKE2B
9414ba94407b2d490c0c9b224886193db5ee5512271e8bdf45ff7e3927a99f0a7577fe1d524b34cc30bc7e0d74a32079e0ad58346e3df3cda745dd41e90fc2cf
SHA512
32624fedb6db92dc8133aa2a98ea165df04d027703162adc19a1f129a3fd462f48379c6d22acfee1debe13d6fb65e49938b3254111a1415641d3641267ec77de
+DIST thunderbird-146.0-nb-NO.xpi 481933 BLAKE2B
4f997248c3b12cea701be6b9f083e74e8de27c3cbf830b032e28a92be7e32caec408fe05bc50054368f521f55845a8760f6934fb68d5ff2cee6ba2e0847550fa
SHA512
5eeb876d1ae2450a2661db0bd1c09a7f68b2aa45f37249b14fc428a78d5a9d3d18be4d8d07e3828fa8064921d71fc90dc6491391b913e1cc1efccfd65382d1ce
+DIST thunderbird-146.0-nl.xpi 488028 BLAKE2B
cf2fa5a9bd3c64ddadb564c1d6d7f0708588686943d46a59b839f5564f5f6d89181fcb713cca226b0e7af46f1167dbd9124a9bbea8d908737f381c743523438f
SHA512
9df97caabee51de3f9683d67efb1d1233019df9eacf8d27047fceca3300c83369632e12d26b136d365685c0f659238fbb75cd568fa1f1009538b52d844abe2ef
+DIST thunderbird-146.0-nn-NO.xpi 484388 BLAKE2B
fa3fb53c6fe2cf31597a64f733c1af9cf50cab23e9352548be533715f0bf7aca50fde6da2875758f854a8ea23518e1e969d8bf51d001c2b10cca1d2218e0ac2c
SHA512
222a5af2caf9b684182d322f76e20f4259195a77c7784a6396323842fb56d0ca1f006deff6b111b200dee9c0d802ee047c2ff4b822e068af85a2e144850a250b
+DIST thunderbird-146.0-pa-IN.xpi 433835 BLAKE2B
30c69e73778d0ca677437305b8594bb2dfc5cb1c55eecdc9a0e2beaf066f2e1be8e56b4ec24cfddf484c85384af0f076729872c7825d842f5c367b42600ab951
SHA512
a88d26a4403af04d2430c9112e1240b7ce6d6ab211d9bee61ad76214a01f24cdbc7ae60411e483683d1332eadd0376698a7c61c735fa3b9ea0271dc0eeae95cb
+DIST thunderbird-146.0-pl.xpi 521914 BLAKE2B
15dde376aa8c17aa4182460dd2caba08871db76421276a89486a4f5c30f694462eef0db208ec80c25590a29e71502ab9aa74b5b9741e6c09c2c6960077191e72
SHA512
8d09092eb6c108aa92c8ad7912024b42f3df9603ec9ef57e1e7488a2990e58823d30a82cdd0d187764f27e6e81cedfe8bd9a2ac988d4d0458bf25fe1e70db9c6
+DIST thunderbird-146.0-pt-BR.xpi 496157 BLAKE2B
dec8ab681ba3082ade0bea45c04e9bfc1b37049da2f9ae70559f8e6ca70b4e7d26c7f815b656964477fc332a156e2a929d71dea416898e977bf3d4b8e5c4f6a1
SHA512
6e45eb1e6194c6eef26f34f1760dc89c248776f2f61e7093925222568d1784c1927a4f038ed036aa30d0b3181d5324048c8693df6b5082ab35a34b46a7bbe1d1
+DIST thunderbird-146.0-pt-PT.xpi 485443 BLAKE2B
ec8054119bcdf7a23fa9250fe2e4b831448e3495752a1ec7163e2bea9f11d3fd95b35dbd05d2c186e3b829322d94e96304edaa9651c2c7d16c43ea4738adfe4d
SHA512
826ba15c1ee44981b3ebea8d470b39c409330a66c62eb6060c1a8fef57c1df5a1c12018ad62579a4dd0d4334ea77cc535cce2d819bdc404746123e038ab5a3ef
+DIST thunderbird-146.0-rm.xpi 487493 BLAKE2B
6ccdb724adb02ecbd6cfee7c6d0f310273a62bd2f4ab8ed63e8d900b78b1600c114b6ee83af4f02c9fd15c48834617aeae957da6fc53bec621bab293fcd77464
SHA512
288be0b19a29402762c98b3392b4be7fb346df4fe238f8b0b29177fd56c6367e6d96d0994ac49f5672c2fe8297e27e70f907c83d679f61e003876a6738d96684
+DIST thunderbird-146.0-ro.xpi 492284 BLAKE2B
ee73a894ccd15e0b317ed25c82cb5824e3fde9758d1b0640120879cb763913ff66b364bb62ce084d1229cf561b16a083d3ccd35236d24459aa008f27ac70bd06
SHA512
bceeb7059c7384471c580f3f441017ff1268da20484efdc3de91c1499d62c0f15a7a2460ded0f06007af0c5985e91490803fac3ff79cd6e14cdb398b10c4f5bb
+DIST thunderbird-146.0-ru.xpi 600245 BLAKE2B
679a982582d37332d5cb5597ea3b791dff2c21f915b4bdeab78068b03155bf70a8367e01f62cb8c9ef01d6cc4776af9c0c3fba2e4ba78f57bdc7424d99d8d19b
SHA512
a9e7c75d8a1ab7ae7ebcf59b2be11595b7fd01b186fab89827d2888d2777bd366f8c7a193bab559ad58eeaf9b4ba379a93de4996711ed4297ea172966cdc78ec
+DIST thunderbird-146.0-sk.xpi 526271 BLAKE2B
a48a12411049e787b61de43159b1b0a45aa6531179bc8cdce107475cbf8bb3e178cbaabca73c9ec5e499f183355fc9d928d1e8d4b7331984a7294c96a1f30f66
SHA512
407ceb692673904f470cbb587c3adc6062238e861f4026b5cb2cb486629fa335a8835be7680160db49e4d5006849281fb88622bf9499f6eeb3c3ba9b2ee435c6
+DIST thunderbird-146.0-sl.xpi 490002 BLAKE2B
e0ea093db73855e2665a770ab342b8eee2bbe34f3dce042727782d9f94c5773eaff3e76014f7351f48beca768a8ea1faae5c83ca4bc8dbef500b5aa6b122cd1d
SHA512
a540f8569a9a938b14f777e2fb0924abf7ef8c4ae6f90842b9ad8bffff1d0fa5c3f9f8b56c52575361680bd0698c435165e770cccbf907b45cffa86b6ba747aa
+DIST thunderbird-146.0-sq.xpi 512099 BLAKE2B
1568648b3ff8802ed61ca667065a7f591071e860b8e7dac565fb15544b7e56b0a98a66b84d0d882e92a2cf21d84376473972587353d23fe1f3f7d91b2a5b683d
SHA512
13f63dfa30cdf8cfc13e85562c7dec4a85ece5c593cc7b55104054d18ea1b814c43c8ceee68fd4a5008ecae8c9a3364e96deb8a02f7a22471104c06a468b69da
+DIST thunderbird-146.0-sr.xpi 492958 BLAKE2B
09ebb268a3fc25c8130f3dc70c326acecf6c5a48daa6ab08256f6cb2048028e77b1e32eb20ec9bbbc947ad67004422b152a1329f3dc2ad258156d1059651f8e7
SHA512
1577c73f02b8e345e553409f7e239356a0defd03bb3789fad5107ec0e8d00d8dd2357f064bc6c91b285d7d1b305fb6c986ea037516f0166d26bcd2979dbf6b38
+DIST thunderbird-146.0-sv-SE.xpi 490314 BLAKE2B
f861897d7d7bdc18b38b6feae3af7b8405c251c852ed56da391595971ca1e5204b12b1a0cc279337e14ab60f99b7c8064f67b55feed1de7630469dbd88b86f80
SHA512
49ac2f76faf96981962f70e99d2097cb7c53b3134b331609b6a476a11614162f19c3093c8c200ce0cd66cb94c3c8a806ec7a996c9a8999b2ee47b375c574dc96
+DIST thunderbird-146.0-th.xpi 567513 BLAKE2B
b6e46b86e73af8786e6cf66de5a043af4fe39ae6f1ac79e5fa32281a6d782141da08bad0752830fad0a607e54a9f636761058c83233ea599b6f1004c1ddc2f3b
SHA512
4119fd1b04d1f8e51cca0d03e36e9ac70185698b6bba659724a709055171856e04bb468dcbc09a0374479d904917e32fe53fbb7a869dd90109c650a8d1703ff2
+DIST thunderbird-146.0-tr.xpi 501719 BLAKE2B
73a04fe8b20123bf6502f2748cf4f70b69abe6e08f940782abfbf6b4d0c66c4e232b06b3ba1d9245f8429c491d6e4ffa32aab41173c7800c1659cf95454e7a7b
SHA512
b8c47a25c277e18491a242192bf681448247294febabc54c7cc9739b9e63a97bdbe257cf5e42e5596c279b4e729c6fe1f5373705ac5b2e268eb67b1cd2143182
+DIST thunderbird-146.0-uk.xpi 579201 BLAKE2B
1bcacf7a2b7db6628aef3ab061847eff150c1a218a3bd197583e7d07d5643b34d732058db3af92095f19444aaf022ae517b363724fca4fa56a887190e32e9844
SHA512
4e9d1f77d2642e05417a3c8a8f626033253e3978ca57bcdb3ba7cd693b95276f446436a5e4f9c043f79fd1ad25c1b4fe8f28e71c84f02349f26768d43cfcd256
+DIST thunderbird-146.0-uz.xpi 352670 BLAKE2B
235ef09c9e8b607991758468983dfc98bfb8bd190295fa77c53599dacc2877cd6fbff98c0946b577b6a52568203fdcc71537f2aa806c36294c6cddf03b4a7eff
SHA512
1d7e5709ef101ac7c086dd53e6bfc1d902414a96bdc77e7b45d36a1764a50d62d4c060f1955456379d56c4182f264904b780682d7e6a0ae02569b3537daf03c7
+DIST thunderbird-146.0-vi.xpi 524684 BLAKE2B
0ac58c75fb3630984477b8a2f71a3e028e07174f19a52c701deb62ff1ce9d90da52f2b2395c8f847f0d05d3fdabe6bca62e66a033afa0e450626f6f453ab7afa
SHA512
0b983752312b83c7c6bab36ecdb744502483501fe72e05311a16fdaac6d946c1df1c8b61e9ab77a70045a18bc6657251e36deb3d0c6d28b92fb1f465f477e138
+DIST thunderbird-146.0-zh-CN.xpi 513420 BLAKE2B
96925ae9b65a7a6d366cb77b6e8cb8a9b1a0c6ef1ffbae6fa01f66cf7881e441ccf1b24c8657397fb85fdf4590cac8217a8c0147e931353bc97c6505590ffcea
SHA512
53f521826c2f9a391ef800ed6e76a65ceb3f3e5e80a7e06741db2322db80572728ea657ec9dd5ad865a5ffc93075a8a1bf096ca37d272b77d8ee8872035b3dd4
+DIST thunderbird-146.0-zh-TW.xpi 517241 BLAKE2B
dcddb768702ac5f62604370840aaa5d24264e50213eab9021615e56a709953903a2597e96f28aef8d0833fdaaf616e008160b19906ec70e63d4d0d77c003c880
SHA512
2e2c08e229c7fe8e19bf694dc5870da6c3cb74e3e3355d5df9b620f0d91fbd09ec348e084f46a7ef52c0a483c47c4451f66470d099419726d4f61bf807cc3c88
+DIST thunderbird-146.0.source.tar.xz 775218464 BLAKE2B
f45051ae82cf1b5c163619a28e8a356e4a32f86695d1a5f49f3137818dc13a3fa615dcf586484a8ac35d845c709cc9d1c194b4f8e8f5ebb8224958a9487b9d7a
SHA512
b135ba414f08e2867466e652c6bc5d2b9c60e047fe27e855e7373ab67940d7da8c6028b8467b0b449f6c87f13662375220b70a05570a87eb230e21ab5ed5a186
diff --git a/mail-client/thunderbird/thunderbird-146.0.ebuild
b/mail-client/thunderbird/thunderbird-146.0.ebuild
new file mode 100644
index 000000000000..a08ff6fc6272
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-146.0.ebuild
@@ -0,0 +1,1156 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-146-patches-01.tar.xz"
+
+LLVM_COMPAT=( 19 20 21 )
+
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.82.0"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's
rapid and esr.
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info
llvm-r1 \
+ multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs
virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz ->
${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ SLOT="0/esr"
+else
+ SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
+
+IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio
sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent
+system-libvpx"
+IUSE+=" system-pipewire system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+ $(llvm_gen_dep '
+ llvm-core/clang:${LLVM_SLOT}
+ llvm-core/llvm:${LLVM_SLOT}
+ clang? (
+ llvm-core/lld:${LLVM_SLOT}
+ pgo? (
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+ )
+ ')
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.29.1
+ net-libs/nodejs
+ virtual/pkgconfig
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )
+ pgo? (
+ X? (
+ sys-devel/gettext
+ x11-base/xorg-server[xvfb]
+ x11-apps/xhost
+ )
+ !X? (
+ gui-wm/tinywl
+ x11-misc/xkeyboard-config
+ )
+ )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.118
+ >=dev-libs/nspr-4.38
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-apps/dbus
+ virtual/zlib:=
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/libdrm
+ x11-libs/pango
+ x11-libs/pixman
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-76.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+ system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-pipewire? ( media-video/pipewire:= )
+ system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ || (
+ net-misc/networkmanager
+ net-misc/connman[networkmanager]
+ )
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+llvm_check_deps() {
+ if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+ einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM
slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang && ! tc-ld-is-mold ; then
+ if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then
+ einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot
use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ if use pgo ; then
+ if ! has_version -b
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+ einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi ->
${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d;
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p'
"${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to
be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ # Ensure we have enough disk space to compile
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif tc-is-lto ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="7400M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+
+ # Get LTO from environment; export after this phase for use in
src_configure (etc)
+ use_lto=no
+
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+
+ if tc-is-lto; then
+ use_lto=yes
+ # LTO is handled via configure
+ filter-lto
+ fi
+
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and
FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ if [[ ${use_lto} = yes ]] ; then
+ # -Werror=lto-type-mismatch -Werror=odr are going to
fail with GCC,
+ # bmo#1516758, bgo#942288
+ filter-flags -Werror=lto-type-mismatch -Werror=odr
+ fi
+
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif [[ ${use_lto} == "yes" ]] ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="7400M"
+ fi
+
+ check-reqs_pkg_setup
+ llvm-r1_pkg_setup
+ rust_pkg_setup
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough
anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox
(bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # Clear tons of conditions, since PGO is
hardware-dependant.
+ addpredict /dev
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to
fail with
+ # a traceback report referencing
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build
failures!"
+ fi
+
+ # Google API keys (see
http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see
https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+
+ export use_lto
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if [[ ${use_lto} == "yes" ]]; then
+ rm -v
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ # Workaround for bgo#915651 and bmo#1988166 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ rm -v
"${WORKDIR}"/firefox-patches/*bmo-1988166-musl-remove-nonexisting-system-header-req.patch
|| die
+ fi
+
+ # Enable jpeg-xl only in Firefox.
+ rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Workaround for bgo#915651
+ if ! use elibc_glibc ; then
+ if use amd64 ; then
+ export RUST_TARGET="x86_64-unknown-linux-musl"
+ elif use x86 ; then
+ export RUST_TARGET="i686-unknown-linux-musl"
+ elif use arm64 ; then
+ export RUST_TARGET="aarch64-unknown-linux-musl"
+ elif use loong; then
+ # Only the LP64D ABI of LoongArch64 is actively
supported among
+ # the wider Linux ecosystem, so the assumption is safe.
+ export RUST_TARGET="loongarch64-unknown-linux-musl"
+ elif use ppc64 ; then
+ export RUST_TARGET="powerpc64le-unknown-linux-musl"
+ elif use riscv ; then
+ # We can pretty safely rule out any 32-bit riscvs, but
64-bit riscvs also have tons of
+ # different ABIs available.
riscv64gc-unknown-linux-musl seems to be the best working
+ # guess right now though.
+ elog "riscv detected, forcing a riscv64 target for now."
+ export RUST_TARGET="riscv64gc-unknown-linux-musl"
+ else
+ die "Unknown musl chost, please post a new bug with
your rustc -vV along with emerge --info"
+ fi
+ fi
+
+ # Make LTO respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure || die "Failed
sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py ||
die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed
sedding multiprocessing.cpu_count"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py
|| die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py || die
"sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \)
-print -delete || die
+
+ # Clear checksums from cargo crates we've manually patched.
+ # moz_clear_vendor_checksums xyz
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key ||
die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F --
'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1
"${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_clang}
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+
+ # Configuration tests expect llvm-readelf output, bug 913130
+ READELF="llvm-readelf"
+
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}}
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-disk-remnant-avoidance \
+ --disable-geckodriver \
+ --disable-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-dbus \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-packed-relative-relocs \
+ --enable-release \
+ --enable-system-policies \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-ffi \
+ --with-system-gbm \
+ --with-system-libdrm \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-pixman \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+ # Whitelist to allow unkeyworded arches to build with
"--disable-rust-simd" by default.
+ if use amd64 || use arm64 || use loong ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more
arches.
+ # bug 833001, bug 903411#c8
+ if use loong || use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # riscv-related options, bgo#947337, bgo#947338
+ if use riscv ; then
+ mozconfig_add_options_ac 'Disable JIT for RISC-V 64'
--disable-jit
+ mozconfig_add_options_ac 'Disable webrtc for RISC-V'
--disable-webrtc
+ fi
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-pipewire
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp"
--enable-compile-environment
+ mozconfig_use_with system-librnp
+ else
+ # This controls the backend of the bundled librnp. Choices are
"botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's
preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan"
--with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ # mozconfig_add_options_ac "+hardened stl"
--enable-stl-hardening # not available in TB
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+
+ # Increase the FORTIFY_SOURCE value, #910071.
+ sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:'
"${S}"/build/moz.configure/toolchain.configure || die
+ fi
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends'
--enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use X && use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland'
--enable-default-toolkit=cairo-gtk3-x11-wayland
+ elif ! use X && use wayland ; then
+ mozconfig_add_options_ac '+wayland'
--enable-default-toolkit=cairo-gtk3-wayland-only
+ else
+ mozconfig_add_options_ac '+x11'
--enable-default-toolkit=cairo-gtk3-x11-only
+ fi
+
+ if [[ ${use_lto} == "yes" ]] ; then
+ if use clang ; then
+ # Upstream only supports lld or mold when using clang.
+ if tc-ld-is-mold ; then
+ # mold expects the -flto line from *FLAGS
configuration, bgo#923119
+ append-ldflags "-flto=thin"
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to
USE=clang and USE=lto" --enable-linker=lld
+ fi
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409.
+ # mold does not support gcc+lto combination.
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd"
--enable-linker=bfd
+ fi
+
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # lld is upstream's default
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to
USE=clang" --enable-linker=lld
+ fi
+
+ else
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "linker is set to bfd
due to USE=-clang" --enable-linker=bfd
+ fi
+ fi
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ mozconfig_add_options_ac '+debug' --enable-jemalloc
+ mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+ else
+ mozconfig_add_options_ac 'Gentoo defaults'
--disable-real-time-tracing
+
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS'
--enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS'
--enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default'
--disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default"
--enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # elf-hack
+ # Filter "-z,pack-relative-relocs" and let the build system handle it
instead.
+ if use amd64 || use x86 ; then
+ filter-flags "-z,pack-relative-relocs"
+
+ if tc-ld-is-mold ; then
+ # relr-elf-hack is currently broken with mold,
bgo#916259
+ mozconfig_add_options_ac 'disable elf-hack with mold
linker' --disable-elf-hack
+ else
+ mozconfig_add_options_ac 'relr elf-hack'
--enable-elf-hack=relr
+ fi
+ elif use loong || use ppc64 || use riscv ; then
+ # '--disable-elf-hack' is not recognized on loong/ppc64/riscv,
+ # see bgo #917049, #930046
+ :;
+ else
+ mozconfig_add_options_ac 'disable elf-hack on non-supported
arches' --disable-elf-hack
+ fi
+
+ if ! use elibc_glibc; then
+ mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+ fi
+
+ # System-av1 fix
+ use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+ # Make revdep-rebuild.sh happy; Also required for musl
+ append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+ # Pass $MAKEOPTS to build system
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+ # Use system's Python environment
+ export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+ # Disable notification when build system has finished
+ export MOZ_NOSPAM=1
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support
arguments
+ mozconfig_add_options_ac 'Gentoo default'
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash}
${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org
default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with
mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
+ if use pgo; then
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+
+ if ! use X; then
+ virtx_cmd=virtwl
+ else
+ virtx_cmd=virtx
+ fi
+ fi
+
+ if ! use X; then
+ local -x GDK_BACKEND=wayland
+ else
+ local -x GDK_BACKEND=x11
+ fi
+
+ ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from llvm-core/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated
rendering to all-gentoo.js"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ fi
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path",
"${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the
pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name
'*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions"
"${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if [[ -n ${MOZ_ESR} ]] ; then
+ local desktop_filename="${PN}-esr.desktop"
+ else
+ local desktop_filename="${PN}.desktop"
+ fi
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if ver_replacing -lt 136.0 ; then
+ elog "In this version of Thunderbird, upstream introduced an
in-app notification"
+ elog "system. Setting pref 'mail.inappnotifications.enabled' to
false and nullifying"
+ elog "'mail.inappnotifications.url' may help you avoid these
messages, if you don't"
+ elog "wish to receive them."
+ fi
+
+ optfeature_header "Optional programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs"
gnome-base/gsettings-desktop-schemas
+}