commit: 4879cc1e420e73db5fcae1e609927b13f7ddb7ed
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 17 08:52:29 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Sep 17 08:52:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4879cc1e
mail-client/thunderbird: add 143.0
Sync changes from firefox:rapid, like python-3.14 compatibility and nss version
requirement bump.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 66 ++
mail-client/thunderbird/thunderbird-143.0.ebuild | 1154 ++++++++++++++++++++++
2 files changed, 1220 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index c50fb9514f33..038406305b74 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -3,6 +3,7 @@ DIST firefox-139-loong-patches-02.tar.xz 3096 BLAKE2B
2e9c0f3dac780c808a13f70fe3
DIST firefox-139-patches-03.tar.xz 11536 BLAKE2B
a7610d1348a2a4d02305c8d694a1648997040c69cb1445b901fe456045d0b1a73f28b0102ed03d34f70d8cc1ea9ab0245599a104b0063c7fb0dcb5a8fdd6f60b
SHA512
4733d34a842d525824fbcf6ef5d8f33e26b4f37a16aa87043427eaaf1e0665aa257cb8487bd692e4fd095c2a78553ab3f0213208124c3455e534394576fb5614
DIST firefox-140esr-patches-01t.tar.xz 11412 BLAKE2B
fc6e669c1ce1125c1caa1ed2b9f9e1ae3ee8cde22cba84cbdd4048c926112c6bce33069c3ecd0a09fa31e3f4d294c4aba26fc6c502a91a1f840d54cd2bbffb2a
SHA512
cfded87de70cbdd243a324807248936d7ca817b82bb9c3a70117a52f787d4b12b2d242fed03d99ea35994ec722673f0a57138d37558e9a7b5f2ea1061c9395e1
DIST firefox-141-patches-02t.tar.xz 11688 BLAKE2B
495049551ac01dabaf1fa3d20b612731068cee991e0221c245f54b5258c86f817846ecadefbd425da7df360d4766c8d9fd114068692daf2a13f05a26235e5ab7
SHA512
335fa3ac8c5161bfe4bfc9af75ff8b32e651cbe01526680df11dfa022957bc3104e3a475251af6dea0fc960ae0ef1bb1a195932b49bfab7a8df0695c1ea65561
+DIST firefox-143-patches-01t.tar.xz 13612 BLAKE2B
504f8563092625291d8422c53e965e6a269ece38490b4ac8d2b30615a70de6abb157a3a9c13acbd32cd3587a02dd7b9362f45d17a8382d96541344b3278b4d97
SHA512
42431fb24c95934f8bbfd865258db4a7cd160a2a4a785316e5b9ad204e4bcf141ef3f6008a57d9a20c9210ca226608141b255a18efd3f94d5ce7c0e05c8ad511
DIST thunderbird-128.13.0esr-af.xpi 534911 BLAKE2B
3b167ab88316ca54c392f000cb49a0e8f69d5e84ffbd4586148a8350af21ec59302d6e8c310a067f08dbb1462f90e801f1a99481c23508e1c9c89d143ceb8ba0
SHA512
4ab4dc6f624f98460d5a135aed856ad3b6f49dd6f52359c5ea5e76a88f2cff3cebc07ce49e12948451ff1b5c5e6d2e7fa702c8aefa8bd61421e83b2d4be95a74
DIST thunderbird-128.13.0esr-ar.xpi 686456 BLAKE2B
e67bef5615435f6985bdd56a5b748a7684b00d65a74291c6c43e101df614ccd12b691b8f479ded87330557043cb9053a9cdba9f0cc57e2d3f488ed530b9ddafd
SHA512
7afe13fab73643179700526c76d078d3241b5fe4606f3321717eaaa84344d2661bef5e52ce3f5d146e01f32f51f219988c324bd9c986f57ffdd7912a251ffbf6
DIST thunderbird-128.13.0esr-ast.xpi 574780 BLAKE2B
e00eea3465fe1247ec0720b8ab9186175d6660eab14a2697c635fb20d896da97c3d5eee9e3a86b27315d4c86473817ded371c5ee93d20fd8ff9c125b194caf96
SHA512
71e6f51194017d90636356951c007b7215ed109b3f35fd4fde2ccd2a281666bfd3f01bc49ee780fc8b3ac251479a7f1a1a225bdb6dedf6024ef29841d1e7ff59
@@ -523,3 +524,68 @@ DIST thunderbird-142.0-vi.xpi 520411 BLAKE2B
1437728b4bb02b644ed54a7ffa2793d91a3
DIST thunderbird-142.0-zh-CN.xpi 509610 BLAKE2B
803b2102ddbb53873083b33e460871838dde1161cb4f18e2979b6b9e5f736881cf268e090fb3cf2e5769bf2cb8163a921211a661b49006c4af2a330679394dc2
SHA512
e43bea01ae062bc917edff130f12729d8f757d020afb16348831e1ab92619790ca470d7adb01fa7df4f1d3291657a3df959275085d0cb33018c6c31b4e45df43
DIST thunderbird-142.0-zh-TW.xpi 513167 BLAKE2B
44c06538c52eb79711bdce16b00d4d720156d9c9c81790499abbec31c8bbfcb159c067a60225a1ada922a4166888d8219ff3fe4a75127d3441751e0a8c0c96bc
SHA512
d0609328f44ba2de9050a370c461e76b2402f99624c58ab9032771c7ba2bcd9ba7abd0c0d8b04a27c3272ede1a2f1041eabcde1203fc643a4e196ec1c6e7d7c0
DIST thunderbird-142.0.source.tar.xz 766056040 BLAKE2B
23e4ffcaae73ef76a7baa8f357a8b9f17595e214e70230e8d51a6293448cf795535f1fcfc2300df3e1706e1e2bcd8eb26dedaf65179e43b2ceb7df21f2356e37
SHA512
9a871846fc395c69688310dbf4a4569b75d3b2952a34ba1f7dc9ef5a60a34bd740087b4abb2a1a4d522dfa9d6640f2f4fcc9972a2b72160d1ed3e0df71c2901c
+DIST thunderbird-143.0-af.xpi 316517 BLAKE2B
6f9ca0448d618676f6c58f3d3fff9ab4ea83339e78f72bc6009adf2f9132656ead0274e7afddf3269e88241934f60767d33c3d5d5989562456a55a79e4253641
SHA512
49b5a6902309e60d1acd9dc405f5b8f0113b031ea2fa735b23cffee33f3dfe5349094837ba8ceb01f1ed0f5ef502ae171a62f7865daf7bdf9dc38963d9c9e5f9
+DIST thunderbird-143.0-ar.xpi 436468 BLAKE2B
8192dad04fb442c1b552f04f2fdf401ab74e9be767eaf574203aca67d25de388884d5c957b7d1e5bca48e6977ae4423bfdae9c3a955170c02a87c2bdfc18ad0b
SHA512
c172eff80eef1e398e43672e81f3a937a2dff352aad93133d8c50fe41867057bf0f971c4b582941b467cbbc82d1fd6f11db55fca2e7d8ab8963288f0b21757d7
+DIST thunderbird-143.0-ast.xpi 340775 BLAKE2B
bff6cd1452645c28cc3aa891cc2c520a012c5599f378e4af10260d616f8cfea886cf7ba7dbf5f49eb406223722a82e1ed176b3b92af9bf7f59a43450c938b965
SHA512
efcf7ace9da77ee75af89f6f6edad613b374713f81f54487954b663cc38e45dc0dbaaf4502e4a5f454a657e87d348b7022d0456d7448d0118c7c7c007e59ea25
+DIST thunderbird-143.0-be.xpi 522891 BLAKE2B
e70abd51e66fcf4a7018dd786e4d10116343a235c190a2e1a92654cb2b96adf7a083923559bed7aa712ef01eff09fec408d35d94d6e9e03b657d326c5707b1b6
SHA512
c40382e8d78562d36d51b72c14880dc47f1ee4892d09557fb51d3e4c59028209b9a865c8870ae5220274d671874e8afff9cded061cfbd0c4cf349625c11cfbb4
+DIST thunderbird-143.0-bg.xpi 540489 BLAKE2B
1ce3c6d4555a7c77cbaaf6a8c4219061cdf33f631a9b5abc15907838769a70270f88e69c574e468b7deec14397057ca1cdbe6991cb78113dc823a0f58a57c47f
SHA512
1b759e4948876a0f3a8a5d861f884d1d31fa25424f63ffc01dc392c8b46cbb03cb0dbe6cb4c865d9ddfc318f4fcae77fbe5bf9221108bd039ed7d75b0d3f1002
+DIST thunderbird-143.0-br.xpi 403082 BLAKE2B
d42ce305dbf522924611d2c23d24cd444d5003cb16b891d2ef9939d724411f76cf2cd76b3889994a17a59bc0cdd3716d2a109317d5da65c54f05da8f45423c27
SHA512
bba940bf42ce8316db814571ee638febbb289750286005d56d93e8762cc7109537786f1719f5b69c3cb2441da175c01494919ed85291b6eb12394c940a0abe50
+DIST thunderbird-143.0-ca.xpi 440886 BLAKE2B
ad51db6bda2d759fc638be98a4002e05bf6fcd0f97f21bc535682576fd9c666c77e09cbb732c043badc6c70dc76ee805a8b19f69ce3a5f41ffbdfe6799ebdcd0
SHA512
483a7308444f81d7b6defb10d74e6fd83fb30472956044d3b97cdd5c725fe9b634145caaada30c399eb2ed0b26a1450617832b35b482d23c4ba7fbffbb11e74e
+DIST thunderbird-143.0-cak.xpi 418353 BLAKE2B
08d6ac5b1891dc7685084c80dc67be7324d90da52068362f7a90c9be85f64b7d7b0be56733efa4e2e94307a11d2b6783f7a01a7981ff890ad99b27d1a6fa52c8
SHA512
eda148ab813883ccd11d106ddded3f10fe5862263e0fe5eb6d9874241156ce4e81341cf1ead20520cf08dea510631ae0d85e52917837af39cd365aeb2f329d8a
+DIST thunderbird-143.0-cs.xpi 522282 BLAKE2B
050e4f9499de64272f4aa69f28e8ed97df895fd4a092e93002f1ef48c48966fa6e3b5425ea02f4d369e9eebbda1e8db1771c888f2132becf113c4c2aa41705ef
SHA512
00657804686b814dd33d9baaf612d4076544280bfcd302fec38b6329b9c469fae9d96c7aeebbac917968073cd872ab5efe72054ca5af04a86cc5d5206122ec3a
+DIST thunderbird-143.0-cy.xpi 490221 BLAKE2B
4979783d0b1cf2c88ca948f77b8e589bfc0710c0b63668e7d9ba21b013230e580c5c4964fdeb9a3f91886ca8c479ed5b706090521bc688ee27cf067b4d912aed
SHA512
25b9f1e21815e39bedcee5f89526fd58860fdfbe55ea88a00e3710a2e888be48179f9159a5e3cd940f1250c10aa77a68cb998555cead5fed25eaa510d8704640
+DIST thunderbird-143.0-da.xpi 478866 BLAKE2B
d134d8a6bcd7fb059ef2a226d97b3ea5939eab7bdcafd7ebd6b10d650826d538d2bb68ab9ba1637843050d96e7abbd20773cdcd2ecd21879d76c7a48ccadd06e
SHA512
3241fa1bb27284a51a45f65e756e7c1224732f55e582ca70afc2e68450568e4567b35fc390d90b3493850e9b7b132e1d9a067ec15607dea30f20b3f892473fb5
+DIST thunderbird-143.0-de.xpi 507586 BLAKE2B
57ae4c1da010635a96d6ec997cc9bcfb5b1752ee54e36f21302967a07d4601497edd085cb3b672677193611ddeb99937960bca7296eb6f4832aa5c31e9887430
SHA512
c4ce3ae515df8cbd773957459ddf3ea4cbc1addb56026cdc37e5505fd30a08aa7e6444d94dfd144ad4a600152d75b2ef69abe785e525c53b8d00fe9446774fdc
+DIST thunderbird-143.0-dsb.xpi 520441 BLAKE2B
c0607d5b26fc48804a22a87b5c556335911ce4d522367da2a669e2bcbbadc1d78cacfec5228f124859ae9e35233de21512b3fde073d4828a9c730eb1ced6c52e
SHA512
b4ff46b06caa7f0dd2dacf18689ecc0d6f7ace0a23fe5577bdbbc26be9dcad70fe84cdbed3eda33581e6e21e6d8f8638b88163ad635592f65a3674213e6963ab
+DIST thunderbird-143.0-el.xpi 611771 BLAKE2B
ad0548b57478eefe21ad7c9039a9b6d6b68a2fdb801642b074d7d1704b8ba7e7e3e298dd6f46736f8ac503278392a8e130d78222dd342a72ca95d95f06b1336d
SHA512
15ff2dfe9fb14ca4c41231beed3ff5a8cbe1d117d8c81fd419a62d630dc74ab7552df2dee51a0dd721c27f2b79bee904d789bae10cfa99a9c90dcbf644b32ae8
+DIST thunderbird-143.0-en-CA.xpi 454217 BLAKE2B
31affa1239d126f191ac57ed16d95e4879f3410164ad42b53fb7ba92552a59aa967b1a4c604f6d3a67373ff96ed2cf0364408f53ff43385e04f98fa60dd5cb02
SHA512
36d52b10d68e86e9ac14ffc2735f19fd1a30fd85826289282537b129e9b52a636af9cc861723b0dde93cc0a67fec821410d73c9ebc04b2ebe4199971732aab7c
+DIST thunderbird-143.0-en-GB.xpi 454341 BLAKE2B
82968b0f5926f58a93c2f82bff53e752b05a3a04aeaa0218b3a8b16458a98f97e8ff16b08c63f579cb32875d4346b0d49c977cdb8a9b49b490112ca937f34c37
SHA512
3a4b5c40fc490a5419b24c858c54b6931f1c1977c4e62e175e8cd81e04e06cf5ff627f4417b17d28ab90d5e6cf183e7f5b565a0b46f67732687a7301cc06cad1
+DIST thunderbird-143.0-es-AR.xpi 497817 BLAKE2B
8fca84d14f3d733c48133227f4c8af87748579e2fd1aefee7c14c000d1ad508e9037aed9e0265686fd55a2cdfb8fbf0c86ade15d9cc703f9ab404b55e8b08d29
SHA512
5a4c40a41dd188b3b0dbd6bcb5a682e75a1b0210f24a7614b2e1fcf5a2e984fec70f1ca5a036b4c3a35e24da68179e346a53b7a8f6e80a8ec2f071a9c8933968
+DIST thunderbird-143.0-es-ES.xpi 499025 BLAKE2B
7f9fbb8a0fb66661fc9ef42bc57c919ff8c85c6dfac2c1f97cc5185c135c9773f050ee1d2ad812939aa21d50bd978bd7b941c3ab2f20d54650a31f8f44c1cca1
SHA512
dc32029a08b5c1adb23aad370fcf990017caaefeb1fc47041db8947d6e783b38259ed611ec7beb5c8ec96f0691af1c41265a0086fba89dc91719890d124c1dbc
+DIST thunderbird-143.0-es-MX.xpi 488593 BLAKE2B
813e490fe4894f231dea4cd6fbdc62ccc8442621c4fe9e9b91d51623882bc069e045193b93a7d89f71187fb09a900a4b807e27d8a6caeed763612523702bcc45
SHA512
d3661453ee51c81079a55dee53ddd36bc2c3c44d168da47248de5fa7184dc8169816dc4d0facd3a537d7d363a487f8f7d05abac1b12f433d368e093de2597d0b
+DIST thunderbird-143.0-et.xpi 443862 BLAKE2B
5dc323afe48be45844786c72e0d1e2591180195f937c7075db4eca4ee040a00be130aa93c00901c33f80b66285cc19db605ae464bddb4cb0548bdd7fa8d5d60d
SHA512
d75e6240d307157c299486dcf5a5bd341ec7bb3de80153260a13aca008d04b8fc1a200bc9d97d259ea454aceab78a33edbbd39568d9efddb8eb915916cc907fd
+DIST thunderbird-143.0-eu.xpi 475655 BLAKE2B
3193ae5bb2ee0287078eb9a04f6c39151149c733db62f0dd9c872e0864ae5e24e68a9b6cb2a3fe0f6fc2c594b9c7e16482ef325463b63e65855c57bd20f99644
SHA512
61d7c4691f03557d997a4d2a83955e68814091cc92337a00c3993fa30fcd6bebdfb88c6e386ddd5a95d6e24def9085765eea54066fcdc3fa9ea8f8905193f11e
+DIST thunderbird-143.0-fi.xpi 477458 BLAKE2B
14d38ee547a33f7b8e8df285090ce459804558f8725376f0c1294683484a73168df256ec2d089f2c87fda0d3a9b9ce9989a1fc5ac29a2c665e39256dd4da12c1
SHA512
58cd05bf61531ae85520e01c4925b64835a0a176a8491a74b6ab91bab64234dbe944ba7ff7466bdacdc4c637e5c4224c92723547a3e423f6802c6fe4429bd745
+DIST thunderbird-143.0-fr.xpi 510825 BLAKE2B
a5d1027a9ca18a1d6627bdf0eba0a88eb1193ad30ea9fc2fda43b48ff1530a2e1a0804727759df6c103f91c06af2ede26a406ae8ad69ed9b338c2b45be1d8950
SHA512
6b3e5fdf41e803cbcfd7616778f7de6438e578c3f4e13d6e5dad24386e5fb54b599212dab4dd8960abc83319e5a5182e55474e4493ac39cef9735b799bb90c59
+DIST thunderbird-143.0-fy-NL.xpi 493035 BLAKE2B
cc3afd88126f61fa325826ad61ecd16bbae5d4fedaf505e56dedc1c413a2d2cb43a2a55f1d924e8dc632e12ec9176e608fb504e0a2e112c0c7d37586d7ccaf45
SHA512
ff9fcc9f974120a9587b106633f8ac4cdbfe561019de8a1a5d6fddc0e490e5f3d866ddafb44b27ba8e1bfebd076f89c13a5f55b810eaa093fc9348ddc5e1ff70
+DIST thunderbird-143.0-ga-IE.xpi 377108 BLAKE2B
a11902850286da36af65cdc5a0d55b672d0a961efd5f253ea7b9c18f6e47f68ad9847fe1bdde4de3fefff39e37d4075137a9a4ca7f3251d9f0211dac09e38df1
SHA512
c573178d624dc744d53d55453b7a9d4e5da42e86a7441d45e02e2f60505dabcf9717644bd1d86352f3544147f95a37be767af812921ebd8be2e58b439f112e38
+DIST thunderbird-143.0-gd.xpi 462254 BLAKE2B
de09eee3983e4fc927c0fadeb8b6a8aac0cb25302dde874e7146b1dbf186aff4e72046b353d0a15e1658ae309775ebdd563c33290706d7de8a081df0fff26d46
SHA512
8e52b770d40f8d958e89f7965ca649a341f5017090d3d4e333cc5546b0a94e600780988cebc22ec1205d8ac15cd316ec36a50be40f97c2e4b1509f327867bbb5
+DIST thunderbird-143.0-gl.xpi 491176 BLAKE2B
ce7093df9c988f913ec540f73e6ba000b0f6d9511b0180b4ace4c428be167a61cd0d74f55221f90441e3ebf7afe4d45935ff18f0f7cf92d2288bd9aed71c3c79
SHA512
ab35b865069761a500929bcbebc1db0f9418deb31e27f0701c36ad5ac2e3a492e9e1a3f022725616df4d7dcc382c9fe57e6695610f77a1fa7a9c9c9a607a03e9
+DIST thunderbird-143.0-he.xpi 442721 BLAKE2B
001436311c9bf03dcfef7054d43cb536500e88ae66a9507971250bb2f3cd377a857b03f44500b989c1357c0006c5d0a9b08dac8e5d839b999a866bc2b9ebb35d
SHA512
03c24ecc388734f1a21b36db018b05e15009540a97d6c5f8ebc71ac31c8443197dfbe534fd68a37a799850ccf44c2ead23faa4c29804e9bb856ca4948b922870
+DIST thunderbird-143.0-hr.xpi 470096 BLAKE2B
9e00541d1cd0b75a2c3106908563fe2019008b52b9199b0bfc3c0784d325fdd214158b62438b87cb65b2312ddcc3ef608a758cae54b7cde35c6091a66f79ed08
SHA512
6b19feea222d51df933a8e06bfc84a30013c57453073fee0a7b52d5930611148b7e9153252d041288bf943a76df004f01e3fcc025bb309d64a40a304b645e28e
+DIST thunderbird-143.0-hsb.xpi 517494 BLAKE2B
5a0ff0c19ccb8c0760f4669e6299039f1469998048efab26809ddb3dc41921667617be940d71f2579fc4406b2c605483066d4a29d8c13f737165a7adeb82d405
SHA512
f259c807fe39431c405f5d0d40e9238d733ce49597cf1db4d58f995f1cb2cb42fbefa496ed456db2fd40e844e84a1d3c52f3388713e7ea4e3ba7f408c5fd169f
+DIST thunderbird-143.0-hu.xpi 519876 BLAKE2B
6464c35d7f41a957dd42c27fa4f1352a10f86704899c01d68389b1127829201839bed2a8b6fcefbd0f9963f82cd96a6a98dbeb1e18908f6ed9e7c594d71b80dc
SHA512
d80b0fbd5307b73e56ecac39bb5e755359c1e39701df42244c36fb85910ec2a7e24c4885a4cad6d8fb909b8dfe4f2e08b1d25e7b711d90548bd538eb644242f7
+DIST thunderbird-143.0-id.xpi 466271 BLAKE2B
f6e9ca0314ed8221c64577855fa5db921341c22c0a03ff85cf2922965b750b86b2a007c0dc435857046864b2543c69416ac20d6136840b7747e19b9e1289f6fe
SHA512
274ad5838c678c16b47ebab99baeee8ca65adacbf7dcdabde6d5d94aed72d81c9ce17e50f245ad76775929fe84e4231b37fe48c8ac6d119403abce30f17866a7
+DIST thunderbird-143.0-is.xpi 484307 BLAKE2B
83ca99b0d623a8c68311dfbc7d29bcaa169ee907559b0da786d41710c5b9111467d8f36b2424484a7cf91e684c494d013ab91b95411bff47b88a3c74bff50e3d
SHA512
c73058430115ef16848a5f8107764b3ec82cf556e689f9174fb916fc10801b574662e3d32fed6c20996ebab99bddcb85bd0ffdb2ca3ff25a3a3dadf24f7d47c3
+DIST thunderbird-143.0-it.xpi 490841 BLAKE2B
46223d4fc8e82fbbf027d621a93b5e5929169671a9f9be9db4c13f6e5fbf1dacfb5c2a612368bea1d07fc845fa85c0d1720623ba0bd723b3bed3f5c5b4d6466e
SHA512
e09be77a94785ff07a0187a4764f20499a112b4978a67526c7d9acaa5a0ed63d84aaf2691baefd44c98dbdf4c24835c5af29d7eba2a2cf593e811b4098cc620e
+DIST thunderbird-143.0-ja.xpi 541722 BLAKE2B
1d84ab0123a2c40d6c3a3bbf865d701e3d1b7a10cdee737ee04731a440e89d1455d3f3fcf1f5dc410f4109847137e43e7c9115a832306ab3b7e181412e4ff2ab
SHA512
a872e6a806d498a5fffb3550f09c2f51191d473857877fd8828ada6938d4a9adadf79d99e5f223385f11f406bd668f197896e09d0fc57214e5757b5232b606df
+DIST thunderbird-143.0-ka.xpi 557711 BLAKE2B
22826c8a7393c56af7734d280bc6ecc3ccd3fb714314294c5475424bfce3e5f667b6d21c1ea6fbe51ff91dc17c0c7972577abf0c2ea091d5d41a700c55fb1965
SHA512
e4ee82fe0689bcaad503bc630f6e89c8c934ca4b9139b65cd974cafecb55d7414d49756d89364b14b6ac76aa6fe628df5469cb5347ad2f026e2d324913d26b62
+DIST thunderbird-143.0-kab.xpi 470205 BLAKE2B
ba99c5915f539e18a6d9411f12964031681b6043058528ed9deabf2cf21e7c3c7ae81bbeaf5cb28c76b337955e4cc237afd452c04b7022e6a686a08c03832d68
SHA512
d2920f1d8ff3c74b92e261972a5ab4183f4c7408f0a2c51c7a475aba3842b3470cc56cbcc9cdddaa5d0ac037ccd8239999de342de60fe54c5f121cb6ffa93554
+DIST thunderbird-143.0-kk.xpi 575770 BLAKE2B
8205311c5426b0dc392cf6cf2720cebe5bef2fbe357bc95f09077778597db7f8faca71f42db2564d4d2b22e32e00b2f35c027eedfecd446bd9eec7604d3e92bb
SHA512
aaf41aff6761648d224098653e5c70d3840e135191a8ddd450a531c72a2d1a450dd562ca1dd6d98c169e46078dfe3cdea62b00c87f583e944462f37d8c5798de
+DIST thunderbird-143.0-ko.xpi 515824 BLAKE2B
3a372832208486014e0598be3bf4e4aff7051d834a83c8e6153ec8875420f251caef593b0c925e31efd6a78fb0937f01c09b547aedebe2aac971802be672c266
SHA512
89dd63c2019764145f2c5b2819ac34f8f846c97c292604d854aa405c277969ee8e106644eaabc8e34cab6e80381184980fd31f7575b9880ae6b22119b85f50e7
+DIST thunderbird-143.0-lt.xpi 453873 BLAKE2B
d5cabcea145cdb82a13a8eccaab474b82ae86515a7a452417e9c828228ab10a08fa84ebf1df52de6198dc2a1272fb8f8bd17efcfe234a7f8f717db78991360bf
SHA512
5b659da80dc8b38680373a7995ebbf041961c80513d168dda0deaab5f7c78f398673bc720e966f0b3cdbfd54343632479bcc40b1db1bf74e999834af4cd36cd1
+DIST thunderbird-143.0-lv.xpi 392066 BLAKE2B
e95214a879196a1c982f469dd7e266f702480abc8b2f8a9e76b8eaa5d8df9cabe8484fcb90a18a7808cb3642597ec27ba98d5437ac8c646067facc5c3f690beb
SHA512
e9620f514f414b6a7ca1839f868dbe7ebb81a5cb44e9a0b6f12fa2c14d6f2cb1537d3f537a268aa72c7950a2e46e8f49f8e0f9cddf0154e4e94496d41dc9fda5
+DIST thunderbird-143.0-ms.xpi 352472 BLAKE2B
d69ef9ff208c2425a5dd8dd6b138f848e06d69e6ecbf02c0ad51c87be6e0ed3a605169fa60767189ae972e46157a507811e822deb58bbf49c26d47a73160bf24
SHA512
720e362da0b8b3a9a3bc4869e5a737eb03afdd15d3be1ba0b412257ac1cfc8bd5a239cb0116551995c213072f9a6b9e3f3c9df8fdd6859305bb56d8e73d64195
+DIST thunderbird-143.0-nb-NO.xpi 478555 BLAKE2B
4a8b1aceb3b3e1c8f6ac27918eb6ac736ce57b77ec3a172356abb688b0e892740f3bcb76723f27fbf3287d013e1fa3d8e1f6711a7c68e2e9a7edc6f555a2f884
SHA512
30ae0302d84beaee3e44d900fcbc38aa83609bae555883bb4c8e118e3eecf7f59e6e9dbf89cd8abcd91188a7b6078ab861a7527055b3bfaee6efbfe2916d83a5
+DIST thunderbird-143.0-nl.xpi 484490 BLAKE2B
c1012b15561d74e08f103d956755550ba0636c9cd7a80c1f8ea9eaf106dc53ad5a7609c7381d15afb2c7bd0060ac537ff3cf8093b7e77d54c1a41c912f7e1729
SHA512
9cc7ba7faaf31fc45aa893febb351ea551d21d703a7aa21fdb0c24c51be4d25d72ea6929d3fe849c4dd501b987f9f2ebe7dea979146eb2d9c2ed59f0f4784fab
+DIST thunderbird-143.0-nn-NO.xpi 482388 BLAKE2B
708a5784397c824d6117ca4e4d62d4f1a8b53da52153d9660d10d66ec804869e50f1a4b6603315c06b7d44d3cb9d73c8f658d2371b114ff21d1aa10918e28b48
SHA512
f29854b00dcbbaf735eb2e757e0df876140fbf9ae34ef92c978089c5ae77b014a558869b6c3ec17024082f6426049ca9e27f2d7e445df40720f49b934b5cfe7d
+DIST thunderbird-143.0-pa-IN.xpi 435729 BLAKE2B
eeeceddaab69d51bbddb47cd4309d158427e97a48f2986ab2192208f8280e44f13d000273611f0fb76b9395a8af0d27cb1e23a73e9cec26ad03ea09a7cb3df89
SHA512
6fc5a13a98a879a366ecf69c6f4e7d32cf10b168801ca6193060c86cb47eff92a88385797c1fa1d9ff21d9c33588349c4b4d37c79707d9f82ca9d35de869935e
+DIST thunderbird-143.0-pl.xpi 518137 BLAKE2B
7d87beba1b550030d0e14c147bfc5dab78c0ce53a6d8a76b523d41b950b5e547da121cc20f4bf6eed7db73c5570a011e2c7df4e34b002ec28128afd343dad30e
SHA512
bbe4433594fdda2c0f2f33fb23638bbd73e214ff79e09a506ed463ce923b18c6273e454c07ee1b659428b048861d8e35af2114d75f735449fe97c65d5d50e6ae
+DIST thunderbird-143.0-pt-BR.xpi 492601 BLAKE2B
02426800da1a3d096065c68f7ceecfe15cd60586ca44afae691d1021fbf3cd14cab91505e7ff07fa4814529c8a83942cc1e7f71de02f14bc1e47bbd9e5f5f396
SHA512
9c6479fff20f7b4dd58fb456fb3ff5bba909ed47c5df5297dd8afdd4892ca04e120e18f592040e283782c56d2dae9e8c2fa8a5832e769ac4c415c096219ddabc
+DIST thunderbird-143.0-pt-PT.xpi 486907 BLAKE2B
c5cd95b2694494061c45f1eb0c2f8335336bbee4c9fbdf381ae841990035382b052f5b3ceeb817e883dcc134066c2b7a56548e4e59d001a98717c327671c3feb
SHA512
5bff11cd7075c764e2bb06c7f3aea52d750c50af7859231cc4673aa257bd078259728166650c457c81ad4aa90d4a9b6ede1afcf251e31d7cca8b2efb6494d6aa
+DIST thunderbird-143.0-rm.xpi 487853 BLAKE2B
2d4cf654a5773f610f558936762398dcd2e9d323b9074e624592183bb98c6b098342a2757fa0e45a86244c73c3c0f60f28267d131a79adff477a327a594eb411
SHA512
d1037b24ded7675a1c11470dc0b93a8a8bafddc8b2f43867011c1b620ae23b27daa0fa9fa98120730f1194715a40b7813d8fc85e90fe1622812fb257b5f2260b
+DIST thunderbird-143.0-ro.xpi 460728 BLAKE2B
be8d595185b613d63321084eabe37cb9d985369c0ce2b29f295f6ae337c03e7e07dc5a49475f329395801158733f282700427a1dde06e387279db1aaa45eba7d
SHA512
31df238c8ffa19109cfca52d32517bf471feb39b0463c2c485b9c68b5d130739ab825fe9ed2303d3d863da8a3527b47976c32ff5c2effb5a5d9c24bdc230c54b
+DIST thunderbird-143.0-ru.xpi 596073 BLAKE2B
46d668fdf7a01d7c6578da4991e013b99365c4aff717ebe183974a29becd69be61f73d6760667e2f7be8220e12f1e9110b5334f619a2e4415ba59abf7a94daf7
SHA512
70e16a0f08af41bf1a273ac31cb18489f89cf32ec632c89fbca42a64c605ae0d78a953b517b42eedb873613f25179da0b0e5c7ac2ddd883ad4c63679f9135f4e
+DIST thunderbird-143.0-sk.xpi 521964 BLAKE2B
b03d135a1ff6c10f6fbba9cdde9f9b0960525a5e3c61eb94255967bd5715d4aae2ebae4a25a911348e39074a78212d144857bd93d42f49e50ac99dea048c1bcf
SHA512
fa84812358b3347f00a50e97c6c5d4920518ce7af1e502e52abaf04503cba7988228dfc31cd36aefed67950e483311e460f18740b254c1c036d7639c73384b8b
+DIST thunderbird-143.0-sl.xpi 488064 BLAKE2B
adae0652fd5929dae0340975a7a066f6380156ee08f8b8527bfab6173d400aff2abd793779b4d89b1ff2d0905520c4adcb82e11ff40e84dc7c950398e75436fa
SHA512
c3c5b63b240f6a20b551959720e83b6dcacb246be8884c738cff2f288e749fcadbc7cb464a7f66688e5c95e4c335d8457254432d590cc30d13ca9bcfd8be98a7
+DIST thunderbird-143.0-sq.xpi 504270 BLAKE2B
881bf605aaaac6fe9719f2cd7fd21571507191a7eaccd25529261bad64212c24de6c4867b5816cee2a88b7983431b042975cfd15344f9f090eed8cd49db66f05
SHA512
cee9fb8ec02c8836d82e078927fd71f6710de8f059f44d6392ccc7cdcb195ffaa6d7a6770480f291dd9bb2efa74e015096dc0e7cf2b7f5044be9dc5d0ea759e7
+DIST thunderbird-143.0-sr.xpi 496301 BLAKE2B
6af6de8074d55bebe7ed757103de92c28bfab431c2ae82e126a76d00196794788e1361ee075f2be3f9947acc7a913910b003f66369a3d6ed704fa4475e4ad5f7
SHA512
27090ed69330656e31e4bdc6a03a3be1e2b62edbf222689b59733c3d1796ada2194716d7af41a8c265fbca3168e5e5da0ac10e48ea9c77f1a97c2162279dc86b
+DIST thunderbird-143.0-sv-SE.xpi 486815 BLAKE2B
01980ae69e256042f16946c3fb49213ba6da6266f45b962fe520c4d11b8c936145f65ddaa63fbb943e3f48dbed69f692c260c2b4b69c1cb0356cc83608a07459
SHA512
562f8c01ccd3d0cc093adba6203c98fb462eeec1c4df6ce7479acfaf72beb86784e5c012ad3a72b038651c3a7e692195a345116d3f2ae5090a9d16dac70117b2
+DIST thunderbird-143.0-th.xpi 569303 BLAKE2B
d00aaa5c81fbb4bccd70396bb82e960d5c3a979b7c1bc3f6ead3a04ea9860478059efb0b7511e07d2d4af9c95ede170fcfae45cbbb8ff73b71398ffd0c9aeb46
SHA512
4a03198f92f7e50e3cef49f3a9298c2b876a35589312146f3fc81d3f1a779095bf1b544544b493b0470e370b820c848094c8519da48b0af7c04132630957f372
+DIST thunderbird-143.0-tr.xpi 498188 BLAKE2B
613303ce693807948e53a5487c3aacc1ad80606f98aea9e311d86b4f655a13b578bb90a0b37aef57b333804154d08d3c6719ad21eb8ae567d7871195995bc16a
SHA512
a4d984b1256c5eaa6a23f67344c8b14e0e25ff470797d1579750dd459d52d7b8aaf76298c46120ffe824f658a67b4e1fd8af805324a7933e1e2b2ddfd2d8e446
+DIST thunderbird-143.0-uk.xpi 582799 BLAKE2B
7b5e2649a7accf5287eacf1ef85256fe7ab66e7013c84a8530293fdf16cb9f410c1d4fd3776df38f6039b8ce60576b72bb0d7d1c0db9530826abd52add925a43
SHA512
323a9e1fe25119a8a2fae325313e88d4c835f0484c2e95ed3d2ea323d7b4b5d4f69c290a01fd9f2d846e26858d2a855654e1ea0354d22f9d2e02bb378ce4124a
+DIST thunderbird-143.0-uz.xpi 355677 BLAKE2B
a7ba54e1c716e2eaac2ad5edb5d43a6098ababc6e5bfb9eada6b85a946e1731ec3be84e3192abe017f7a5eca74bc2023850efc169458f5ee286fa46ce61ffda4
SHA512
3b6d8a6023421ce185323948890a8070ecbd047bdb85bc37b65c19947deed7edb56c4c99f841bddc16513c334f414e41ced778be14e65da588b06f1fe207da20
+DIST thunderbird-143.0-vi.xpi 521328 BLAKE2B
4102d4e26e086584b5ccead8477ec045e2a091fadc2b91dc909b32bc66db421a20b57dc3659863774ca0bb9160bcb9cb34ff4d9285d8a17e6b441e92db253b29
SHA512
410468f82462e32cc2e453fc3d8fc9bfaef23ce742f0cdd5374aa43e2a94963fbeea6ae18eea4205b5ec9fe5b0c38d2cd176f2588a5643456fa492da6036dce2
+DIST thunderbird-143.0-zh-CN.xpi 510221 BLAKE2B
268e1bf595cac1d0bfa4d2b3ba03dab24b44eaac14d7dcf8c7929459b45ad2b1455723ffdccb7ea19a7671a5d0b8d1096e72e84c4953f359896512a8d1afcb61
SHA512
30a026ca694a316c1fae886e0f504f4b9c9ef83c675c5a3b1d42e9d8ab22182d387899e193cc155343e00f6cdc463485c65a928442b6f0fce55198ea94784288
+DIST thunderbird-143.0-zh-TW.xpi 513781 BLAKE2B
aba1f3d6d2c67465a850f615a910c39d881aa094e04fad896b65ea69e5179d5842844dbfe1cb087a50c83a2772bcf06992043248d68b00826dc8d389cab51f88
SHA512
f5ba6c06cdf28fe0e881d6d80195774cc4c13099ddb6f4f2063d571fcd9671f32d831911585f0c4fd48065b70acba9b7f0ba5f1754482afa5ee0b1a9fdcc57aa
+DIST thunderbird-143.0.source.tar.xz 765829552 BLAKE2B
3738d7d99715f94606f5f7a03841eb09be1fe203d52fb7a28c000ce767db0660cc7f05e4af393e3bc7316dadf97818742f07c60d05562176a36a7a8ecd9c16aa
SHA512
128fb1ed35561cceb847b09c881968b474c9fc2cf7bf027f20c2d5b03366116e058b471f98cad4606a720f65d99c60ed3b4301b9e57b5971001adb3e00a51cc5
diff --git a/mail-client/thunderbird/thunderbird-143.0.ebuild
b/mail-client/thunderbird/thunderbird-143.0.ebuild
new file mode 100644
index 000000000000..4444f4feb892
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-143.0.ebuild
@@ -0,0 +1,1154 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-143-patches-01t.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=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info
llvm-r1 \
+ multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs
virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz ->
${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ SLOT="0/esr"
+else
+ SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
+
+IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio
sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent
+system-libvpx"
+IUSE+=" system-pipewire system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+ $(llvm_gen_dep '
+ llvm-core/clang:${LLVM_SLOT}
+ llvm-core/llvm:${LLVM_SLOT}
+ clang? (
+ llvm-core/lld:${LLVM_SLOT}
+ pgo? (
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+ )
+ ')
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.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.115.1
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ 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:= )
+ 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
+
+ # Enable jpeg-xl only in Firefox.
+ rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Workaround for bgo#915651
+ if ! use elibc_glibc ; then
+ if use amd64 ; then
+ export RUST_TARGET="x86_64-unknown-linux-musl"
+ elif use x86 ; then
+ export RUST_TARGET="i686-unknown-linux-musl"
+ elif use arm64 ; then
+ export RUST_TARGET="aarch64-unknown-linux-musl"
+ elif use loong; then
+ # Only the LP64D ABI of LoongArch64 is actively
supported among
+ # the wider Linux ecosystem, so the assumption is safe.
+ export RUST_TARGET="loongarch64-unknown-linux-musl"
+ elif use ppc64 ; then
+ export RUST_TARGET="powerpc64le-unknown-linux-musl"
+ elif use riscv ; then
+ # We can pretty safely rule out any 32-bit riscvs, but
64-bit riscvs also have tons of
+ # different ABIs available.
riscv64gc-unknown-linux-musl seems to be the best working
+ # guess right now though.
+ elog "riscv detected, forcing a riscv64 target for now."
+ export RUST_TARGET="riscv64gc-unknown-linux-musl"
+ else
+ die "Unknown musl chost, please post a new bug with
your rustc -vV along with emerge --info"
+ fi
+ fi
+
+ # Make LTO respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure || die "Failed
sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py ||
die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed
sedding multiprocessing.cpu_count"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py
|| die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py || die
"sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \)
-print -delete || die
+
+ # Clear checksums from cargo crates we've manually patched.
+ # moz_clear_vendor_checksums xyz
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key ||
die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F --
'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1
"${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_clang}
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+
+ # Configuration tests expect llvm-readelf output, bug 913130
+ READELF="llvm-readelf"
+
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}}
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-disk-remnant-avoidance \
+ --disable-geckodriver \
+ --disable-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-dbus \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-packed-relative-relocs \
+ --enable-release \
+ --enable-system-policies \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-ffi \
+ --with-system-gbm \
+ --with-system-libdrm \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-pixman \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+ # Whitelist to allow unkeyworded arches to build with
"--disable-rust-simd" by default.
+ if use amd64 || use arm64 || use loong ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more
arches.
+ # bug 833001, bug 903411#c8
+ if use loong || use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # riscv-related options, bgo#947337, bgo#947338
+ if use riscv ; then
+ mozconfig_add_options_ac 'Disable JIT for RISC-V 64'
--disable-jit
+ mozconfig_add_options_ac 'Disable webrtc for RISC-V'
--disable-webrtc
+ fi
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-pipewire
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp"
--enable-compile-environment
+ mozconfig_use_with system-librnp
+ else
+ # This controls the backend of the bundled librnp. Choices are
"botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's
preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan"
--with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ 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
+}