commit: 7c540c11ae0bce77edad1f677bc34dbbeb713bc8
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 5 10:52:27 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Apr 5 10:52:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c540c11
mail-client/thunderbird: add 128.9.1
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
mail-client/thunderbird/thunderbird-128.9.1.ebuild | 1171 ++++++++++++++++++++
2 files changed, 1236 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index c244c5a981c8..f6f962b60533 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -198,6 +198,71 @@ DIST thunderbird-128.9.0esr-vi.xpi 790622 BLAKE2B
cf9d1aaf8d6be62c95b69b84bf9cb8
DIST thunderbird-128.9.0esr-zh-CN.xpi 790962 BLAKE2B
defeab1d6ebf4f71b222f642e5aacb88b8e0d73a47dd228c3ea986c79425508a92ef8acf1d6fc12dd7355babd790854786d4af3afdcd0c5ea63cfb47f3981e8b
SHA512
b0962a344f99020a79dcd26e56cd2c1a78b4980b0ad26c34a5f1de607d3357abeb8d2f27b06c5c112bb7a02f9f6e2d2e626861a69f09252112dd49f160a30f06
DIST thunderbird-128.9.0esr-zh-TW.xpi 794254 BLAKE2B
8110f2b19005835e32f1f82c0613daa04087c194453f2faab6541fb6eb5b85a62a57a7a69c45587427a1c809537e0191a0b847c409e47309ba7b596e221fdd22
SHA512
215f0994b85f9376457cb1d1eaee1977fb251bc1a69389e6eee016b0cb13c7bdcc8137ee28b9e20ce1dfb5179862f9b353a67a16e70d062f4ccdeffb1d43e415
DIST thunderbird-128.9.0esr.source.tar.xz 675867820 BLAKE2B
6c59ade4027267ab450890dfa5fca116ddee3aefa69a4b4a1a621fe79b903d908bc3b45d02446603cf1878219dc54c19e254e04bdf8dc593061e04da99dc87a2
SHA512
37ff65b1d8aadee11917db932cb1c30eb62116342c614be873ffd9ea44d51242216407df8a21f24c32e71f8f4feecf62a0b922ea3c97ffca4bbedbeacd640d45
+DIST thunderbird-128.9.1esr-af.xpi 534912 BLAKE2B
3aeb43a8241bc88dc984df1cc440f32c9e0f8a59165d3ed50560ba6ed79a1cac491d1e88a6998035ad2a25dfd62de7a7d6476fb4763130c4df9d5920b7069fd6
SHA512
1379ec53ab702a070c64e1dc8397633257036380612dd9492d21ef4897e7cd8415ddc81775a6f707815e2c24317ed649d28ed372f4e21b8c24d9fc1fb72f98df
+DIST thunderbird-128.9.1esr-ar.xpi 686462 BLAKE2B
2694a007c1b661af334c07e908148fea35dd3218d7ef849875b49daf0212dcf4efc084b6d7ebe405be631f45be387863037938497c664237f712d34009817858
SHA512
71ca0757dbd7038ad431e48068182260b25c32bc1c102b92c18a03e19d0b251b6701cd74577750cb77ff7fa22d9af60186617a8a0a805628a0e24f0aaaab06e3
+DIST thunderbird-128.9.1esr-ast.xpi 574779 BLAKE2B
3248e4702f00e6b7cbc3538def8ab1228c5659177194c28d12a4c9d7867733fdc4e59d98455d8dac9e7f011c8440b4ba5831f70af30a462cbae91114c3519812
SHA512
0525e3c94eda0cd452dd24456eab6765cedb60b9bcdb412c1578186128cc45b1041f4de4f09611d8a1842036a843fd0ad4839ff856697170620c5211a3537a29
+DIST thunderbird-128.9.1esr-be.xpi 781611 BLAKE2B
0dc64e24a7ffc579aea03172093faab3fa449c4c9a4164ba8f0ae472c24f469fdf41316c754e9332bae1387787f1bcdae67f818ef7e7790a2205e14110c39d41
SHA512
592d8e844361b8532a1cc69198ffd5b89ee5f2c6cf01e7e6344da7bc04457bd9c23252508f73fada76ead9c551e0497c211a4c092325100760f339c7246d239f
+DIST thunderbird-128.9.1esr-bg.xpi 814007 BLAKE2B
b992b4d021b013e123a765f064d1c880826b85e939dbf11e432327cbd29d186b1998ebe3d3ee300bd7d50f813dbe187978f33a8c303c7f04c973af0ec6bf9685
SHA512
bb1a965c9fd38a3fa291b95fabcac6affd04373fe2e47a926790f98a597cd20883019ea23aa9cfe3ea961b613d6a0cb3958c7193a9f1c90473af61c80e0a4f91
+DIST thunderbird-128.9.1esr-br.xpi 650139 BLAKE2B
cec67d52012d6bf3bb28ae14a14ebc55c150083822b555583750c2e5e3162bbb32f73e2f3788bf280bde0fc32728a261daca85acd11f21b7725ea11be52fd73b
SHA512
e10a899d1691f124a0a3d90acb0b851815bddddf75d68f685705b44d7904c660fba73abfd34aef7e58582340eaeb8c4ba8ebeff03c373ce532434bd103c741ba
+DIST thunderbird-128.9.1esr-ca.xpi 704671 BLAKE2B
988cf50145088654aa6f24d64f3cace550a28833050e33149245628dba923eae6c431fbdb398ff11ca6aa61cb506c0680379644f003f48dcad4adc1264305069
SHA512
1b6996ed3a17eabb0dea71b9155693f2b98b75de861d8b0efef608a10e0baf14f6fd9a889eaf5c34525a9522e7b293004aaa941c95c8d63247b24de6b01b0b4e
+DIST thunderbird-128.9.1esr-cak.xpi 669094 BLAKE2B
82f3ba6276eaf766a4bc9345fc3649483c258943ccc7621aa38a18cfb083cecf9b983f3f9905659c879936fdc9202938daf81015d3f86b8b4c49607fae8fea82
SHA512
e9c6c2b839f646f6df34a5408d1b0f99a7c9295cc9a1aef0b5254a878bb0da196cdc75a94547ca63027a8ada7f9606d5ff5271501dcab4589cb8a7ee578cd0ed
+DIST thunderbird-128.9.1esr-cs.xpi 789856 BLAKE2B
c6d631412b2e6e19582536b6020f7d920e1f45fa64d89dbc09ab0aea71630957fff659a4d59a32a401a6f0d6c1b7934c3c4952af55ce0ca6ecf71cda863c00c4
SHA512
425cb6912a50675c96b2443249ba229dc19e8a5fff17b4210e0becdf247796ce86a96fa756da86a23690475905028c6742e5a14332403764d98a5611faf8dc25
+DIST thunderbird-128.9.1esr-cy.xpi 753573 BLAKE2B
9f1294571210c7d8286a6c7d0ea5f018a25abd769d7d983c0baf79f4d0eda336068ac34fbb3cbf12a5d7fc9cae6cff66c92df793b0d643f92aa4e78fe9b7c0bb
SHA512
659401769fa2b09e3fd2ae55a669f315b7d87779751d76495263efa44e1a4ead1a0e94a7d4989f9892c80145660deb0a9923bb546861c62b844fd70e116e04a9
+DIST thunderbird-128.9.1esr-da.xpi 738600 BLAKE2B
c390b3227a19b3930511a1c6172dd520789e0062ffb97e3afce8382279a9167aee7be83dc2d6693f2ea94266935a762c37949e012e1e6d8f0d918582de41fb2d
SHA512
db4cdda64eec89351c553e0597b7229bc84a2790e7d2dc8d5de9a57d49dfd2e59a1d8113c518f5d719fe0097b45923cb0b6a954839a60c260c80c5c1b5345b14
+DIST thunderbird-128.9.1esr-de.xpi 771421 BLAKE2B
a387149341597e676d128d827afa5dd636e5b97b5cb0126fd144abe41eda3b2d26fcecc6aa2503b6de95d82dab71a450467e4aaacd84e82f11aacb120c88311e
SHA512
6eb8841b3329916db774ff3d2718274596dcf1145feb0d112d59234ca42d636dea99d45cd4ad5d2f1b9d1429842d655ca7bd0bc8ac328b2a1912f938924a4d93
+DIST thunderbird-128.9.1esr-dsb.xpi 787497 BLAKE2B
1d78d355296acbc566f81d78c02826acb87b04eee1adb9f172b80dd71b4e412f5319a7e86d407d0dee15cee0db9eaa66e375f08031faf66e93eb9388b1605564
SHA512
b020047c7da6ecca695ef7aeb648ed06679cc6159cc59e30c5dfc8c5c574bab66a966181c974956f17c144d2c846f93ef49e0149a6b91fea105db0aa2b64c01a
+DIST thunderbird-128.9.1esr-el.xpi 892795 BLAKE2B
4e61a44bd03c03482736f077adbf33cdf5705e896aa77c4e0d25d48dea512c162c0b35f8da7c7e6f853cb6f0691b8ffbf7d0389d91abdcf017e88660e1c13fb7
SHA512
4338d32d34a489d317ea7d828caa56cbb194463e6f852d8dbcaef1eb539d0e4d68b199adfac4f5bcb8049b13808c3e20eab5cc89381e6639869801c6c0f3d135
+DIST thunderbird-128.9.1esr-en-CA.xpi 705369 BLAKE2B
d498e8ec12328915861015d38b8b986dcba1499105097d038d61ef496603b9734066c740102b23a7a860daa1a53646dea4f4b6f468c2cf42fbd1ede83c541b03
SHA512
885bcc38cc6593bb2939427a946ffa90ae009529b4095cf15c075e3c580ed1ae2aa0dc6e2ac3194e39e65980a0f756299fa7545f4fd2db6d0d0f31621b78ca39
+DIST thunderbird-128.9.1esr-en-GB.xpi 705107 BLAKE2B
da653408d633be97000341dd121f9af5d524b1baadbc63e8780859bc66be2171f5cd6b4af65b0980cea4c4330354f67238a3a9d6c4d7b35c55752d39952e2545
SHA512
84f116083ad8c14554ce52624420867b945f53ce15ec20798e933b4d098631f36daa31371f0a5df39f5fe7fc0d56b35796bff1e61a9e2b6ee9661a1211b63e50
+DIST thunderbird-128.9.1esr-es-AR.xpi 760990 BLAKE2B
21ed6e7f55ab2f47813c4ed5164bb159a13b848dbf45e6e046f739c990851fe55aaeefca62748bcb7b64403a8c1f17b03ca2c4e67b5fb67380fafaa2fe06cea8
SHA512
15805a360294b808aac8123190d1d319a8318781a08bb8aafb814b5104fc89cbca1ee9ac5220603e8ca815740d97e8a2c26f21b9e61ffed7d2e81658d3b16ce9
+DIST thunderbird-128.9.1esr-es-ES.xpi 761587 BLAKE2B
8af7d9a8691620e06c51253b122337685b5ab25caa7857eac669cd7220c65e0162a1f1ce4c54c86f83630f8dacf60aeb990b02df89d22a448b7b7700863f5c40
SHA512
6a47107f04091a32326f345190f539d3ea6ff405332985df80756463ddb21a636aed4d326d27ae224e380c0807217e7b0592add36a93c27e306438f00b6d82b4
+DIST thunderbird-128.9.1esr-es-MX.xpi 756969 BLAKE2B
f654fa997ee5cb42df1ece25526bbc526e30c851e2771016f5faf8bad4f45e4cfddfe3006031091d9cd628779302cadf57794de1318a2ce222f2380e1d6ef4f5
SHA512
16333881551c884c06fd108192d7d686fe850a55f7498432f3c8d2c4d9f2ffe75187ac9d6e52e0fba3aefc7e930caa131e473ff6fa242ce5691b48f861fdc91a
+DIST thunderbird-128.9.1esr-et.xpi 692375 BLAKE2B
a5a8c09b7390a52dd04935d38cb4723efe1fd7147e7e97d8200781d26079eedad1699a8bdba989d3a01f2a96239a108da2dfdc6d9d3891c35debcc69c1552922
SHA512
f39fbbd1f13b061ca6968298d9301cc45ba4891588ddc7f377852c1b5538fd5210208d158f20f4458e75bb463b0731f8e1762f0416f12a400061c39a320a3ecc
+DIST thunderbird-128.9.1esr-eu.xpi 737438 BLAKE2B
7746ef319adee739e8540eaea5f69ceee89eac5d9213008239366140187db0c26a66a2c41052b7f13abd79abb698509a172d779bc05213cb2468f922befe324d
SHA512
bda5ea4953ef39a60a7c2ffd435ce5011d6e359b51fc0694b03b33a88eb36d330b65d0c3551297bd887029be1a6f9988c43a7b99d1572d1fcbe72f149fec52b3
+DIST thunderbird-128.9.1esr-fi.xpi 735346 BLAKE2B
814d686bcce40a15c30d4a475413f30b40b92cd281a4771e5aa4e942498d5663832d0050c2dae3233cfe48cb0ebeca1a689719bfc6f143911b2afb07b61bdaf8
SHA512
1f5230a2b387a58f129bad777e70f83ba6602b7bfdbfa20371e645ddf40b55fe5ab7345cc38f1b9dc54511e59b64310ba2dc773dba046ac4783e7267e4d10568
+DIST thunderbird-128.9.1esr-fr.xpi 775199 BLAKE2B
6835b2bc2a2a1920cbce80ea0d912a23e672049ded204d93574e1d2ae04b324927370570ef4ec92d036d5768c6a9bda965ea36856b9f61b4f0787259d5737fe5
SHA512
9a26f68b823e1bf16e3e145edd8aac2a994b971bb2cdb8132e16f94c1d638a2b01244b2c52138333e24cbe5e6accfa5ff74b77c982d75404255ae77fe6bf826a
+DIST thunderbird-128.9.1esr-fy-NL.xpi 756474 BLAKE2B
e1564809d8a02926985e5d52e4fd436a044b861e3154fb4fde88c09165b8c138caf5067b77a65395490527b00e08502f23f2a4a53db6309b05e106207e8392eb
SHA512
ab601dc27a7cd71916866c2f545e5dbf85fdf1d4b944caa25fbed4c77db3c1112a3d28465323a28506685b755168d02139b30637acda9d5373b9fa285b192f8b
+DIST thunderbird-128.9.1esr-ga-IE.xpi 614300 BLAKE2B
6e2a235fb9a67f8147e7c3154466822ebee9985f21cb638700ac06addc767e2b0de1142b126945d8b21bf9383e4cf80259dadfd1e5a7738411fd61c3c542bbb3
SHA512
84158113ee863a00995456b66413343b96116e46ba2d175e7e045cc32af678aefc86886fb573bf80829e7177999eb050de8f3577ff35cbcd8efee58eb33e2be0
+DIST thunderbird-128.9.1esr-gd.xpi 723344 BLAKE2B
ed1942f1e0308305e8c969f083d95dffc00d5cf18c7de728c537a024374d0bfdf5bc7a3f03f29972e4b1b0c5d8889dd11a1f674d1dc428342592b90be3bedc00
SHA512
59e7ea09d4888c00b5473fc47bebba69c8a1657e8b63e95906bf783d03b173ca86e0956889088161c95d69089e9ef36b092bccdc8ba88ef110eb1ff1b1953234
+DIST thunderbird-128.9.1esr-gl.xpi 738663 BLAKE2B
54fb475f201641b28e974dbfcfe4888bc3b66637c02a0e37417ef6c61856efd3abc6c4cba8f9074d2ded64be9b70da0cc418f25e2939b3d19f23aa3aa26eda3d
SHA512
424f420e60c90b9723c78ed70328de8232079cd6d3cfff61ffc4c3451c6c0db236df81b97e579aef80b3dc5774250ffee562dd3399547a8522bf116f31e372b5
+DIST thunderbird-128.9.1esr-he.xpi 696999 BLAKE2B
270a27aa49979e85643a9c227cc7985b850a9758b50e7449e4360b38ad96b26053ed9c701d73da5a523996c5dd3c05417877d16c65ee7642fc5b90308ffef34b
SHA512
0e932e07c22524d4057df605542c75b7d5b0b53cc208a2014e1a3e130ee84cb32143af7ce6c61113ec6c4b522ed76f73e1a9ecd91f2ee69c9953788e4a56b2f2
+DIST thunderbird-128.9.1esr-hr.xpi 724036 BLAKE2B
9e067da7444aa5b3e94413978bd3a5c6d2700df1799036fe639baedf60b680781dadf4959014b7b03ad3c4a70936b5b55862d8c2caf0f0721ccd76651ecc7c26
SHA512
1343b14ed3cc804dbb2797c5c2250db20765c0411749f9046ee252f116530ed009a0fc92b28e76782881a4e35ce1f44fd25b74ca53897b76a63077808be72e39
+DIST thunderbird-128.9.1esr-hsb.xpi 784036 BLAKE2B
dde92da82a1387e18764eba9de7c92d46a9f074f58361e584f7cb14c5af701a7d521887a24313cd14094a608d9fc2c5b94ef9922ea2bd8613ee4e3d89a920b4d
SHA512
6cb4f5f229c4d8f0f6e929693631321a14d1b02a2a67177bbb51f7ed6aa2145b62ef25705986028a381973459610743084f31da4af81b080ed0c906545cb28a3
+DIST thunderbird-128.9.1esr-hu.xpi 787699 BLAKE2B
019d775317ce50a5c5a1ff2f58be5de00f705bbba3264a1361e7a7def470e41e47607326fbb3c63ca8acb218db60269ca1d52fa5a989fa849475546131360d58
SHA512
9d4c698d3e4667879a80635817a63faabbe90fad32e6488560c450dc9b8bc6cd821e80c936c361957f5be23cd951c8906e60743978b0255f7558763a29172177
+DIST thunderbird-128.9.1esr-id.xpi 721178 BLAKE2B
da9e8741f6262e2d70cd8f9a4754541322ea730324e84697ddca0f9705e0be0cac7017dd5b5a51bc926f1b68f14dd66d37b2cc3a2954b0cb037cad76264600cd
SHA512
4eef2873335e55c917b64eeabc8334787a0adb5a06b4052f748f9f5242b8161a01478bf302f4e7121be7d99a717c65dcc97423ac540ebe43b642d2750168982e
+DIST thunderbird-128.9.1esr-is.xpi 750933 BLAKE2B
70ffb87ac1b5689abfed22d37d5e19939460e66021547c2059d6d8a7805041d140e9e3a1a3ad98f3d298a0651f0a9fbadd6eb2e04533947ad60e363bc561bdfc
SHA512
1494873d2c2d6af369575cdaa64e2e28d5a48b6c7129264321e12e80454250908ca13ac64e709d9bdc4d0013ae751e2b0fc7def040bbb4eb59ba1138c672ccb6
+DIST thunderbird-128.9.1esr-it.xpi 752076 BLAKE2B
e95bfb3b4cdc1ebb65b77bdeec1fe931ceae08c10314f0f8f4c4398c61377c47582db34dc8f705e5d92f2d22f77054f763b13a97860dfd4c088186dd0ec56e17
SHA512
454a1bffdea337dd4f7fcd3072dc8750edaf5e15689ca8023fa48bcd15cc8f4673a098d5e68504ce0c1127ed72ed0074b8567011564a1419cab146e5dd5a9d62
+DIST thunderbird-128.9.1esr-ja.xpi 822946 BLAKE2B
ab06e54520393e8ea7c0f2fef2fdcf2bd6273e5c747d3d7b72ee06f53174e9bbf2eb738ed9d2c7bff5f3d633e09771bee3681d5fc98c9267eaa5b68a9d24f7c9
SHA512
5090ce19c88f8fe0fdc2616672ba16f608c2ec903389c7dae806e9237c2018092a81038a8588a1a84c0fe63a74d8717cd5577ea2143258757ac2e96e9c76c80f
+DIST thunderbird-128.9.1esr-ka.xpi 814153 BLAKE2B
3c9655d76a519769d5c10490d205035dccb6886e0427d2f905e6c0d3a5543f6126bee24312730efb6fc2536ab676f8233ea5740588bc65623034a8016da7a9f7
SHA512
fc39d709e389d12fe5db564f72b2579d2f391f3698966c69b957ea8f08909b9a79ef15981b2ff34a3c37aab8aa589625e97aaa8d34409a20e42eedf7d5904bb2
+DIST thunderbird-128.9.1esr-kab.xpi 729661 BLAKE2B
88c135587d46cee548c9af5801e17d97afb0a6e073b4ed420eef13a0a4363db0227aec59a2299f2d3edd0253952a2a1a7c8be1f8cc5aed80d41a1c82ba7776f8
SHA512
afdca66f0e4867db27b9eb625d9fa5c5dccde96be5d095e21b2105aee03072245a7215f1ac7a47a406b7e6e5ec4461cde1e763fcf403e70dc88b51808f59482c
+DIST thunderbird-128.9.1esr-kk.xpi 856116 BLAKE2B
bc5a48949412158c5c1cd2d5f6ee8cdcd9b45e5d8c6bf32ef163fa62738f97eea54d3c2b282c8dbe1c7a3a45a4ece5e3db70ac6bf72caf20dcaad45e35e90acd
SHA512
21bf5caf30cbf21c4c698ef77cf87192d8d9b61fdeb6b13a5f0e9be739e4d66e4879a449ffffac38e77d69a81f781de429f2f46316532dab8f53396a157ac528
+DIST thunderbird-128.9.1esr-ko.xpi 790138 BLAKE2B
224d09347659695a0996bbd1869e3ebe10488db5e42c7a38253cc21d69570ec502694890314dbd297393d640fcc116fc779709ba031656cecedff9570a6e94bf
SHA512
c7bb6be4e166b80a68fb9dac46d2adbae64bb7699f72212d3f4098d661dcd390c1279dad0b422e6d9e9c0e2c8aadb238c020fc503b46ef5bef6025253f91fae8
+DIST thunderbird-128.9.1esr-lt.xpi 696749 BLAKE2B
c31b5a211ca9609874813692adf87f4106e67574051e7034f4f3e355e714a57acd18a44fd945d471db8addec7d4a6274b18ae24ce3507cda13953df59eadbba2
SHA512
4899687570fe16a9ebde5f6ff1c71365308c012ae76db6a7a8e5dcb328e96bfe81d4011e2e3b7ab4a1b9eb9028a0ecb77823d2bdc86c9a10b650314230cb3651
+DIST thunderbird-128.9.1esr-lv.xpi 626196 BLAKE2B
3e9576d38e3ac1fedf762bc0ad82fb0e0f520e9d11c2ca3a16ccb40752c7fb952391890eb2a6180e1536fb77d2bb3d732358cc00b426564064431109cdfadc8c
SHA512
376ee032a4f4b691d203d273bd8bf3a09f22cbceca6922a96d30bc53c0fc7dec0e394d9fe1d2edcc2831a7fa26bfd550bf6b9bc1dc6fb3e0020bf31499036210
+DIST thunderbird-128.9.1esr-ms.xpi 586656 BLAKE2B
0c6a04b93422269c51e517b16d31af4d732c5dc8e5ac02879aa0c0f88aa8b81bb76a7cdb5e8c3e331f8fa01d1d0f314b05aa4e43f92c1f15701b5597d24d31d6
SHA512
31af9d93883416e17c591715774c33018a43f8afb863df1cc33f49fdd069a7fc6dc9d241cbfb70201492f5fac815b9147f0d86ecdbbd42415831a88648766289
+DIST thunderbird-128.9.1esr-nb-NO.xpi 700492 BLAKE2B
fa2006f9ac767d1a1aae98423d5dea1426171cd427319be584577383b66cd3a7981069a51ac4a14c4c39d5a622a468474cefa904b6eca1cbbeca4eebe0618b56
SHA512
4f1a84841321da3f9115a8fc5e9b5789bfcd1bee5892b57d5f653280fb4295672f86da8cee43529e9cce47324f1ad465348258f409e6f2fd4bb5b6a711a6804f
+DIST thunderbird-128.9.1esr-nl.xpi 746756 BLAKE2B
7f8eef78615b3c6fbcccbb51e0605bb299b473f2cbc640977613578e73f42b729e3e9d73c82f699134dc72015334bc14fbfab50df313d7a30c3d90c0da95972f
SHA512
da8b6f3cfc300748f1d2ce04fd831cfb758b61481d13da0390fc92d06123e0aa52d9057e6f2721f02b112508e6833c206d5a82059a8e3afe28cb910bc31d7073
+DIST thunderbird-128.9.1esr-nn-NO.xpi 726226 BLAKE2B
e5170b4666a723a0989f4b4bee49773b3522bc69854a163b914026b117a63d439db301b731b192af5a3fafdd528592d8373d7607c6c972540edb3bda0be369f4
SHA512
b5b820262f3a30c77701780bd7a45726e8eff99f1ec3710a200f414705885bebbf806e72aeb80b6649efae6c3c2734abe4efa2ecea35a2124f899934dcc2d236
+DIST thunderbird-128.9.1esr-pa-IN.xpi 687930 BLAKE2B
94e44434fdd433ff58290849622437dd15503d0042fb62b77c99f1ee45c2c392eb3b0a76b7e7570a6e2b6d6d23d10dcb852684f7c3cdb55ff08d1e2ffd644cd5
SHA512
613ea3ca0a0ec8b7e86df2c55826a13bd050b4f2a8e0e2f83b4c1380662657ac770e3c6f0e7b619badfb017ba9a88916273804ebe63aa79be2202c32ebcfeb49
+DIST thunderbird-128.9.1esr-pl.xpi 785521 BLAKE2B
457180d95a14a184225eeb1d044c628f0fa67ecb4d556dc9e70275d12bfd4118a4abafff352d056ea6df532abf14ecc505c3d9047a184ecad8b2af0ef65a6c7a
SHA512
76f87a3e6318bb5013037528c9a9221dd40a8956e73abfc349a34c950e8633b28aef68947e007e08507dbe0f91df6359074bdec888804c67c505413e84b2698a
+DIST thunderbird-128.9.1esr-pt-BR.xpi 754954 BLAKE2B
eeffe506f2bd4dc58d9c4e0c59b05496d8c00b91b6ff85ac0b690f13ef3c3599d094acd5a0174877181886aad76f493227c66b68e1eb25733cea416de391a335
SHA512
b335e444ec2fff69f3c5ac690d8bb582b7fd873ad693d8adafa3a0229f857ee42a8c12dd7865bdc64f5bbda22c2becc331b5dc739c312e48bd8adc4649d05131
+DIST thunderbird-128.9.1esr-pt-PT.xpi 747653 BLAKE2B
01273300187038ef2cec13efac92e49cda1d201d932b2113b2f11985e6fc717b2e3a5ae84a03e50e1d778ea8ec1073f9ce643761312eb18599f17f5c683012ab
SHA512
64e9190109b0d241f454e8f66047c5a491160aa9eb0892125c1835955cbb274ca67372954d3c22ceee60af5e244e6f774e6936d41f5a6226a0df562e5f2bc608
+DIST thunderbird-128.9.1esr-rm.xpi 750655 BLAKE2B
f1891454955ea6f48ea24bf9c70f7e5f97c0cf716573b4965979e391b9ee0c5a76478dfea1eb442121e5a48b5f91ef83508c609e3691487d1e18af8e98c62242
SHA512
60e708dea78cf0ab9677e3ad18f68ed531903df92c6c05900bf4bfeafde4d2828328824fb40a460fd837be7faf5602b2ef081b9f8f32a03591b7c0c6579ff032
+DIST thunderbird-128.9.1esr-ro.xpi 666552 BLAKE2B
e27419abc90a7edd811b7d499040a766d0369e5605429343507edd679b83cf705569b4ac0e8cf492c5057a78485c61079e0456673aaf1e85be3adc9e4695409b
SHA512
c1fda336cc46b97572ca3f7911f31473815cda7108f004da47a56313e7b4b1c992abe8a8b739d2d49ca8761e06b9de47b28df21b7d4ef3c7e4aa9be70b8d5825
+DIST thunderbird-128.9.1esr-ru.xpi 875877 BLAKE2B
5ccf42b4be19c3d5e99de76756ec0a22bad082f635f18621b24e7983e56d6926b798da6b44d82b61d874389bba3cff48cd45ac0e83dcd68f31326da1d5ac55cb
SHA512
2cfe4554391c8391f4329be82362ab90cf114009ef7d26f1a46cbecdafd90bcedfa99091cca668d8772eb61105e4b99a36db0b63c444868e532c97f8d53a2af1
+DIST thunderbird-128.9.1esr-sk.xpi 789275 BLAKE2B
eaff2fd6807482e2a954be21623513002a7852406a890c4f7f08adf7ed7452c7a23072df13cdc9c6a131db7ff5a86535281b853a074aca9e83ac48bc1f93167e
SHA512
8154d68801a6966089ff666ece39e6dfd13a159f10da9c0b3c0079bcaafa8825da830fdb46e34a24091b657661a82a57292fd87acfcdcd67141cb7852a740b7f
+DIST thunderbird-128.9.1esr-sl.xpi 750620 BLAKE2B
8a66b91d788493a70078dab4befaa9378ca72811edfa5feed3b607f00296046ae10997f2b7d5b04f5577849531c9506aac32f1997c0ef00d6f0be3b4f1d3b20a
SHA512
eca5087fb0acc0c58979fc22aa69e6e13b328c57a5faa6242c0fb3d9d891a4e3495285a7361fe5c11f4a8191745384090c7bc1791008f9cbfbed2ec26b68a15d
+DIST thunderbird-128.9.1esr-sq.xpi 773099 BLAKE2B
e4ad2dcbf522912854e341542da13404234c00ed90afa7f117518708b5f8103feed27fe8dc73823d12ceb67a28d26297191a3ca360acc0d4e1277329eea74796
SHA512
a65d074df3fe964f1b267833fb756ff75cd233994b699f9c7b180a60701fcdcdc194a7f08ba94ef95539da2fbf7c827bf67818a9d7404d1c4c59d0925ec19804
+DIST thunderbird-128.9.1esr-sr.xpi 766344 BLAKE2B
72843267576c067bfacfa4169c080b782cb7646aa517ac7d3792b83e577f328fb3e9c6083bfcb9693065c54c4049b664381d4f52caa9246e7d686b450fd65a89
SHA512
60f92790734551ea5fc1e3e84dbf179d246ea82beec76d1c8895805b4e5b90d86c01dca868ae8449e9ce4df521ec2467648319f9079af1b44cfd0b4e219a96e2
+DIST thunderbird-128.9.1esr-sv-SE.xpi 750537 BLAKE2B
ef75c443b5911e2d51c275c5e6ca76968fb80e729f0c3cbfd035ea27d4c354d7bff1adb2155610378944e38c4bfa879ae8ac48bb73b84ec7769c4ec390c351f0
SHA512
2322132f5a259da07fc16c1e55d7b9be3a89429e6e2b39fa1daa777b31cff85ed3f8df541dbfc2e6b65c1e30cbf52044d10dfa1ab2efe956b15d4118224612b8
+DIST thunderbird-128.9.1esr-th.xpi 846501 BLAKE2B
a82f3776b5d9856913007a06acdb0541f54bb862aa0887ed4ede6a7900a75f16f678994d04a6ff6cc3d20336d722a474f3394f20602855cc2ecdb3a1dc271717
SHA512
f2173606fcb3ea5a574e579ed377fa1f2a3a35a93b649891c5eb54a484221ac61762e0a61ccffc89e7db5815e23afb676557c48dfc238e239c8a3509423e2c6f
+DIST thunderbird-128.9.1esr-tr.xpi 762697 BLAKE2B
328c93cfbf85a6d2d5c0ed839c9272fe9474f92e19958597abc9aff778cff9f1379da487f1545cb6cbd66abfa46ecdb4a74853e1eb17762d664d2dff8784cd00
SHA512
bf99e356437d163aa75513a1f0cbb394f9db46caba4434f332769565815fee3ab3a49a3ca8b93489ea6eb8012b3b1032078a37dead17e22ee599df201015ffde
+DIST thunderbird-128.9.1esr-uk.xpi 864130 BLAKE2B
f551ca333099a54bb7e9abb26dea7d2ecfef1f6646ffd815eae72b48215e291921e239019e956d76c18751646dbd21977b896275233526ded62991922c39dcb7
SHA512
00f20df765ba913740d48565ce4eb6862f8a40c4df829ec1a31946fba41ddd5275682a876f7c279d652d6d74c48745f0c4e501374c0bf2582f13310f259f0958
+DIST thunderbird-128.9.1esr-uz.xpi 589340 BLAKE2B
5dc1c4d2885cc3072be8334752d40ec3998c2e090eb727161339fb8a70c254ea0cda88d6e0185ee7157a97f3626eb7dc167ff62d029d35de888736f1560f3516
SHA512
24fcd627164de04b9ae6338129ee72e673ae445f41510327bba9269a570f42aa75afc55de8e45a9188b35a778f6eff9480ca758a97a85cd3c371b7ae49ff140b
+DIST thunderbird-128.9.1esr-vi.xpi 790624 BLAKE2B
4db0053b2b3a759b2f9669e67105a88c676aae0d623030574805bda5c3c97ccbf9d0d68d7bb92d1ef16517b307af47b11c143a3d43a09e589c7e1e0d8cd26730
SHA512
18121bcb5cd6d827e557d0c65cf618b021924112c5c5a23437676046c1aaa76011fd74137f30fb8fa23dfc787225db4520efceef7dea7f869f788b82bb9d13f5
+DIST thunderbird-128.9.1esr-zh-CN.xpi 790963 BLAKE2B
1daf03c672558c502b3f58df73bbe312af6ad72d1a479c5a58f94d497f4695bcb52c6d514f24dcdbd2f111d166de4eb873d95f7e1b456b9690986ecaabb732bc
SHA512
f7595bf7cec3543cb61d527b00299d9c6a41b2855c0fecb9078c0f249f078dfd82d6a9b99aa24817fed7d524987f5f299f4ae5447def1f2ece84a3b8df375536
+DIST thunderbird-128.9.1esr-zh-TW.xpi 794256 BLAKE2B
ae935095826acbfb328e2d443e17c6f3ddb604c98497839605a782097befaf7e36f13e361bc3c763f1aaf30ffa0e2a6d12327d873eb381c55a4b8fbc8b2ee59c
SHA512
849850d9fbb4822086a713cc37a4380b4d85162048ca0c0a6a70425829f634529ba60d4fef36e24338248961d4b622231b78fe15e5e0a8e0da9bca58fe474b11
+DIST thunderbird-128.9.1esr.source.tar.xz 674219396 BLAKE2B
2b9690dc6396c3bd3074fc7b9015b35d9e5957df2d885c7142ce21a26fc69baa1acbeb0944ab7a97cac6298ae7b6d518b07cc14677e0ee8e02fae17375596cd7
SHA512
bc53ad210c6942fd4a5d31e693d6f376c009873397ea4e3c36d9de33d9dc1af5a3ff9e6ca9039dd8849ea8b56daa220f08b7bef4e2ea1b86e98dfe3b9b58dc0d
DIST thunderbird-136.0.1-af.xpi 315235 BLAKE2B
913082a4a8b02fb6ccfd9f7f2d78ac25f36064129724b8fced7ab2784f4f87d717bda8843f01e611879431a43c0d21a81dbb6c11aeb7880481399623e3e19a60
SHA512
b5809ce531ee8e8a8410f467ee51535c22e1041c7cdd3db8d432c542a400a4fcb9ce338ecbc8f26c4316844351021a3c6f7e34fa65a734a5dd87ac7513d60298
DIST thunderbird-136.0.1-ar.xpi 430240 BLAKE2B
9a3673856d56462ef4600f884b5c27f0ce78ad8ee7205bbcb98eefa72b3c2d636f780283958785e5c831b06cbb5b2bdeb30f0eec2042c2460475b4fc8a8d25fc
SHA512
4afcd597d70db6286fa600095c4dc9d74079d210f769a010b16c9d1cca414755d75b51d691c598259cc5c50ede6d63fc9e5d1be6f5d585bdc0d44937b43eb287
DIST thunderbird-136.0.1-ast.xpi 340880 BLAKE2B
ff5cabec03d867fea103d1b93127aa78933bfb5e8dcc5083249d472a10f60ad35912cac2375e9cecc98ba6d464427a1628199f5efca327e6fb7591943e59aa33
SHA512
37761e5a69b8c38268e25ab79832638577ec3c91c7cc4b8626750a9e1a4ca64c19cda9ddaba2d19d4f02847c1b140340fbf547031fbef95e972d9499935f4197
diff --git a/mail-client/thunderbird/thunderbird-128.9.1.ebuild
b/mail-client/thunderbird/thunderbird-128.9.1.ebuild
new file mode 100644
index 000000000000..c737cf50b0a6
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.9.1.ebuild
@@ -0,0 +1,1171 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-09.tar.xz"
+
+LLVM_COMPAT=( 18 19 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.77.1"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's
rapid and esr.
+MOZ_ESR=yes
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info
llvm-r1 multiprocessing \
+ optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz ->
${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ SLOT="0/esr"
+else
+ SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy pgo
pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent
+system-libvpx"
+IUSE+=" system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )
+ rust-extensions? ( dbus )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+ $(llvm_gen_dep '
+ llvm-core/clang:${LLVM_SLOT}
+ llvm-core/llvm:${LLVM_SLOT}
+ clang? (
+ llvm-core/lld:${LLVM_SLOT}
+ pgo? (
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+ )
+ ')
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.26.0
+ net-libs/nodejs
+ virtual/pkgconfig
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )
+ pgo? (
+ X? (
+ sys-devel/gettext
+ x11-base/xorg-server[xvfb]
+ x11-apps/xhost
+ )
+ !X? (
+ || (
+ gui-wm/tinywl
+ <gui-libs/wlroots-0.17.3[tinywl(-)]
+ )
+ x11-misc/xkeyboard-config
+ )
+ )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.101
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? ( sys-apps/dbus )
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-74.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+ system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ || (
+ net-misc/networkmanager
+ net-misc/connman[networkmanager]
+ )
+ sys-apps/dbus
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+llvm_check_deps() {
+ if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+ einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM
slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang && ! tc-ld-is-mold ; then
+ if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then
+ einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot
use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ if use pgo ; then
+ if ! has_version -b
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+ einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi ->
${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d;
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p'
"${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to
be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server
can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif tc-is-lto ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="6800M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+
+ # Get LTO from environment; export after this phase for use in
src_configure (etc)
+ use_lto=no
+
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+
+ if tc-is-lto; then
+ use_lto=yes
+ # LTO is handled via configure
+ filter-lto
+ fi
+
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and
FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ if [[ ${use_lto} = yes ]] ; then
+ # -Werror=lto-type-mismatch -Werror=odr are going to
fail with GCC,
+ # bmo#1516758, bgo#942288
+ filter-flags -Werror=lto-type-mismatch -Werror=odr
+ fi
+
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif [[ ${use_lto} == "yes" ]] ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="6800M"
+ fi
+
+ check-reqs_pkg_setup
+ llvm-r1_pkg_setup
+ rust_pkg_setup
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough
anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox
(bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # Clear tons of conditions, since PGO is
hardware-dependant.
+ addpredict /dev
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to
fail with
+ # a traceback report referencing
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build
failures!"
+ fi
+
+ # Google API keys (see
http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see
https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+
+ export use_lto
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if [[ ${use_lto} == "yes" ]]; then
+ rm -v
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ # Workaround for bgo#917599
+ if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+ eapply
"${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch
+ fi
+ rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch ||
die
+
+ # Workaround for bgo#915651 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Workaround for bgo#915651
+ if ! use elibc_glibc ; then
+ if use amd64 ; then
+ export RUST_TARGET="x86_64-unknown-linux-musl"
+ elif use x86 ; then
+ export RUST_TARGET="i686-unknown-linux-musl"
+ elif use arm64 ; then
+ export RUST_TARGET="aarch64-unknown-linux-musl"
+ elif use ppc64 ; then
+ export RUST_TARGET="powerpc64le-unknown-linux-musl"
+ elif use riscv ; then
+ # We can pretty safely rule out any 32-bit riscvs, but
64-bit riscvs also have tons of
+ # different ABIs available.
riscv64gc-unknown-linux-musl seems to be the best working
+ # guess right now though.
+ elog "riscv detected, forcing a riscv64 target for now."
+ export RUST_TARGET="riscv64gc-unknown-linux-musl"
+ else
+ die "Unknown musl chost, please post a new bug with
your rustc -vV along with emerge --info"
+ fi
+ fi
+
+ # Make LTO respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure || die "Failed
sedding multiprocessing.cpu_count"
+
+ # Make ICU respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py || die "Failed sedding
multiprocessing.cpu_count"
+
+ # Respect MAKEOPTS all around (maybe some find+sed is better)
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding
multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py
|| die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+
"${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py ||
+ die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed
sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py
|| die "Failed sedding multiprocessing.cpu_count"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py
|| die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py || die
"sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \)
-print -delete || die
+
+ # Clear checksums from cargo crates we've manually patched.
+ # moz_clear_vendor_checksums xyz
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key ||
die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F --
'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1
"${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_clang}
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+
+ # Configuration tests expect llvm-readelf output, bug 913130
+ READELF="llvm-readelf"
+
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}}
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-disk-remnant-avoidance \
+ --disable-geckodriver \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-pixman \
+ --enable-system-policies \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-ffi \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+ if ! use x86 ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more
arches.
+ # bug 833001, bug 903411#c8
+ if use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # Enable JIT on riscv64 explicitly, since it's not activated
automatically via "known arches" list.
+ # Update 128.1.0: Disable jit on riscv (this line can be blanked to
disable by default),
+ # bgo#937867.
+ use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64'
--disable-jit
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_enable rust-extensions thunderbird-rust
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp"
--enable-compile-environment
+ mozconfig_use_with system-librnp
+ else
+ # This controls the backend of the bundled librnp. Choices are
"botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's
preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan"
--with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+
+ # Increase the FORTIFY_SOURCE value, #910071.
+ sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:'
"${S}"/build/moz.configure/toolchain.configure || die
+ fi
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends'
--enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use X && use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland'
--enable-default-toolkit=cairo-gtk3-x11-wayland
+ elif ! use X && use wayland ; then
+ mozconfig_add_options_ac '+wayland'
--enable-default-toolkit=cairo-gtk3-wayland-only
+ else
+ mozconfig_add_options_ac '+x11'
--enable-default-toolkit=cairo-gtk3-x11-only
+ fi
+
+ if [[ ${use_lto} == "yes" ]] ; then
+ if use clang ; then
+ # Upstream only supports lld or mold when using clang.
+ if tc-ld-is-mold ; then
+ # mold expects the -flto line from *FLAGS
configuration, bgo#923119
+ append-ldflags "-flto=thin"
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to
USE=clang and USE=lto" --enable-linker=lld
+ fi
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409.
+ # mold does not support gcc+lto combination.
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd"
--enable-linker=bfd
+ fi
+
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # lld is upstream's default
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to
USE=clang" --enable-linker=lld
+ fi
+
+ else
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "linker is set to bfd
due to USE=-clang" --enable-linker=bfd
+ fi
+ fi
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ mozconfig_add_options_ac '+debug' --enable-jemalloc
+ mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+ else
+ mozconfig_add_options_ac 'Gentoo defaults'
--disable-real-time-tracing
+
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS'
--enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS'
--enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default'
--disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default"
--enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # elf-hack
+ # Filter "-z,pack-relative-relocs" and let the build system handle it
instead.
+ if use amd64 || use x86 ; then
+ filter-flags "-z,pack-relative-relocs"
+
+ if tc-ld-is-mold ; then
+ # relr-elf-hack is currently broken with mold,
bgo#916259
+ mozconfig_add_options_ac 'disable elf-hack with mold
linker' --disable-elf-hack
+ else
+ mozconfig_add_options_ac 'relr elf-hack'
--enable-elf-hack=relr
+ fi
+ elif use ppc64 || use riscv ; then
+ # '--disable-elf-hack' is not recognized on ppc64/riscv,
+ # see bgo #917049, #930046
+ :;
+ else
+ mozconfig_add_options_ac 'disable elf-hack on non-supported
arches' --disable-elf-hack
+ fi
+
+ if ! use elibc_glibc; then
+ mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+ fi
+
+ # System-av1 fix
+ use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+ # Make revdep-rebuild.sh happy; Also required for musl
+ append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+ # Pass $MAKEOPTS to build system
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+ # Use system's Python environment
+ export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+ # Disable notification when build system has finished
+ export MOZ_NOSPAM=1
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support
arguments
+ mozconfig_add_options_ac 'Gentoo default'
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash}
${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org
default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with
mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
+ if use pgo; then
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+
+ if ! use X; then
+ virtx_cmd=virtwl
+ else
+ virtx_cmd=virtx
+ fi
+ fi
+
+ if ! use X; then
+ local -x GDK_BACKEND=wayland
+ else
+ local -x GDK_BACKEND=x11
+ fi
+
+ ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from llvm-core/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated
rendering to all-gentoo.js"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ fi
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path",
"${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the
pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name
'*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions"
"${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if [[ -n ${MOZ_ESR} ]] ; then
+ local desktop_filename="${PN}-esr.desktop"
+ else
+ local desktop_filename="${PN}.desktop"
+ fi
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ optfeature_header "Optional programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs"
gnome-base/gsettings-desktop-schemas
+}