commit: f41f5405f12cee60dedae9f3d3b44aae867f9918
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 12 14:10:34 2026 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Mar 12 14:10:34 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f41f5405
mail-client/thunderbird: add 140.8.1
Straight-to-stable bump due to low amount of commits between .0 and .1 release.
Tested exhaustively on stable amd64.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
mail-client/thunderbird/thunderbird-140.8.1.ebuild | 1166 ++++++++++++++++++++
2 files changed, 1231 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 633be19e3d09..fd8119d04f00 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -133,6 +133,71 @@ DIST thunderbird-140.8.0esr-vi.xpi 518885 BLAKE2B
f69c595897f71dbf33c82db827897b
DIST thunderbird-140.8.0esr-zh-CN.xpi 507847 BLAKE2B
1352d2a83adb62bdf20d6461d3f997b36d50706a9ff786ea288d77f1238ae90146897d723c0d5f0cb74326e32369d28600e927f00a011ed21d566aca0dcf4946
SHA512
d07702d5e75f2edf08d6a1f8229a183933c1e027844e4e7b01f6879a4bb59676fa5e704e110a46dd35710c4548e914b3ff7f4f19022a01cf172fe5df2f11b042
DIST thunderbird-140.8.0esr-zh-TW.xpi 511432 BLAKE2B
14b02f1d91580fab0d147e877f16ac7c39a5958503d87397051a57f60136e94f788f22773767e209b7ad5b030fb0d33f8dcab1cc1b8b18f2b8c1c94e800db4c9
SHA512
7949114147e470d5bba7e16c42001710bba2f128aafd6d0cfe4d329464f580f47122749619806fe9e23a6d388239123502912c010856534441bcb2c3b45cfeb1
DIST thunderbird-140.8.0esr.source.tar.xz 758833112 BLAKE2B
9cf14d3c300edb1f5166e3ec44472d89ad38d65db358d61b648c974a5e7ae51df0343e9cfc14dbfd5f12dd192a4eaae0861956c5dd1210f4731603d1fe53c37a
SHA512
cc9337a87c7c3b8abea2a87b2c494be102e96ca72b3af0969609802640f2d58e7c1c2b0a2ccd1028588578b7115cb0133b404b62652fd537a95b6821ce8f5fe0
+DIST thunderbird-140.8.1esr-af.xpi 316217 BLAKE2B
67f308cc34cfd5d072d4d5801d590e880fe8a51c11251ece88a81e564d638efe4f9b9f5587a86bd70d27a657abba8b7af249842b92b81b9f31203738eb194c22
SHA512
d4b858eca717e76b827582b9e9954cb186860ecb918b7fc80f191e728c0aa13e716cf57eb0c63dd1c705e3bd629211cec970a584a25e54327dc72746718e55da
+DIST thunderbird-140.8.1esr-ar.xpi 436196 BLAKE2B
5459189a2a1903ea582dbcd9ee8cc85bcbd90d4d9210035e7d456d4482550465e2582c60365d8cb1f44c2868b63c8b9e65a1db6e36dbbb35d33b0d6c78f0c8ad
SHA512
4c6dfb3788a4729e094757aad1555091d2a6325dcfafbcde994d30a6aa850ec0303ff2832f72bb302c512c52b13fb537f8b79f05a46a6f70debbfc8709f262c2
+DIST thunderbird-140.8.1esr-ast.xpi 340598 BLAKE2B
c9ec23ff45132abb95a9b4a782a575fd822ac43009863e5721e2cfd16f2e4813446766c57a778fe3b7a3663ec7296e5be59e02bc5025bf49592e1a56bbe562ba
SHA512
95e5e84c93b87e58f1211e4d5c01b0b770a06a3a46e9c3a05c137684f66a11c4732ea3bbef17eb8e8ad986f75a80400f0b8c205fa40212cccb98abaecda38a00
+DIST thunderbird-140.8.1esr-be.xpi 521572 BLAKE2B
1c042144902a6d75ff5ffd7237942da69c81d1cca04c30dc61dc5a50b7e7ee72fbc4e3e1dfa3d00666726f4a4fa4e14ee45b1c4daf746c4c56f2586050ef3918
SHA512
1dfe45417e28cec25611c3d5068fc17cce9b89e1398e567b23f3596f68228949e1fcfb345f209651c4018e5a6b120f956f13782ae1b1dfb52600c79cc04755c0
+DIST thunderbird-140.8.1esr-bg.xpi 539805 BLAKE2B
eb45504a56762649a5382a06b5bf0be8bba2302b986d50750d097d498c7bd7d56664de9b73ca263d2192c69c0a67f2e697f7c7f3e62b7e7fd3c37c4883031d0b
SHA512
e5d50d19e39abf184d2bcecff00e031c237abe8e24a0e241d478ac85db973e32a088d45d23a5350b7b4c9ad756d5c18ec14441e94625d4d15a9d512bae505211
+DIST thunderbird-140.8.1esr-br.xpi 402746 BLAKE2B
0f85b1455142cde30bb355e699397c90db75a631a85ecbeebf015a6ed52978efbea1d974ea0b4229eabfad20b5230ceb6282a08e16a7ee86615b7d7dc6c145b5
SHA512
1d1394365976f3138f1409e212c6c7e7d2a257d21ec0d0d6180c2b6649d1488295882f0c1d1b44aa47e2db49b3cf4a559969886e6ce4deecdd2698b0f7c8c5db
+DIST thunderbird-140.8.1esr-ca.xpi 440588 BLAKE2B
6e4146d02f4fa64cf13137f00747dbbd9f73942e8326a11c7946757365c7977a1f0b0663489e9d46f011d1a213905ac60f792a2dcf3f56335b5e59f5716e9a8d
SHA512
053675095fd0ced99a905fd319f93182ef44c6cbcbe2ec18c3ce54c88bf4b5352f262df89733ef9476281c05276a7be53c40be7f6affb4345b4b9b6a1285a315
+DIST thunderbird-140.8.1esr-cak.xpi 418020 BLAKE2B
715c5871bfa840558582f3579529a790ca04eb36f0f5240a3455d5a16d7657bdc771979696c01060e9e93acf4a1b621c6f0da2015f335132f52b384c0b38a458
SHA512
9d3b516d37dd92c846846900b8db4afd978ebb4c2dbe2f73d90a7f2fe15efd539b939d8715a71c02790d2c2d40647262841dcac82158505f51890abbac161f8e
+DIST thunderbird-140.8.1esr-cs.xpi 519556 BLAKE2B
ee0d7f6f4cb7f762b5ea3f82998a93a1505925a81c9b4ae08e2d251fd20dfcd629971d1ddd9fff498c61d92856b2aef5766a393f03bcdb5aa6fe5fffeb22f5b7
SHA512
598f82580bbc0f19f25ed5e3c9466391d64b6ec5e8e8554005fb84b2ff0e9262099cbd409ede169af098b52046ea7b58e3f36ce7fa39433b9dbe2f7d1881b19a
+DIST thunderbird-140.8.1esr-cy.xpi 487650 BLAKE2B
694a43412b6104ba51fc7d1cfdb911d2afeddc60561d0c5d3dd45049a9c80035f7a2518c6cdc0c6cca69e36e517a4a45cb80bca5d511df310c6e9b3fb56ee252
SHA512
f9ea0dc8b661fd0c58993561f47e0e331d563dc8de81e0b0070b0daf19306a92caf2ffb5c564fd063218a791362333b59e1999b5534ac803ba870969c02ac8bb
+DIST thunderbird-140.8.1esr-da.xpi 476623 BLAKE2B
c060e7abc9ff3ea2371c3d81ef4ca8cc192d52fcf96343975df3e84cc1ab8f1af830600afa6c7d36ae5532a592964038c93396ea8c3b5bd5712cfa6c766489b0
SHA512
b1d02ef6f1e8a71c43d9b23b837640778f84461d9981adfc462843caa3af48a61bb8cc9cc02e18853236ed130f44766b9b4548be0790157e930e091c658e8f71
+DIST thunderbird-140.8.1esr-de.xpi 504707 BLAKE2B
238f91a469ca8191cd2296c38036185b5ce9046bc4cd0531968aac4f2dc278c1c6a1263930398aa43a67cf302d94ffcc243913d789969cecfded31a87f3f4231
SHA512
3458ab500daaec89a96ce2416da40f54a038247180173b547f812d95a6ecc47e55617de207060e05f05867535ab9c4f92c09f91a7c1749391b0b73a03364dd85
+DIST thunderbird-140.8.1esr-dsb.xpi 517787 BLAKE2B
4f28f5d126404254358401434e15dfe3d98d761807e7672257aa23b9af0cc7aa4c2decd1bdbbe4c9a0469fb6775b2b9bb2f9d44e513c805a9c9c094a4330c9e8
SHA512
26e2ee6bc85663edcc57a368e46591ac74069b1d6252ed379d208ae52cefbddc540a38717de05fc42e9aaeb473fd71bd2dc5229beea9cedd4857a5ebc80ce687
+DIST thunderbird-140.8.1esr-el.xpi 609030 BLAKE2B
191e127d9a867d2019b3c3325a271aaaee04b155f46273f98177c5dd47f57d4f25ea3383582e1f5c3fb6cc1a5d6eda476b4462fe8fa36ceb9a5a62eb2a6e3f83
SHA512
8edf1425d46207ef5f6ab7712004a32e7746c9f6bb502aa1c5c7ca4e2a7f88b151cd58b201339f6e474932778bf6f6cb66de96b98ec2b806b84b8f156d4dc3d8
+DIST thunderbird-140.8.1esr-en-CA.xpi 452240 BLAKE2B
f1e08f69ff6f4df35a69d6ab4b0ee26e999933182a549d7091d85b2b65eb8b56a26a81a34c457c8b39308c096918d9db67b5842544760279f131c1b71052de13
SHA512
5e992043d4d2344fd7b3a5fd820b88bf03a613fe6eb24600036b2af4d8f81b455bcb6fb14e74b5e8650d0139b0601ac5d68dfb5f196d8ee8a396ea3729a30af9
+DIST thunderbird-140.8.1esr-en-GB.xpi 452067 BLAKE2B
df84ee8b733d86254038addb8417ea758e4f984c2cf436cfcabc9ac7be3dcaac48a96b86115c4ff9d07deaae815c76ec3a60795881caa3be351ed8ce04886868
SHA512
b89d9ad0ea3e962cc613c2816d6147b91db75c504ea8cc96d731a37b4d6a2813470f2c27cd3bf819ef738078316c12903deff58474ffd4b8538d1ee043809abf
+DIST thunderbird-140.8.1esr-es-AR.xpi 495269 BLAKE2B
ac34693be248a007eaf6d6a88221dc6275289197686ca4b032f40a7a13e7f9f7814d2d9cef83d7277876f91f2561643db71467a439d39a189ffb17e908ec8d4e
SHA512
a602cff2416acecc87c818436989820e202e6b89dce7333ad204370064f3209fc6564d0dcfbee9f2dd9310d5ee2cbaca179243e5aa5e5949735060551306c92f
+DIST thunderbird-140.8.1esr-es-ES.xpi 497284 BLAKE2B
279ebae5211a4088d5b90d00a9914cb933392f4e1058414f0377be76cbe318fb2980f360301c752a5cdf605526bca0fd563c0ecb05b46e99120982c7a791f6c4
SHA512
80a81ecc5dbcc01a9763e6add52df5f73fe87639679c2e9f2142ff3fc38c79a4704649872fde3269b7aab4d13f77661d7fecc641c200cdc3fde110359870e977
+DIST thunderbird-140.8.1esr-es-MX.xpi 490825 BLAKE2B
e40bd64eca59c7ae474291c76659d7304588babf76f6d45a88bedf8daecabd4d53cdd3903b90b27e4535626e4174e4436e2446bca28fd460b97525b77dc80608
SHA512
5a898ffac2c11494f7825c0f45f4ba2819664b891a145ccac28ea1bc8acaa116ba01e2386b1afcaa34439df8c8f987ceb46bb17cbe2a43de492576a65e1af16c
+DIST thunderbird-140.8.1esr-et.xpi 443617 BLAKE2B
5474daa7c111dcc6c28929cb1ee98a060d2c8b35d3e25a99b8291e49d81df803de5347f80f8c00d9318d93c89a868e9bd4b6a097bc03cba207f1ba77729a10be
SHA512
40a309a73c90bba0e881bfc11824d151c0a27dc4ff0931ecff6240674310066b4f47ca3e8ad0cb2b7b8229cbe663a69abf3853b509a1d0bf4013ada5ef57be27
+DIST thunderbird-140.8.1esr-eu.xpi 473922 BLAKE2B
ea811066ee4ff9971a5561e0c48551b891204138e901ea1271ba291660f038c3670a39c7843d6690c642fd53900e99651de5e44bc29826e4ce2bd902024f086a
SHA512
e65a41070bd09a52944ccbf6489dffb0d9b4e348ca5c314d229efedee19886ef00218f849c25aab3d13063335807cf001da0726dfc013d688d4c29f425894c08
+DIST thunderbird-140.8.1esr-fi.xpi 475619 BLAKE2B
e5564dc7c03783ba9cdc4b60b2cc967a96cc5bb97ef4f820ef623f88aa8d59977bf0dd818697c09618c818553d25c00106bc43ce8f95d1bf76e8100fdfa9cdaa
SHA512
d156462cfd30935708335b1af49a19085b8c8c12cc38f73248f979989925fcc436362a396f5c8b45e3f5a59a1a244ac479bc26e61400904d00b749b16084b065
+DIST thunderbird-140.8.1esr-fr.xpi 508319 BLAKE2B
675ee286e67bd78676ccb4668f3668e633ce043aa120cbfc90f43914a1eabd7f9518e9b96f32a453c5fa67750c4228ff0638072c046953864c7c0c8915648783
SHA512
026466dec1a5541e089a60ee1b4f810cfff33b3efde0536dc9c3436ad13de8e457ef2ef5ac074b0bd496352df89b80e62859b8725b88077fa3405aa8d165e7cc
+DIST thunderbird-140.8.1esr-fy-NL.xpi 490683 BLAKE2B
691a3bd1d06b14c38a29860535bfd74f2a45c76178446ff101c346b59a43956b836793242c11e446577a8857e6adbd9d03fde7f85c7b7397b2aa82567b43de69
SHA512
ac95e448dfd569405f4ed7ac72ce29c59699139c0765b649450d8b64d9d6674533ce1a6bd24083d5832131694ede3d840bf2e80aa57053237a713c86e53eb5cb
+DIST thunderbird-140.8.1esr-ga-IE.xpi 376746 BLAKE2B
869ce097c9596ba9d74d28c9cad718071a0d0f0e5fcad77b58a657d63956007b54c08b0ef11136bd3e70abb05931f05774716cb723587ee8cf53848c4c27a74a
SHA512
fc31a1cc78a3e9714a6a4318ea911d29b7d27e72c0d695f54a34d87f8ad95494ecab1d8155118b752ee3254f20fe179eddeb698beb206a62f83557aa14364973
+DIST thunderbird-140.8.1esr-gd.xpi 461958 BLAKE2B
8968ae5c9193b0357fd67d92e6b1f02529c8ba9428e7a4d3fa1b9922034611ce84178f96ed9b2a9f711802f88d7603b535335aa7d1c18283f37768762d0b26ae
SHA512
72959d4a922d4191c59c86974105f04f5096fcb893b0c2e868306de7c81e8d67af6d73457fc3b99384c5d7edc085c945674aab13ef10645cc8ed5229d1b7dc73
+DIST thunderbird-140.8.1esr-gl.xpi 489345 BLAKE2B
5fe7c759b0f1b664d3d5e363345a0904d25a96b2b4866c7511305a6c2452c96fa8f31a37e0c6083d387946ef70f08d52a25b92cf385b30fc1fa9ac940b352411
SHA512
393c1ab2370707ef1550c3cc6c8bf81bc55feb33ee5c330bd239546b74c6af7dc883e67b509bb36331f53b3b0dc519f8e564ff28616eb3219817f66d7288881a
+DIST thunderbird-140.8.1esr-he.xpi 443786 BLAKE2B
091b332ccde5bd7b34ff784e7376099c7891eb97877916bd15ec8a7f1a667c3ae478fbb4cfcf218cd3345017d6c9b061ca939d06176745fe3a275d285dc578f5
SHA512
4172887b232577c97ebd8b4d0ba74546a46d6096693242d1992024c72934128462405e658dd0adf943e9e8e0b42e8ea5fb636314263d35b010a0ad64afd2c407
+DIST thunderbird-140.8.1esr-hr.xpi 470662 BLAKE2B
3604194a14bbc08f968905430c128f3f1ab8e92cc1bf41adb29b765e2013afce1dd9b153a815a8121a623263ea5418386f5f9db580e06613ce200e5c0773293d
SHA512
8ef809475df9f0c37234ee265d393f2d2e62bcc4246a8b68a5bb7cabbf977b76dd0fb2e439e74497ca285a164242080182b1be5fa154373e07f13b96a4e684ae
+DIST thunderbird-140.8.1esr-hsb.xpi 514952 BLAKE2B
08d0393eadfb4ad1cca133f51bbb349b275c1ecd61d9fbd406ba83a32b2b457b2b3dd5913823ce70fada8696ac8103de6d4b5a77808b480d8ac03b350becafa4
SHA512
37a84fbfbfb3ea18675af39c74e2bc45d4b8590fd062695862e2501ae79cf4603b9259a0f5264b9e3ab0152987f87d75fe1958331800fb5ab1eaef563c560332
+DIST thunderbird-140.8.1esr-hu.xpi 517543 BLAKE2B
18615985de8ad51ace22eaf53965beb324f1f6ae5a173b94863907258a5ce668e46a5459336300aab85ed0744b1d76880c845c6dff8ed84b58695d8e466d2a09
SHA512
a6b8ac765ca9b3d1a999bc9c8af06cb11d5d1d853fb1b91b4f261f2b40b1d8f9c1739723429770b7e1db09017d411e4f3ce4c92a681b2d4af2e09cdc91fb4062
+DIST thunderbird-140.8.1esr-id.xpi 467002 BLAKE2B
7e8ec550ef70c3e18127a7d2fc0a4a72d0644ed7664cdd964e875d537a71e5328277bd429d15da32d6277ca321cbadb59bbecb77b8235c4faf3ce09e8c9a8da6
SHA512
1ddf25f1f7e799d253c079f802c7235eb397bbfab340c8914b51e66d87e2bf68ceccd36df228b618223b2a4215b089c676eaa34be1cfda53309a026c90d33ace
+DIST thunderbird-140.8.1esr-is.xpi 482737 BLAKE2B
f011a0638923c13ab6cb47e0e517022c65efccf6970ad80e72103b40acb2b38f63286632ee315c0340023d7576c0d26a61cf07653ebc29b79c512d626d73aaae
SHA512
69533db5f24d67d5baf37a4580bd3e3682a47cc856497e281b42def994cb4e601f521d550bc6c83e92cd1800bb74c09590c25c79d3902cef578bef6c896e8d7f
+DIST thunderbird-140.8.1esr-it.xpi 488503 BLAKE2B
435dcc012e8e40806791d78a2ac4b1e0c5fcc6e06b5784ee90721914afe9a3c17ab013e56cd9d301747117d9b0dbe760b893436a6ad260a72143fdfd6c8355f4
SHA512
07b12c7c723ada7430294b9b7540494ee78ef8f10d800ace5c5c72d93a84fd2562a0416f8a2401cd5ba693fbdfcd37060458c727c14a364aab83cde73bb1b973
+DIST thunderbird-140.8.1esr-ja.xpi 539194 BLAKE2B
d1f3743416e2504bf010ab4387d5763ee8633c3e40035ca01979259ea7114fc08f3a04bd35c3a5726e6d393208be16e642388cfe7d19c00e727adb41ee6544a1
SHA512
e4d7cf213aab2b2b098da21d2e2a67a09292e52e3bbec5ec303c5265619c04f73b48553d974c1ca1a8828fe03cb4002909d8f69170ca939e608b546bf3c4f94a
+DIST thunderbird-140.8.1esr-ka.xpi 554761 BLAKE2B
8dd1901b871abb67bb48f4008c874b0550031fbc2d8042060feff216ee48cba0019c9d37a1d45ad2d9fc29a8603543b52156a4c6beee002fed0371eda9734591
SHA512
5ebea1ba70100320a489b5eac4eebf854768d9ef2ed6a7c5ed97f5cad5ab9a0dc5322fd55492c157bfdd77b759dcfec5db1cbd8a08749f5d4da1c4561edef079
+DIST thunderbird-140.8.1esr-kab.xpi 470495 BLAKE2B
3ad7967b673520edd7f6ee012d8d142d78327b0fad336ac156b1d158877f7a6a080ccd5a471a8697f7f4d3de821451579c62bc4dd0aebb0346b6050b08826db1
SHA512
5059c3c2a876530aba12367b015dc7802c57c541ebe4dc173fd0e4229898734e73b25a4f589fba0ea79bdda3a2c014625b526829321248b60bb340acd392fe9a
+DIST thunderbird-140.8.1esr-kk.xpi 573878 BLAKE2B
ceba47b32720d86600d36ae9b24607a39fd42b217086eb5e67da2ece50080445e19fbaa796a1462d5b79ca1700cbda67a386ca76515a14ec54c62abc1bf480de
SHA512
2ce684f42f7984522297fc6cfe18cae9a8270389d078f1709ea918847369b19e3577f0a4ca2d3d495529528fcc16073b5014e48fd278426d4dba1f84d96841e9
+DIST thunderbird-140.8.1esr-ko.xpi 515591 BLAKE2B
b170c8c52edfb53e766ef10ba6906cb66c0f1def0bc41e0c4b43263415d2c08c5d9f5f762b522d7e9d498bceeb35469e367b37da2e86b356f474d1f88479b06a
SHA512
544f801d8a86967a11db8f34b99f00bae538aeb53a84b3ddc59bf9a8d47d06a7969301931e7c334fe3439961706c163b2ffd4baa6a17a271b83ebb309ecf99d2
+DIST thunderbird-140.8.1esr-lt.xpi 453431 BLAKE2B
cb1fd5c990975c8d8f5abb5af76f9994e11737c0a87402df84236acf87167e0f5e106ef969454eea5cd5e79a6f641c119dd56a8125fa3985d7986fcf29d98410
SHA512
d0ff3c16939581c66394f2b6b60599ceadfcf5ac782cecd487735c400ea616843886eae34d138b131c478cf43c5bcff48c1274fbd9f6580d36c39df7a423410f
+DIST thunderbird-140.8.1esr-lv.xpi 392812 BLAKE2B
acf7816cc8df3b94de2c322c4779c4096b61ff975ffd7f7a0c1486ced22dca2e7ed65e1842429fc33af795fd6bc4f90ea6f458478acbfd3531120f4dc873976c
SHA512
d87ec1eca73c9f920bbf5ee0ccdcfd3a4a3061a869f47a9e26be74cc863831310b24b64310ca7a6c1f3302ac0d94e5d4aeb83be638a080c370ac37294ce385e7
+DIST thunderbird-140.8.1esr-ms.xpi 352179 BLAKE2B
7e6692f2b1a5be4ffe3ed7dd48611cdcc8ac638967970ea46a4be790552d1de7a451051d36c71106780c902b6299ad7e6db89fbe6437934ea9aaaa73704d0c77
SHA512
e92aae490e87b70899d23332f9c1ffce4aa24d107927460519056eee5bd438e20ba88c631ef59207836db7aa6bd865e67d6d1f39835417181db335905c09a778
+DIST thunderbird-140.8.1esr-nb-NO.xpi 476137 BLAKE2B
4f77eaaebd2217a77c607d33c022c759449f7c45afcab351c6419e2ff61091af01046d8620201e332ad3116f2b3a9199ba0577bc918d85f48b5a3ac2040b8eae
SHA512
9baa0cd9935a1c8e4b47a63bd5ebfea71fff1b8e71cb6299273b08342537e27eff6ebecab05542040b5a6ff8a633ab50e158a0c472115cd1f2f8301ad6948eb1
+DIST thunderbird-140.8.1esr-nl.xpi 482123 BLAKE2B
e101695fa7e92687e281f85e2548611eb89da2b999a678d828d76a7ec6113cc9865edf49edbeeeb9613eb422953de523cadda9f388b3073b8b383f3e12bc0443
SHA512
9ccf49fb05c527c415987fb8753361544f20f6471005bdc6d40c407182dba775899a4e9b50692db9ccf2f50a90054f79285ea32b9882670fced5bf4d68abc713
+DIST thunderbird-140.8.1esr-nn-NO.xpi 479759 BLAKE2B
66327689ed84e534ddd1510ad60b6c31cb2ff51e63551f213e36c6770235ff8ca01095cd281953ce6fd19bdc5e81bc8fb462c860d4f666b79da84b0318fb0490
SHA512
9baf876d3d2e230adb3fd5c5551e4d1beaf3b9830512464324f7e2719a1ac1bdad18184cb4c361f730b201dec35db6150bb1b141eeac6f9e382e6df755a58ef6
+DIST thunderbird-140.8.1esr-pa-IN.xpi 435424 BLAKE2B
b52bb31cc0fd64116832ed1453cc6546fc9bb4ad91370af2ea262d76a613a8a4c50f40e39523311b49804e3cfe94f3caa4b5748191aa6e62cbc232c87876e2f5
SHA512
15d4d13f404b57c8831d271b414480189244c3c5d8800521caef3a31fded30fede4fb156a0c4cf0d522d510bcb945355ed0dd37b4900bd4de11c907342615bb6
+DIST thunderbird-140.8.1esr-pl.xpi 515610 BLAKE2B
1d5ab5d9cf3b5b83deb64b8f5619961825df834f37d2b45d7332d98d99e319d2bbcd74ff0b046e3871d32982fc4718c1519ccc0f09a8359d4eb1f243d13f1bb6
SHA512
12f80f4e919aafde068bb775ad7a5821117d9f4e48457f6c0ba050ac1af91883027b6a6bb8633fe7f8f543c17fbb6dc988e56e85eb6781793d6bc36aa9b146fe
+DIST thunderbird-140.8.1esr-pt-BR.xpi 490162 BLAKE2B
d70f601ac55362be37c51daa15860cd0df309022877a9dcd93e209d2445125e29d23b1160732624d6f7b4696917a504b10ccc46c9784fcf899d576c344ea258f
SHA512
0b2e33a8eb47e6ff24af22cbae4bb41ddb8434f549aafef1a67fb42b9b765837a43ddc762dad60cdd1159170b159a80291c42293bc6c15a0e07c2292708c27fc
+DIST thunderbird-140.8.1esr-pt-PT.xpi 492523 BLAKE2B
df481716ee4072917a951fa1d6c4eb864583e3ca714619c10e64a9958aaae515e52ca8a7d39fd1130f5dfe93222c6aa72b09e39744c54052057a9da16ac8c598
SHA512
383766f4cff2536f89d19975d874e2706d28fec38ada09971fc1d9dbfd159a2834202d24c1c60c850bf60231ba78a15fa1abc85068eff04b65ac399d498a0f6c
+DIST thunderbird-140.8.1esr-rm.xpi 487882 BLAKE2B
3723d3360643c8ffff117a8e2b4557320777dd71b09dc98f0a6faabd00092f395db4ed0ef2da2b0db007090b25aee92bcabf11555893cd076e04b81ed9981814
SHA512
1a96703f1906143a1a3ec13301ea2d5392581c0f35593375471356c36853f0e0a2025ffe31a8f8a974c1f02be4b1f8373e01ffb0ebadb9a9983d8e29a591efab
+DIST thunderbird-140.8.1esr-ro.xpi 501093 BLAKE2B
fdd4185823204f14cade262aad59afb9ab2e944aaedb93ba3b74427f474a59f34774a50086265570378e657608990f5f7115130df74369e26dabfc4c42f719c0
SHA512
794b9c974e96e364eddf347b6c964c213b1eaab176e6a4911d99e747734f7d02c5f0acec8f75ed72d85769b2c200bfa48201bd111ced955a9fc11a8713d8ccd7
+DIST thunderbird-140.8.1esr-ru.xpi 593289 BLAKE2B
35cd8d7d0ac6cd5c7a17aa03be474c37863e74a2525195784df7afa6b13df0722536dd35d75710289eb861b91303c27be15aecf0c975282e21dbf4b765e2aca8
SHA512
e1327f609e96ae38cc12bbcdaacabf980aa28e4dff5ed245aa4d7309e1299a14b76ef34c02d442dbd2bc8c0ad657950d850af7acca7857b4aa49edce3964188b
+DIST thunderbird-140.8.1esr-sk.xpi 519388 BLAKE2B
245cc9d2c27e8511b422701547b73021cb0db3fef8861a4fa2b149458622c1bcc1e0a8e56fa645d19eaf90272bf005236eb157378dff2e55f9fc0115bd20e83a
SHA512
1d9ad87c18a2c496ac17398e7edea91819dcc9853cc2fc61d9600213ac92d885e8ce50b7e90644d008698140db473b55ee097470016391159151d875ec77c68c
+DIST thunderbird-140.8.1esr-sl.xpi 485960 BLAKE2B
bfe519e127462dff3d6d804febfc0babbe20e51b79b09abde18fdf5e57493c8097336d1502b353ccdee368e1c985230e585f4677cdde7318a7544f0269631f2c
SHA512
f912523d424d5742f982eb373a296518672f499da8e99529cf520e85b5c0a2d0ff8206929827839e0deb1335791dad9a0a2a4a88412ad1fcb1fec025c412db94
+DIST thunderbird-140.8.1esr-sq.xpi 506267 BLAKE2B
755f16a0da81746ce05edff38543f60bed9e914204595232d9807bd3ec65f88b6358f16649c6f4555ac85fdfec05d0c5dbc774cab2e4dc0481b287e8395ffc23
SHA512
9ea3443ddabbca4fa2ae414ccf6ab81df4af5addec9a22d256e50a43382bbbe97d788179c840c78e7fa8071b2b8d252c70aef1ae1173797b1636136b982d72c1
+DIST thunderbird-140.8.1esr-sr.xpi 495991 BLAKE2B
2e2908c9e39eb38cef6e6b2888677ab27ba24cd35edea7021a708f1618a605c45b6839bce8ab579730701725fc9f6985b680fc5a0ec1c6849a6ba08884f03a96
SHA512
d97411065d4ba0d7242222bd0c054a75267b05e46d2b6c822b49da7d850390921996c359d745b737f9fbae31c6cb051ebd178e52103390a6646316283fd4dc31
+DIST thunderbird-140.8.1esr-sv-SE.xpi 484419 BLAKE2B
6a68d4532b3ea900306df7c2904ccabf9ce58622d9a447726be8426b752e148e91fb00d0845a50c2b499c3ab1724a122b792402416518414f1ca731787e5b01f
SHA512
96961e1af07ef7ef01db5bba566f297c52aa1eb7b018f25793333cf8227a5500c2f4e2a63c4f24407dfd6bc87fc151872d0bcca8e7f4485dc586c58667432aae
+DIST thunderbird-140.8.1esr-th.xpi 569103 BLAKE2B
e7402b9fb91c0f2bd7e95b57593b1b6e3c9ec34621fa2502a62154bda25fa5029a8d48c3de26461c16df7098db07afb3730ab296e8bfdc2cbdb73342ea7c01cd
SHA512
7471320d6e84649daf693311b353eed419ea5112f0e58dce33b272cd99ece4ea8f83ceb448c410efd88236ee27d34ce661c3cb7eecc15eb45042e727b9535716
+DIST thunderbird-140.8.1esr-tr.xpi 496186 BLAKE2B
017add5d01d70bb9b9938251b94ce7c67bd058cd9211435a1e9c0bbcb7b0eacc40d582e3f5138329efb4d7cf072f809ce1804452d135148f5ba60dbc7bc30d85
SHA512
9bd7c52103ca21841657c2ab794b8ccd19076e8cee269e76de8ed3492b5c4bf1e44a429a0a049b1ca9ae666baf098d093b40cb459602977b5f2de4d16b4d9e04
+DIST thunderbird-140.8.1esr-uk.xpi 582149 BLAKE2B
2ed64895b63313b45f7631bd2f349765259e23fdf974eb6102b1734cc5c7eca22d9ce0b4482784e39d3342043005af55996315e6aa204558ab29c2325d2a1fc0
SHA512
d3f349fbc569cd67451d4f3a35ba886bf33e77b17dcb872f43c576eda31e5fffa3031ac47fa6fd910b33ad3e1e8f2d9b8303b1d52b836e0fa5d22a508bf1b34e
+DIST thunderbird-140.8.1esr-uz.xpi 355267 BLAKE2B
32489f7ae3f1572cffafe02a5fc2e855fecc69c50129ce85e25fbdfbede72a15113ca8872da30b6bfd48ea4f4e4d620a65fad9d5ee6e9a8e005053874b2519ed
SHA512
762deba497c8753ce941e8d21b03ae4be138985ee6752de851cfe837297e4318c6ca25396b8aec5f4ca368846feea7f168377ca2c80c95815da20f2f1ab68a46
+DIST thunderbird-140.8.1esr-vi.xpi 518883 BLAKE2B
bf20c6a9ab90ce7d818c80c634e55fb80045238d07bc1c3d311e1419424fdb41006012a6ce0c2953ecdf39ed6e4154332aab7e6caf141a38f6a2cf7d288023fb
SHA512
1f2b79e8c35a17a7ea7c8380b82c264f603bef2e22da8d6540babad140275f2a4c18ef6b7d3db0b0e00780cdae0b8da4a13183755857e8c6a0608c9cf5ef5842
+DIST thunderbird-140.8.1esr-zh-CN.xpi 507846 BLAKE2B
3114689dc262232cab30f7cd0adc1b07e85228bb6d279fdcfef7a17f78b8153544a5f0456b28209550f226ccbec103f9d413ebbd15dbb1c022d650ff6e2b78d4
SHA512
12838b5f073250e2aa55edc4eeb50d4fa87eb72edc5d3c9715699a39c58e4cc43197dc78e7a3e6085d169861dec97b820c4d2c982d65e9ea2ac3b6c7e6e37499
+DIST thunderbird-140.8.1esr-zh-TW.xpi 511431 BLAKE2B
98434d85562210ec5ef7b462c90b3c5f34a57ba36927fad762509eb68f4e47075c2248ec52d4b39891472c01d44c8e2de4ffefd3de99554b3883ac7a64614677
SHA512
a7ae5833d3765587283ca6a48dcc2d4080a98fa80611aeefcff6f503b30804281b7c58d2eacd1ef53bd19852b70ec6b7fc31a9e16b99e52423b0dab9fb6bb4e5
+DIST thunderbird-140.8.1esr.source.tar.xz 758191280 BLAKE2B
efd7063425954258a2754b1ddbfe6c60c8ffac2b2cd2528ee1cd89ea6d08744a33547e672caa24d526a4dd0fafaadad888bd65b2064f67334eaad4f1407a2aee
SHA512
9fa041b21ad084d2ca98a128b62be057555b5455eedbcef24794ad5fee662ba0058707b8528437fbe5a321f9f0e71ebf9a8448f8ed902f06a2dc7d88b4980bd6
DIST thunderbird-147.0.2-af.xpi 312139 BLAKE2B
8cfe583bd0e55686d3a77517318aaa46d2b4038cc7eeee9480c96e775a5eeda6dc3c97736210763930fd9ca28896dab0100a770e1b4213381a26d2866a1270d5
SHA512
bf7a22ad64e2fd2479411f14f1e8f81330a200db87e5d7e3eb4475ffc001fe0ac51515aa9c50172d974f53ef2210a3fcc2493755bf642cfb6aa9106ccb9d4c59
DIST thunderbird-147.0.2-ar.xpi 434055 BLAKE2B
b8d9a4cfa2c13c1a940e14cff780a52cc4db60a9b856ccdf2348e90a07785fc6eec4ac9c399aaa14f6f29e7d8046d4ff8f9693327dbf5843a80bfe1ec8d0a031
SHA512
e1f24efa472c31693ba4dd9de7ce81eaadad6759a8699a235b32ec73fbe05a86a20b0c4043b82ee74ad5ea5dee63481da0c59fc1eaa76595a80049732b3fa2c9
DIST thunderbird-147.0.2-ast.xpi 336206 BLAKE2B
4a72da9cb6087969f2ddca2a060db6f7e0b6ecc5e3508f49ffb566fa260045ea527f3d938e33c68551abe29b8c779fce50346f415f1b1eef8d5ec539dde957a9
SHA512
c6857c61c1ab2bf72c55ba6f967e53eb0b5a2af524f2c4eece806ca689ac6f451a49e2978a3b268d46f669d4205527532cb75de8abb78386b8c160831d25db8b
diff --git a/mail-client/thunderbird/thunderbird-140.8.1.ebuild
b/mail-client/thunderbird/thunderbird-140.8.1.ebuild
new file mode 100644
index 000000000000..35492b7c1a07
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-140.8.1.ebuild
@@ -0,0 +1,1166 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-140esr-patches-07t.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.3
+ >=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
+ # glslopt: bgo#969412, bgo#969871
+ moz_clear_vendor_checksums glslopt
+ # TB-specific
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/comm/third_party/rust/glslopt/.cargo-checksum.json || die
+
+ # 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
+}