commit: af2b9f3f8a97b508c26b748947a32af3186e4d07
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 11 15:43:54 2026 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Mar 11 15:45:05 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af2b9f3f
mail-client/thunderbird: add 148.0.1
- firefox:rapid hasn't been synced, so tb-148.0.1 is missing some musl fixes.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
mail-client/thunderbird/thunderbird-148.0.1.ebuild | 1163 ++++++++++++++++++++
2 files changed, 1228 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 9dfed8557136..633be19e3d09 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -262,4 +262,69 @@ DIST thunderbird-148.0-uz.xpi 351139 BLAKE2B
6b80cfa8447fb410e74fc30d8216835fbdc
DIST thunderbird-148.0-vi.xpi 524774 BLAKE2B
bc4a16e90864636d0af67997aa823d026d7d86d6ef2ad8d86cdf9e77894e881bc14c4f569dfbda428242373a795c58f84704180036640056234746cffdd13b8f
SHA512
26721b48abab1464c6204459040cf6e2d8655ce391537a7c4f86513267ba4cd78ace9c27b1a5288273b6438f2d46a7264f27c18618044f7091e9d5424fa8f5ee
DIST thunderbird-148.0-zh-CN.xpi 513663 BLAKE2B
f80a1f9ee59b505f892289451a8788b12eb9ea24a557464dd805764f4c08e0d78f8ea36f4df7a3d0cb9d7ef6d689c09aa168f2cfd0836df5c0f1e057d8457b97
SHA512
df735bc8f9fb1730bfab45728ca20f0e98c355294ae162e4c6de6f7a4122d93456466264f45ecafa2f61e9e30a5cc3a11a11fd1ad0a647922ad50c06cf3754fe
DIST thunderbird-148.0-zh-TW.xpi 517420 BLAKE2B
3b7fa35e76f3db18a618b674ccfb4c54ce4d344b7fa3ec57b9f43a3bc7d6d158ef91cf143b7e274589ecca13c32971cc5298603986a45ef84d86f30509c99226
SHA512
9f807c4c32468b4c624347829e8fdfd224165a260c054e4d6165416f09619392ce9eaf9ae6858ef70296db64f016645b1329c8d724f7f975c1a20f26e710cf87
+DIST thunderbird-148.0.1-af.xpi 310337 BLAKE2B
5baa4d6072db4539ff4bbe7d86154ef60382b2473c0d4bce9493659bc2a7fa75c163131c1169722fa61992c4fc2c2dd358ce6ded149737c25a5853329c5ab575
SHA512
a871b105ac99040f3d66cf67def2ad978e05c7c579345904ad57312099741bacd8baebd249e249b0ca175ed682c683395d518f3a9557dabfb9a48ac5643dfdb5
+DIST thunderbird-148.0.1-ar.xpi 432417 BLAKE2B
2b4e70461973c28665016386ac74cc175134f7e35cd2ced4e5a8813140956d9e14cbee2bf7a85a68656b1c3b191d642db8fe8004226d644d61192f623ce8bc62
SHA512
df2dec9f4a93ace4e0f0168f8194fc89f8e72e2b620c484cddf9eed1a7607e48888aba4d5ebdef0642c2568c74a35175fc643241accdfb42f31110f26d2dc397
+DIST thunderbird-148.0.1-ast.xpi 334504 BLAKE2B
5f2eb6a3cc347a0eefa3ad6ba5364be404596d76828bda140dc3824ac990f84c0604d9b9eedfbe77c7a6f85f414e216844df6cd47cf85307977292a341a4aabe
SHA512
71f4eb3469511e80db4ae59581d33e465abd38d09a9adce40936a10b62649c659576371423450f75e2e2f11236581f47a37093fbb15dbfa7bc6fb0de49e930c7
+DIST thunderbird-148.0.1-be.xpi 522152 BLAKE2B
11f7618031efff2e659e1b4c277b43a0c7a899def42d0cd6831e3c1e8b9dd8c9650b42e4b5c6c0f79ba715b1aa6530741f4145de9f51792260ddcca51eaa58af
SHA512
1bbaabf0f032a75f777d6c3434ba0274b080de714d2543d6406e540152c3c9107459097feaa796809637cba6db9362242527d487d79b0180679848af4bb4d5ba
+DIST thunderbird-148.0.1-bg.xpi 541257 BLAKE2B
ac63322157ef7d4945ca5e2e65ae1aa90c07cac4464efe24c2ed38279821805b8b088f867f0b87671288b06cba8ae35a41ea61b8dee50387b089288a6382f8e2
SHA512
3e9edfbcbac2b5bdef3e1df90de1feeeaaa9aef192011c9d252b6093de4c51f1eb174815f147be70cbd23e05df2b4fb047ea567858278a9ace8aa357f6be1c95
+DIST thunderbird-148.0.1-br.xpi 399304 BLAKE2B
315f81921a1c712c83f74aa4fdfa3617215b1d32c5e92594ae30cf8e74a7dd66c44aa7b19dd9aa5798ed85b4a44a3e183a9593480767e7ae437468a8cbd040d3
SHA512
26c90a391ef415be86d97a5b8a24675e8a8c470146b617f1daf1d397b8ce8602c012f150b3aa3c5745da52a72639f1cd0c4f9c1a6baccd403267dab8671e1d61
+DIST thunderbird-148.0.1-ca.xpi 436485 BLAKE2B
ff20554f44e0aa0d703756079e45986c54d325b8f38e4388a69e6a8eed66b4bf83cb6d6f7ec1ca7c4252fe4a2dea84eaf40249f74194b8df7b35388bdd446cfb
SHA512
5f4fd4ccb2b7034855a6843feef534adcc22a315fdc3cdfa201efa24b977c45183be4de310888dd0ecf20425b12b0b7c65af946bf77aa6046a6ea421c9ad41ea
+DIST thunderbird-148.0.1-cak.xpi 412916 BLAKE2B
8a17f99c670e4d9cd753ab8fa2bdd1e0659a00dc2e9edd9a300699d6079f25e196301b77ba9b23a12e04add291838081b80ee1d7c160ad0d98cc5edee7f6b420
SHA512
76d5df480c8cc8631e9353d9efc1e2edf7bb90a0380f5b11e0292a5b8c07abedff3a40499b8e96f848da0f1e2336d66a63add60a1005c8445bf46d67d34fe9d2
+DIST thunderbird-148.0.1-cs.xpi 527171 BLAKE2B
34de3214e068e340293c9caedbd83bcd10f72e6a570eb6eb58413c282366a52805ca863bb27ed70ced150baa6391b952d4a09823954f7721a0febe047862bc99
SHA512
db3444e43d82e7833ffbffe0681f8f440c97dfff5fa1b6d628603d0da8ca4f7bc8f44bc8f1e4aebe05c8edce5dcaaa66681777d3465fa444cc8f0e3244fc7c57
+DIST thunderbird-148.0.1-cy.xpi 494618 BLAKE2B
e172539ac50f4785e37b6c281c8da0a0d65d1e3a62d9469bbde7cce2f0df99a62eb98aa47028378cc8d3ba9bb5ba2b34e56e4c918883346fbb9466254cdb20bb
SHA512
1d600a6ea442edc9c7c72fa9cbd1fc092ad3c453d943a805630be98b72466619e37f4d7962496ca69351b957b45c928fdf88e77d00f21b585fe58c2fbdf65f76
+DIST thunderbird-148.0.1-da.xpi 482254 BLAKE2B
f796ef987c002d9a3aa107f1dfc00f54b8e21670c7c7dbfd4c82d37e7d7ed11330904ff9dca85c5f6ede7aa39ed86951d5d7561645e444b6ce5fcd802b2c8d0f
SHA512
4a722a1185b85dc35217f8954b8863df381b65e9929b3fd5afa73a4be3880ea209cd292f73f152a0ac07d442b112ba80d36caef5f36c6b9492d2b31af71b4b39
+DIST thunderbird-148.0.1-de.xpi 511447 BLAKE2B
1593872c18bc6d4264dd6bfed4a75d31efb250de7e71d73752bf98f1fff1cf90212aa9edfe3e03877b0652bf035a4e33cf8502a43b8daeb509d12bcae163a7d7
SHA512
7f3c93f04c3f689e47050091906a9a752ca0704d54d04677555138591a421b0e779a804cca0f5a69ef860ca6723096d85745d17230dc09512b17557f1ba20098
+DIST thunderbird-148.0.1-dsb.xpi 524279 BLAKE2B
8c06f58009d7b891dd52996cc10a6a5ead26eb4583a61b8098655c515978c8952a38e6e02d8ee31a84a453b35f8bc0994103a72d81720d950b7c032bd2b26c4f
SHA512
3cde5b2feb0360760d08ce1ee9bf3c80549acb7d07fdbf5007e8a3aeebd8929e27ab0ebeb58d3560ae8096fa236cfd73a146d7225ebfd948a1e4cee5ce1f48d2
+DIST thunderbird-148.0.1-el.xpi 616183 BLAKE2B
b62109028fd1d739d62a54496b2a28fbd51dc78b0ef94647780e7663ced644d43cc5c3be6fb13b6cb5029b858abc8336aa5a542fad0e2ae134ec6695399b041c
SHA512
1c8dd4a84087e20cf9d272a58f5048c3e198e9f0e2b43167c4afa4244af553cd1bc0810fc5bf69e56c1d09d1c8b4dd321063dac62a2d1583b301f67841d9ece4
+DIST thunderbird-148.0.1-en-CA.xpi 457767 BLAKE2B
036c0734d3bb59bbd14b06a82e73eb13ceade252390cabe45182115e7777fbcee1d5c33b43686b7a9773628354d03a3ebdd410c6e568b1a253b5a4002960cb3c
SHA512
cf6831e5c854a5a0809a70c87862f4712458fd6db768f9c3a259e5160330ee588a358adc5a182a54b3f991d2a141fa9aac26624b462ab5794796aa4f0a3ea6ad
+DIST thunderbird-148.0.1-en-GB.xpi 457631 BLAKE2B
b6f3d93e9df6300bb243e0cf50a533d9d6d7076374109ac7018e0bb67fc5a3b27af36ce1c95a4fd65b75d48888924d2b8882031d07a093aefc5c310ca037a942
SHA512
327b7aa83f69c0aa60d5046a2d0693a3f42899d7a0117c0c4796a29118132ce7ae0da49ff2d3309875fa7d1bbbd26588f8023cc0d5086fdad9b364fed0a39f68
+DIST thunderbird-148.0.1-es-AR.xpi 501426 BLAKE2B
d745ff7474147c5caffb7fadd4540acfd0bbf52ad5daa7db55e604c0288dc23d01c2a6f041ff3d58846836765d9c9be6070b2145d17c507272c224fb137f8e61
SHA512
c014327c321c2afad14699b62c7185a5ca955073ec466c0a8d0b346d14b5fefd645db573a5c567411a0a5af8a9d971307b822162c644f6628be2c7c0c76406c8
+DIST thunderbird-148.0.1-es-ES.xpi 503700 BLAKE2B
1c59c650ef1c1cca8adb16c57a83df463c6e73e8b7f1fa9122e71fd8a24ca2391031cfc097097ac06a0af79a0592c45b16bfc0d01ecaccbe46cd52c1d92f1a84
SHA512
65ea1aec75b221488cb9d0bdf3d7a200bdf6f0f2616230715f5053795d1efd8b292718db38d2187d7ca1df5d542bac3b4a835b875e9aaea17a3dcf3c3a5f034c
+DIST thunderbird-148.0.1-es-MX.xpi 491208 BLAKE2B
68601c20f6c7541bceaa1036d89eb74e1520e12eb6c09ff759637e6d284d5ce9900ef681d91bdaa833da9cb3b4e447d94b8ec2ce9d182c9510362c0c004461b4
SHA512
8e23f85ab4db2368f41f6f71bb04de4608728021bbf8184f92bd324b2200015dd642cd5dcf89a9f6801de4cea9225f32196184646eaa15285da61914c9f51162
+DIST thunderbird-148.0.1-et.xpi 439460 BLAKE2B
b6f27b0be6ff1f586b26d3c419dc86601383a9cfca9c18a00bfb06edaf331fe691e4d39c7bbda28a6be9647cb40f5d3adb5861f81d50a98f39f5044d5131f260
SHA512
e507a6fc20ac8a568f2102b86b9b2a99e960a903f7646d136e4517009f6b94c299913d534a343eba009c82a923ee563317e7dbf5c50f9d75b825fa78b926e8ec
+DIST thunderbird-148.0.1-eu.xpi 482055 BLAKE2B
56b3c60583bb33ef35596c0ab761f6a100836540f5481e6a841ef7e525eb566c6da913756c5575b25ae472c9aa6be4220356a87eb033b84622cd9721c39d1224
SHA512
628adbf46be6ebb2544aafa36073a3c1d29795c5fe44ccc713f12b468dea2aaaea338ab65c8ba215fcf518620fcd11a59533b6e38ac041232b6ca054799394e0
+DIST thunderbird-148.0.1-fi.xpi 478800 BLAKE2B
a7209b1f0c8d1512eb7f35fe8fdc19697ef9d7d9ca6bb20887364a605e19c21afe73464b29ddba744c14d9c473e995bcc404fb2df9f49cc7df168f68535ef955
SHA512
d9fa2839ff6a43a52aab1155613631b7725ea4b85a44b99c9ae8f23da2eb76635f89ba18cc3cf44b20015993dd178f4ecf1394cbb0574b54a4c7eee7058afa9a
+DIST thunderbird-148.0.1-fr.xpi 514832 BLAKE2B
ed222af9ea09ebf4a9aa1915da3e2e3134939457e662fb4ebfe6a4367c6061a2f7f89b3fd5fcf195ddbd0714c2de61ed2ddc2f28f0cd1573e055e8558d774652
SHA512
d38bcb5e761e349fe7481c22cd5f34e4c1fce808d16b0f5d2d8ab6c2de98e0ad645f3ba2144131f268dde610670d614b6d1467d55e43c1d57fb269f8e0367562
+DIST thunderbird-148.0.1-fy-NL.xpi 496985 BLAKE2B
c5aa75e08de55b05841de71a43be5b5cc6f156175713d7f3f4f6d5b7d399ecc93313425826f86d4453c0bf6fe96cccae60736fd05bfdd2186a382e27e7af6e9f
SHA512
0aec6996b8e1f5e99e6b6eefb493c92a7c445e2c1feabf96f738b891c8c8c54e449939c9c6fbdece6bb2fd042e1b8974b85f990f802b4835edc5734bd0e0c305
+DIST thunderbird-148.0.1-ga-IE.xpi 372550 BLAKE2B
9cbdad9a905ee19df619300e0a3073a73d990033a59b8af3fb33886038478e8de796a6a8e6beeecd085ea1f63035badc0e55824097ddc33e8d5140648cb22082
SHA512
c6103400db965e4b248f4c69af930310e5f55c9ecae3a7beb304393756fa6564b78f5fcd53612ba133b34e9aacaae46114a248f8717b2a0c0812e5f48d168f3c
+DIST thunderbird-148.0.1-gd.xpi 457787 BLAKE2B
69825a544725f3624793b73cd3c316c9f8856a809fba22e88fbdf9f4e71c61707a192ef3d896102ad6a43929bdf8ac1f5267723bcb2168a7a32ce67a33a2e742
SHA512
d2d9676c87fb4a5ec0cbf0f85d12580b96331af4364605e2c295662dc6e1401a6109df2f7b377629eecc85b93d80ac14001deed10e286224575309f0a05b823d
+DIST thunderbird-148.0.1-gl.xpi 487117 BLAKE2B
7b585434720068cd00f78a19bbaa79e0aa61c42b130886033bf1120654d1a3212560c3a0b0748ff191e3d8ce57a998b866ece6624496e7aa20a7e4299283e5f3
SHA512
3b3e7fe3f8fa4b915c6948e3295e46c7974b7490610bfa957f73351204cbcabe7990799f132061d3111be8538fd721c7340ce8bf8add292a337e4c7a6995ac13
+DIST thunderbird-148.0.1-he.xpi 443915 BLAKE2B
d76cd0d46f3d420440abc81251e251b6127177dc6d207ec2d1d170dd97db367720ccce2bbb06a2bbc632636eb53ab1c7a76cbde4bb3ee1f4e13c8e66c06495e2
SHA512
1d7bd92eb1647d52c91f3f00d1ee3ea589607f4b3b90e1f2bd16cf7a0646938ea33c70167d8b57ef05a9920e1cfc2ecc85b9fc14efdf0735e8fd217df66fd0e3
+DIST thunderbird-148.0.1-hr.xpi 476391 BLAKE2B
92d9d3bd78ead76c1249d948bcd099e8a391c77834a67e0929aeb1dcb99324c80e0cd343b789f167a587f525e54bec946417315bba746a21e4a37e1b6686da43
SHA512
7527e30d5280b65aa30cfefa502779b33330de8db19b889afe0faf7aa018caab35a6a759b297915f07353f0911258a68ef204c3c0d44706fdebdedbe8a427fd2
+DIST thunderbird-148.0.1-hsb.xpi 521617 BLAKE2B
f6759be2bac19f430b9a07b650cf29befd03c18b5550ee0c8af4dd080a2714813ed2e276161c267cd9e9c7d966a8cabe208245b4f28f339d45e04ac02f59dc09
SHA512
6b989f656a6be6b7ef661384066d09e17216990d28aab71fd959f1a0c319580a9c230c01917058121a47b47282316b20e39e5caacc1dfef00f88ae0dc3148c14
+DIST thunderbird-148.0.1-hu.xpi 524208 BLAKE2B
633ad9b096c99b057de7aa5284b0aee7ff4af6806be246e01c96f055198c5904285820dda43d540e2909b90b001bb47b5b09e15f0c2da66f6493892e0763148a
SHA512
4ba8766d01af67367501c37a841d2704b18393884f280fe36f3d87e197c6cd8ab5fe2e9123595c17a70624411a520693406cd11f0acb2b3362044db3e6897bd1
+DIST thunderbird-148.0.1-id.xpi 469884 BLAKE2B
58ead12e5bcfc7c2ec7e47ec07f183d746074dce636b529ce32da3f5e416054a961c4740042a3a282b5179637d125a78524a30fa0b661a20744134fd7ccd86ce
SHA512
bb3646e108425cbd203383ca420578df3906e3c27028ef3dec639fc73f1624d474ce70956c32b71919492e7673f8dc33cddf295ef956b48c2a0094c91723f809
+DIST thunderbird-148.0.1-is.xpi 484177 BLAKE2B
79f7e4a5674d0d68a09dff60fa90ed888d309978227123c03709652f8a965e8e971593de8a2fa8e49bffadec3ce33479fd0d5186f2d7c325d2a0e87c04d96445
SHA512
c37fb4b0ba43ea46a0808494212fd31b5550ff62c803b17e7b48ff98622db956ae3a97fb889b4542862df2372ca4a36e08461d7dde95b800d1835d5e0e282ef8
+DIST thunderbird-148.0.1-it.xpi 494619 BLAKE2B
ea5c917b60051f422be2354c0d5175d5b247790eda35554e75a5b21fb67c54dd0a06b10061c342192a3b04f3508f37ab468d39185c0cf41c1b0b599f8ed874b5
SHA512
462690edd02548e2fcd9e4068934462edf738860c3d3425dc32e3604cdefb1215225705e03295344d6e63ab44e12cdc59c342c46f0a6a9f2377959e329ab2aef
+DIST thunderbird-148.0.1-ja.xpi 545896 BLAKE2B
33cd9feef0bcd81b72cf01d8724e20bb6daf897646332a2e26fc7f3af1a5c0fc0328ccc41dfbb298b80b8ea3beef896c4a5ed84d6f1cffbf64850fed116933aa
SHA512
bcd4fcf4c9303496129d2a9aaf676ef14624ed34ff7c9709a39b1f4953e44a743d3fe2bf8ca215bad9cdd7f487754c4dc8ec8947d0567185bc32d2bf18ae3d1e
+DIST thunderbird-148.0.1-ka.xpi 561647 BLAKE2B
a671356aa97e16e480e717e9f2696bace8174441cbd8306f5b3b9b3b43c47f78e901dd8892db6789db3aa490ef959a3849ff9dedc45a4da190e5d4591424730d
SHA512
8636f7ed6e8f702a96bb0c0e888a77ada8fafa320807d76b03cc3bb77c39ecc9078da666c037ab97877448b4cd610ec307d9aac741e1b4c62c9f9195e6d77c65
+DIST thunderbird-148.0.1-kab.xpi 467312 BLAKE2B
92c1d92b1d608109888228fd057754c719d21a388683093e17c2ac16772f321fbcf993bab336ef29880407680c1096543c7623a72e1729c936838fe50c7bd60b
SHA512
587568e47ca1c0f5c0b2a850d4898e235cd67886c65befc82798b18cc03e957fb01fd7facb4a994f42871ba03979ad4827ff1e46f1bf55396ba7f2068df0d74d
+DIST thunderbird-148.0.1-kk.xpi 586017 BLAKE2B
dcaa556967131f9bd527639b0bc805d249cd6ff568aa4a30a53f9bd28b67db7e7007a5938a19c45067ebf3f67331bdba51853a83c943c50a8e1014704843f335
SHA512
37d0206f3514dcfca82ff60e4a96b8aea1d49262671dc41d4d1829e4643e6c3837d7ce48d61ee521e892862fff2239093ce7d478a22d36d45ff26c190eee3482
+DIST thunderbird-148.0.1-ko.xpi 518853 BLAKE2B
2235b5f9a230273daac37e0d30f2e7446060a0bbff8a14dec601ff88c39736fb6c7b5ca2184a8e0b8a91902343b235542ca9c70e8a67f826ce962f7bf5e22cf9
SHA512
cc17d722456db1285be26bf9c414f0c50630266f5349e97b33c3147db626b0f0be3fb256d19f2b417668b97e3cee8045ce2e29bf87ee12c5578ccd524b6c3d6e
+DIST thunderbird-148.0.1-lt.xpi 449262 BLAKE2B
8bf43dfeaf5219bc7ed69084f73e88a0f26f8599b40733e8cae426e38538a9db4ee227d386da168b84fd5ff01c528a5295021be082e39444a1ed3a8c21597146
SHA512
1c7fa51b8fcc62b5afc7b8ba077ae8823748ccbc3e97db17ffa06940121ead36bd40597d2d1ca800195909ab059081874598019038442950433ec1f0a8d14ce2
+DIST thunderbird-148.0.1-lv.xpi 387023 BLAKE2B
2521439513e794fcc2324d721ec1e69f128c0ba9fbfa5981cb8ee2122d59c2edc79027afcc56a53187dee0337c7f73df5da4531b7993e4e003024deb5af1ac84
SHA512
2a312148dcb0d5cd216aab6899c7003448d02e6c9f8bb2824ca2ceb0fd2437996594f05e932f79950598ed6ed7c8fd49a7f93022049948ba6d14735bcfe11d2c
+DIST thunderbird-148.0.1-ms.xpi 348850 BLAKE2B
e7aede13567c38c4ff4ae4466e14bde1a40238371e3436fdf6bfd743e6c3295b5a13a58f4a96bfacd5739fc52a58aead793a6fd7542fb2e5ed7abc6c649aff3a
SHA512
bece4787926f2db2f1348a6bd9607539a38a65963eb10e5d56f671846c9cb6ea2f2877a19f3f847d610c216db321b7a0735f200cbdb0e7b9f73c6e4d6a24e59e
+DIST thunderbird-148.0.1-nb-NO.xpi 482118 BLAKE2B
7315a41bceea35c16fe10ab8942593944aa3900e5d96d2dacb1a231d0580b418c99b5b9880b0fd70ff6484c1db80ea20d72bd1dc92b66abee7cab3df22fc5a08
SHA512
fe48f1138c1339b679c7e7abdc40ff39054f985e9a958b4ba7700ffb7ee5b1fc0c015655af8bc453550d42e409deea810a3413238ce1311e402f38b399e8785d
+DIST thunderbird-148.0.1-nl.xpi 488322 BLAKE2B
a231b13188c1259d5c67a3124f93e00862092ea9173d52f6c966a105690dc1f5e56d78eadd7ada03b02ef37e558647bf542ce7617471b26102c6bec0b1fc7218
SHA512
faf727f5b1e802326d0468f9e412f015457c59ac755d50f472836eadf77e86645f2b51a5fce061087e256af862811bf9079407d1a8e84c9f478327da48358016
+DIST thunderbird-148.0.1-nn-NO.xpi 486012 BLAKE2B
d3b40acb4d9279a11c85fae60278bdbabb9a9f695f72ef7683ba3ca80a4dc525d902afd320eba80a18969bfe8fd046b289c469026dce53d560f1caefcfd9c253
SHA512
3479770eeff35d696547e61615a6317b8771f98c80c2de5f0577f3cf4d6f42844db70fb95db6852eb0050ffb428e21a55f3ed26a3515d836cc4ee1ce1d2c551c
+DIST thunderbird-148.0.1-pa-IN.xpi 435826 BLAKE2B
3331063c1461485752ca9dd966cbe0cb981b70e5a351f07b12ce36e35ff084d751e13f1019712a97c281db8a7e811cbb9abe2d6cd3781d8f633a765f975672ee
SHA512
c35b5ce12b438f14e367a029ac7b216a689e9cd6cd508c241c65318431aff3155f7782a2cb649582acfc6817736f6890a8601e04f39be46f7be947ba89f2c8f9
+DIST thunderbird-148.0.1-pl.xpi 522379 BLAKE2B
aa484bb103cc024aafbb637aaf7b2b396ba61db4ebc45e136611d1afc5bd7e05da0640236e602c3a74fe78209653c4c73611f1761f481abd17c5474d66333834
SHA512
3a2faac6831fbc4354eb236cd0350b2f516df74f7598d9934eb6246ac7b632810c57c5dd69544e960a9767f942be7ebbaaa67cb1a7b65ed7e570596e47f59374
+DIST thunderbird-148.0.1-pt-BR.xpi 496288 BLAKE2B
d2d108c964afc4a7cce9587de6ad6ae76560b39e16a4c16eb8194d35dc5caa5b2b44134752f68b793e235f91cf33dfc7ede2fdadbb0c8039396ca77e4f07b06c
SHA512
392afc6b2d22ad6306bc587b9eb466266dd048ceeaee24ff432eb0a7f944aeb67566bb01af150fb153cd4b0729b7b798190bff1b4e5bdeaef30d046a6cb9882c
+DIST thunderbird-148.0.1-pt-PT.xpi 494067 BLAKE2B
8a7ba402f4863cf4722780481a702b5aa42fc8644f5027b4d16311a10b1d52ba82f44652324fb823ee9a406f9e0705a4904e20c485245498b46c0409a732aa84
SHA512
fe0cb975cde7f1594a1468a6a3447b10ab6c69c48592af9ad23d80cd4b915b10c99d6ae8a02c0d993d4246d64ddfa771b1f3b590daffcd3bacba96d550fced84
+DIST thunderbird-148.0.1-rm.xpi 485795 BLAKE2B
f942a76cb61ef6bd48376ed81b0fc3145d0d7d301b8dceb68badb6cae3974bc44c6e3461644ff0de5fd41d05d1f3ca35aa8d3dcdebf73b70f9d984ef5b603756
SHA512
62e5fcf3a70969c69c87dac7b63093174f8019e286fd35cd90bb4a6abdf0891a80a7514c246d59487481519ac92a57fbd2cdb173126e8df2906b4aeeaa137397
+DIST thunderbird-148.0.1-ro.xpi 507593 BLAKE2B
5cd7e91e95bf726860b98c5e18fe87766df966f4aa27a2c47d50780d9989cc1d82b4ec249dafee4daf0fb7fe944ceb540bda7bbe7a06a8b1947a74f8ea9a8f8c
SHA512
778ca672731f5d28b3b22bba0b8677f2daf665ef9b08ee5bae00b01029b49e6265b300b6ae4f48a3dc20eb18c0e2b9ade4fbe4dd868effa4b020c0b7f1e7e639
+DIST thunderbird-148.0.1-ru.xpi 600965 BLAKE2B
3d9c9af19c646671238c9bafa649f17158cf30c33e8843f4deab99d168eb06ddf8f4be236d31ea4b0e07e68637ecc264a60755edd597c3705d53430ac230ac13
SHA512
9f6f26b3d403dd2afef62249d8209988d5b86fe6be2b606a882c805b5745489d581de816bd39390a1b879b09b8a84c308cb905211c6c1c3e1e91b8fd1a801b48
+DIST thunderbird-148.0.1-sk.xpi 526861 BLAKE2B
76b6dba1064283862e0b04b147da4025983ea24137b6431a69f29b06d9354fa1229f1820492b00f0e38f27026e8e45e8469e5e83788f4245483e62153b07fdb4
SHA512
038b017830264f878a1b1a1f12f5dd21982edf781d446146751d3d60ce9ce67b973900a32a605e110ab76f29741ddaf37c5961308097c6f3e30dd9c726181eb1
+DIST thunderbird-148.0.1-sl.xpi 491096 BLAKE2B
e2b258e1da33a523bdc9cc1de910fb0475afd444a51439bf35bca31a1bb0260c6e2bff3807578f85c9ce40c00a0064f2206979f677f738eff12877ed2f50fb68
SHA512
4910566806adb5b3bc3b5faf4218687159f75f2ebef70a622634f49cec0d04a6254cdbfde2ef0970d1ea2207341712ce217dbd8ad7e29cf303e04618d630dd00
+DIST thunderbird-148.0.1-sq.xpi 512107 BLAKE2B
17ff3991b866519614850067c17e5e34b907619a99694565eb0c2a737c86f6aba049472439544777d9801f386b5e9f4b92809d9f6a1f2fa93963347e17d067c9
SHA512
cb31ada00c9b353e69f65e69feb986ae2caed0f8c459a58a03734c9c96231631b97a164bf544363ba977fbce3ab440923b3b0822dee0ddf8501503cead90ed88
+DIST thunderbird-148.0.1-sr.xpi 491177 BLAKE2B
a2299b66b27e44769b6848e15ba8804837971874675f8ee06d8e6c46dd4ef0084c62f21f2addca123b44d477c40a695537dcd2ba838e621ba0610ba312201d9b
SHA512
a7f665c9697133a3ebbb27c6ae0d570527f9d4ae49da0dbb49c1ded1143902821393b3ea71938b19c30aacd67781a4d6cec327807c7ddddcc32a81ff361a0cc9
+DIST thunderbird-148.0.1-sv-SE.xpi 490511 BLAKE2B
b4b6af6cbc73143c671a901a53240db98d64e0add2cdb7c4fa077364bb42d5f1bf70935db41bba3c45a401c48db6511e501aadb1b1838d6bf7b969fb8cc27508
SHA512
fd96cf75e534ec84c9f53e17bd63a05fe11f88422425c13bfa09f085af278718506ad1661f5a81c5496a54b431dc117740abfe347314be228da89855359be7fb
+DIST thunderbird-148.0.1-th.xpi 574541 BLAKE2B
5872f08bb10268668662b344b02dafc1c124293aa8ad015f8c110dd9336da1b9b5ac3bf20eeb853023ebf8a4ac1990c89ae192a61e3138974c930e2f1a91a529
SHA512
7dc3e00bdf759dd85790fdf976090cb15d6879ef5f85651e1a0b82699ac99490b227693808db78ed2391d758db2a3cc40cd41864d7de4404d1f36ff3a9bc21ba
+DIST thunderbird-148.0.1-tr.xpi 502283 BLAKE2B
5599d15272d8996e6250c9a6943a7f5c9080cd39d6f98cd6f263a176ae7df8801903d6a300d3fb8a7d4a08c0b3767df59cc4fc68e5298b4626a2482acbd3d911
SHA512
0fbe62a82ae01309ab3e91ff8cc37764a7d560bfbbe77df109d5ce93f150ccae0cfdbe1c63e8143ecba4367b507f095f6c62f2586350e971af0c5f26c6c56ede
+DIST thunderbird-148.0.1-uk.xpi 580629 BLAKE2B
2782f3f02f482d17ae5654c9c3a886f1cc5211fa5a7f8664b1b270e9b7588544fecd500ddb8d34e7337046c03e81356877eaa2203273f8486d8cf10a892a45db
SHA512
6c1b2e34a3a0441db33fe3f6e2941fd5552edfaf0e10bacf16fb077d1fba1a6337b3e7cfbbbb25711b87509dfecec281652d46d8b2b40aea9c4c123e7526a68e
+DIST thunderbird-148.0.1-uz.xpi 351140 BLAKE2B
e0c7af8a6db5afbea8ddfea26797744c6bae765759fe9eb90016314d5de389e4d449998451499ba528c00d6355edd0a95a87a2f129213a2ce51374d8f5897d36
SHA512
1532c15f6260917e4188ef29e01f6baa3b6d8b6d81cd175ec37aeaf79ebe783a956a49343672cfa0664721199d81f0ffd8eb5ac2153b6fa8ca0a270fb3e5798e
+DIST thunderbird-148.0.1-vi.xpi 524775 BLAKE2B
e86423ce403ff453f42739c9e53f0661c1c520dbfa76b043ae3656e7bff25945aa5bdd64315f70b6f1ffd6a5ce86b9b8ef09b44879766b63b13a41035eaeacf7
SHA512
cc95796e57a39d606e6d0bb5d065ba214572ca00f66aa7a540f4cafd61231e3105eba6453971c36dddc2506aef9b0a8768c909a09bc1e658d6b6760d180d2d2f
+DIST thunderbird-148.0.1-zh-CN.xpi 513663 BLAKE2B
8b35554204d70922980b96881a3296293447e9e3f83bbb7dc24603e5c15fd6726c4f0b918f22955c6ba8a7debcd5a4e79e1eaf4c27f0cb3406a91b9e47a1c426
SHA512
c221392e6c8bccc8b6b032cb32e5fc2e623bf58eb7d61afda6ef7e944d4d1024ae323150db49dc07d81e7c9c9aaf868a212cc6d3be79df34f77b2ed25281a0ed
+DIST thunderbird-148.0.1-zh-TW.xpi 517420 BLAKE2B
6b531fe087c31bab318997d1ec56c9d49d4b982d52c84533504b850f8b1e60dfb5a23d96c314401e4f75e030401d3748feaf132e88bce859c8967ed7caa617f1
SHA512
b81571146fa71306f0e11352b58be011e676ecdbee054e15e772dc8fca882937566d73ee6738569cf4526199bb161f037840cee9777cf6dc5af582e65d51b8e3
+DIST thunderbird-148.0.1.source.tar.xz 792079456 BLAKE2B
171af9116d0faefc7389c4007e61c242ac2ebb5d850a637a3e31a59d13042e7a91b32ebdb7a93d28454965af9e5a84b44f95a62c0b112251860d6a6c4cbcf18d
SHA512
4f6e721b0858bece740f04744d10d8bb0b0673d2ebfe5624d3797e28e394510a8518dc31fc6a121ba7ed8a5a44953efefe3a74071e9f967c22be17cee45b3faf
DIST thunderbird-148.0.source.tar.xz 796239120 BLAKE2B
473a9544ed3cdcdf43627a6a189c3e9bef4bea3923ec29ec5b96c0c7015ba3768f6e7108e616743dc354116ec64ed59c5483b8b44c08f9c34d92855f21475f97
SHA512
ec5e586206ef217f37eb6985356994e7e7c9db6090f57d5b4c43a3a5dc0e1f5a56c0e7080d86fb895446845f9c9b948284f7417afebcf6e6120eca0e1ed238f3
diff --git a/mail-client/thunderbird/thunderbird-148.0.1.ebuild
b/mail-client/thunderbird/thunderbird-148.0.1.ebuild
new file mode 100644
index 000000000000..7cd61f42a389
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-148.0.1.ebuild
@@ -0,0 +1,1163 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-148-patches-01t.tar.xz"
+
+LLVM_COMPAT=( 20 21 )
+
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.87.0"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's
rapid and esr.
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info
llvm-r1 \
+ multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs
virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz ->
${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ SLOT="0/esr"
+else
+ SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
+
+IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio
sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent
+system-libvpx"
+IUSE+=" system-pipewire system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+# "-system-librnp" requires clang, bmo#2006910
+REQUIRED_USE="|| ( X wayland )
+ !system-librnp? ( clang )
+ 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.29.1
+ 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.120.1
+ >=dev-libs/nspr-4.38
+ 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-78.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+ system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-pipewire? ( media-video/pipewire:= )
+ system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ || (
+ net-misc/networkmanager
+ net-misc/connman[networkmanager]
+ )
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+llvm_check_deps() {
+ if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+ einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM
slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang && ! tc-ld-is-mold ; then
+ if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then
+ einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot
use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ if use pgo ; then
+ if ! has_version -b
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+ einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi ->
${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d;
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p'
"${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to
be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ # Ensure we have enough disk space to compile
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif tc-is-lto ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="7400M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+
+ # Get LTO from environment; export after this phase for use in
src_configure (etc)
+ use_lto=no
+
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+
+ if tc-is-lto; then
+ use_lto=yes
+ # LTO is handled via configure
+ filter-lto
+ fi
+
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and
FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ if [[ ${use_lto} = yes ]] ; then
+ # -Werror=lto-type-mismatch -Werror=odr are going to
fail with GCC,
+ # bmo#1516758, bgo#942288
+ filter-flags -Werror=lto-type-mismatch -Werror=odr
+ fi
+
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif [[ ${use_lto} == "yes" ]] ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="7400M"
+ fi
+
+ check-reqs_pkg_setup
+ llvm-r1_pkg_setup
+ rust_pkg_setup
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough
anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox
(bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # Clear tons of conditions, since PGO is
hardware-dependant.
+ addpredict /dev
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to
fail with
+ # a traceback report referencing
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build
failures!"
+ fi
+
+ # Google API keys (see
http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see
https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+
+ export use_lto
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if [[ ${use_lto} == "yes" ]]; then
+ rm -v
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ # Workaround for bgo#915651 and bmo#1988166 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ rm -v
"${WORKDIR}"/firefox-patches/*bmo-1988166-musl-remove-nonexisting-system-header-req.patch
|| die
+ fi
+
+ # Enable jpeg-xl only in Firefox.
+ rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Workaround for bgo#915651
+ if ! use elibc_glibc ; then
+ if use amd64 ; then
+ export RUST_TARGET="x86_64-unknown-linux-musl"
+ elif use x86 ; then
+ export RUST_TARGET="i686-unknown-linux-musl"
+ elif use arm64 ; then
+ export RUST_TARGET="aarch64-unknown-linux-musl"
+ elif use loong; then
+ # Only the LP64D ABI of LoongArch64 is actively
supported among
+ # the wider Linux ecosystem, so the assumption is safe.
+ export RUST_TARGET="loongarch64-unknown-linux-musl"
+ elif use ppc64 ; then
+ export RUST_TARGET="powerpc64le-unknown-linux-musl"
+ elif use riscv ; then
+ # We can pretty safely rule out any 32-bit riscvs, but
64-bit riscvs also have tons of
+ # different ABIs available.
riscv64gc-unknown-linux-musl seems to be the best working
+ # guess right now though.
+ elog "riscv detected, forcing a riscv64 target for now."
+ export RUST_TARGET="riscv64gc-unknown-linux-musl"
+ else
+ die "Unknown musl chost, please post a new bug with
your rustc -vV along with emerge --info"
+ fi
+ fi
+
+ # Make LTO respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure || die "Failed
sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py ||
die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed
sedding multiprocessing.cpu_count"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py
|| die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py || die
"sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \)
-print -delete || die
+
+ # Clear checksums from cargo crates we've manually patched.
+ # moz_clear_vendor_checksums xyz
+ # 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
+ # mozconfig_add_options_ac "+hardened stl"
--enable-stl-hardening # not available in TB
+ 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
+}