commit: 422421adda9087bbc20c47abb852097149e73715
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 16 12:00:56 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Oct 16 12:00:56 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=422421ad
mail-client/thunderbird: add 140.4.0
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 66 ++
mail-client/thunderbird/thunderbird-140.4.0.ebuild | 1156 ++++++++++++++++++++
2 files changed, 1222 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 89bf31ead45c..78a5ef67cd0e 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,4 +1,5 @@
DIST firefox-139-loong-patches-02.tar.xz 3096 BLAKE2B
2e9c0f3dac780c808a13f70fe3808df9976898360b55113def97bf3594893166e0647c70ebc389b2d14fa2c2453fc1dd68aba20d92178670ef97d70c34205e1c
SHA512
e1244007290e2e15d14cf519e3ade6a4da06abe41c416de60569a11396609661cb62fb5b592e763cc079406699dc33d6a34851f71068f4d09bdf34021b035a59
+DIST firefox-140esr-patches-03.tar.xz 13452 BLAKE2B
f1e5da9400ae5d15dec852f0d68d470f40cff11764813bb7429f320d82cbf838e4e6cc7097f42d154a4a67061a66ad31c0749020067fd2a7f891c9003d163b80
SHA512
966aa2d0b8472bd4c002676572b0755cbf0ecce8709776d07fa2cfec512d942ebc735c6ac20c5a5a19af8e00d762e8967c7d43325987c3b331c8c86183eec044
DIST firefox-140esr-patches-03t.tar.xz 13772 BLAKE2B
a62d981c81690306845b28375d1db9526e26a59d9f08fbfe3bce9711fb90567ecf502e398f929a7d98d3c563d8b98ddae760ffb7336be8fee96703cf13912637
SHA512
f357bfcaa4f51fd67c8278cb42b4fa9fa2595288a1ed44009dedc4080a7e1b70dba8495ea19c9f18a482b83a5ba261b5fbd91f29ed257cc80ba043316b95b573
DIST firefox-143-patches-02t.tar.xz 14036 BLAKE2B
7d84726e1d4ababc088052382e72aecce413ac02acb0ae0aaa974d258ebabe971a622b9c765f3f03d3a58a80e053f5d3c831c845b357df02bf88135fd416e7e4
SHA512
8d66d77a04b68018eac734b4eae4618d91b1a1f069733276a2187577ff13c4d08baee9fb0532159aaa3e3269716583ffc8af9f26502376907e87e3ed58bd6845
DIST firefox-144-patches-01.tar.xz 11552 BLAKE2B
2ed23067a40b1198c53171c558dd526679ca489f949b163a39ac20bcaf9aa667e21c8a2eb3cfd94bbac0edb1ff064051fadd8eb3c121ef2913719f4842549836
SHA512
fa5cb7643830c7d71f55dc32587c010bc9c2586dbf01653fee0e142acd938a02dfeb6604d374e4146615200ffa96f44b863d6b4595d42a835cf456c721c42e59
@@ -67,6 +68,71 @@ DIST thunderbird-140.3.1esr-vi.xpi 518875 BLAKE2B
d5002e8209e7e3195e683ca0940382
DIST thunderbird-140.3.1esr-zh-CN.xpi 507841 BLAKE2B
69178397a205d6f229265770b591e42f045645217c1c0346486b60b39e4f46bd8335581946f8e336e01e5f9799213cd79113478f1bfda8a66446aeebfd4b76c1
SHA512
ae2b5bb47bf367a7ec79aa3ed46a020c890fb0cbe306463399732649b1faaebb577977c756b462ecf4230913475fafddc892b0cf68dd762a16b7860c216c9862
DIST thunderbird-140.3.1esr-zh-TW.xpi 511166 BLAKE2B
25241877d07fa074f70fc2c356b8af07f7df7868fd5c14048ab57642835ef47cccfabb3eb0e6dc72f8e15cf88a693e6d053a1e55d0b135b356516054842aaecb
SHA512
1474c84b06c213687634b9b57d8a1c26e4a2eb2cc584288172c405cb3577861cbde860ef12fe65827a94f7619c647ec1c9c082e92dc5bf6ab0f1838d389cf838
DIST thunderbird-140.3.1esr.source.tar.xz 758697864 BLAKE2B
8aa297f3c1ab23672573875ba9e0045308ba850eafd679edd1e73e39d0ff3caf94acf679e6c9c2bd2d0a79b504563cde04c6fad1200d5f8e2cc8ec6c383ada55
SHA512
836294f4265f7076b4dce86028d4aeef7b9c9ee473f3af075d19c976a203efbfa778a4485e50e4bed6c32d1aa497a148c3e8fd21a765d78eac8bcd23a77f0c7c
+DIST thunderbird-140.4.0esr-af.xpi 316216 BLAKE2B
6e2e7f6cd8cc07d5e83661d79c5d8fcd1645d2a227521b98785287dd0bf3be10a47643dba6c69b323965316469d2f9747aeda60ceb2140943dda2c543d3b48d5
SHA512
cb9958a1c4bcb18f660c0f43194a0862fec312257ae676085fdc5d8e537e36dcccfa20fdea04e47eb40033d5540cfbb01a06c939e02e4d9ab8833582a59a999b
+DIST thunderbird-140.4.0esr-ar.xpi 436171 BLAKE2B
08ece3e3984ee25bb05f05f647e56a99a8b27d058a1e64219139acee1a0d744325bdd4d11b1dc34ecbbf6d0d3316cde90b87e99aefc77260372a6556c4cc1c29
SHA512
8a2c805fe12068bb36ad31cabb3291d7607755d888b4bbd8be92eb11b98e814e3e8e1e4974dc3699a180c664523acd008811a8bb5cdd3fbf218178c71aa0cd1a
+DIST thunderbird-140.4.0esr-ast.xpi 340596 BLAKE2B
a45d4ff1d0829de6d2a986433eb591fa1ae09ac27845c34c809bf94817bc1970d46d93f0052763c61aec471dead0636b4c17ba71b79258d4303c5bdb2d57dc93
SHA512
2b7e9789a1e9475510252a93e30d565b0a89693a62fdcde519d063dbea1524bf8a29180b46c9261ade35ef47c2f3fb9164488d163ca1c6af4a9ad372c4eebb59
+DIST thunderbird-140.4.0esr-be.xpi 520641 BLAKE2B
3c8b665d063c7ac32334c4fd87788bc34f116e1ee59a1decc0ba5d278b439caeb0410d1a66132cd3004933cf978899115c5886d947d056961e1932d3ae524487
SHA512
faebfc68077bdee43c07a65285a5277fcbe252c31afdffea26e5f309ceb5737ce3dc4bde145a5d4b5e4056c3b06fcdc8ad69ff24d13137054c85ac3b073b571f
+DIST thunderbird-140.4.0esr-bg.xpi 535500 BLAKE2B
685a950303552006113d37bff0087bdb7f7cec386143312284ed314731ff4d134b50f1d051e18fee5ca29c46174c25eacc55842857a15fc1cbb86d5b757acc18
SHA512
defe7dd9d6dcae4a5b600fef6b148221898bd99382f5ff866ae1e7a85895b717ea99d2b4d8d6efa9665a727b503b7bc419ba639e776fabb26df0387e87542209
+DIST thunderbird-140.4.0esr-br.xpi 402745 BLAKE2B
35ec340dd440f8a3223e4c522c8330e6f64fe007d87025ed51b4f3e1875d78bddd69cc740d37c9978293db445ffdad15b2144c84771d3d1cf5e2b537eab6efca
SHA512
84464bf4ece3f7e3a5bbabc1cb152ffa3b4f613558f5fcb0ad37d96dcb5f8db1a5b7500b1af324258d60c12165a08550378b22543d14d6ace3be7a28e1fb8528
+DIST thunderbird-140.4.0esr-ca.xpi 440582 BLAKE2B
9a404ce17b902497a055f9dbc0367b55e18fcd49f17a81f80f0bf1c33650f4f496ca310a545dd202758f608479ed0bca09fac84f0e684709f5b4899357284517
SHA512
bed6fa076754ecaf3935548148cd0b3337b7383fdd2f3abe1f626ed3a3f9d05af338e7781661a994b819a7b2480177d62823b3d54096ea63836b53f1b45bcbfc
+DIST thunderbird-140.4.0esr-cak.xpi 418017 BLAKE2B
a6ad4f80e398074abca4ac60880875dea088382b723b82a2fe9fe7e3ec78834c74f6addcba57ac492180bed9898fbfb7e978eb960612197e8531cdaa8c270220
SHA512
72cc4a1f2064e7d9f2f80d873c966849b7084fa1485abb9ca26e64cfd6a44e438d1b4e886b061006a55f0492037f584e3963f04273c3b6eaf8bc9e72f713480b
+DIST thunderbird-140.4.0esr-cs.xpi 519525 BLAKE2B
ed1940ef354a545d87128e0f5b5796c79c844893851f059a9cedc4ae0ccfd3513fbef4305037f4e819bd2a48b5d4b655ba141e6e2123e7eadee4128294e0b3d3
SHA512
68dc1f1649924f5cafbb9da9bc24eac9471cfa2dda8f3e63d05b6c4cc7acab346a2f557c2709a379516f1eddb38471836aaf9dbae0786cfe8bc60104842a7dd4
+DIST thunderbird-140.4.0esr-cy.xpi 487644 BLAKE2B
449f04657b0752a97d740dfad4c525d9340cace844a3ecae7066d76d12859b289ea78ad0e662102726d76e17b68d65b6eeecfc163f202708dd35ceb175879ad0
SHA512
f36740c4731a580521dc59c8e74e37f00571f291fc803a5b64f65c2334c1d2ca67a11352b4cd964862025dcd25fe4e326e7473e3cdec6ef6a804e95518279e4a
+DIST thunderbird-140.4.0esr-da.xpi 476633 BLAKE2B
b8cb824ae4ba2afa1a6988d303ec8ae01529df5aece70c1ddb617ce27a17855abe90c31d095c5b17ef90b8589e4d3eadc1f0f15b6adcb6d1d3d2a902e0ec5d5b
SHA512
01e3b6e7445f77187de6fa8c458194eb8ab9e221fbfa23824cd9d6c615df7cc64de8b5e679eeec86571326c5f455d45e0c2223c8c0dfde9e2b03a65dee594165
+DIST thunderbird-140.4.0esr-de.xpi 505051 BLAKE2B
e0bb4fd36c92bcf30bfa481f0ec91709ed06d15df5edfac137a9c4125d69ac5f58b0c09018992904ea0266f6ed5ec93ba37ccca98981442e98d73bce63da9912
SHA512
799ebda6255457d45222cc10f933496f82f42fb490b575d31c660ca6e8a009fb37567af16a399246d1661736d7c5754a5dbc79670037dc14e71a78a712a72020
+DIST thunderbird-140.4.0esr-dsb.xpi 517903 BLAKE2B
42e0800c189aad5efe1feac0c626938801774c581eb5f82a977a578766f9196b0105155b7b87e897686dc493bd9885f7b7def3d071e0cc5fa2e7dc6c225f859c
SHA512
2af245ed3fee5216eadc95dde2195fd4ab44862c24a25edf25e2be3b986e933b5703db50c6627842062b2a8bd12c95685f77daf6fa8072b0de2b2c3c11cedec1
+DIST thunderbird-140.4.0esr-el.xpi 609080 BLAKE2B
93390135dbc908ad270a61d7db4d27a400fccd2431494fd6fdbe9016800b1dd53926105f17cc4096be54268ed2cc5254d27591d4933e44dac1d160918589b37f
SHA512
a8d69ac49ea7d8e518d183f100204519f69c30a8135efd16caf07ab56b2456f83e19394221f3b5671c11129289c9629883b17f12f2696ff7a6a5d50fb12215e9
+DIST thunderbird-140.4.0esr-en-CA.xpi 451421 BLAKE2B
99ad3eadd39d10c5b824215f4afdec014c92eeb8c1027136a49e11382901d46792fce65e96cf4bfc2088ddfd4cc3a95113fcb184fcdedd5de9e1b8ad7da9905d
SHA512
c289d8a8c458af26b67bbe95ec60e9f4fc2cbe0e6641a164ded7f79d6b51fef77e4cfd7f83cd6dfb314e1c1821f4c449ff25d45df4bcde03474211c0df9bb255
+DIST thunderbird-140.4.0esr-en-GB.xpi 452064 BLAKE2B
68a017251fe35f5498532ba4c7d1f20c3e43a9e016aa3130bba1c3d14c4cce29eb1b7d5f94b591fe778698eb13906751c5f81a87ca56e2941c34ae949613d4b2
SHA512
9caee0e71fdc1916b87549339c4c1d483af38b20c6bdd34787c4cc261773e7bd691a81eec62941fb1f0f4b7da2526a864ab0b5d4adf89c2a1a29dc01d4a68f8c
+DIST thunderbird-140.4.0esr-es-AR.xpi 495292 BLAKE2B
193200097d5dfce6d61b4fb342e81ca9ccf628c684d0ead49589449887d998d9f598158c8879a5fe7ea0bf7591dc19384392eeaeed99fdf38d0417f694758851
SHA512
edce09f4aa796ac93761040d27ddfd235a08d46f07d16f35823d1dc749b000cd957f8e5d8b2f6d396f65289cc2b228a81dd1b59df82de09a6051cbd15ce5c864
+DIST thunderbird-140.4.0esr-es-ES.xpi 497279 BLAKE2B
36015e2cd392a6f52dc02e410aa0c044f1c0fb0285bc250633ef250793baa06c5c9bff7b2ea9c42b408a7797b4921924005ae621ebaa129678f58288c6bb1e31
SHA512
c5664fef0164690b446f213fbd9c70821a57099e234a3d1c2605719da0147d76eabaed1a032ad13dd0ab6be485b0979d5a35a6711e9d4ff9777bf862952a5c3a
+DIST thunderbird-140.4.0esr-es-MX.xpi 488152 BLAKE2B
2e9c38cab7cbb393f051d26dec935a685a3d109a9ac5ff04ade6db113df10f6f76eeef048c52528e404be0e196b04a9c05e713d5eeb41aa04aea27b9aa111cfc
SHA512
9095026c6cc28cc3b6ceb2a5abade5e2490772c6989ce9c2bf522839230f5903047046ceebd5dd390079a4d9a6bb0dc15a556918f9ed766ef9441ee34f076a60
+DIST thunderbird-140.4.0esr-et.xpi 443606 BLAKE2B
798b5ff1df5a4e3f80fa0467f689bd98469b5aeb3ec91515aa4368a4d5af8eb0fc3b0a43c0468d7a25a44a217eba167c09bea0a21dc787b03c3981c5adf8a386
SHA512
c72b31d6d341b655087c865556bf214711449d5149eb5efc04449111a27f87a227d4a4c9246b5c700f97a87f5b85743e1ea2938009a2e5bc0cf672b48b2ee555
+DIST thunderbird-140.4.0esr-eu.xpi 473511 BLAKE2B
934f144ec27142c39fa0db2819cc98331065e399484f1e807333fdc0659fe6574251204f3771a146d2425a7cc35df5864d6a9ca0076ea78556b56774b9d2cf84
SHA512
4b88c432be774a89ceb0ff2ac1e5e5dabc29093ee43ba7a9177590a488fb89ff5b66e8c1db27dbf96cd1d3b59a355a3f00e4e936def5f91a12bde384db5d7aa0
+DIST thunderbird-140.4.0esr-fi.xpi 474563 BLAKE2B
31fd781f38a141c19f4c2c6e09a6b8fca704e1245876301204d11e525effde8699232367b59b222d4895d5fa835dffc35cd9a979a47fec9f3d72d1d285c04a09
SHA512
1274354f1177a00ef129e122e206bc426aefb9cbc0608ba1e4dd35e7c5d0f7c1c4d76ad2bd27b3fbe7932ecd34c6337410bd35db9b1fdeb0f05baf499c1695e6
+DIST thunderbird-140.4.0esr-fr.xpi 508254 BLAKE2B
f59b16722ad4e3d803fd4f576cd0ce045104a4038c68c88798a7df03c6570f49f7d7a43a570faf26e491831244d5ab38bb3935a8bf95b0fb64c9ea1d8603ed35
SHA512
058259204633f8c728e1409037511a30e5939e35e7d8bf98c6f5273daabda50425ebf17cbb566272a7a4e13d71ebd82820dbcad7a90e6e3820320cabb43d7c88
+DIST thunderbird-140.4.0esr-fy-NL.xpi 490662 BLAKE2B
8bf7a347239ce805a9c67df5c0c5c85014344c2faf348c1cc476d4c26bb6cdb06929f75347e5d823c930d861a48e2df24ece2f61b71e294cd9f579359a6bb9c3
SHA512
83e8849606b553595d59e56aa358c40a440aac80797d7aceae519a7856d331d45e1106c27586590bbc58e71c50c9c97a8201c8bd9728bb3401d0b6be7467589b
+DIST thunderbird-140.4.0esr-ga-IE.xpi 376738 BLAKE2B
9c6b32963f09c7a8ad786d4f03ba91fc4edd3f19bc982f17d53c122d417fb68707cd62bf6836c6db2da8acd0c71e3b1d4804bd919b9e98df1b04369b5c1456b9
SHA512
1729cf2c21f49d6b083ef2f2e1c8331347723193d9f43e31afaa57c33b5b2144cefb11b554762c42c5165b372bba5aad2703a83703543a066f483e5aeddd263c
+DIST thunderbird-140.4.0esr-gd.xpi 461953 BLAKE2B
4e826b46d5585063c15abba729863a77794c966e304198eeb1a7c3a0c15e7a934db6e8b7cc7d2e0a66a0d8173a9fd707b00bcaa117a4d0963588bb2e565ee10f
SHA512
83c378a974b0511e12de5f4fb2410ad6bb4070ae7769fff496be68ad0113112eb02623b96f87adeab15d5ff4e4ac38d7c108bc14555674296843187ecbf84e31
+DIST thunderbird-140.4.0esr-gl.xpi 486668 BLAKE2B
c40221b81bd0c9f0ba8abb61d09af5a77a1d6c7f0a9c96778d70614a65cce5507083aa58828462894840221b7c585b469e976643efe3e1f6b872b45d73054da9
SHA512
4d82a4bd1f7c303c35b65ee530cc0292f33edeb3a28d7c0c1142bb467deede500dc0719083957af42eab91220bc38589db57f12bbc8f6df5a79d1ad345fd7366
+DIST thunderbird-140.4.0esr-he.xpi 441518 BLAKE2B
30bad01f8c17d67424f1a798e8006eb621eeb408427a0630b1f4468593b7e23cc5eaf3bd9f3c54046c96f86394639b7bcadda4c2c79fccebd13298a91b3e4535
SHA512
6248a4f5dce98fbf8308dc0b719bdc25e95ae17143f61cbd5eb8b7969b0e5ddf5dab6bcaafe8bca8fc253557d5a70aa88956c99581387c07858607ffd7a5ddaf
+DIST thunderbird-140.4.0esr-hr.xpi 464031 BLAKE2B
4fe1b2d21847280c0d26e1763a48c48c3c61029d3a3bc67c5229c73760e0fcd20067e9d41e20842350934b8e7876505d24ac14c0a8334a92e87108b674c79185
SHA512
114f1ae896b2c495b109c7460ab230353806e356e6a977c4368c4340f4c11399139b1bc536e8cbdb9ed593e61e3dfb02283d2a66f78ba084b3334fdd81d560cc
+DIST thunderbird-140.4.0esr-hsb.xpi 514945 BLAKE2B
fefaaed41b52847e22158ec7ad0a9f1969f101676b42db31519cdc8c00a8781490acafff5dbd92f59ba0cff614553871a5921430d6fc5d4c51a4563a8c2cc211
SHA512
37769985f1876534f704a73690eadc26b37387016d721764974781728683754cf6a469021e2271f32f2ef0743669bf8825a60b595254e8f971dfa70b24d985b6
+DIST thunderbird-140.4.0esr-hu.xpi 517534 BLAKE2B
5b4ad45d32dfd21f03e62a8ceb25e832b66d7c60d3df078f837e055fffc0a3f327608f4bb9345170cdf62ed47a03fc895784c71dce7cfee45c5529922c2c58a2
SHA512
d1f0dac8fb57162ee6419e5479f65a5ea46636b79ded19fb0941ba840523468ba1322d0244c20d697e57bf7b95429319eb70de7429a333e44c9c0bea998d8857
+DIST thunderbird-140.4.0esr-id.xpi 463448 BLAKE2B
3c3a56aa10f8eebe91b33aa5efd9788de63435e8cb3e1f6ad3e00d5e31f3fa2f2d1f7fafef018fc8cdfa6c50bd9b5fce80f81be554682950b23888e9b93f9de7
SHA512
6d48022618058c0ae998c971babc8fbbbd2d1b8c7ca4838f481b04f10f65da9751fb190ec8a80ba0e36b7b20fc7c5aeb2a60e10f212b98e8e6b184305b7cf3c1
+DIST thunderbird-140.4.0esr-is.xpi 482734 BLAKE2B
c43b1ce4bf164c93bd4fcc730eddb2a347c88fdc23bf6740991982fdca050f5e3fc266cd6280e97579a6ce84fcb7cb07a2f68313a484ee646373cf3aca94cdee
SHA512
31feec54da9a514ae3aeb9d1267d2ef37a62524a0495a9fbcefa8a694bead1a9f42ea088d0005132ac5249541d9d457a66dd6107f4032a2df5fe86ebbea6f6d5
+DIST thunderbird-140.4.0esr-it.xpi 488520 BLAKE2B
e5ef126c5dab423791d67ddd19686fbbb667f8bb4568e7c59230dc3fa8d63750c7317789bfc68ded9f1ebe6d49b3422ad6fb223714b04d37d5d10a10dc7ae881
SHA512
acdf7d976a75ea9e39d71ef608c4abfa172a30d8193eb874f16ddf74006b2d2936c5649fc5cda89061836bbb1dd467d7939b6f6cc7892d5daf6112752c54392b
+DIST thunderbird-140.4.0esr-ja.xpi 539355 BLAKE2B
64842f9e9f35578e5e14bff96f92e4828e608c73425dfa24c46f2f5f1076137720e855cba236c905e29f67cadff5af2cf4b62be09796be738d1169dcd6d68612
SHA512
f9e5355483a78974ec5e114546523830e0e7fd2be5ed6f14888f4d949da5fce000001e90b15ee2cfb2768d7c66b90ef3d30f39fc0858a642ef54730d026cb794
+DIST thunderbird-140.4.0esr-ka.xpi 551182 BLAKE2B
67b08df08cef13dc9a0b0d863a93298dcadb9ca138c2c7f7ffa9f166fc159e0fa307842adf6538ef7b5e482fcced2970ee0a9f085e365979fdfad74c46c9fb1b
SHA512
b106be2b26c8ab236f1857a4b1cd1f2252020546271a891796f11e24e178430b1a6da0988f9d8c42f9865f8561b00fa2131ec11023936063d5826e6ba251188f
+DIST thunderbird-140.4.0esr-kab.xpi 469130 BLAKE2B
354fa2795cf242a1a840a3c9da0237cc85474a16fd3a6999d5d731ca20b54520b4ee2d5fea5b3497a6370035c6f4959310bb750b87f90fc6210c35cf5f545570
SHA512
be3a447719e93a8cd2b6f75b3b229d694fe586653ded23f559c5abf1756635b1d212380571f1e2bcfc8b2b8573cbffdf657db3050793b43b23bc90b8f775b1a8
+DIST thunderbird-140.4.0esr-kk.xpi 573786 BLAKE2B
5c23a8e6d2ed157520a1899546c7b0c927f54af92df9f17d362160a8df7a54605f6036f591b7325ca7d82bb839f0c4bdf9bdd5cd47b06dfcd5f8cf065a0e379c
SHA512
4f6f681a464dd83bfa556f232d4c0ca6c0d974e40f07e7833c606d8588061c00eb4da0e90d5f9a7f65f5bedca39596ac4dd366e77ff1e4a4a0c241cfac33aa29
+DIST thunderbird-140.4.0esr-ko.xpi 514513 BLAKE2B
2e292f89c1361ecb113299a0577db11f083d0f60621eef2b9009dd783ce39e60ae7df09a9c033de015b4eb86ddd37da92b70003dec77ebd9eb56f84094947700
SHA512
40bf34b39b275eb7dac87df4eae914628dc2e56f85efe9099603b1fc19eb9b969a424c17369dc8211973d36879c3fdcd263bf1ec2c786c44c2357f372fbc8f81
+DIST thunderbird-140.4.0esr-lt.xpi 441850 BLAKE2B
a6a2d3ab41d0322c482c57b13fa81becd74eb9e87b51e5b97072d6815b92f32aea36149cc26ba412bdc7f8ae13248e10f20b0d04ebd2f0e89db67a61d260344f
SHA512
be2f4d939a9d5de459b39227f4b0e1d36e9c2adc7872da61ad5dd6f3fced6fddf5d5ae8a6a92eb036abf416de5684e110637d1d2d5c6936ed6d460ad4ae6ed5f
+DIST thunderbird-140.4.0esr-lv.xpi 391798 BLAKE2B
9669e7e3c8fc7d2bfdc748f33a40a22fd0a8748ab07e455dec5a5176563b08f93003f33e3cc967d51ab0b61dbebc0a30c856205737c0449242e98ccb2decefd2
SHA512
8c17c6ccfb2e1ad1f042981c5edcc31071d67b16ed3c9d90428229359bae6def7aa53d5fcaf1c9237cf7459d4bd1709ca0326ce0f8c7ba879d2fce7d97b70180
+DIST thunderbird-140.4.0esr-ms.xpi 352172 BLAKE2B
b550eab4341284ce79790fe3efa85b04b085e85ab3cf228ac209a42506d8f29da5bca52dc8a72aeb3de84d633af98016a585e504f2c99eec0b8673dfb90256fb
SHA512
1b69ed390d47b244b6f4a3bc01af69dafd18771a80630798a40ff68b3ea326384407a255be9af55c76354c4a372052a8a5e49e760b5445c5a94b6713af3bf65f
+DIST thunderbird-140.4.0esr-nb-NO.xpi 447967 BLAKE2B
0af55d2cbf198b743320eec245b8a0341b999f4571a1107e92fb1bbf20e59488f8f257e576bc935fac4ff04731a96e7400b72432697f2ce200a625fd1827a1a5
SHA512
21103b4ed20bfa4d70800dc2e2708cf2bbed34e0d06e7d6e99838a1e6892b303b39394d7212f9c4fc58191fc023a8b3b07084a0c8af589503095cb95f4ae07d2
+DIST thunderbird-140.4.0esr-nl.xpi 482128 BLAKE2B
2958053633a7415d44577160b87bda5f8f9850c45ea0cf8f40c5adc52cd65e424160dddd45ce4f127c2da654bc28dcd3d7a11107ba4158957f2bf05c8ce243d1
SHA512
eb1ac05a693cf2bc3f55984bd786f831b62ccd15c4aeead2a6516cea7894d04b83de61dc69f95cfe1a1702a17f578602fa058f08e6f4d1d93a60b690a7847a80
+DIST thunderbird-140.4.0esr-nn-NO.xpi 469410 BLAKE2B
e3040671358379f34deb20d420ce78dd210af88473cb6f766e4a4e755b7adf8933875d0c09e9ff3a6f1a50eed726be2c7fe5f8550b5d07fdac41cdd959967ea0
SHA512
f2d5574c62b918456ba2e0082b22e9e532bc0a99ed1929fd65a5f74089ede540b3cf6b684d83ae378cee0c7df82dac81228967145a35d33c7e68113f58ceb065
+DIST thunderbird-140.4.0esr-pa-IN.xpi 434962 BLAKE2B
0d83c280e9da2ad5766a20587fb656a4de2f194a678dfeca5fb45f444e06482a004da50181b8192e045e4bd503bff529f8ff7aea19bb703b58e8123951b2a769
SHA512
31428208f92f9f53891049de3d62b4996c6c5bedeac47fca0f3cb4c65e345882eea3b6c6773711effa7da01681e3464a6eb9af99c36f3866fa16bf78a2f32016
+DIST thunderbird-140.4.0esr-pl.xpi 515037 BLAKE2B
66d9f4abb30a1edbeb59947d4eb6fc803cdb722785953572c725ab7b2b14da759e5fafb2570f49b991324b0c7e0e5857ecfd2b7457835ddad9bfb312f6f0fcaa
SHA512
75f7593e3e1962e36df25a99d3bd185f87b7db3b3480a145dfcb41415727087e1f1e7a4a86d868de2fc9e6714a6c7b3211bea8a349ffe255437cb2c97a6e81d7
+DIST thunderbird-140.4.0esr-pt-BR.xpi 489973 BLAKE2B
1ed042ea93b394a28d47dcfff68fc2c02fd19ed4f569625751d745113f3e32cc30ee9a01eb7a629ebf877ec1c8ba3e57cec4d7a2818389c33c0f287b568a90ab
SHA512
90b48c1241958480b66e062b6a498d692523cdb8ccbb79d3c31faf7c86d6b4601d635c8d3691775d1bdc836eb35c1cc05b0450eda2a570b6c4623d600a92bb6e
+DIST thunderbird-140.4.0esr-pt-PT.xpi 486330 BLAKE2B
adfac7c760d073c638773118842a5e06aa439d5b1b1fb5b835125bb5a08409466ca5ff4970cd5d061083930795cc1c52d45e2bc6499d63a301f12e4713d3e7c1
SHA512
f395e3c512be40a03b6ba197382f0e6d02b46e9f78fb61c41d16c6164d98df3b969f5aabdc958e5826efa7223bc9fff8359eb0c2c046b7b5d6a37167ec3c13a3
+DIST thunderbird-140.4.0esr-rm.xpi 487180 BLAKE2B
c7e71c178113c4c9fb31b3f41ac33f5e21cf517bcc61c25abc98662e0128adcb0180e4784a3b423412404fcc46a5a51c401b5941a1d2828b57918c5f70807d17
SHA512
79531108ecbadd16c517a57a6c27099c51e18cf8e24e606b9af326548048ade795ee8cfab4909d37ae1f73878469552491771f2326324e8eeac56e83f84b35f7
+DIST thunderbird-140.4.0esr-ro.xpi 451869 BLAKE2B
cac69f2934eefcb737bfe2d3848c8b164cafd27931e664da5a8e25850b84306b5e1b36684f52138d443907aae1fe0008749ff611c52ff9e73d7ee1429cb3b0be
SHA512
c12a0df5c9605162db33eb449564e05916841eab05f4ba12e14c4d3880de7df38926cd1addf9ac3beea837050621ba135a5c69189ec80a5559edddec22e39436
+DIST thunderbird-140.4.0esr-ru.xpi 593151 BLAKE2B
807382628d538ac932de1d93e7a24f57af5bf21da6399b14111eb42d9e54240620e8e3f3fc7d003b58094e82a35ef4ee69ffc077dc1bac6783045fd137965828
SHA512
db939bebb04f674467c9b50b0caaa470cc183489c6e6d9fcd7648af563bc8af0268bc959e492d5451b79ce82df5e5944a5b48a9ff65e800721c1b14cb4b76c0a
+DIST thunderbird-140.4.0esr-sk.xpi 519233 BLAKE2B
3cb36ac6b6d9d9850c23738a16c5ceff430de8d74da2c240f063b183bb032733ef466016018b6619fbbf8e62e04b7601c0796fddca22e94d6322b1c36b6c8f2d
SHA512
1caffb5992dfe7ec644715ea76a66ed720f2fc7eef78e342dbce6cd937b181f21ebc1af48a623452ced50ab54610db0bcd81338c866dd6253f6ea38ae30c1aed
+DIST thunderbird-140.4.0esr-sl.xpi 485937 BLAKE2B
41c4e79ab23c22cb95e880ff449fc96ad5220453aca22a98cc0406da680e5eb7268a3ac3c5f357ea9637f33dbc5b998ca533495dea1cf6b62a89935d0b0d3a7e
SHA512
094c13f0080a61f7abfa0ec6acf4bcddd6d4d88491a5474b61cdd1bf90a1fc9264f4b3efa90fdb25551f67e6d4fea13e3542e2eb5a8cde97ce75407fa588af9d
+DIST thunderbird-140.4.0esr-sq.xpi 504051 BLAKE2B
b5671762eb024891f9a7e1b987fe2e7bf3a27214c12a58a1a3bf8a8b7e33ff5fd98d945b2afb5289ea8706774e2c2b1a8ac9be946854f8b5ccfadbf91a63e509
SHA512
d4294f2f5d7d0e411030b9908e3c0fff552f4145ddf51d6821fa55ec15c4e4fac2adbfe86400bf644265a14b2aaddb3a67fb5f31880d23e159bdd6a60144791c
+DIST thunderbird-140.4.0esr-sr.xpi 495986 BLAKE2B
7d3d50c46d554e13012c7386a58818d61a2bd7c17ba95ecc6384c0dc37143b6ab6bcfccfc6d4a69a13a2b039ba86e73228f9e830fd23538ecd382d283cc68176
SHA512
51be095b1a5b27f3101d3d790dfd8dbb719f022b8b3fcf72592014be0d1c4dc68689a769df82084a4d61a5369a73d6c3b0318f2d0e794fc663cad62e8a70087e
+DIST thunderbird-140.4.0esr-sv-SE.xpi 484417 BLAKE2B
4ae05408c1ed901088518394717ad5ffe2a12fe5f6799a15af0fa8603b7653d866bae7e60e7eae1ba7f306f2a4eeaa0e10f608a2ddf9b0e84299793840913915
SHA512
ba6e01decf11c9b4b95332a3cd831d3682ad0b739a2bc0ac628a9294f6b0c5273da3df3871a79698dcd6ab453b212285a8214297e0ee14faba97a41485b6468d
+DIST thunderbird-140.4.0esr-th.xpi 565638 BLAKE2B
962d44ff04a5eb3a90d55f290c187aa6ea0d035fcc5ab8b4325fd504b300c5375aa4886bc160d3b2977addf9fd79ef43c389d31c23c27f8c3ad6bf72a1a72959
SHA512
7502a252296b32e54b1b402345bafb511d16558e5d7d8caaef6c591dc9af1fda40866e635a36d9f9c08d0ca58647fd866b9bd68b2c022b08890ad6078c9e59ad
+DIST thunderbird-140.4.0esr-tr.xpi 495542 BLAKE2B
579dbd57dbe62af662c26c662baf3de50b26909616122649e2ea1ee7ea06eff56fbbe4825068f5749cabe223e3312553d1814fafc735a4b2214fdcf3f86c0810
SHA512
a2a3e2c09ad3e387904cdbd164b651b6629391708a03555ccba6ff7a29f0af521c88601b3aa346aea4ff5d32b2ee42479e07f4e2e9c698b7c87e855fc83aeb1a
+DIST thunderbird-140.4.0esr-uk.xpi 582164 BLAKE2B
9e329c34b2fce70dc806b1bb0605f21d7430f24f8041c2fb4121a10f353338dd507551744dfd5fd23ef448c33bd6639e6de08f7df183271b6bf4667c9771abd4
SHA512
e8af6c6fb4e997dc79a2289881ec325375804b176e61d7e58d816fc3ab7a4e2b0d3b6bf69cd737325babb268bef307bc51961dd257caa7728f7f84c0c74c27f8
+DIST thunderbird-140.4.0esr-uz.xpi 355261 BLAKE2B
3a9c1b067efc499f2d2aaacad7a4ccf6a22418e4abcaf23f62fd8dba76e21a0733d458fafeb3703da22c44052f0c894be9fe58b360101d211ad8d7e20916d4a9
SHA512
663da38946ae5fff436cfa07ac37a470851a4d29bd06c3b9645afd2de509881f47131d0be285684ff6659c0296453025e18a42ea5b869f25f5b9918f0163071a
+DIST thunderbird-140.4.0esr-vi.xpi 518872 BLAKE2B
1a3462d7786146bacb34ed37307ececf7094dc8082eb2482c53af8695f657cd8d3297a128159b83384f9c13e0a04b78962def246e83ebc2770ab4a9a4eb352b6
SHA512
f11a84062e4cd3287f2a7494263acadf7f75b5bc5a0e707e5298582c9a73d5749973b086f9bc6afa89d824194bc3d82af73ce20be620dc047a253d92300c8525
+DIST thunderbird-140.4.0esr-zh-CN.xpi 507837 BLAKE2B
e41560118711011cec5d9162611474c61d02ecc781916c015007caa0382a1e836d496963cd1dd895625974c9ffaa9402f3371f2202fd8ea347c3746b9170036a
SHA512
a5858b7f793cc0b1e1457a4b28f9306ee3eb126bb7625a924c455b530e4fe9c646edaf8af2f6a35a5cbb601f20b8bd11e25d71823af94d817c80555e27cf7c9f
+DIST thunderbird-140.4.0esr-zh-TW.xpi 511163 BLAKE2B
30b71ff072e287be22b8be6e721675505a0cc88d46b98e347b2dbd6478cae67e66996ea8fa16f589f650f748a4f6f1c67dcb9cbf2a05997078da68d457f465a9
SHA512
390a13e478e8a1dd6fe0e86bad008e31eb4d5a1ff8f97dac41bfdcfa1e8c5375bd02bc453f48d43ba8997919790a6c31c3ecf15a3d6f1c89c14252b146986ddf
+DIST thunderbird-140.4.0esr.source.tar.xz 754630692 BLAKE2B
ae74fded5aef8a17b60fb991f67c32daa7b94c6c120fbdaf5c6737c7e63f1013e76e3c3f351d4feecd1ac96e2d8680053ba0555844adbe00da8e3a79ba4240fa
SHA512
23a7c99f51a346f9df6e0da257040a78da0b9afd70966a0fd5c0f5a4dcd4806520f8d510a382cf5d76a099aa889219a5eec185b774a6a9b65c4ccdcb75662554
DIST thunderbird-143.0.1-af.xpi 316517 BLAKE2B
10bd73a7df193b2e22003ea0795c6c1892a3d0d0cf38d90bf990ba338680bc051df2a8685579bf35ef40168944516af226c7d63f3ebe3e9376a4bfdeaf15a65d
SHA512
75d9ec847977fd5afe47b6c1c83e4c820139c1d8861758a76ba4f6487c6e87d93276b7e41542dd82ad0cbf0a5cd9675ab73b76629593ac7b332694d5092ab3bb
DIST thunderbird-143.0.1-ar.xpi 436468 BLAKE2B
c92ed07af0a8a3e72fdd877212cfd63af8e1b2aeb7c1a1298ba540c62dcdd629b002642cb0f41d0c41b7354de16c5a7e5693c11a32e60509dcef9fba7fb309cc
SHA512
92f369ffb1f7101dc7bbd2b248059dc77fd1968166e08fe617e88ba4810dc4160ba6ad3de28a07f09cbc919002de895ec5985c3622d7439cd9ac3b28261c5270
DIST thunderbird-143.0.1-ast.xpi 340775 BLAKE2B
75faafb06e36b6f9c8782cb4469d8b60ba152a526d8b430c04e161f6b6a5a997af4489db1af6b6dde78eb22dd00c32977ef5398cb48adb44f14d694adc5d23ab
SHA512
2825d66a736680bb1107d02c7a98be8ac8f79c038b010ef8d9be8ed34a0646ca1d68af3783e1c31d1c6d8ee3e0de50dc00606e507fedcf7488594decbada4809
diff --git a/mail-client/thunderbird/thunderbird-140.4.0.ebuild
b/mail-client/thunderbird/thunderbird-140.4.0.ebuild
new file mode 100644
index 000000000000..aaf7a3daa753
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-140.4.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-140esr-patches-03.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz"
+
+LLVM_COMPAT=( 19 20 )
+
+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=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 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[@]}
+ loong? (
+
https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET}
+ )"
+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
selinux sndio"
+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.27.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
+ 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.112.2
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ <media-video/ffmpeg-8.0
+ sys-apps/dbus
+ sys-libs/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-1.4.7-r2:= )
+ 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 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+ use loong && eapply "${WORKDIR}/firefox-loong-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
+ 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
+}