commit: 86715510b9f6ad71bb6df4118ab98a879988224a
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Fri May 2 14:02:51 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri May 2 14:30:16 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86715510
mail-client/thunderbird: add 128.10.0
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 66 ++
.../thunderbird/thunderbird-128.10.0.ebuild | 1171 ++++++++++++++++++++
2 files changed, 1237 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index e69eeb6cfb57..439188d8ff8b 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,8 +1,74 @@
DIST firefox-128esr-patches-09.tar.xz 17976 BLAKE2B
78f64f5086951f7bf2b304c1148154647aef5c4e699257cba5e94a83d8d8c159a591d0b2a7a5f8bc0f8ec28d5eae66a0783b45f94b4ef713282a6f88e46c75be
SHA512
159d8c94af0f90c10baf7446e573a37397b3be7103e7001fb6b38845a28a41793c21ad24c23e0b3cfc4daa2c3a6040ef701f612693c9f4dfff8534f82e7b18a1
+DIST firefox-128esr-patches-11.tar.xz 18696 BLAKE2B
0f35eaa29f1daf9beb09c7303b3e92676eea84337683b8f7393e8b52e36ec1f37683a050e1e8d7939ebb1bdc190acaac887bebe88812c1b64785e38980f18be3
SHA512
04bf8bbf3c4e7901a6681fec66f179f797615613be838cf35a4b03cd9a347656b1264524ac7355f0c3978a5e740ddc5dc438610e5cae6ffcad73a8988cf0e572
DIST firefox-137-loong-patches-01.tar.xz 5092 BLAKE2B
26ce17d911c2dc4b00d727d77aa14aaf379541bf19e0500382c892a1534fe04ec6f71126b32aeffc00bd1a2dd6810ea25ad25b7eeabaa2a2c70bf1158009da1e
SHA512
5c8ab65f3f24f3fc8ca5368f42d65b2873c9c15537e9ed088770a17f214a364e35cd6b79710b6e8d699afe4f84f29b004374537a96b11bee6f7df91d1f5535ce
DIST firefox-137-patches-01.tar.xz 13584 BLAKE2B
f22ee7977e738bb782014dda53ac20c4928fbef93616b1a11d474599d79a549dbf66e5a1eaf40d1ba1745bc3345162cf1f2107ef9a8ae72c63b8d9850460380d
SHA512
b577486e8cfb2dd2da37802a9a7f4e2bf16094bf4ed22a8c2bf91019cf74b23942a1884a58bcbad055c7ca480f944cae35e85aadf92d98059be0eaacd4b8a464
DIST firefox-137-patches-02.tar.xz 16008 BLAKE2B
6b1e4f0c7eba462abcc2bc26a463cf194e51023e2a2b91ac88b42cf817cc95bcc61472983a10ab8b959734d7c57fcf21e34e54f17bbf0f674589969e8bda6d15
SHA512
a573048d25cf0ec6bef8afdfc8a845488f910ad4437a2a87ac16131c258ec36fcea985487e415af00aee91072ef8cc924b395143587c3971d42a120de39c36d3
DIST firefox-138-patches-01.tar.xz 13492 BLAKE2B
d88f9e457e549e2fa1e14dbc2d226affe723008bab29627e09b82e84262f468995f9e5821a76dedffa53eaf5c77b4dd18ef0ff3ea48e73dc752f12bed2fba890
SHA512
dc99145fefa8d4bc08627098cd068a6f4a4fa9023abe256f6cf8f60de8f9d88c9d6f981c5a87f688ec2c190015e5d06148ae49a78a0326de8d747e2309e781dd
+DIST thunderbird-128.10.0esr-af.xpi 534913 BLAKE2B
7ec16dff76e7264606969bd00f385c4c66fa8c9065f3271643fe7c160b708245abf533ec47004dead0c024333b8bb8b6dd405fe8276619f42c298fc83600f403
SHA512
df4856278b12f99d79b013261d0a4bf992ab8bfc92e557ef743039a08f84a91f711813c5c6e13bcba850f7168d9a0736a97cbe1a30526ee2755d4ecf57ae0063
+DIST thunderbird-128.10.0esr-ar.xpi 686462 BLAKE2B
f87e099bd9ac8eeada52d4348c44cf3c203ac6851617b9a07345ff55db63e7095d924c60a3178e6672d374f9f1fa0487363d8d13b88faba03eac1de04be5803a
SHA512
52bd11c86d87bb09ae7157cebd5c021e6422e5e346bc0458f74e94a969100ced373c9a8c475e4929a6683a51960ef361eb5deb94299cd76fdef9660cf5a1af51
+DIST thunderbird-128.10.0esr-ast.xpi 574777 BLAKE2B
927919218ea97ed63d4c2254d7d38107cea9c4c532630f0be93e59233435266f23833d6578397efb5bd9bc711f8a94490382340cf78a0f324c495d65e7912273
SHA512
a5db9ecf7243aecefb4692b529375568dd681183a54c9ce84692e90f33c9c9fe5dc015e601fb18df90e858295575a5e910b69b882b5ead5d43ec66804901ff37
+DIST thunderbird-128.10.0esr-be.xpi 781612 BLAKE2B
a5b1a11cc76789238bbef3f5e148cb908c42fc6162390766e5ee1bdccfc78071f8af137c590bfac3683b0e3c2ab66da633c03f972ec4251efa4ff10c71fe7c32
SHA512
4a2b5f1c1e08ce978ab17ded9e4747096d2f281f229402d75f77f1694e0a8c11bf607eb63f7e71b195af58c09572aac7f22e1b6ee584c88dca2a5032adb914b6
+DIST thunderbird-128.10.0esr-bg.xpi 814008 BLAKE2B
591df08993b03a342adaa9d34d0c64c8953dfcc4d3587a0bd9397b4e407af1047c1aa9bca2ac7dc8e170b267b9f3335666d1857659e36c574c77dfc8b492e1b6
SHA512
44a5e847428342cf182dcfe163bec7b2bc504d440175fae98fe49b34a986a934501292b7b381a2fd4db94871b43d827bbbe9e8888d7ec5c9a026ee89cff737c2
+DIST thunderbird-128.10.0esr-br.xpi 650138 BLAKE2B
85c22b9ff9468bb126ec2d5ce3dc52da4299252501a7f0d28816c2854a9cfb087d80f95675daca736c653509fa59ae36eeedec675ff8ce7148fdec34ed298857
SHA512
f0a83d51896f5e68fd1818071374141c12a984e5fd4fa6850cc45412f50997db927d6127dec050a241c0b87b86f522ca6f309d4b81e5106c9f69df62c3f3bb06
+DIST thunderbird-128.10.0esr-ca.xpi 704673 BLAKE2B
d46b6406571654c44f51dbd3540934000a17114524075dae1cb19377f42110a28089c009fd1d727a9cc39e8f753d3fedb631e3d84627f889578d45b8f9a3c69d
SHA512
fb3e802679cb0ab605ba47a976731280e286353b5d683a62ad719cef23f5166f6ab575b48b26a728b738b553734698e3a8ec545a994ad43406595a902a8b1afc
+DIST thunderbird-128.10.0esr-cak.xpi 669095 BLAKE2B
860826dc989d788c895d7aa991890edb08bc90db8a7dc2f0844167b1dda215d5c51d38dff25fe06abc4483f4e50dbd3ff3910b408f32cc3399f670f35e1c7d09
SHA512
2d03f0f6a8b5f1a3b6e92f4a7cdc658bef8a17143c29b736fa1b9983b910e22c0b558309929dae1e5c2028bfdd6c21c37fa90288d1010337a727bfe253e8db06
+DIST thunderbird-128.10.0esr-cs.xpi 789857 BLAKE2B
f6dc2491ae34670e80e2b854b0369e067c71224fcf15bcd812fe242d26f48e7a02bcc95714bd4a4948e71a85d7c80f7c910ae4ebddffa3b84a1fb236d326e01c
SHA512
a3016b66f78aa3e95572a7f619d7c466b80d20e25bf98c257fa1d8c377e774667f42991571d43b337478c191fdd2cff66c8dbe065cf892956f91d8366a5e072d
+DIST thunderbird-128.10.0esr-cy.xpi 753577 BLAKE2B
c265862e1e1da34f07a42b82db1baf84a4b0f2a991987a497c8ec6e20fec936e1cf153f9d3a6244629474d5a268ae112fdc2ca48489d90b383831031480ee0c7
SHA512
2b332583ce0c2b2ee5dc94d6d30d717529c756e84fcc7a8760c83397dda7984caf820812c3386e644d952a4f6cf141d6ec7d585e3d79480e75bf91f6466d30eb
+DIST thunderbird-128.10.0esr-da.xpi 738600 BLAKE2B
e29b9184d35459c6af5a57911fa78050c875039c5d7bdedf8bfe2bfe4399d870b711fe09627cee1d350f31f7d6ab223d581ec5883417d13d0c0a91a1aa9a90b3
SHA512
240aac34ec38931fc74237de3b57170b5de420a1e30a82ae99e8b18417752b2f0cbc87ab3d9b6bf128f6a3cb71b8c02679e3c093a0b54dfee04e5882373ed2b0
+DIST thunderbird-128.10.0esr-de.xpi 771422 BLAKE2B
c448ded4f51a7c106917e0569e392d6b8b3e7235594b19cf8effd7f4b9d09ad0e2359ce948573ed97df48d797bb36e27d2df3c0035d37598528da2ad6b723c67
SHA512
61ee3d776efaf7aa7cee2a658344e064e1635847ec98e35a32b28a6adbeb2fc5635d37d94863f389e12c447c56a33c4d0fe96bb0e7a93500b50193c74fbf5c53
+DIST thunderbird-128.10.0esr-dsb.xpi 787498 BLAKE2B
b37c20ae608f20c2c6e514753a85835f2db9b89c62211a71fb3665f45b3b39c05cf8db45d84293d264cf50bd2cb401793e58644b38b19770aa8b35cccf9f1e8e
SHA512
ac593bb253b5ef9d9580d09087cb7915704e4c576555ebb593ba76949c0a64c408481b6d7cf49c19b27a7416038306ad96b0265f4a174489624e1d032e5a900e
+DIST thunderbird-128.10.0esr-el.xpi 892796 BLAKE2B
500a7e1dac364874f3d3cd935a7aa3a6139a0221e57ba15c60171f501d89fa2ac6670f27ff32b62705bc0f01525d2fca0808272653f3d3eee9d09ba90ddb1dc2
SHA512
700b8c801ccf69f25e3fb11a8c069d73baf3da48c49a7a7e3613ecbe70249a4f85132ed35de5d8ee050103c1a33f043a90f27ad4d488058884fe5629e48e23c2
+DIST thunderbird-128.10.0esr-en-CA.xpi 705368 BLAKE2B
8688f0ee0c892ea4adcd1b48f768afa108b9f9a888a0148134f7c58ad9218389bc4210faa0b075f849f99c2f082654ce09beee457d0e3bb72ccc5587c3c51dc1
SHA512
e942a784a85ea6144bd7f3b8a4ce2a150261c19a22f0aec5b69eb1d34aea6832811279d206e8ec390bac91ea65c5e0663577f3d6f290d55d00c208a3d298809b
+DIST thunderbird-128.10.0esr-en-GB.xpi 705108 BLAKE2B
390a01ede4bdc176fed018d6df90e4f56b4753e3f16f5545d0ce2f57de091752effb1e94ed80aaf77e85940208cf1db91cd40383fb8a49cca6cecea5b57f8358
SHA512
f0fe6a94864c1797284b9d68a66696873fd1292dae67685f455549a82af798cd12ee6be749747fffff174661e35ed70598893e596d0f5565144ba707ecdceb9e
+DIST thunderbird-128.10.0esr-es-AR.xpi 760990 BLAKE2B
2fa483dafa9293867c64bbc4a8fbead147e43d6048cfa7399da9ff2d64db349984e58aa2b73cd8e566ac7094411836ef03cd10bc359f128e0de0e1e1511da565
SHA512
05d0edc8e21fbbb789eb5cd99008776a1711c5530235b3e58739ecaaebfd0bfe50d090a696777dd789c2cd6bc5908f1e4ac6f93f164a957833d33b1ddce0054c
+DIST thunderbird-128.10.0esr-es-ES.xpi 761587 BLAKE2B
f6bcf0897f059bbbf7faa7c895013e903b5141e4aae96ddce28f3517f7bd7411c449caf9b46fec76a8473ff8ac1a5fe5b858bc09dade5797a6a1ecbd7a1fe163
SHA512
c8335335d10fb065edbec21176d502d69888d698928b57767ef1a4a3649b6af58c726db7bb9ab95ce9eb45e52fe699ca91c20a8327daf6984145f373ad9e8bfb
+DIST thunderbird-128.10.0esr-es-MX.xpi 756970 BLAKE2B
9526b05e1bac4729124d85c3d11b73654fcbc366dc23566124137bdbf903827dbc4d7cfa9a1966739e941ec7d92e260e397a9bbcebad39fa9cf7446eddb019f8
SHA512
90a9dbdf6a7e70cf0ab79370232b2c0bbb8901d9bba9988cb6061ea086f28d26ad93ff22a45bf1e5edf8afba1a0b343c40625e2843d11a0bc6be88097fbec012
+DIST thunderbird-128.10.0esr-et.xpi 692376 BLAKE2B
fcad267dba2e54ff8bdcfcefdf1da9197aa57f87f0855587f6ba5b5c64751a37f65ee8caf916234750940cf16b0712b90ea3f120efe02b03f46722d2d44d0104
SHA512
2c4c1e4461082d6531e3e1ad710b39084cdc18cbbc92916e72c53b18d60b8cdf57bee5da259443e9cb074a5bb6e2dedfbafdbcd4f1c225d411c40fd4d985034b
+DIST thunderbird-128.10.0esr-eu.xpi 737438 BLAKE2B
e8fc8e6389818d34d02299d5c4d4cb2bd0e9b16e5d6e09fefb19a29c414db67bf6cd152658d9072666deca49f3c00daa2617302328fcb9beec5c8b22807d60bd
SHA512
b83469269f919648822e1e5f217daa27e3bf6a7500bee9638fc89a2287a447c124f5be31fca2468b2530a67556bebb3d0c622c02d65497ebd76e5b99e4cb2c64
+DIST thunderbird-128.10.0esr-fi.xpi 735346 BLAKE2B
210ea39588c04f7d63e815ea3803004ee2949e7b2e1b2f2f1f7cd940f66f3af4f1e69eedacdce3351f5fe9ce7aaa94a6e5a792a59c4269a3e14ca914f432ba13
SHA512
a22f1bdc695ae96bfec8aec1c16595fa33e26f8dea46be6d5cd27c0349dcf8a036e9da3297d1a1d5d4feb685a436794fd3004698463878af678bc1add3b6fa4f
+DIST thunderbird-128.10.0esr-fr.xpi 775199 BLAKE2B
78753ed629f7632a94c38d46cd774b7562667e8e9d4251a605ed443c1ec6b8ce934f41c864645db54e8ab9e788a0f4a19ac5711667f813b745d5697857821950
SHA512
6e65ffdfc0ab8f43cf6646366f4bff5a1d239d47c9bcfe5083f233151ee8cb625dde4423059d1163cd581c9c6d49bee40006f5c5fb89ea9bd8687c9d30ca9425
+DIST thunderbird-128.10.0esr-fy-NL.xpi 756475 BLAKE2B
5d8b007755624be0502c19f1f39542c7fe89305e4be44fc38cd3d5ccd833fd6a362c53960597820c3a44609ac2d25e65e9041f0093b1386a7c8d4ba2d63c74f4
SHA512
4e8024bbe5ee2c386039f07448dd08fa91099bd888699960aa248d29d3a0e9541d42134ec3e9ab87e70bbe632707f3f806b3568c33847e4b81744451c7fb83da
+DIST thunderbird-128.10.0esr-ga-IE.xpi 614301 BLAKE2B
529059a948c2b5eaa8db002f8afe83b314a71dcdc5f7ddb718a8b532c37736277af2ba8843848cc993b980ff378e9039213466a0b64a354ba46bbef10e6cf205
SHA512
c5fb26a5dd0103516f216fd9ff3890d677d6d491ede2b7a4985387365edb51cf46ee0c195fb77a639ee262a61be24de4242a6a0cfcfca688e0de34ef467b2019
+DIST thunderbird-128.10.0esr-gd.xpi 723345 BLAKE2B
1714b45dc487db6e64a0d5da891b09dac567cd6ea67c513120a8fdd3ff548de5853d638ff8ea0e7618a8f14dcf45d261fb8aa15f627bbe0980d8c2c11b66ae1a
SHA512
0b6be8105531182aeee61457461282d106b6aa7d8ef9f8a0fcfe99558e94770556ea15ed06c39a8a08cb733e9f0fd76f7a2cbc18d32f3ab13625dfd48aae4a75
+DIST thunderbird-128.10.0esr-gl.xpi 738663 BLAKE2B
66b18fb457b28cef2be0c28173dd0f9883fc33c89f6cb781a9912d816805b055a733377bf34040f7ca4010b3ca96c157dcb95d4c861a82f840124d3723e230ae
SHA512
9e2b2561dcff96fdfe682296c990297bd8cc6b260d6b29b09cfde23e5f37be450c5498c26f601f65e87ff04e34fa55493ed227f0f6bbfcca00bb55db0186af26
+DIST thunderbird-128.10.0esr-he.xpi 696999 BLAKE2B
226fc35e4ad095cfbd6836373828758904b9a692f2510970d075c339e2bc8b052ff95d3496fe954f51b5c93ef520765601fe81fa6b6b36695cfcc847ae655895
SHA512
e1ec5462c7107ace86d43a19c823dab5c03f16ba50695540da54ac96f3c8fcff57537453cad77d53befb3c8722336213fce7f635aff4cc4eb86b0e41881d193f
+DIST thunderbird-128.10.0esr-hr.xpi 724038 BLAKE2B
a3a4f9aa8738337cb68ff21af7f6d46b4f1052d4b0bcd0e565559e54346ca9e2bba93d408f75626ee7ad8f91fcf4cb132f67a0712758d25ec1a7c0bc516d4a89
SHA512
6c14143ab2b7e490640484e67fa934de16a282afa87d952c238dc941992cbe8962573e40e6f1ca166e33eff1a0af2017c42b2194c10310aec7647e8b27e72852
+DIST thunderbird-128.10.0esr-hsb.xpi 784036 BLAKE2B
17178cfa65ca14dbc347ae0253bd586a0a8bf429108918e62d041237f46dd9d22c3c21d1edde21f3452e5fb1e8743b588cc009fde170833758c6ba2d15d936ac
SHA512
953becf1355f40022549e421a4e5938a15060342b4b8dbec559c14654667ed1d3ca5af1c785bb2cb406fae6ebe149966a7346023fccdae6679f5e749575ecc78
+DIST thunderbird-128.10.0esr-hu.xpi 787699 BLAKE2B
5c989bcd5cce9c00503e301ae76995f258ddae42a4fca19ea40dc42c8eca3fcf532041e49cbc625fb9b990d377449e0f1c14c481b402db24821f14b6255378a6
SHA512
1641e408f8ef6979560f09639cf585eae77f6d80fc9f02cb6f37e0a6d188c7d24d68df648ea67790ac589edb93335d07531056cb7cb6fd1c3066376b4fee11d0
+DIST thunderbird-128.10.0esr-id.xpi 721179 BLAKE2B
9990933db3460d4784d55b9c92f34ee3e612331f1a0b19098b04b2cbb30d303abefddd6c995fb91e9342c4928e728edace3922c2dc66996157685d05ce69589b
SHA512
2d22648597b0ba80aeb8e24483d69440e69a255fc1acfaad82265081628eccd70048147831ef0fd04d384cbaea9d0696d3ad27a036d767a135879401f13d414d
+DIST thunderbird-128.10.0esr-is.xpi 750934 BLAKE2B
dd7590b3023bd5b65ec323e84818fbe59a3c61492fb3bbd505416d065a4015f2bd5c6f58b950e5f2745ed3369e2b927e272084f83c54f2fe8a2256f198de6c1e
SHA512
aa53c3cbd6878d6c7a0f3140cea258d97990e892ac3ea2c53156d7728df3642ef356ba95f5ac4ea3e19017f04d9defdd325f335cc528d0fd4540692609353f8f
+DIST thunderbird-128.10.0esr-it.xpi 752076 BLAKE2B
c9278a7945bae1d1dfae88db8d810c0d3dcee80080723155b3ae143bb72c217343aa6ab242ff555b13fba4fc9ef94fc0444803c5f2164a5e5702490819453b1a
SHA512
7aca4a1369f7a13b7c44267a9fada76a9de7d94ddb6325b2f29804f00f7a8e1322fbfdb708c680f631ba61d159a24dfe22be67ff6484345fdb789c9458086926
+DIST thunderbird-128.10.0esr-ja.xpi 822946 BLAKE2B
9f11746b1f5a129647133866cea97a287e994e96a47fbcb8ad819c7d5ad2bf3e089747f6a5aa54debabc8bf998ff2d1be37165b9b7cb6ac2b7b095390b80ab15
SHA512
aa7141397eb548af8ef393acad8f25b88ed6276f604136b492f1b3fe8edeec5cef845019be5ab58693315c438a5cd0bf93b3ab1cae40fdaa79d6db67a4a2c1db
+DIST thunderbird-128.10.0esr-ka.xpi 814154 BLAKE2B
9dbef562e6147cb4c9812e0166ac815624e158cca331a77a6042d8e65f504dd2379a6426bfeb99b1427355320f64d6549d3b538b394f82448704f3f617f29833
SHA512
105ce90e1556f1cc17df0be44ddb02f1749d6648831026eaca377e4ce6a3d49708bba9aea9f2e1eb2419a6f7cd79c0072af5fbb602767657c49016e428a082a1
+DIST thunderbird-128.10.0esr-kab.xpi 729661 BLAKE2B
0309f004c58565be271fa74cbd88a42c5221023f02c214161e40326a395d736d3762abba69785141648531267ed38762c8c385ec64f9ef28cc4d0d710cf1d4b6
SHA512
d03d26e4858eca296c642c5a8b582b6ee7bb389cabc8883a6ad6350ae525ef65da2f1ebbfb3a69755b33b029343e50f72f417c5e637d5816ecea91e608da2a3b
+DIST thunderbird-128.10.0esr-kk.xpi 856117 BLAKE2B
32e09b69dce721aa1ffd474896f48f4c69adf85b21d81694c30e20e8a3e42fd986543451d50418d2d229f5f3b61edf0481574b586a6f016fc31cc927890c5f5f
SHA512
4fff13faa9141214973e24e0893a9233d6415f74c95aade93f56a7b17170d667ec88f441841ca3feaa8ed21e6063b35e48aaf458076380c08e963565cbd9f441
+DIST thunderbird-128.10.0esr-ko.xpi 790139 BLAKE2B
ac52e1b7f9c4b1a54f2f9c67cf7f7d6bc13b8fd4bc20f230db25c5e068f3ecf4e2fb2a2f719922713b9737d74636de332edeb0ba96521b716ba68d3557d9cb83
SHA512
faddda9092883f9ccc9f338e41efa0d4c9b89fb5fcfaee3e58ee392f633bd3060a2dbde7b3800fc6c503c3642babe410afd7fd77430f46edb2fd9bbfc700aadc
+DIST thunderbird-128.10.0esr-lt.xpi 696749 BLAKE2B
d46db503e036cdac27639774886c2e21bf5f83d007a4dfa7405c6ee625e09cfbf371bbf68346f4fa0fad98cf013488b8ccce928e7153172ca538fded035bb3c3
SHA512
967b08557a6e5d09a84d56afcb5d35431e02ce8406187ada32a75862857674a73c4e82758e97931b3504dcce87dddb0466983f286444a02a43f31daff22dfa0f
+DIST thunderbird-128.10.0esr-lv.xpi 626196 BLAKE2B
5c99e0292d10d25be862cda2950f615693d01dafd7a550e1ef50bb9ee13aa0a6f5a7b253297309615e11d5974b4211405d75a606f8f56b7adfacbca24766ac8f
SHA512
f3a6f352dc32ceda5fe35e77625b4e4a4001a8d3e54d7d02ca224ddf351c84ae34a6f965dd4453a5b83de048c1cb8a4f83bf5a92693f450c5f9f47ac2d7ffd67
+DIST thunderbird-128.10.0esr-ms.xpi 586657 BLAKE2B
f77682cb97bdeb9e9f9174f7300a67b64bb1b2c149e7b8205c7d1770fc75a087b653d88fad4de67e36814275607a69aa48772af01c1c3a24d440f6a0043c75e1
SHA512
d324ef2183fc8526a647c5fbb581b1e15471df5deffdaf1ed7e6ca04201f091dc433c041fd946c73f90602f46c7cfdc252a98e2e3c47ff5a99685d091a94d2b5
+DIST thunderbird-128.10.0esr-nb-NO.xpi 700495 BLAKE2B
9d9df509ea7355b6e2920a93ff2ca9f73850d2ce3e67040c553acf6857fcbec6119f417b9946c48c14bb31613f3be3928df396f2e2ca2f3ba93eb20ddc45db80
SHA512
0e6ba07436e8a509a8ae18ba527bfe2db13678668dcdc08d5053e0a4a901596a8d2b94aff41a321f4322bed7cb45bcad30a621d1a42e21dda6c3ba4b907b3b82
+DIST thunderbird-128.10.0esr-nl.xpi 746758 BLAKE2B
c2afba06353cd6766200f8a9b9cde63a4c135b848ffa4049f09ee316c752ca10c6225ee9b36e915e22abc5dec920bed0bfdb7bdb4c6eda077f2efacad06523d1
SHA512
c99dbea775b876be1a7de0f2a0c38f6ab9055574925429af2c38c1a84c72daf5c9a3fd4fa4d83b09010f4393aa9a8a5335281940b6eda31177ac2b73964dda8f
+DIST thunderbird-128.10.0esr-nn-NO.xpi 726226 BLAKE2B
46a9349074261415d1ce9eabeea1e43e22e3932ef9b0eeeb3c1622c9bb212327fe9b87c609ba6b95927527974fd4f6399086b609a3ec9c5948f7236758e119b2
SHA512
af22a07afa59f359ab4bcc49de32c18f58c81746215ec837180b4494525fd3d977b53a3bdf0403124a2db5def5512cb1ff66ebf704f8b3cfe5de9355913f0837
+DIST thunderbird-128.10.0esr-pa-IN.xpi 687932 BLAKE2B
c27c24e3fada8bda5502924223add16bb9e584b7514ca3b51d9c6dbb7a2223413ea6c29f8a0dcc2d1505032b2d4fcdb280e65ac38fd91b84c72d6c3da107612f
SHA512
7de26da0e4ec28bd272917556b6c6e5a1fc58070c34f693ad9f1b5259e3e889ec537cca317887eef771a8392a67a6aaa8d0e8799f47956429f8d9f98b89fcc3c
+DIST thunderbird-128.10.0esr-pl.xpi 785523 BLAKE2B
a86db740bc72ccffb69110c38f80c330bbd17cb9afed1fcbb7cbcbb0ad8495a042baf6d7577980f67aad60863fb57928528fe40fdda34eb587b289c787f0f2d7
SHA512
ebd453db278923a24d84a7ef19bd9dc21c0554ee2d3b65875cc4cc353485603e9f4bfcdfde59f6783ce91196a8927579b0f5a14f51a9734e46775488ed4af70a
+DIST thunderbird-128.10.0esr-pt-BR.xpi 754954 BLAKE2B
0ca50bd952f1586686dbea6764d1177fa45942411021a95b5427d05f1800f899fe7d6ce585db7058b975f3afc52b7e64989f65c82d17699da0910ba30074d807
SHA512
86064c1228be623e0375169b805a23730c48e1fd8d4fbd2acdbe38b0a5270e5dbb8651011c0567f6bceb0a296b0034c5530c1321687fb2598e2dce9989933bc2
+DIST thunderbird-128.10.0esr-pt-PT.xpi 747654 BLAKE2B
23b9c1d0a439be529324af0e1eb6e6577fd9f119bf74013066cc2a370abc3debe2a3748f0368280ec89df476020fbf6aef0d4a1731b813dce9445ec8f80e63fa
SHA512
021cc945527c140f65406bea90813f5240552ccc603bb1bf43ec58e36be13bf464dc73838607df6549193ab242a3003897a4880329f4fd355605728cae02e586
+DIST thunderbird-128.10.0esr-rm.xpi 750656 BLAKE2B
f9e782adb969e83355fed9231033b112b8b36360edf3f96b58f089c7c52a49f4b901103e3860f92ad3c2f9309775866c0919106143d904a1448502bbd6906e6a
SHA512
37bdf1000a91d89f16143dceae3dbef14daff0ce4e7cbac8a92964178a1eef91fcaba69e2551df276244b05c36ce1fafc1da250876d281f80db6408eb99a2d19
+DIST thunderbird-128.10.0esr-ro.xpi 666552 BLAKE2B
55058723d428cafc184768c445e2178655aeccb2554238488d7533d056f373ded08fbe73948c1f5bd24147f1a0945a7c5cca9732e4e4483008951f8ec455f5b4
SHA512
dbc16c4eb889f607756b9eb20b5036588cca158b99108379b5d054cbc350f3abb0e0ca6ffa309a6ab801f7aa311abcddc699c3b6847ce26cc81a5e6b9a2d5d66
+DIST thunderbird-128.10.0esr-ru.xpi 875878 BLAKE2B
1068f544346cf7fcd0a334c761eb3cefa1b35a13b5b8589fb9483b33e5f10b1d115eff5cf39b96f6d56223aeaad4b3d9a34d9686ff1f6e2ff6047ee86659aa88
SHA512
9930420e61de964f02d6ae76a7c9f69c981f01c1e89806248b3a05e2a88f96aa894e58c0ed65ac59454d4ad2ef2484f56ed5fe0f37b5c9da24d1ded4018d0cc5
+DIST thunderbird-128.10.0esr-sk.xpi 789275 BLAKE2B
638efd9be6d55536e3183594b8338ab26d78513982c5563a2b8ed4bcf75729614f99eaace9bba620d0c812d72cf6fea947eaf85ae58cda3a7714dcefb21c730d
SHA512
31bc3547c23c13574ebb7f3304139c68713c56f9b74a9310d77dccf96ee255674e32e4339b5592a70e9218819ad791b215a49777f9b198096033c3db432ef66f
+DIST thunderbird-128.10.0esr-sl.xpi 750621 BLAKE2B
6137c9241c5dba81bb925414ea65f2bfa093cc14a9939658d8e2221715b6bf73146c75cdc31d03afc5a8cb5e0da439c035bf6f7ec6de912a059a94f983b1f09f
SHA512
88063e1b72114f096a41221d53fda4b9fec0b55fba4c6f18d980118b09353c7d4d15dd3ab8fd7621cb430d5acf8953cf16ea2f083129e03698872668bc405b5c
+DIST thunderbird-128.10.0esr-sq.xpi 773099 BLAKE2B
8cf5d1e41236b367c63a938d12a6fbb90c7ba84e837319a81f96e4c1dbce5247bdfdc58660076f928e4a2430b2f86a336b3e550d4b2607557a0b10f6d864aab9
SHA512
f1cf30af16aa8416cace636640f25b97889a9a9fd88c5e80f3fd8a149ad5aa04e461da81fec5b0782528c46870b4997fdecd5475a3dd11670e669ff8271cc706
+DIST thunderbird-128.10.0esr-sr.xpi 766345 BLAKE2B
e6c08f63b0e6f781347fe47deb5542b3b3379343e9336d09c594000e49edfff3a63431c21eddd1ae07907c9f9b33602b038adefe86d2485f21aedaaad2aac2a1
SHA512
477116a94cd87e8ba4b1518adc9e3e0234f77db7799a35776dc8206f1303ad5ceff75d82673f022c6aa1b88bc2632b08c1870c30303438c36f0e2e6ff252569e
+DIST thunderbird-128.10.0esr-sv-SE.xpi 750538 BLAKE2B
2d8e8eff0114567ea17698a4a261c5959ecd6b70721c518fb3537012bb9dd2c275af93bd9261a488912302b12fcf2600c3e0c2a2c770db590256b81384941481
SHA512
53c898cf6a238a322903eea27125a08a2d1ab76282b4ed2f035cca082074c9256634d15b57200d6143dbab15d29bb4c71eb38a33f48d80791f40c53c73b7a51d
+DIST thunderbird-128.10.0esr-th.xpi 846501 BLAKE2B
fd619a3d836be5389188f829270e16a8b79dad55c4cff028221c4ff5ed0d145d718c15490cbd76cf1fb8d8a97b249392263352eb5a7231e4e090323e8553c8c6
SHA512
40d62c3a50059f7e58cdcc1b2faa0d1e8d1811c80e17e058485cf541eef476b2808005ba819913014c4ded2da0a6df3d807cf0a40e16bf216f8a2f4aef036f0d
+DIST thunderbird-128.10.0esr-tr.xpi 762697 BLAKE2B
605237e6c6f1a156414d9dc60cc6af2b74d8c98e20128b4da4c0a4fa7f60038966c36017ec73c9f603807be44436d17af40243337abb8afee06c0d5a3167bb7d
SHA512
9b50c335756f2084bb786927b7da07344bc6489fab5e64a992881b353f352dc075007ac499ec5992c2af68e627cdfefd8ad651c0ababb34423549d384cab49cd
+DIST thunderbird-128.10.0esr-uk.xpi 864130 BLAKE2B
9c773a977d3b8c6855aa55d182096746581ba9b98be476e2092b5addcca007061e211accc7d190b4c11c58043da30a9b18258bb1f81044568d469a64b7b6ab23
SHA512
c66cea6f21711654c2dd48a1d4ad550864d4ff651804618cc1c6dcb22e71ea12d26eb06d9800cdfe5746b3500c3fbf63a24617966039f5a634248196f763e824
+DIST thunderbird-128.10.0esr-uz.xpi 589341 BLAKE2B
7b5719770ebe3aa312bfd53742c7513fbed687a2091efc979f5dd3aab7aff69d30f7703b4eb68633f95c4b8d5eaff2ecbfd39665035f9b945223c988a92e012d
SHA512
ed4a231552402782af92ddcd41aa4b6942fc023d1670ae88975502c5b4dc6dfca0b672db1ddfe14573c5d655359d7947a644675e16965eed2e24e94f123465ef
+DIST thunderbird-128.10.0esr-vi.xpi 790624 BLAKE2B
ac19c0c326a73b91ef07ae7eaa95e3e9b96932c5a5178cd2ea6f84f22694aa330425b6b430c2d0b0735aae5500dd0b0ebed858970a198bec2029339895a7363c
SHA512
eff1c5348d462ccd5aac1a7f5d0390caba6994b71ba8092187b25aaecaa59e42a48fd3b874f11f133cb66e69515a05e29a7b31bb182349f078d40818d1abad73
+DIST thunderbird-128.10.0esr-zh-CN.xpi 790964 BLAKE2B
9b94aa2cc524c5b9f41bd4646189106b2339331eb2e41d308fee2bb24f906e0c27eaff856529202ed7205828fc9078744a833c67d55d572b5fcd411579a99aa6
SHA512
2852628927c6b86a71def252054438357e43623d9d2844ede6db6d1c07d656a80b1ec42467a779b97c81aa850d4303434ed4f594ad82a7ea0bd1647b93cc031a
+DIST thunderbird-128.10.0esr-zh-TW.xpi 794257 BLAKE2B
ed5067bdb78da9d4a404d89908fc71a53d2ddf7bf20ab00fe1c8c34d752c660280765c84a3f367d918b25266c1894c580fec623aad7e63338f3fe3e665e6582b
SHA512
c92abe6d0e186b134fdbdba934ec25f341eee6ebc6d86f0899f0ad2c9f595ac69a197d0b18ca92cf309c2b604be672fdfeef55fb01454fd59e40874d751528cb
+DIST thunderbird-128.10.0esr.source.tar.xz 681806200 BLAKE2B
48aabea18211e80f679075e902ffabb7fe73b04b7903725ce45f7b43ecbfabf4298e33b9978b5601bf5f96ecbb3335c8c46a550a3ceb23de521f089f3151a563
SHA512
b02582ea4fa0297a06d30eda1555bbf3ed79ae7a35a8993f2a70b0ec84af28a4d084cd7ebe1c73676e689ff9366e779cc5ef67a197638949bf232a40b740d1b6
DIST thunderbird-128.9.0esr-af.xpi 534911 BLAKE2B
5a1c56938294faa34f0977d2aff750bee6be148ba3bf461f3fcfdd923633ee6af4deafb9d8be1135981bd7ce5a4cb3cb0304e98d9c776559ba80ee562db6159d
SHA512
da3da34b7e99271dad924db5ae578838662c70dfb34b0470a0084ed46b60d852929d187b258dec4298958a05f792b6e7598910100c70087258f9f28501e1ffa4
DIST thunderbird-128.9.0esr-ar.xpi 686460 BLAKE2B
1d2760c20e419bb64637368e1eee7f589ea8a1be61715f245fde35ddc36205e5de41bccf1de76cf9f44122b428f0ebfbd8b8054ddfd2bc258e3e05480756c2c5
SHA512
48c304691c1caab6e782b1ed085d13cc78df4ccfe1ff5dece8ea8a4b34f731557888a049ebd5d66c11a2d9249d1d22e2eda9b4783fd9ceb598f07012570a5cb9
DIST thunderbird-128.9.0esr-ast.xpi 574778 BLAKE2B
71d2e27bc6e4b9af5cce9a5c5d1220243ca4b84b39c07202b2e81d00a99a4f40cb4c09fad9c6eb9da843e7f8866dbff16818ba20d04f7581d805152be66a8194
SHA512
96ba88bb6a1eb7ce04cb739037504d6d27c46c8996252baee069b18af939850d0f55e062da49086b4da122a2f3ff8a2f7ede126d05c26265c3d6b3f9adc622b0
diff --git a/mail-client/thunderbird/thunderbird-128.10.0.ebuild
b/mail-client/thunderbird/thunderbird-128.10.0.ebuild
new file mode 100644
index 000000000000..1e1f68d257b6
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.10.0.ebuild
@@ -0,0 +1,1171 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-11.tar.xz"
+
+LLVM_COMPAT=( 18 19 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.77.1"
+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=yes
+
+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 autotools check-reqs desktop 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 ~ppc64 ~x86"
+
+IUSE="+clang +dbus 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-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )
+ rust-extensions? ( dbus )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+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.26.0
+ 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
+ <gui-libs/wlroots-0.17.3[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.101
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? ( sys-apps/dbus )
+ 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-74.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-png? ( >=media-libs/libpng-1.6.35: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]
+ )
+ sys-apps/dbus
+ )
+ )
+ 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
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server
can not run as root!"
+ fi
+ fi
+
+ # 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="6800M"
+ 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="6800M"
+ 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#917599
+ if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+ eapply
"${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch
+ fi
+ rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch ||
die
+
+ # Workaround for bgo#915651 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ fi
+
+ 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 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"
+
+ # Make ICU respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py || die "Failed sedding
multiprocessing.cpu_count"
+
+ # Respect MAKEOPTS all around (maybe some find+sed is better)
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding
multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py
|| die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+
"${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.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 -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.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-gpsd \
+ --disable-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-pixman \
+ --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-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+ if ! use x86 ; 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 ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # Enable JIT on riscv64 explicitly, since it's not activated
automatically via "known arches" list.
+ # Update 128.1.0: Disable jit on riscv (this line can be blanked to
disable by default),
+ # bgo#937867.
+ use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64'
--disable-jit
+
+ 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_enable rust-extensions thunderbird-rust
+
+ 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-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 dbus
+ 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
+ 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 ppc64 || use riscv ; then
+ # '--disable-elf-hack' is not recognized on 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
+
+ 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
+}