commit: b36a78753fa297f473eaf02436f979033e80fa10
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 25 08:53:46 2026 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 25 08:59:25 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b36a7875
mail-client/thunderbird: add 148.0
- rebase
*bmo-2006630-remove-gitmodules-and-gitattributes-from-cargo-checksum-files.patch
to work with 148.0,
- sync changes from firefox:rapid.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 66 ++
mail-client/thunderbird/thunderbird-148.0.ebuild | 1163 ++++++++++++++++++++++
2 files changed, 1229 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 5fca70401055..9dfed8557136 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -2,6 +2,7 @@ DIST firefox-139-loong-patches-02.tar.xz 3096 BLAKE2B
2e9c0f3dac780c808a13f70fe3
DIST firefox-140esr-patches-05.tar.xz 124432 BLAKE2B
9281214dcf3da5d2e288112a99dc1fbee44ee93c4b83e30d73e8383805bd9c8ad9b1918d11351398cd963fdc30ec3cb50d7f6b5c9905d7c1303d21fdef440fbe
SHA512
70551bb7eea2a50bbd30418438a78a8ace07467fe852b7655c24373c651f816df89fceeb98b6fa6c7d95944b0c5deef76b89b3e742795a8ac04259f02bd25c10
DIST firefox-140esr-patches-07t.tar.xz 157300 BLAKE2B
e522b4a7ddfee044112834fce2e9e1d025d31f0e5a2847de1379f69423c532231bab774c1e5dfe9ff63a3ec798a7b8811790e8b70d510f9b45411893bc0dfa9f
SHA512
6b8bcca3079927311fbe7b3fb4d5092f451070bdb620b33efcb009bf69a7ccae34a484856c59e870805697c7ad3c6ffbb97057cf450fa4e25641b11bf360f72b
DIST firefox-147-patches-02t.tar.xz 47564 BLAKE2B
44c18affb9539278d6e8259bb1c39ca03e2f09f4a29d3051ab1aec3f34c1e5f7dc134fdc2878dbd0c3bcb9373e3d792fd93252e77692e7cfa6aa96a9a1d0bfa0
SHA512
a47bb9967734914f7005846ff1c47600aac4ea217c7bc65f8f6e9501aced696a3666f59c600942be674f22e611112836b1f29ad17504fb78e21dcff0dc10ac62
+DIST firefox-148-patches-01t.tar.xz 47968 BLAKE2B
ef255d0a5e93e72804029cf21bf07aeefb17410200a9397166a79b301148da14db62b8645746225ecd3b656e133f76b40a5c5ea77067bd2a4f259d636d17c37e
SHA512
4b21431d272b05eed502250afcd7661fc2eed6713ef18f387fb13c590dc840d5b496c7db3933aa529eb42517f9055b287252b31d934868c17d7a56f15a99dfc9
DIST thunderbird-140.7.2esr-af.xpi 316218 BLAKE2B
e05621d27f36d4044b3b0cd354aeb5696ef8b8db4c7698f36c69d5c5272efa8be15dfe7fcf55a8e19d7e7bb5c17934d71745a3c73e74194892b85e38cc98678e
SHA512
cbd5df4b393925697d1757f52d5c7b9361f2b03d2ed02d577840fddf78209b6167bda37a7720ef5f52e6cf5c6e5d178f93de6935f4f9c9c202b5756ce89fd43a
DIST thunderbird-140.7.2esr-ar.xpi 436197 BLAKE2B
adbb1c4206437757b413b9796177c4855746bc5279466dc7c401787d498557965ada0d8dd66e6151c97cefbb1285d0bb8244a28881548cf2c2a98cf954f06eeb
SHA512
b6d92d0584cfe71bc7c0f5504df5892b30bf5f4d1d32fd29e747274b12c60fc82a775a52f4e8e1ad8bd11819082eb8aca84c06247dccbb9c4347ee173fb958d0
DIST thunderbird-140.7.2esr-ast.xpi 340599 BLAKE2B
353abac80f13b027f469565236b5726c88426f098ede69ce01b4175c5e1f7e2a8e35c8d906563f2a099ac0bc3f606b154af45436290b006405dd0126ddefbfcd
SHA512
2933cd5605c21e7b5c4bc0a22582adcb331988809277e00c47e7cf1f83a2b69cc6535a934b0e33ad56b5076cc5998360cfe71db5a087425fcbb7a7ac1245a541
@@ -197,3 +198,68 @@ DIST thunderbird-147.0.2-vi.xpi 525245 BLAKE2B
5fe5f7d6b125d72789c593679ea264cca
DIST thunderbird-147.0.2-zh-CN.xpi 514162 BLAKE2B
96b946a52aa1babda7f05fa8e3d83aa56211373c97373d4586a4075af72cf6a9d623220a4ae44463291cf3ff320d32f96d000715550f190ebe6f19d8e4219296
SHA512
a369cd0f74acdb481e6491c6ae227577a0c13b5079eee0c9ebac030208f8db08f6a1679f6fbb3436d06802ee9a90c8e486a76cd52617111f6a34b8eec596d0a1
DIST thunderbird-147.0.2-zh-TW.xpi 517870 BLAKE2B
cde71845b27d99dcd75c3fefae6f4b7223095520340db2ea84c78368cd7ea28eca205ba29a36a0f964f58ad6d480f7da964a78600d404d010ec95ef689c2d04b
SHA512
4a46bb590881ff16ff22b3e9725e937ae65de3c90f2d737df94277a8acd4089f79b4047a40b085e9ff6c4e491906e36bfb2ddf9c5e1be70e96eb082d4473ac62
DIST thunderbird-147.0.2.source.tar.xz 786893164 BLAKE2B
316f52a3feabe705a85f3e3e4c63829ff8f95bd39b6169d326258e8e3f2df2d4abf0bcaac3e3f6b53808e8a413865fdc6c01f1cc4ade3dd0c1d535e74bf8e985
SHA512
4fe6d0389e8bc6078b3d4db79d1f8547666950de4a5a72e49ba24d5b60cb531908b88efa9f3dd32e154ee917a8b80786389ce9b1186b6c45fb0717d4e180e537
+DIST thunderbird-148.0-af.xpi 310337 BLAKE2B
c2fe7173268ec8bd6401eaf37441b2cbf84fcad23985efb8d6e76df3e232087a1c5b31e6d481415ed999cd5e1f6c5601c19dbfbba0f1d5e309efa8d68549b46c
SHA512
33c4045e0bc05a479c97d52bb180a0d4a042e6a97b43817be91621941db1f0e6390eee19de282efab45689388fbc2ab81072776119332e742abea0793c6f8101
+DIST thunderbird-148.0-ar.xpi 432417 BLAKE2B
e005bb9fed5b8a51926c21a1c753984d24e0888f329318fda9867d15bb6d3dd883d49aa70d00bd5a0777530d92f1fb55e7cc7d964a6c05a23ecf0323360c3549
SHA512
cd29463eebaa6008a899479d2b8ac9394208c83444ce1c06313efbdc42a50b34e6c4d6156fba9561740168f9201014a0b4cd657c9c14950768801993d0e54f66
+DIST thunderbird-148.0-ast.xpi 334502 BLAKE2B
6378499c337a16698a019447198888cb47406d284065149473f4650b1ec531f97974867583e327a7c5302189184d843bb8a6055c7d86608cf667c04b4f141beb
SHA512
27fdcbcbee237193a9370115ddcd31ad53ccb13a2953af53ae51255a10ced62af03f2d5eaaefa78187f9a87e95c373ae23806650ff85084d13400fd253cb2310
+DIST thunderbird-148.0-be.xpi 522151 BLAKE2B
b3273ca5369dff52d4aed9771770a6c0c8fae298cdc77d40a7131e8142bc2b52dff913f390425a0caec0d339e30f636653eadd243f4f3ec69f190dca5069a74a
SHA512
8200897b78b44d7db15c115f1f25e41bc12017ae53a600eebf4fdb8707b0d723473c44c1dc6df03cbf934b2c580f6f95fe67a47ed2d33256ed6c4250a7c5bcc6
+DIST thunderbird-148.0-bg.xpi 541255 BLAKE2B
9e5ee4e4925bffb358e1ce055936b7ee22b054f06d509ce98d3f00328b73d53dbd6f293b7fd321a8e268af08378271add035ebd0310e89c77f71002d36b29186
SHA512
d0a280e9a56184c867687ace1072a156ed2482b02f019fc235cda448a947dcf461c14788f3c39563b4ea424f5e5788494e8d51489c5057881ff41d378e76ead4
+DIST thunderbird-148.0-br.xpi 399304 BLAKE2B
a4c97f2d33a8f54819140bbdfe23511f05875acc0d129e16ec27421aa4eb79aaa605eb8ce5260491a7d9e5ef4bbfae50f868dde6b2f32e26fd5cc1a15317278a
SHA512
b7076fcd466356c87825c1b755ca0c5673f10a3cd9b93d29707c6353eeeb2fb9fd9aa0596a2d88863621bc078efd48124129c9646335b9c347147d4cf11060fe
+DIST thunderbird-148.0-ca.xpi 436485 BLAKE2B
9e6b1c3d7fb0b1c7f4927b81f9afc76732f3c18f4f7ed41739e1f6b7cfa98748287efb155616ddcc243e186f693c4c430ccbd8131fb7b7bcc7b99f24937aadc7
SHA512
55aa513515aa44797875da9c5e6a18d5eb1176a3b8cea3b441f8e586ff4ab2374b48b3e15b76a1bce643a0c6afa55781c347856e78dd6a05e78f3f6ef208ab29
+DIST thunderbird-148.0-cak.xpi 412916 BLAKE2B
3bfb1bf6f4144ed3d4c5b7e3731847587f69ae8420fadecfecfcb38d9f3362bd13171e03914a8e2c9e8cf6849c207659a22e6075e5b82e057cc70ec79458f9da
SHA512
e74254610f4fa0cb40be8201e7da48e19b563f46b1087f052c53340cda272e72c9e7324bd4dbb9d84159b66704e9670263b85bd11a2b73890e390ca6b28ee37e
+DIST thunderbird-148.0-cs.xpi 527171 BLAKE2B
04c2a5426ed3608992a2966c9ab9eeda2d61b399abbcb30b65cef1cd72f5d7b6982b8f0eb5044d81208ee7a006c1d8f91f3ac25a9ea95f0b6aeabf180917eb1b
SHA512
2c210ddd0ae958c4b3e5f0574ab220558d9a37bdef09060bfc370fb20eb5bbae20e810e3029f36a69f45b878d2833e5c5d4527e109194bacae06b8a029d3a3f1
+DIST thunderbird-148.0-cy.xpi 494618 BLAKE2B
44235d9cc74b8ec78e0992797d9ec1aafdfe0add3b9decb37e82ea71e4838d506e7c19f984a01024392559867789fc9e044a26af6316add5a802fd264b285668
SHA512
93f76aeaac870f00d503e9aecba3da75ef01a877c00fc57216c9e5bfb135c2c3d24e7cd90f9c0a90dadd4c64beed9300c2086ab298eb7cedc930993ac60ace20
+DIST thunderbird-148.0-da.xpi 482254 BLAKE2B
6834013a7dffe3617b6c879f918d517b50c9a002c3a6c370721071b704e95c7f7d17f60df918e6b3b5afcee4cf5fe34db1a6c8dbf1bfb31362d03daedbcd4614
SHA512
9e7d6ad8c31c734e4c03ec4e05fc52532739074aa33743f3142d3911cd87a62ee7032d754060efc731d0821fdfd4e1ab4ed6266de6fe1fc2f0965e9a1fb25031
+DIST thunderbird-148.0-de.xpi 511446 BLAKE2B
8ba608270e3a0fb075640551105c5e1eecd049dfae85cdaf2a032f7cedfa38dc8dd023462f7f237ef284c1c5d67d75266710657ea54c1dde7395bf7627ade5db
SHA512
c0e743ffeb013ed99d0688da545652d3b501f510570b817a76a954fb76af5360bfd152e240f58bd2fef38b54886c30e62dc530537f3c051d6db87ca316a355e4
+DIST thunderbird-148.0-dsb.xpi 524279 BLAKE2B
6bd2ec6ba99e29d9aeca19aa3c8da8958c0b5a788b3dd770e87c21655a145acfe24f11aadb1fcf8b8eefc4846a8668f4fdeee7b0b2dfa41c5d9836394080d000
SHA512
ea7ab305e39acf8f142c402f9fccc53af7509faffc4a7538456064797471a206903422ea2f90b4ea4ef8300eebe7c3e1cbaea7c42ffab5850194a39f94855e7e
+DIST thunderbird-148.0-el.xpi 616183 BLAKE2B
72e8629855fe03d69c769531f1e7b9ce3a4ec8b19d912cfe5f91c29f267b2c95caae4e7e484c1a1f0b1443cabed8799190a82dbea1d9672b577d1ae0803984ab
SHA512
5ded9b9dedbede1f1947bd7798215c9ba983df1cffe498d31e59c46bd585edd6b728492c92c13505f6b33ae69a90aaca27b8d208a4ed1d1e6f72ba6ea100f4c5
+DIST thunderbird-148.0-en-CA.xpi 457767 BLAKE2B
9e42885a821d38255f6dc7a331f5f99a070446ef3dc5e66df9b6da7bfce8ed6b3ecd7d19c42419cbec95a2e935cfb4a70e15a7e0f0a4974a22b45cd541c194f3
SHA512
d0d2c7415cf6fe37b7e3d5598e32b99b8417a68386cb11d09c9596a733d40ecc81f25787eb3415bfc9b8cf082871409c59bf35a878d9db177fe9906aa575ac8f
+DIST thunderbird-148.0-en-GB.xpi 457630 BLAKE2B
e794c56d7bd934ca27ef6876a70ce92e61809f77e5e4a510be93592e7965e11999cab9c9a256f60fbf36ab86762a35b2292a648c49cc011d1123dc84cd5b359e
SHA512
e14b63c2fa1af5515174f0c4594e4f989578e729cd2269f1b2dd2dcacfa4b19b0a6e8022b736dea93ef1cf75d816d1d5a3d8bf562bd7135ce1c8940823d0f259
+DIST thunderbird-148.0-es-AR.xpi 501426 BLAKE2B
2e9444788c61db9fcbb5f80daa57ddfe016c9a80ce215d600447ab1e7d07a83a8fdc870c4cc7642e4e3569d93dd3ba001202b4082de977fba72e8fb94d225eca
SHA512
48c28d51f3388d999e8aafae947fe8e1b84afd1cb4b6acc98715d9d2410b1f9b02f53fdfdc3c791d617b0f8e9660b9bdef7430102cccffc8aba03e2497ef08e5
+DIST thunderbird-148.0-es-ES.xpi 503698 BLAKE2B
12dbac264411dcadcc3a4a2da95053c8f2f002bff9bb6466137932461d94f85efa4e17040d5aa9501e978c0f00db5505d8f0771ad9cf70ce931e3700f99bbee9
SHA512
de825acc7bec38b6f57d3ead88d9fde34c2c4ed33f9ee0d1327ab636193879f7faed0289f133dae7feda23e51fcdfc8ca7c85b7788c82e94b0599e635577974b
+DIST thunderbird-148.0-es-MX.xpi 491209 BLAKE2B
6368b71d87854902f1ecc2ffaa3f70a84aad0ec6abbb9242b560c24da4334562389903dc02784bf5b3688fa4ec4a74436c52b420bf2ef139b46c8d570f008fdd
SHA512
22fa19a3f8a5ff95ac8740b5067af7c14e3a1aa69cf29342efe4e0370ce217579f696ac11a75deb4152132cd49c2407c0c8e27906d040de1e23edbde0e3bb1fc
+DIST thunderbird-148.0-et.xpi 439460 BLAKE2B
1603437ad3e7602372bdfbcfaa9f896dd68c7442460d75899334160f99e1d25edcdd1b3c205299cc2096474821af59b13c999c0a5000d431beff056d5091f280
SHA512
0f218524b17e428d39f7c05b00e4bd61824c9d745bd3baf1bdf9045d4c99938784682e8dd59f274a0374a7b4e2e4965873358bf81f8c579d4873561909847e42
+DIST thunderbird-148.0-eu.xpi 482056 BLAKE2B
dfcb0ac4fb07bbc6ae18e0926d4e1a289239dfb36c127e105a1eb3bee6393f1ca7f3c62570f64a66a576f8da733c1483fa0adaa7a4cce955dc316db4953902d9
SHA512
ea47de8874c85fd0dd75abf65fa0967a92bd10e174dcaba55798fd7e655da3527a098a6336787b027656b2a6b2236f84ca7f3775db8e9b4816336e4631992659
+DIST thunderbird-148.0-fi.xpi 478800 BLAKE2B
41adfab1fca2840a7efb3a031257bc28c2c23f1695dd47eebc597d0de0c4d2a2848385bde9029cb98fc1d25071965728ec8c06d0c704580ad678f58de94c36cb
SHA512
24a5ef6f8555754039102594f1f2b60b3383263832469d449f1e58750e82e32cbc49ecd2b100a1fddc017c80d3613ddb63385d508a7a234091e547c0e9504a4e
+DIST thunderbird-148.0-fr.xpi 514831 BLAKE2B
7fb10515518abba841bd407aef493395c6fd9ae11e546f7bbd17cd9c1198e573f897eab61d8e44ee44e81e5c6557ee6e113dd229d52638d82ab18dcca32c9745
SHA512
9e2d1f341455dec6989ac6e0fc6ef60feb6e3f713b3676f843c75a5efc013042cae0a7dee5ebda35ff2db231f620deccb70c6e3d352e4c64bc77a14012b0cf8e
+DIST thunderbird-148.0-fy-NL.xpi 496984 BLAKE2B
7f3512355df377f6562983953181d06bf374b5921598f04957b7dc5b7f85f71e4816ec17e95be534758820ff0b6a920c3f29e86887144b4ab2eebc1d55a8d301
SHA512
a7749f0027ecb48865000fc1dcc90fdd6951436c9c767d5a33429af1ba761a44d660dba494869c7f5407ccb3491fb9906eb380ed155d7893d43d7a99cab79e27
+DIST thunderbird-148.0-ga-IE.xpi 372548 BLAKE2B
183a25a8bdb8faec340a08281f87d7dbe39c9c0533e1be1ecabed4a080f8dafcfc553615170d8d2ff9c39e0435f2bcdcf80d3cb3fbcf9e7f6c8eeaf531e294eb
SHA512
dafe36c39e7c00366f4cc49c5c5c960657e9e9b608474e759aac5bb591ca5a488e74bf4fe91618bb6ef477fc23b43854b8a526914822547cf7e2a51ecbbc7328
+DIST thunderbird-148.0-gd.xpi 457788 BLAKE2B
8d85a3386298023ab94a4389c632224accc0339997d0051f8dc82595c9b4a8751fc6954c361b526e97ee7450b66d8818cb01aebfaf08eebdf0fa13a08749c3c6
SHA512
9c9fa577d38e57a4285b71dbc021a58619c84bf3cfdff818a835ace1fcb69ae191f5474d6fcf7ad4b91c2cf65c5e0a61d58488a2f19a7a6867026e020254fb79
+DIST thunderbird-148.0-gl.xpi 487117 BLAKE2B
6c3ada297d4e281ec77497d707eabc6161d591c6089b9507ffa46ef536a512c4c3796868d9eaf17f67911bd71cf366005f0ad257885b03cbcba65f6e0e3646b5
SHA512
99dbb2afa9cde34686038cdc17f81afa38dcc374562e954766897a82af7017e7f6a3cbfe3c1564b6966da7855f82d39e90eb30c681d27a438b9592ab5d133680
+DIST thunderbird-148.0-he.xpi 443914 BLAKE2B
24a2ffc04b1e50ac878c38d175f9c536d803c942079368fe049c9c2df2f958558ede05a6d6c3fd56e527753d67fe42a6336bb6e509aa8d89a7e80f4d28569377
SHA512
a5dcb813346b6f5e256ab2f8cf941c438b7d76ac0621c5f8c6700f531b6813af68d6bb301c256882349dceb7c1fd689d4815edea0e6829c891f052193081ee13
+DIST thunderbird-148.0-hr.xpi 476392 BLAKE2B
3b80f28559053f1fa6460a673ae76536ac0af9765884dcc00a8bd75bc48cb3557d5a8d06db6da0dd9cf0bf319f897becd0901df3b0b54adf5f500b2b2be227e1
SHA512
39319e849d361e2d5dc70e475a66e3147254ee3e2b1840687a5724482a68013dd1a1ed09337aed80ce54a9e17d67051178f34f700a5229a4250304709695bf58
+DIST thunderbird-148.0-hsb.xpi 521615 BLAKE2B
d4d68f7137332d6465ff885c751c658ec79616d79cb3b90f69877dfee4b47467ae3acd9093a2ce4b73ba54ed8f77d296e5a32c40b70b4597b5124e7de60c1451
SHA512
85707a7dbf883af0fdcfdf79c584f9baef256aef7931c1860b8210e59e937e113a6479794be357baba4da5463be7a954b79f3f1cc58e665004664333bfb91452
+DIST thunderbird-148.0-hu.xpi 524208 BLAKE2B
03c78569feb68223ac561ea3b1b8c2693df89ffdf7c99049223e8b93a7fa736d8725975f84b1ba4622be4813fe40eb1bec1579a8f9f0562b952d29fb2dd47895
SHA512
4f08407fb0444af72611af6b33c6b618167828f9f72e6a8fef48df3032812ab5894c10be68c82e9d143a34e7dbf221161df506f403d571bab6cfc6fd12dbf24e
+DIST thunderbird-148.0-id.xpi 469883 BLAKE2B
faee499ab3f65b8f0ce5bff9ff32e5939b21c2da50c912bc31934a1745958cd4b49576f5d60a891f582bc4130004a8bff0000407ee454512eb21354b63f33820
SHA512
07e692ddd7a8fe6f88c61ff939c96645913f243324b141bd9c76138fcb5bb31f540dbcc1ff0a855763932a19147343812ce8c72419b8891de8923f75e61f9574
+DIST thunderbird-148.0-is.xpi 484177 BLAKE2B
787bcfc775b909a067a7b7dbddd60f2bc19f034d77841f319e4a5f28c644760190a19536dcb2eee8350220144aea44bc57e4208c47f487eb5d7678961a223158
SHA512
56a592e1df2cecac66c12e8074ce37229745b798698f880ab5318e8a0ac3b8a97fb9078803900142e5b36719293fc8b468d4881962ca1d7860cb00f1cbecb137
+DIST thunderbird-148.0-it.xpi 494620 BLAKE2B
06b64121b49ed325ade1c94674cfca7f3b922890cb7c2ab8938af0b6b06d648bd85343435cd8d0f6ad1f926fed417ad8922c4c155cf108715ccd7e9bc9f4223d
SHA512
bf6ed4055d27aa9dbf846c6ad2867f034692c7c59f88100ae5930a67d3e1250ad66c0b35c48f79d294cbdba1488ffaa2b37f3da02b5dc91436ee4343ae798406
+DIST thunderbird-148.0-ja.xpi 545896 BLAKE2B
b5fa2592c3dbe1440902f644d2b07ebc806a206b5a16374e0fa66f8b20640fcb80eb0decd3f34871689cd2f00a50facff7b6165153ef83cb4f9b11127709f05f
SHA512
7161eb4e69330d1b0af819ae841b53089e439d5d956596c13083b3e7065451d39e807c0e23d7750a5b9ed416ef55505fc40b32a54ccd03a500c330b8ae2c9a90
+DIST thunderbird-148.0-ka.xpi 561646 BLAKE2B
317ddfc223b979c2d36b886e9889ecd25820225fcc9708d5b0348f6e960f1fba64cba3ebad0545d97e57a340b2c61e07d356ab1be4199a1fd236fd2e7f2ed371
SHA512
c7e2525bbbb940a851fc95825c5a72b29687efdf1d1feacf11831971220b29fd99955cf6ec35da087176d679f2812667c8159d8d9a55063cd31a902217b6df6f
+DIST thunderbird-148.0-kab.xpi 467312 BLAKE2B
99e3d8d02ea4c5fd00d88c90d3f54b422c01d291833836ab691761605f699b78e3b44b1f87724863412941e7493282a7db249a1c9f7a9b70bd9b091880612161
SHA512
ca46ee807d45cf365150559977287a66c9b1f8b8673e4e337ba2b7362e120e7d45aeba31d9f982c52a28d0786371b6bf60dab1d5715608b7c05a74a91567c2b0
+DIST thunderbird-148.0-kk.xpi 586019 BLAKE2B
8497db9ff175a97fa976aaa6b174122e01fed44fbed94dc1b8570e1b987529c39cc3b857c5b7a643802936a5776612ff0b19b6bdc4662edd4fa66fe3c8694808
SHA512
5a24f976ed7a32bf9c5bd60094da9f6d68981ef38575e3ab9d4edb388dca83c50cfb75c2015d2540403dec0dae0bae9c733f6a7ccbb85b87e193028b5ff908a2
+DIST thunderbird-148.0-ko.xpi 518853 BLAKE2B
17fcb5d51a6f4d34a85390aa686d3ae289d9c774816d3e99ad7257cf7278d1711f82765f7d15532362bffd13d7a8ce1e94951aeb99070ebab21402bb65e141f3
SHA512
30a7a643895524f1a8fc93c02e8f263344304fe5b4a317187832bd6f08e8208027538372aa81789d0b276a1f37d5980f711b54fa44517dc30b6ee1f57cc5ffeb
+DIST thunderbird-148.0-lt.xpi 449262 BLAKE2B
26fec9a59dacbe759593a001f4f7f998548e5a269cd531c5bc5590383719fb4f37c748662ba09b7f6871a59bfc27d66be355d69b7273067ca90372833796d044
SHA512
9d01d9ff903e14353c37ab1a2588edd2bcd56df9bcb3e91988401a30b9439a9a90b32c7514d7a2a08545420021e502ec6020f0f7ce8bd414db4cb38a620614fd
+DIST thunderbird-148.0-lv.xpi 387023 BLAKE2B
ef5bdb7b98561f14502dd5cda9ad8f2620514f206048f4194a653d139a7444560eb444f6bb6da901166787f826b1482039030a343a4344532b45a96c78d36efe
SHA512
9787e20dc6d117b89beb68bbd16ce7778968850be832d787ec3496cf04ba81a1bf25cb7d850658335724ee2b54e31a7f48b26a90d90981ac75e79bd626656158
+DIST thunderbird-148.0-ms.xpi 348851 BLAKE2B
aa6169249dab6c13a182b37e6e835026b2e09c3c7db4e791eda9178001884acb9368c8eadc35b00569a78479438beca1dabfeeec343eaf7330affd9b3436ef23
SHA512
f9f441e19de5ceeaf8001eceb4ed1a4fbd63eb2f5b9cb94c8a0bbb7c40ed1fb21c99b118c410598138086bf3a693f625c2a3573eb8fc7e37f7039cd1603b6881
+DIST thunderbird-148.0-nb-NO.xpi 482120 BLAKE2B
9502947a2a9e0e21a79eb61b9ce82acd584907148ebfd142bfc0897b7d31224800a8049f59e1f18d09e90eff69bae3e13d45a27319a08f789dbff733ae3994e4
SHA512
dcf4bc49b9a166f84ec51525be4c2466dad36c098e8535ec96a9f29fd30958c154d8e8ce015756d79657ae1635e2794a902d060759a75c6d6dca3ca916daf9cc
+DIST thunderbird-148.0-nl.xpi 488323 BLAKE2B
907b81e5c5c6298e5c8ca145bff5ff8cb06b2ba82e3a3dbab1b412297b99cb1d8c0ba24e4627e197e2e8c0f6d4b1cd3ad3bda304a381cbd0fa386d7bdd7ce87f
SHA512
cfac2b03da4b37981c6633cd9a58d0007de96a4f110ed4520cbeb271e66b43f1eef1bfa9703cf58bf2006cdea070026374146017d348c4a974967b3e864dd6b8
+DIST thunderbird-148.0-nn-NO.xpi 486013 BLAKE2B
466860ab73d4f54d17d198ab2fda6bd7d7ed0d235b48cb605435c5371e17120b0cff0012f373e3d53e5d3260e7f02dba1820701372466e0202d300cee88a5da5
SHA512
0808acb4bce1f8a21a9424dafb9a9a1154964a92fd50a6bcfc365b7816bfc4a3c54751f7da1ceef7cd0f4771e2e16401329040892027ecc8c9b0c3fb6363ccdd
+DIST thunderbird-148.0-pa-IN.xpi 435825 BLAKE2B
0fffaa7fd7f19d1fbb205bd052ff3785a36210007dd7684a1dda11f0b564651f9f30155c941783c0af90801a8e08966eda1cfeaa78c4b9958a1b72e139d84520
SHA512
022e32fa34e888675c913279e96d3181b8ba0eecad8fe4ae502d0c401c4c90277b728dbe38bc662226413b7717dcafdf0a18eeb1e0957cf5d1474fb8809cc5ac
+DIST thunderbird-148.0-pl.xpi 522378 BLAKE2B
8ae884329fee344ca74b0209e5e763dfa6b6be2a1821f7d02ef7bd27c5feaedc41ecd4ef0e046f0521b4723ede467ed5d3711438f226941cb31687f84a0dda3e
SHA512
810bb37295f15c8454b94cad0053b0e15cd4ea28fb60f98e57af3c2cdb61ebea8c103d8ca4092af420ab76b00b6e9b6ca622b60a376301d77b0fb0e1d8a7946f
+DIST thunderbird-148.0-pt-BR.xpi 496287 BLAKE2B
087fd47890e7bc7550df084ffbe0bb22dcaf6faa7c17f3dec15a45bae48f83601fba89e4e6e00bfca19bbc36dbb5eacd52cd25be04da5c8c0b9a5d41d31ed0db
SHA512
d363550ef2b3494ce94f4fa6520ce4df8e649c5c862ffd3e163e2ca6a57a30dde4f654d16d97bd5df342f15963fa4610bf2b02f5f6a98a3d20fa5fb7cee40427
+DIST thunderbird-148.0-pt-PT.xpi 494067 BLAKE2B
b715381e7cf1a7a2b6f9bf4d668c1192f1023d19d4c2164707b64e5299a4d019007a4938938ebd2fa6e247cf29280fbefd6497fb8d58776666c4833c5c6227c0
SHA512
029bfb1485d39d415bdaf438a5fbfb5ee7ba7e2314c8161144023a204ad9ad54a4f8e88745ea5944ee128550c1f5fbd0b7fea85f2bce68f9ad8516aad9acc716
+DIST thunderbird-148.0-rm.xpi 485794 BLAKE2B
13f98ef14159366a60d52e530e1e457a0062dd6f898688e335e4171680f833ec690dc800a22821f5916c1d14028bb7ca7a3adaf8275047e92734822eadba20aa
SHA512
282811207fcd846cd89368c82af6e9f7b10a6f6fa217ad276afa50de2df3316f9a1b7333d1f40b6d896a3b04fe6dd36458e68f3cba5ba54a3e631c4fc879b065
+DIST thunderbird-148.0-ro.xpi 507593 BLAKE2B
24943cac0d4508e6c1ecd14aa84aecbe01b3a358ac22770712615380c9d6297f8f85d10e381cb27ddd06ee4c62f1a50c9a61f93d9580c38fee74bf3c1f85acb3
SHA512
a6c3ed445bdd444fd5fa84f1a564b7cdde7803fe708c2c6e83cf73fa5b0d0ba7624be3d3c9cdd79c1e6785f2dae139e735c81e5ecfe3e40491e071876f31498c
+DIST thunderbird-148.0-ru.xpi 600963 BLAKE2B
62207a159fe77010aaa245215c345989f69336fbd6e2fd2c30e482b03e6bf8f9ba76dfb6fe2b4049a6685b6037fdc2f0a2023cf6b4ada67255ee4f20a59a8a21
SHA512
c218f1d3b24e63a3a603e4d92a139d8656d26ac998ef287bd30e3dd9acd579b092eadb643da7d4cf9ca321a504e78956304618c9b34e186e518921eb7081ed28
+DIST thunderbird-148.0-sk.xpi 526860 BLAKE2B
476316bb640e5b659a1612c19f190b537d4b7521767bb8c6fa5320cb08c4088f6fcf6d1ec27410b03ad0679c4449783dc1f8d0e7795f4e0eebe2f5dba7f519b3
SHA512
aa5cf4c60aeb81a7ac1ad0ceec42f293b4553ab27da6ae9d26ec6c1166a389ce4fc227f26516c211562570973702c0229245acbdc9590f3c33c79ebb7cb93d58
+DIST thunderbird-148.0-sl.xpi 491096 BLAKE2B
033e60828048be53ac6bc30360d27855689fbc62700e18fd9346cf3ebf513ed57c63d5921b1bfc93e2227b4e1ad62c0490fd3791612f39f5a41d83abe70ab394
SHA512
ba5f705054b20aaee01fc328a6e585a62d1ce5914e49c7a5175f6ba76659f953edb96ff7ae1581c929ff5e278cfeadbfe2909141f22f4cac0b903a6c56ed5a89
+DIST thunderbird-148.0-sq.xpi 512108 BLAKE2B
654b7bb76ff6a0f826ae012cda30ca8d567a69566a3fead25536adc00f2f1c9f560907f3f1146a694d68d83397c81812bcff562481748cc7a0f4a3bbb73f90a9
SHA512
d3c034497b65b41406b98086f6b1165ce2dbd2b64e8b4ea36781004caed4a5c78045550ee58d9e862ecc9b55680e2847b60beb0d83874dd768e6ac4546eabc17
+DIST thunderbird-148.0-sr.xpi 491178 BLAKE2B
dfa7fa3249276d7e1dfc982449569f95498f9be7f1e28f581d10f2caf66fd14590e0a0a278a590349662eafebb7a3a272d4d2276a229bc8e5c5d165a88fd6305
SHA512
71ac47596b511425023a7e79f6032b8b66c3fec6ad770ac950624325f52ff7ad8336d3b9aac8dc19f8b311dfdc9f3cb2f59d2c9a0bf0e01f1378043b0afd7a56
+DIST thunderbird-148.0-sv-SE.xpi 490511 BLAKE2B
1f8737bba89646b2cde4a895cad70b7e998a6a59d16b314369189e1a6c51f2ea64afde9bc8b9d2ecb14296998dc0564796e5b31b1b4d4eb40d92ddde6fab0b0b
SHA512
a00e64954d36929f708d4185959848764848687e7ec6f2699975b21fd8a8259e3e8aa435ccc603bcafeb3e841bacf50050892796429e3ada562b839c5eb33590
+DIST thunderbird-148.0-th.xpi 574542 BLAKE2B
de285ce3c620ab036c5263a4635b9330082d67ac874420df6630187cec2303be4606b237ef81fc732261d671cc2fe4b0094389ec506a3bd1065f1f14d97172dd
SHA512
eab7f7216d84c33da66d5d18adf5ec61dfb3475202a2ba619a121971342bd85e0ada101d19ce71fc277c020d28a6fe92633a0aa4b0ffeb822470757a7e46af72
+DIST thunderbird-148.0-tr.xpi 502282 BLAKE2B
72aa932b1dd2a4095c375cf45115aba4ec1b2749eaf5044669912ad906cd42a7142dde112aa4105d444cc71f7081be8dcba78b363baba7353becf7f314507749
SHA512
87529f98e8a674abfed247d2feedc7c0a303fbe5c9907e6e7c5d5c05878e082c49b725d7e5af157f70e4057b3059361d8687fee17a6c16817d7c359bc2b9c9f3
+DIST thunderbird-148.0-uk.xpi 580628 BLAKE2B
3784122010f885bdcdf8bf69a20bff179192cb433c527a652657bc4993adff93e69649d092e097a8915892b37dbf65f6fd47abe5a3d887847e709f9856eaf2b7
SHA512
feba0acd2082fddc45e7286497cc69df5a7015d3bf4d743645266425fd7fdf20764686a897229344a2a5dcd3279217a3411c8effef02c3ba75bc309a6cb0960a
+DIST thunderbird-148.0-uz.xpi 351139 BLAKE2B
6b80cfa8447fb410e74fc30d8216835fbdc56127daa00e3e4d5927baceb783853c9ddba5039933e17145c5306c26c93227405f9a1155d4b2388390f771a37463
SHA512
2a5eb6e9b932eb6078eab22828e9b93da4fb7c1f8f744a146b74aaaa6b3903cc7ba482d7d325639d8d90eb2744f14ddbc59d44221e4d7f3c4facca9ecf6d7c12
+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.source.tar.xz 796239120 BLAKE2B
473a9544ed3cdcdf43627a6a189c3e9bef4bea3923ec29ec5b96c0c7015ba3768f6e7108e616743dc354116ec64ed59c5483b8b44c08f9c34d92855f21475f97
SHA512
ec5e586206ef217f37eb6985356994e7e7c9db6090f57d5b4c43a3a5dc0e1f5a56c0e7080d86fb895446845f9c9b948284f7417afebcf6e6120eca0e1ed238f3
diff --git a/mail-client/thunderbird/thunderbird-148.0.ebuild
b/mail-client/thunderbird/thunderbird-148.0.ebuild
new file mode 100644
index 000000000000..7cd61f42a389
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-148.0.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
+}