commit: 673a35b99722e3a83cfcaa8cd66313e9b48e82eb
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 17 17:42:02 2026 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Feb 17 17:45:41 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=673a35b9
mail-client/thunderbird: add 140.7.2
- straight-to-stable bump due to low amount of changes between these minor
releases - tested on stable amd64.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
mail-client/thunderbird/thunderbird-140.7.2.ebuild | 1160 ++++++++++++++++++++
2 files changed, 1225 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index e5d93ba44857..e737a55e9e08 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -199,6 +199,71 @@ DIST thunderbird-140.7.1esr-vi.xpi 518884 BLAKE2B
626280769bafcdf9ec0a25ddcee15a
DIST thunderbird-140.7.1esr-zh-CN.xpi 507840 BLAKE2B
44a04f6586695c9e098073d1f5f74ca766eb5bcee72063392ebe55e7ceb069eafe6502dc7e683d51bf2a500a770c4ae1bf6a75eec31ab2d7d536ef939b5b72ca
SHA512
ca0fa3abed86be1ab6edab2e5431668dbac332143521cbeaa7ca5edfc561a46bcf1e238f76778f62916c9a68b7523ed279e2bb925565ae0bb671cdaf63a21bb2
DIST thunderbird-140.7.1esr-zh-TW.xpi 511431 BLAKE2B
fc9043dd3e6598d31a32aa1890c1eaad03358ed34b80fe3452274f41e839b5b084b524a04f1768e8229993675a26411e36388baaf4925d8b9f854e1ca2084af1
SHA512
814ce81f00b74ea8c7ddc26b0afa35a3a45516cb7ed6715b36d2aaee6da415dc3dd2d4dcdf2e5e857d6889c0b56bebc9808e54a558384a9a628d209374c3fb65
DIST thunderbird-140.7.1esr.source.tar.xz 754997380 BLAKE2B
c7cef462046d0e6e30ab389437202683fad0487c545b1cff9c4c4eadcbf2b8945c2809a99311b282e3307eb50a765788adfffff20663287b9be61bcc8054937b
SHA512
2d0f61758b0428eb4eb8294c58d914e03842c9ad7685cd2eec26c723cc1491634f90fc9fcf5ad6d3f13738e141e96c692cd8ff1599869346e3247a0cae2349f4
+DIST thunderbird-140.7.2esr-af.xpi 316218 BLAKE2B
e05621d27f36d4044b3b0cd354aeb5696ef8b8db4c7698f36c69d5c5272efa8be15dfe7fcf55a8e19d7e7bb5c17934d71745a3c73e74194892b85e38cc98678e
SHA512
cbd5df4b393925697d1757f52d5c7b9361f2b03d2ed02d577840fddf78209b6167bda37a7720ef5f52e6cf5c6e5d178f93de6935f4f9c9c202b5756ce89fd43a
+DIST thunderbird-140.7.2esr-ar.xpi 436197 BLAKE2B
adbb1c4206437757b413b9796177c4855746bc5279466dc7c401787d498557965ada0d8dd66e6151c97cefbb1285d0bb8244a28881548cf2c2a98cf954f06eeb
SHA512
b6d92d0584cfe71bc7c0f5504df5892b30bf5f4d1d32fd29e747274b12c60fc82a775a52f4e8e1ad8bd11819082eb8aca84c06247dccbb9c4347ee173fb958d0
+DIST thunderbird-140.7.2esr-ast.xpi 340599 BLAKE2B
353abac80f13b027f469565236b5726c88426f098ede69ce01b4175c5e1f7e2a8e35c8d906563f2a099ac0bc3f606b154af45436290b006405dd0126ddefbfcd
SHA512
2933cd5605c21e7b5c4bc0a22582adcb331988809277e00c47e7cf1f83a2b69cc6535a934b0e33ad56b5076cc5998360cfe71db5a087425fcbb7a7ac1245a541
+DIST thunderbird-140.7.2esr-be.xpi 521573 BLAKE2B
f315c5cbcafc1aefeff2c2f2c7ac93c5531a8e5c1fbbf8902c614076989620cd2f20426021d2b8eb90752ae1646e78c2c82cf1e9cbe60987bdde6c6ac4ff4c23
SHA512
6f954730eb553b89f2f94488db95dd91b4331dbb098729205bd51c93a82f8801c5b288bf4a34accece51d682d48153b5e5862e884a927c87a511030b7dcde11a
+DIST thunderbird-140.7.2esr-bg.xpi 539806 BLAKE2B
3ef5b0b077f9a9e9005681b466a5ba4f4177b33632bdf6d43a3765ccf6cdaac1cc67a9675931bdc78dffcb6425ab431254917ddc1fd67f3ca4bab98dae928b04
SHA512
709e9a4c5a8ca68dcc6c4306bac61c577b339ee68a5805c7f9f0c0658cd00e32acdfc54e9ccf36903aac7e9f9907eea536c198e5189f7b74bfcc1fd5233843a1
+DIST thunderbird-140.7.2esr-br.xpi 402748 BLAKE2B
0e30f7d551652e495cfa9cb4753f0054b3435721a64bf23cc3af7bad4951f38c559d34f7b1f1df8aa3ec791c266e14159225676e1ac9bade84471080f9761c87
SHA512
1f2cffd259986f898ef381ef4c5c5243bff89d7d26fa438fcafd85e8ae31fe7fb17e2016f6d6922ffd98974f2890794aec25c57dbaf1b1a73a1fbe0a88891adc
+DIST thunderbird-140.7.2esr-ca.xpi 440589 BLAKE2B
19404fc8002b6bdbef649ce485f4438929d397f21257f5e01a353fb4677143350be8dfc8bdc6579215cd254513109c2fcb711d4e9b717ed3a8dd4c637a818986
SHA512
4055fc02ecc65ae89dc680615010e42d1c48770a2a496771671b769f80dd801e466161c33fc57b45706f2e3a7dad6610c05625a3fb38fc00d9e98b658107d68d
+DIST thunderbird-140.7.2esr-cak.xpi 418022 BLAKE2B
7672326dfecff5a24356b71e95408d93d0741fc33c1b144e44c7d214e6a1f6efa0f84049f5c2d2c70905a6224daf1a21af24a5258f00e451034a06a2bf1fe12c
SHA512
17abcfe498c7a0855873e9db0ba29f7b93447bdbbd5a94787c23e7cb120fb4b04e6d1301b83b33b129d01a954067bbc7b994c4e52c1b1eacafb8c576c26baa92
+DIST thunderbird-140.7.2esr-cs.xpi 519508 BLAKE2B
02f4e5942f011941e2707b31360db8f93ea1b4e87a483ab3efca89170f57f5a5216d1c5af123144bb4c0a2a766ddeeccabaa963aec5bba41aa1fbf1a11f26083
SHA512
2d0e2de980e0abab78e1437fd62f409aef51ffc2d95c99326c79d888c4d12797a32da9a366288c1e63a2ce3420b5842cb6bd9ab05ee037e005a93cdc931bcbab
+DIST thunderbird-140.7.2esr-cy.xpi 487651 BLAKE2B
17195203921d89dbd4aba4b75a24e975c76251bafefda672a6f425876d09867a414b3cee3c0426baf93a9b557f7f3262fda2907d3463bf2c0797fab0faf79abc
SHA512
b936b47361ddbcc056d0db3902a06cda02d51554d0b54ce0ef601f6f8b34323284271e6c9697078b16f5c9ed750b105dc932a7686826362b640bf6fcf801c768
+DIST thunderbird-140.7.2esr-da.xpi 476624 BLAKE2B
71f2d66e5017b2c5f0f667bfb93cfa90db1278d34e25c1764ba43de87a9110bb5d3556793d90f8d818012edacb27e4163af5298e1666857b490bba508126b70a
SHA512
7b74a1d644e26759410fd6151d5792ccf9dfdb9d738d0f3ca1fe991270e2635d90787f5b7b94a4fc92fcfbf09c73dadfcc9605619f8e01e521cba9bff0fe32c5
+DIST thunderbird-140.7.2esr-de.xpi 504708 BLAKE2B
87b56371c3325f0382665ec3f64c47de8368de248e66e3b7f43d95287228509767d2d29930094d46742e024ebfec909bbebcc9090e743171aeab21af5a8cbf42
SHA512
adb65bec6dc68c6dda42c16e1840379fb111af208fd8304212ff9c323180302ef84f014de0e743e25c8330f7d1c924f6e69e6a21b327ff4be807f8e587d9ae0a
+DIST thunderbird-140.7.2esr-dsb.xpi 517899 BLAKE2B
03d49adf21e5a52edfe6a54eecb9d00c557e58be48ff8974ba261468fce4bdc3950e5cf068f5cce150bf1bcc512abed00dc8c1fa3fa2e4f22c9fe2855a8dc03e
SHA512
380766e9c259eeb2eefd87df524b2dc692a46b026f5ba672128393ea7a72806bc1227f5034d4e6c460feda81686d6f7e1deb600a8b21b9f4903fa52443c6f9b6
+DIST thunderbird-140.7.2esr-el.xpi 609031 BLAKE2B
b154bdc7d9df6b1c8c30b25ec353088d0822218f7898e058a607e920bad743ea27dcc6f76416a71c7775c4470b98f17800fbae9b5001caa51abe8ceea7e2a7f4
SHA512
95deab65e08bf2dd5872cd9c568d0038cb6cc469e4a0a3cf422d869fc5a1d5cacbd827751e9b85d3de0eb74d31dffa90024c6520a1585615e73514c79e8b29d6
+DIST thunderbird-140.7.2esr-en-CA.xpi 452240 BLAKE2B
64e35ec4ce0bc9132dbad7a9792b783730af9b4ba5a8f8fbaf3e2ad6b997ccd3de139e2f5bf94748c831d71fd2fe7a85dc0058086035a5e984b3aedb586a4f10
SHA512
89218e980b2d28b2904e0ef5f20b9fed81b99e2311286243fed91483479c3240d49114e35ceba20e9151a3771d9c4a1b36e0d7ad491b783b2d0726b9a10da8d1
+DIST thunderbird-140.7.2esr-en-GB.xpi 452068 BLAKE2B
4a7c28c4005a12002bd89f37258e9fe41fa2e0c28c564201aeda76637c899f1b4f655fa5b888e65ebc97a029936d842e2be7aaff05954c91cfc01ae99f544511
SHA512
c4bdee11f09862543d1c3e4a3319abb06faed0608529d90e8884e547a40f8a1f999d128a5b6c99a6c9e9aed8e9f799e6f21c0224bda54d8e15cf3a6bb17c87b7
+DIST thunderbird-140.7.2esr-es-AR.xpi 495269 BLAKE2B
485a60062536e35248aa8e3b1a576fb3747b9eef8d9e167799aa37bc9110c7b0dc9a1039dd153f7fd68c9d334673c2c3d3d969adbc1f3c99747cc22190d4b3f6
SHA512
1fb15630c73e39cf103e3b2e2ef9837b4c1cc861b1fd4d15bfc342d5c0d7b2f84e085b6c72456a09385b2db63f28575f9e7122c5a3ac8ae8a878bb849c04cce1
+DIST thunderbird-140.7.2esr-es-ES.xpi 497284 BLAKE2B
f274d212516fce96b839f71330c3400c7f7adac46f1bc146daf869fe51927d192d7c6cbfae1e652cd44bd6d66b539959c7e749290ce1636610649548f731e995
SHA512
09b2009e54ab6d572eb6e68aa1c7567404108b68d96562fc011b320ce168a3c73762e24a65c1da66fecce44df9ebed71009ac4db24e1f0150325a34c6a3a49e1
+DIST thunderbird-140.7.2esr-es-MX.xpi 490411 BLAKE2B
29f78fb94380f40565d9a182e3139b7a1d60e291417ff07bfca6a90dd8e43ca913697f6cd1913b09a6c472b7e1326dd75b851048da5f66d938848835ea6f8849
SHA512
618fcad9a3ec9d43559e5e9f41ffdc39465bbb0bcd923f2cdf83727f38adbda2d1cac321a9998466a83c50049b3433596059746f3ce84ab04e135fa14d455436
+DIST thunderbird-140.7.2esr-et.xpi 443619 BLAKE2B
4021668d7d6a0f0e71af989d3d6f9359d209c09d252b2599cbb9b781913ca6117cf5fcda1f7c7106a1d367c8c76403b5b2fac046d96a5a9ab749e338308b5c08
SHA512
0331064662e4fe89fd94b6db309e048788433ae7156cd544a3130dc7df8e813a94e9be68e5de7beaa61028ec831dca769d5bcc5bcabc31ee38541ece7ec088de
+DIST thunderbird-140.7.2esr-eu.xpi 473924 BLAKE2B
dfc02118883051b3feaadb048da18cfc2abad688b695553cc0e359e7b929b4bbb983b2e278022184c9b2f50b3758bf24b48623523a0061d753372a369a52b24e
SHA512
aa7c603458abe3b06278e91ac017ca8cf803e97994b3abe72538ce46b8fba6cf67182950eba1821f2a30143a4af5973a93744d1256efb9f1f677de311624f4eb
+DIST thunderbird-140.7.2esr-fi.xpi 475611 BLAKE2B
216cae4f701776a9b2857aa1375e76118d68a969a01c7331371b364c9bebc315a32d1e114c71e0f6e9677c727eca4c3779583e830cccfbbb7f72ebb6ba564945
SHA512
df9a187d1c3e5d98d0db20232143f9c21aba90965c0ccce0aa8545aedda97c3ad659c069d3933d061cee8a75bcb51be907139bda0bf8bdebc702ed799de0d1c1
+DIST thunderbird-140.7.2esr-fr.xpi 508320 BLAKE2B
e12b3300300c414b1f1898a50d1332c1adac68e1378160b34b3396471ffdea59643962764b98b06bac14055c28de247230637470dc6b7440f63e999ca65f1c4d
SHA512
348b6e38507dbe75609ce8bcae175c31460c997c482694621fdfc5367eba9fdece9d3423fc1de5ce39bce842cb7a5e15fd44808c737401199ac494f91ca1fc7d
+DIST thunderbird-140.7.2esr-fy-NL.xpi 490685 BLAKE2B
14e4326d28945ecc280b3c673aa0cc5e82798a4e18ff25d691f095bcd22ea78aa0d0187bf16aa4c933537bef9d55c79dace74c1f1aa8161be4d9c07e5ca60234
SHA512
539abfeb06a85aa67dc938418229f884661ee84c9c27a292b60aa01452cbaf690aab6514560b5e428724c656b4f411e305d25268d2ca0fc2af346998d79a7d95
+DIST thunderbird-140.7.2esr-ga-IE.xpi 376745 BLAKE2B
992f923b45ac2fdee9223ba66d605383879e6ccd56db47efc6875c2924478e8c5f2c40f200477055c1f5aebd390beb288d5ea96a738c7f21137794068cc784e6
SHA512
5d6452a0f10f120fd59cace797c1fdb85cf8653afd3bccb93584e1bfa42bad9d9ffee8a50abd1467b8634408452c5aff4f99b4b243a583ff9623574e38c5c803
+DIST thunderbird-140.7.2esr-gd.xpi 461960 BLAKE2B
ee7ff999c3d5ce93f63473c612835b996e70cd03079351ec0c06a3e2abbe4c1c2c3faba91dbbd17f5733ee82515991dd97a4c5e8f38088b0300309261f78abfc
SHA512
6778f815a7ef9fe474e636c3ba1aae7ad85bdfe9789299ed49b014a0c95de940cf79d87e3d7aa52b7065829200365cccdc6daf63d115aefa3ace464cec936eb6
+DIST thunderbird-140.7.2esr-gl.xpi 489346 BLAKE2B
0494e57845163da66d59f2242f0394d9ea137e9c2a2f14922bd7acc1a29e0a4f9744839bc167e57b0e01b82f463657059f4aa22e3b348458236e253265c92d5e
SHA512
e9aaa1c57a07dff346d773ea31725e382f2523e85be8b77f9a5b348b2e2c5a5f3704cc55b7cc292454a619e65af5e8f098443ab54c610023574ad45a5e94a085
+DIST thunderbird-140.7.2esr-he.xpi 443588 BLAKE2B
6a79cb62924482c16838596e625364c64f4dd893339ab3d6ad4dfa726b1fc0369e17930462798b9372ba4c36f0619d7c7acc9ce79ef5c0f9142326d9fa67e199
SHA512
fb16a81420b3aec51780d395ff35d152f339b0b58c02043bf23cfb76b69f86c706737ef4ac593c78e9ebc4b0809a385d77547478aa06c1c49494b5c3a753f23f
+DIST thunderbird-140.7.2esr-hr.xpi 470680 BLAKE2B
ce75cc413c66c20dab4d4ef0b401fee4f3246c44d5cb885484cbe8641f7439ea2630211e9a10bc5ea44c7be7803b2893af6b2e2347573180b16bc01ca3063c1d
SHA512
2a1bf39406ff877f56eed2bbe69d8720cd0b880916eaf4f1ced411fe4ba07873c1c3d2d0992522e21576823fdf24b5459c7a54291f25d7641c99524719b1dd0f
+DIST thunderbird-140.7.2esr-hsb.xpi 514934 BLAKE2B
e1166a9e42672df050e3b7437bfdc85fee8c4d2804de99e790c8ca91c4bfee8bb44a235cc40d73ad3654276c82ef1a21699b3aa69cf9874a430bb077d55f6bad
SHA512
7e83a4fdb3f2391cd2992196f369fb696bcb0ccdff13efb2e2ed774f68610d884e9923a4d3d5d7e00d2209a6ac9f5df246ff7d41a7d9e9dd1a5fe41005bdee67
+DIST thunderbird-140.7.2esr-hu.xpi 517545 BLAKE2B
de9a7328f82be0c0b8ed0248c04b4f95101bfdc0c8542f996ef071b582fa6b3eaae030a78c8b075b075676b9ce43be914b8669a5c62a520473aadd986636eb9f
SHA512
a1bd82a477ec6e6e0a6ebad714e92a762dd1229491adf5c217d44424745195d90b973e473ec01c63746dbcdfbcfe9fdb8669afaf0a381026407a61f3da855e78
+DIST thunderbird-140.7.2esr-id.xpi 467002 BLAKE2B
cb3c320c62f5df3d8e3ed5caba411723f5e17fc0f0c0deca9cbe7581de914c4973c9b36b13d2d6135c56d3c4a76e9fd31e7008d16efc562a42797ba4efc45e08
SHA512
8d3b29b175d5795ec95926f1c72190cb879fe78a28b92ba2bb9e50cda5ed4e2d5e6af05680ad44e5c2e9cfc652c49dda3a3c5c3912914f339f0b8197b972296e
+DIST thunderbird-140.7.2esr-is.xpi 482738 BLAKE2B
7d5a108071bd69b6b957e939211f22842d78510069fe2b30e80960080a32c6e456eb842ff919b8ad39e26debe1a0592cd3c31e64df2b15bb73c19b1046c4d46f
SHA512
5390ff269e0a2ea735baa6367a8fa748217fa1e0f7b398ab764919db79ca280f19cd079e8fe636b3c25bd0a3e6cdd8882dccc1066ae383e049a6675e6c8b1c99
+DIST thunderbird-140.7.2esr-it.xpi 488504 BLAKE2B
c53597c8e36a692e7417344eaa977a87103c2f69f442c94fa9b9d110edcafdc76d211ba9bc06f40696246306d7d744c22aff3043f4238b1957f039463974c9b8
SHA512
2b7a35f670ce706fa517b77e0d42ef355b144aadbed44f59f83cc63831bd42d8cac09a84dfcb782abfd8e4349724fd28f98d7efbd224076a04782facacda9ad2
+DIST thunderbird-140.7.2esr-ja.xpi 539194 BLAKE2B
be4bc34bfe12aa81aa6962e1810f9fbf387b188c4a4d1914a6aa4966f33a874b724d0b536f612301a7972574efe2f78bf196ba1a6630ef957631f2b5a368eaa3
SHA512
d51a3b1499c17cbf365ec3fcfffa96824bc989fde6773c1fa564d21b7a4ebc73f825353dbccc515a353338d0a085f0204cdfe4611d95e03c5d7c564b11439549
+DIST thunderbird-140.7.2esr-ka.xpi 554772 BLAKE2B
0624c1c9012593c59a811b60478a40b6102bd5431c8517764b2ed2192e48220f04a6176c8a27efd4966fc77bbfd0e52fc977227efb72a9bfc4cd8efee63fc58a
SHA512
67d8da0e9314cf7e737b2c78f893ebc58ac0ec567938431ec6da21cbc9a3ac6fb0f181ea408f032c9c28e55fe143138dc20583d5891a50979e021846be74ae9d
+DIST thunderbird-140.7.2esr-kab.xpi 470498 BLAKE2B
cc4c35bb809b340fc2772f5f5a1f00f64dbe66ef05a98a644a9bceb966c550ad1f4be73d8712a393b24b48cc112d00946a35478e0c7df3effa700528a33a8513
SHA512
f64ba37f7b9bcf3a3446be7f0c4cb2a3b827f40639327e5aefaa55acdbca371c00dfcc88cf62d42bac34be5e9a3aefaa1a56335061b9504d09ba9442e2f9d821
+DIST thunderbird-140.7.2esr-kk.xpi 573880 BLAKE2B
7dbfbaa3d117b2208b811623d8b635c8bac168d6e81198a8f215af21159703750d8bcc6f63fb2dbfc2027e49c2ab31af3537cbda243550080c445c2c7f2bf9d5
SHA512
a1dc0ad47de514f9064a1154634598a97ab030c432d7f8a7d1c5ef318607a1b5de703a18ab70282f6c3ad3180ad18705f5323067efa5b409b6bc1d3def802c30
+DIST thunderbird-140.7.2esr-ko.xpi 515592 BLAKE2B
ae6973d98f2ab8de1c7ef7cf598f07d563ace81eb6a9821e69a38b2eb0ad9d6c7717693ff90f53956b1c985e3a819a0c0ca0680d58d651545dfc0218453266dd
SHA512
415857e3410da0240df3ba8c0a12f0d1db6313772c6ece32d2ee25536f8d87fed6264b3c94a69fe3f3139b4637892ecb8f2c3851d4baa029e6b35841f8b621b6
+DIST thunderbird-140.7.2esr-lt.xpi 453436 BLAKE2B
d1ebb2b2efa7ee9e2d38cc34a5121b7ea82e6aa92d85149523cd2828272acc3a8738f07f757ea550826093fdf66b3b24cecc7c4caa9185779b4617c83fb01d56
SHA512
d5c724b3ff065867bd2cee2cc138b65c957d6c1928bb4f48aa0e75adbf64b8a6583201e543f1dd9114141be1fd205df09a05c1c6ebe01b1e8592fc35ad25ddfd
+DIST thunderbird-140.7.2esr-lv.xpi 392816 BLAKE2B
c9695851a953a59e9a48d405b9647b10e741ccd15b1c9afdffc32c938207c4cbc68e06a49c5678851d8892627e0c8e875c1aa3185dde6e2509deceed5f9548a9
SHA512
c2109c51253c8550c7c9a377b4414d03d2001dfce6724b5e7fdb870211e38c3713de78fbb385e2a0b5c452215853610d296609678e82a5cb47799e717fecd234
+DIST thunderbird-140.7.2esr-ms.xpi 352180 BLAKE2B
d684caa0302c7e271d5e99d6aa15a7071a7aaa745a2b0f4489ae672ffaa899dbbbadc5171b31de923cb133b07fcc141e8f63a1f9f94041363930f33bef4e9db4
SHA512
8deb706e338e02db4fc96f7295e4eeed54f98e3878466873b2c3f09d04a860eab9e04f80eec150185fc502a48747bbebbd726a49edc0b4d3697ec20eba82b568
+DIST thunderbird-140.7.2esr-nb-NO.xpi 476138 BLAKE2B
31d964b97a0347ca4a12bdc3665a1c6eb5a38b519fb78eb9bc221c781f315b7c65d8a3c227febf8a2af59b2580dc49a355e39edcf68f0ab8876e327db85902ea
SHA512
c1963c64facbc3a36116e18d11d15041f5241b11e376b65f271cf86ea943082f35a17956921e3903ecf378c62bbb0991c1e47af598b243bd8d20b0f72f9955d9
+DIST thunderbird-140.7.2esr-nl.xpi 482125 BLAKE2B
d9f970def570161c71f6d8350919f48597393a5aad38636180c5e95baaf633ddd5c61f4dab2d9f21909ed7f4532c9175b73ba1b971e5e6bdafafb2c9e901b8a9
SHA512
a497b1db1aa47d28018436a46623e167374b08acd61e5a4b8df1cb20f59454397d576dc459665b0aaba249feb486466de55b95efa4ceb9e8e62eb7fcb63737b4
+DIST thunderbird-140.7.2esr-nn-NO.xpi 479758 BLAKE2B
a56bf6e2553225b8a58da9a71154d060c27f3dbe24e0b8299ca545b8d918e55ef42366154c6d15f688579057f033f0a9cfe29cd6b6940ff413f67c357b3d5032
SHA512
09a29d08dae02bb8d3cd7f6c3b1bd24e5d336618636fc53d16b32320fc315d3f8028f2d62c9715b5e8ec22b624141b65a3d7b797ec793d58b79de9b0d8d5c099
+DIST thunderbird-140.7.2esr-pa-IN.xpi 435424 BLAKE2B
8a004c0f7226319df3801520f5fdaca910dcc8dc2287cbf2370c90aaf95b9fd827c99eb085f5b9703bbc32715c0cfafee48fa2cb29a900ad35f3ee1f4d46bff4
SHA512
74696abe255c237b56674e8484328e625b1c993427e6da08864845f2d60660d3e7e3a46c6c6e8bb35fc74f17ceb669a2723b98b03457d6f5f14230f649dacad8
+DIST thunderbird-140.7.2esr-pl.xpi 515613 BLAKE2B
a513362a381498880ed66398e11b81ea1fe90f708937da62a1f69ca3b95f6ec8293091290005fce47c25a2da81176500f71982520525c78a5d976c1f1d14ac38
SHA512
bd1db13e861a4b0312fed6c9ea0605048c4bdcb7f4e8cbb1a1b35f5ac7b16c4b2b58c040931ecc3be704ae44aa0e0aa431316a9b3a1746de2833855155c81593
+DIST thunderbird-140.7.2esr-pt-BR.xpi 490165 BLAKE2B
ffb7c68f69fcc2488f99ba8057bf5cf27d22d2720b3730ea99a33e5c5a0e466ecb7ac92da0f7543f6317c24040b82942b219985925fbc2c5b6cf45b9a1a795a7
SHA512
b8532b116850d51dd3c9bed73e7f8b3511ee3b30574a370216e0a2f7ff40c1299b76d63cd607938188ee00d70695825f75bb688e30ad8ea0b0ef0ed9e9c4db91
+DIST thunderbird-140.7.2esr-pt-PT.xpi 492525 BLAKE2B
711957ceb267efb860abc47d524755db899897d7e09314ab70753055aea78a23b3c8ebc70b028ea299009f90e4c8831bc3d346faf2d780dc31051fab3aef3fb8
SHA512
ea7bfaf056d804202021f752f5577e3c32a46eacf8169018e291e6f9e5f22bf8b823e8ee7d1ce906b99b802fe1afdc05d14fc3084cc109a6b4f7406cd83ba64b
+DIST thunderbird-140.7.2esr-rm.xpi 487883 BLAKE2B
4ee4c754d40ac5b4c0dad6c1e7ef491f5d26248dabb4f488616fba43c45cb90177a4e190b1851989221a3526c035abb0f18b885f6928d275ce561442c650c352
SHA512
051f7fc3d91295d7e24659d719ea0e67d010b53b3118597fae60742f36ff40089e70903613347a9b641b9d69b6b9a34654cd9588f851a0aa4f7a2674334d41f3
+DIST thunderbird-140.7.2esr-ro.xpi 501094 BLAKE2B
0c9a5230d9a96f660ec425d96347b174f9250bc3740b262e4329a1aa011b9340aadee72836f064447a3dd12eb98a8e7d1c351b4de2ce612d70646fa25e5d600a
SHA512
2c83593e57ae01fb804ea6b4a201dfff9c486236e9ef21da5ec9db4a037c9e0eb3659b2834468241d78d533f1cd08a74a643429024db391c071737ee6ab0f133
+DIST thunderbird-140.7.2esr-ru.xpi 593285 BLAKE2B
8a35f179ae7d7bf4f16f41ef4f542ada9da921105ad3a14af0788259d640770529ca7e8c3d188190ae4c025c70a17e2a6ab8ab485f0010bd949e8a41af40057d
SHA512
a56335103eb94f48917e34a903a2eda8988815e79c9a8d8ed977151e3e5d9b1f0ba169598483090bc80f07771416fed0cf2c6a6a95d3cce09e37c1cbc7ff176a
+DIST thunderbird-140.7.2esr-sk.xpi 519389 BLAKE2B
857e50f064bedd5237ca6f116294b1851b974b28fd68fda36856c3b2ebdbac38caccb651e6353f2df97d9639913b5d25b382c1c4b604fb73259548c1e7f80680
SHA512
413f77b88b1fd7ce14c6cc84c12dea2fe2bb75da16a80b5ce9acc12c0a3107fb37fabba37f2efe451d1f9631dea41533dd365cbfac74eec9d60335a85bc7f657
+DIST thunderbird-140.7.2esr-sl.xpi 485961 BLAKE2B
d15151b40e7b4341663d1bec2caa2ec331d280ed4f38599309129d330a6012a588ae68b3dfcf381137147494d288cf521ca27052c02389b92e9254ba9a8b162f
SHA512
b75d4936e4b397d6f132a6474040e1b9e1db597fe522028f50f08331e3dd4e67cc8bca30578dc3b65a0aad51b602001c4cf9c02a9a46282acbe41197e733331e
+DIST thunderbird-140.7.2esr-sq.xpi 506268 BLAKE2B
488cd4e89f2948c1e6fccc3abb00bac5532975b35e201795e89673eae183a171d319bd3dca0d834dfa77e596a2184f2102b51b30e8642cf68f528ed555940b4e
SHA512
6f4049b39310af2d33b5b85f8c2bed4e3fb562b044951324d569a4fe663aafc5209089f31b2dfa075a4800aee2df79d902dbd3c43c729ff79c17d297b82c0c2c
+DIST thunderbird-140.7.2esr-sr.xpi 495992 BLAKE2B
955dea82680c7ff505496a8bde7110e38d95e8c5ccd35f48f870fde9b97e0e1c3d5b3b7d646796a4c83f29e1724ecf5d299118451d753da150f37ef2a5eebb9b
SHA512
fc13368b3df8884678b2788d17da90394b6ac4625726abeab49169aab78a6b2ce3ffe6ff7bc5af0e26093e686bcd467ef89bc43e59323053860893207bb9adb3
+DIST thunderbird-140.7.2esr-sv-SE.xpi 484419 BLAKE2B
4509b7effda6fc9d4ebf978704b2f50f68a94b3d52d6b55e24074af69f1b31c763941d9476897ddc9a0ce202ed88a91860c725caf2a173458767928cc2b065ab
SHA512
810a81848615f90877dc2e1b5b3f65d1a5d9c14ba676711bc9e34a709e1c8f7e98e590d3daf2ae88035de20ab19ea162eb100edd99025431f3f8a9e652a6e35e
+DIST thunderbird-140.7.2esr-th.xpi 567947 BLAKE2B
fc8da94032f6ea87b2ea3878ea5d248cc6b9055d27d1993f093d0416e43c8957ed5e4a20a6e1a1e40c46ae1d5cdc3c57af0a0ad1bcc550cb786eab8696fd6e36
SHA512
6b214a4b2e3d78002c3fada93a6be6cc7e49febe935bce4955cbfaa1ba004ffdf6d64a017541603a1e0456f965fdd3dc3ea53c52b642e96136baf161f9463fa4
+DIST thunderbird-140.7.2esr-tr.xpi 496182 BLAKE2B
8db58aac1548e334499a4ba57fc71fad733db9b92409e974dcf5a5d1cbb08db11b1c276eaf0ca0cd55f695fff611c5b86511c530d52403ee29cefe36443c8a1e
SHA512
c18b44d233846cc96d431c1ba1a45da36847bf6823be294fee386f65e68a27296cd5c0c6a227376af3da483967d72aec928a4d81b5370171d783e77f712e29d2
+DIST thunderbird-140.7.2esr-uk.xpi 582152 BLAKE2B
1040091655eae1bdc6da2b1cd83784b33d446eb64c8b9e05a3594cd61886d2b5d7f143a82ef85edf1d38c95bc2155c26ff0bd67f893b8c477d50c1aeaae6318c
SHA512
30c55a9f09f5c9cdd5315d553a296323aa917711a0fff3534d909f63c77f4bfb6e34e909f513442c166fba130d1927ffa92707d2bfe00cd69d2b8ccf432aefa6
+DIST thunderbird-140.7.2esr-uz.xpi 355268 BLAKE2B
a54904e6dfb6b14f956de5bac4dab49894221ae64779841977c3ce1113eb853e55e331df18d63cdf5975a2227533a59bc9b1093dba56ac4eb3140ce39c23c9da
SHA512
d22273157fe8268a69f46d581d2e47d2eb9961ac72a0cf531ea1c68beb5858732e860e984616a0e3467b251c9311860c9a8c51027d97035f43e0c5eef1fca79a
+DIST thunderbird-140.7.2esr-vi.xpi 518884 BLAKE2B
046abbb23a4f0ecb23a693b1842efa57635a839cbf897dc0aaf86ec672a111c1abe07fee7a090da5a93f6091e62a4af5ac89458ea70ac2a1746e334b1a2b5f38
SHA512
0fbe36f05127e6ba8630e7cd7e821fe7e153310acef3b3483cb6e2527070618f40bedb920a19416b2e7db902cbdf1fd7fb55ea0d8135794b80e1ba40c1d3bf2f
+DIST thunderbird-140.7.2esr-zh-CN.xpi 507839 BLAKE2B
7a32d22632c722f2a9f268e2650a4751918d59515673389dad23c0c4ab02ff12b559987cf74f96f7b3f4f0a50346002beb50e1ae8d8b29c4de7ada64fc558e50
SHA512
f5d197567092fd05479f9c0af42d0ed92e6ecccc2885577082e800163baee9262257c95d2a15a528ea90157e8410fa5c2e76e507c41515b8e720e0df677cf28b
+DIST thunderbird-140.7.2esr-zh-TW.xpi 511432 BLAKE2B
43764d979777ee1beeb4a4a00caabbb21b314533899818b92268f48b239007826a3cb454a0e81a6fc2b9479bb9e8c2203b5442b8fec578f7abfd4c97a8e16232
SHA512
4ef6688bb2393508a34dd569af2569d4f9faffca92bae5e2bec0978d576a8a9b7733620467115aa42a5767f77ae0ee06b1d55775256fb4324a0d0a62b82eb2cf
+DIST thunderbird-140.7.2esr.source.tar.xz 758933224 BLAKE2B
880918c63e4c6750d8dcfc0f3f1cf9628c58c99392552809319a635c3581987b916a186776a85398b038a25769c65a3a8ca71d307c0b509090893106840f2edc
SHA512
513bcaa496f987d0f3906aeb6fe3ea651331470646b0c58479c91bb2c8eb52e389bc8aa646437a03b611ab78bda1df7252545960ffe38086d1fc462e65421819
DIST thunderbird-146.0-af.xpi 312102 BLAKE2B
1002d405b855ab92e382ac171d078a8cfb1d40c502d71865906c1a29e1d3e5bc3b5dd5dd3a623f769dd8617872361808a64aff7731e9ba476a2fa6fde2e3628f
SHA512
21a4f2c6241d9252cad85b8a5a2111afb749dfb791abaa1f505ac433e4575247e7b1f3a47663f717e8c791f3c084b43bbb52312dd75787d7b0badbe243ff56b7
DIST thunderbird-146.0-ar.xpi 433915 BLAKE2B
0fabb128da8e4685f489a928c38437bdb668a0c7d1c15b94c68718fc1df26303a5cf02d0d722b5ecc74b9a1521ca394941235647b8e6469825f3f13e3b57d6d1
SHA512
27e9fffe05fc2e52b902cf52399847d6f313dfb6cf7326e4a5ed8cdde55cf87694f39ceae38d5c7b680ede2b3bb1b5d7685df0e8751dcd8497ea0abea4451159
DIST thunderbird-146.0-ast.xpi 336128 BLAKE2B
92491e55d73bcb204a23aa283d3b16d43fa0038bb24c6fcb0308d2c1d2d3017802995ff14a617eb9c5d5869943afc31ba1c96aa06eac2dff3989e9e41c2c9a7b
SHA512
f74087a0cebf61e8dd5fc86d31ad1c9786cde50f312f40664e247a478e7a1f4ddbe547af529e1ca58cffa21e711b4ec6d61903af62d306394e490e9353486b5b
diff --git a/mail-client/thunderbird/thunderbird-140.7.2.ebuild
b/mail-client/thunderbird/thunderbird-140.7.2.ebuild
new file mode 100644
index 000000000000..6ff755a1aea7
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-140.7.2.ebuild
@@ -0,0 +1,1160 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-140esr-patches-05.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz"
+
+LLVM_COMPAT=( 19 20 21 )
+
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.82.0"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's
rapid and esr.
+MOZ_ESR=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/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.112.2
+ >=dev-libs/nspr-4.36
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-apps/dbus
+ virtual/zlib:=
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/libdrm
+ x11-libs/pango
+ x11-libs/pixman
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-76.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+ system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-pipewire? ( >=media-video/pipewire-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"
+
+ # ICU's subslot change should trigger rebuild on Firefox if it is
updated 77->78.
+ if use system-icu && has_version ">=dev-libs/icu-78.1" ; then
+ eapply "${FILESDIR}/firefox-146.0.1-icu78.patch" # bgo#967261
+ fi
+
+ # 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
+}