commit: daee666f38a63c2bffd6a717766b15a0b4ef1a85
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu May 29 13:33:06 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu May 29 13:36:31 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daee666f
mail-client/thunderbird: add 128.11.0
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
.../thunderbird/thunderbird-128.11.0.ebuild | 1171 ++++++++++++++++++++
2 files changed, 1236 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index ca3191fef596..34f5ea5a2795 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -133,6 +133,71 @@ DIST thunderbird-128.10.2esr-vi.xpi 790627 BLAKE2B
a22fd47014016672741c4a22bf19e
DIST thunderbird-128.10.2esr-zh-CN.xpi 790964 BLAKE2B
f432ad4896332e1f632f691e66d6ea0bfe0b6ef6e87533cdfddfb97d1d4364cdff29412caecda3ee8483252de676d3ad58d79a83263f9907d06445bd47013e77
SHA512
64ddde62580b9d09fd64486d39bffa1e0bb9d4d6614357fde401203d5cbe8745c5133b4dda806544cf33865dd6d56ba6b9487101f7738d8123cbed12cb4c8c00
DIST thunderbird-128.10.2esr-zh-TW.xpi 794258 BLAKE2B
f2faf37d914c9c98dc3672f497a24e9a37b58a5624c23fb76db374f4b0c49df64bfc36d2c67ea6f26d63ef142fb2a1819c4d38474b3226521417cf8170463d5f
SHA512
a94eac21587162f18d6ea84ce04317ce253795ce65362a3b5488291bd66dc2d1d43eee1f2fdc129c871aae65f3d84e5f98c77ae2659bb10ba2cc1aa0d182caf4
DIST thunderbird-128.10.2esr.source.tar.xz 674082824 BLAKE2B
13e873607c312cf5521420db073108e4bc2d7cfd24a2765883ec8bd5b72cd5eaed027000cbe337117b0cf6949c7ea58dcea93cdc1f4690bd1c8417024f0c587c
SHA512
2783ebbe89d7517099620bb537f4b9a4f85f9adf22c4c747b7989fced9fa4dada3bb05cf0c52eb460bd9700f85047a8689f59124956fdea24de7f6f668a087e5
+DIST thunderbird-128.11.0esr-af.xpi 534915 BLAKE2B
e2b2d35fa4eea02c35d5f9a8bdb25bdc850ae01277132ac987ed7567f6234a12324351ad40eabb69ffd74cf2fa8c59d9d3734efa594d74d661e62ba210bb6116
SHA512
687242beac75ea01fc414161882c5b0ce417d2aa2d184cd8b51d1890fb250f43bcec819eaa7291c9e694d9b2edd928ae877799a46cc08fbe07de1a9d9615b2c8
+DIST thunderbird-128.11.0esr-ar.xpi 686463 BLAKE2B
c39fa2b19c4005f6eca383dc10dfa5d1666a5e5ce8f97c2f8d79f8782a75ffeb0d56ce7d4ab8330185350388a943236953063aa9d1d36e7df6cb70c83c3a0125
SHA512
116e18f246ad68baf8c688d9171204ef2bde15b39637abab2b29e886c2e3923898226b5d3d35f0f9ec27e8ea79063b86ecb46a82d6f9ccb4e16e767c5dc23fb7
+DIST thunderbird-128.11.0esr-ast.xpi 574781 BLAKE2B
1fc698eaeec36673232bed1b762bb0cbb0bcb4baccc5d929f3c01eeb0fe90597e3aa601f48a26f9506fb88b4a40267184ab72f30ff7c65c62b839f592b6cce9e
SHA512
35126c1020fe0ee587f959f38aa8fe830258ed07ad528733fbf430b3f6a416bc921629d70bea5d2dae7e1b036ce70a3bce499e1ef4d9054c271d703c7f0dac88
+DIST thunderbird-128.11.0esr-be.xpi 781796 BLAKE2B
c050f8047a0398e518a92f673fcae2ec95a370e26f38649b9007d6ade21a7a4d1736df505b6f376b93e9cb6906569c969c1cea311d1afbeabd760e144c3c1730
SHA512
bcac1c4ec157e539130110f274cd67dfb131f5f4e8cd936064ad3ee6a5845de68ea96528209d00cdb630d08fb154b933d0c0ee1f8b7d37321ca86598ccd07f11
+DIST thunderbird-128.11.0esr-bg.xpi 813955 BLAKE2B
f79154e425b20f9cf4d178252a0bb811d517f8c0fb32fb09e7db51ef530adaec1200de50fd233a99e6b199b98facdaae9930a4ad0a70f95fde00df5ee8f25291
SHA512
9deb887b3b65bd7e9da350bb726bb539ef0b6f6eed66db7b2b527bf73036b21816d7bafef4c74e298ed75ede37658ee1001555d784d388ccb2288bde66f6f0a1
+DIST thunderbird-128.11.0esr-br.xpi 650140 BLAKE2B
de0d5bdcdad8635a80fff5ce4bde0ff6c2f9cf3b304f1de9169cae3ea21402d4bf31ae3957b64268e38a80b515129c7044400065005515b54929a2bdb3a52b5c
SHA512
1cd3a9bc2cb6f52532370e44eeed844356c2e671942edb35474704bc02c9b7073be81ab58b935d60e4e247ea1d2da89f50372e29d427e6660d8d74d0a5233559
+DIST thunderbird-128.11.0esr-ca.xpi 704674 BLAKE2B
8564e3ab1963ae3d39928f281a303ddaa885478b41f1e8bae0c0dfd9055ccb3a9abff298453d1bd2ed11db7aafd164621053af7cf4c34475c44618b66105cfd9
SHA512
a19b564e361b95ca1a7f1573cde9eb12b7433aeea9ac31a0ce9d14aa7b7f5bba57e10eb186e8cad067b027247e0b4a968b0abe2837abf012a19e36586d4fe31f
+DIST thunderbird-128.11.0esr-cak.xpi 669096 BLAKE2B
29af09d0ba01a2531de9d4289165a27b49edc90966d06f349320aa31f8e8ba4b73bbf1cba427aa89031a2a52cb37618b48bc8c6e8360012a05347eee86e3f3b5
SHA512
946a868310d06994ae6cecfe57f9e5ff57d5b1c6e9c99ad14a1e8746e10c6460fcae229fa523a0b43efe663e60b01aab035dd0dd2b9077b0f8f3cdba8abba258
+DIST thunderbird-128.11.0esr-cs.xpi 790951 BLAKE2B
34149d620b6d2a467ff686f3bd48bc30e4d02c96da1b9b831ce3bd06369d875112fe43d77bea98bfe44dab18134a391f236a2e7d009ddf74125f69ab33570c4b
SHA512
94b32315a6438052fbb06e8f5ff3551dc9426ccbefcc70a54e139e2d5edc7b7fe67aa0056320320088b16a95f0aa7dcfa05b3d9f32d545c3058e151d128a6283
+DIST thunderbird-128.11.0esr-cy.xpi 754633 BLAKE2B
06cd611bd5c30a62217ace135070b4d08432dfc3e847ce0bf404b612a94603e15b195cf84b096dd916f45485e1198ee07468f1dd5cb0427ae9b7c7ba2195caa6
SHA512
76bb460aa474ef922413dbd29fc1a3f9f5bc148e1597ea76c4619cd02c13dfe9d790f6b020e4325cf94513aeab839fd3e9245921aa9096ee1516fe0da0741437
+DIST thunderbird-128.11.0esr-da.xpi 741568 BLAKE2B
e0a907be3cf5e321ef173a43a7fdf16a76473e35978b3fd998cb29e79120d60eb0e5db7177706d4abfeb07b3a0c138e773b78b02e419838860097c7afd6deae6
SHA512
384c0a5a192a98cfcc3cdeba242c8bfd135b7756ecaea0e0bd11de668c5750d5c9b59bafa57879c8e8707fb5334577ec9e2ccd28c875aa732ee46c3a44c3d873
+DIST thunderbird-128.11.0esr-de.xpi 772449 BLAKE2B
9dadfa4419c2a494eb75ecc1b044b091b60429298994731bca2721c8a9ed652f49aba560700b4ac3310bff76f76c550b448bb45d9d664d0d2e4d2939125f2406
SHA512
1c7648d409be2f231e84c2beb2730a932550d35422d63dc14c34dfc41747a61915ed5b79d39a2832af5156c04669b0a76e47a40bcf1e3cadb2325a0589f87772
+DIST thunderbird-128.11.0esr-dsb.xpi 788598 BLAKE2B
fe5c138dcdf47fe37a8a58b35539e63f7c339ffdf165e83847f61ee4d64a2a94b32cc6c810f51bf70298fdb3c84c79bdc293a0b7193cf7319b2e36c8978136f7
SHA512
62f44aa9d4dfd7ec798d8495cb64c7d1480282271137e88893335d9355e695092be70675d992c54a2fa08e93f97b9b76173677cc43afa9862a57dba5f4a8eb76
+DIST thunderbird-128.11.0esr-el.xpi 893852 BLAKE2B
a309d2646d29f301f39421662510c62ac113975a8b11a8724466d36444d5c49a696f4585880fe7071eb54adb5459747895a86dea54c4766179c333f5e47db075
SHA512
09963853251fc3d9cdb803444b50e2f40f9f09ac8aed4928a0f8ff69b74bfebe3ee449b28760b3186915ff013a07b937f278e256afb173264d2fd9fb06f2099b
+DIST thunderbird-128.11.0esr-en-CA.xpi 705373 BLAKE2B
3fe04bfbfbaf952a623869170a92092e660054ac8be12568b26bc2fd9f768648337c24d8ecd24dbd415ea1932d443549f3155b46b0643b6e63ac01dd3d60216f
SHA512
a4af613a328195d72df5519ca1daa0833ee853e84b4db259b30501b916ece1b9cee0b07b7f969e8a7c51253b9a2c0488804383505cec4d78810f5366cc52a032
+DIST thunderbird-128.11.0esr-en-GB.xpi 706024 BLAKE2B
75463fab4f7ce90fdfedc0e2d9e8b31a72c560503685a68bf9f37e3529bd343c7702b6bbcfb85f11c3ea31e6b27d996fafad0bdad6738d1af071bf55bb7d810d
SHA512
cd4838033a90dca03f63d1b1c8b32e0ace28f9f907b07cf56df1ebcb548dd47477b858075d2fb203a18747c54654f4ba93cd2a20f862dfc4649389a4f3120e58
+DIST thunderbird-128.11.0esr-es-AR.xpi 761964 BLAKE2B
df39af9fb08da9c9c9710845a123a27aa231325def05444c27978ecdac3c8ad839a6223e5c386d6c9576c96b118a0c8569be9680bc9ef9c3a1b074f94913eb75
SHA512
9b6ab2761e3a6cc8474ebaac74ba65f20f5e27313d7915f0ecc0e55302eef322529d5b9d14ac98cc40400c68502bd8ca8d5479b6e5b50d9b5edf7c28f28e461e
+DIST thunderbird-128.11.0esr-es-ES.xpi 762965 BLAKE2B
0a63a063c29c1696303c8ed0c4cb3c094ef854ec6bb997587d42b37e2b61ef69576d6de9ece1335e41ebf2652e83e8cc6759b53eccf4bb30953bc9ad6d228cbe
SHA512
d1a8bb84d7af30103835bbea38cc6487eacd077a85907fe48016ff07738cb01fb5cbe6c02cb51ba616807413e370eb3f1123d3b1f5dca56b5ed652b28ceaf0ff
+DIST thunderbird-128.11.0esr-es-MX.xpi 756913 BLAKE2B
1cc8da11d786dbaea1230543aae41749ff6b9eaa4facd860df74cd7784a08075ff661029e38c59480b9c318cce0094598e108ad6bc7378fc8f4559135bb82132
SHA512
cdae28f1f704a1f75d671ea41d15c137beb4e9d3e71a9ecfacec457e7632eff180c1a3e7067e185d28cafd74226b6ed1d2d7d1ce67ec2a9cee9f9880a9813df1
+DIST thunderbird-128.11.0esr-et.xpi 702060 BLAKE2B
695245de5a3b6d77ec3aa1ed4d8e3dc9fbc9516a72a1e3365b712ef7a168fc73f25386449efc83b56c0cb8bc06d0a4744b742ce573430353f5076c17df8fb5cb
SHA512
92b8eea3e273f434c04704d4556e86dc822304e999acdc7bcc4b0543c4f15bb37d2fcc3cd70d68dd91dbbb6c8cd8d39087cda010f9c4cf89797b5889d125320d
+DIST thunderbird-128.11.0esr-eu.xpi 738601 BLAKE2B
d4cf5840d3529187c20bf04a17601d4d9d64855cca88d26ffd71eb10dea2c4a53af2e8c908fba6d36bdfc3c943224bb1308f9bf3d48370d89de796de05a08d22
SHA512
e0673eabf6f0469ea32778c1850efb86764863e040930d7347d5453ee9eeb1890f0774663bca0c9343af363b9ab78b83cb23fdcbfa99541ba86bf092f439cb82
+DIST thunderbird-128.11.0esr-fi.xpi 736081 BLAKE2B
ab5172e2b923b00d00f5a0f40620dac302869a8c2bb6d7a93060fcc8c0e94ca888e8299d4b9974d97b8a65b7c8d192d7c113b01205f31504f15774497064d6c6
SHA512
1fa6f2de26edac9ea1d89066f90df2a941e0a92fb0c39ee189fa10dd534675795c0d6b7da0ccaaedda3c5ce626eca284bb469790a0b46fe163e89ccb5875668f
+DIST thunderbird-128.11.0esr-fr.xpi 776173 BLAKE2B
1a8fa80f80b6682725c6f4e5af7cae096d997c36a4e5c252154ef5115d48c0ddc449857a20c96c58ed0ecba557f8b31125e4cd3eedc2789836960b32a38f0266
SHA512
b84c854a95fa6941756fd0c26328ed591fc1f2b915cfbbcab50728bfaa39f6bc5f03f42fb059cc819425fcc3aed60b5f3c7d4eeae453c51961eea08ec574df80
+DIST thunderbird-128.11.0esr-fy-NL.xpi 757462 BLAKE2B
c2589a79cabfe6fe13318cf9450be92c7243637d86ba71e0a00caf626cd7b5a2884cea5eaa4367497ca9a8541bf4a156472073e5e0b300fff258ec25f503170f
SHA512
852820d94b20ff952d6dd9fa7ede1e655ae3a7201b0d7d65e3998c59367aca22a967596273d9964ccb61383b64b9ac4bbfca19478d38d64b32abf7d0ff0b6e4b
+DIST thunderbird-128.11.0esr-ga-IE.xpi 614302 BLAKE2B
0560768e3f40d01f3aa58e8cb242efcbec4797536959a8beecf28c5046d913322c64a58b9937a3ecc938d6fc4b750199083a6335873c5f8242349eb812bbb027
SHA512
48c1b68188365bf55c08886f6aa802e1ea359265b1ed4c67852166416634e47679cdceaa60fec44787baea1f81c54a5fbf3a80bdc02657beb95ec2770d1456f1
+DIST thunderbird-128.11.0esr-gd.xpi 723345 BLAKE2B
a6a637c80b506e22cd8c4fa345a31636dd4bcc2938380947faf1c29dc11db728c5c716bb8a8cdb9d39247c181a2e923ffc50fcea94d8456e31739442cd53f5b3
SHA512
0b6b4d8855fa8c43bf2947c11807e53296a730ef83a34517a6b788fb787bb3d7b9c37ba2f90886b69d34bd7836017f0bf1d7e34ec0350611d2e99f0195360249
+DIST thunderbird-128.11.0esr-gl.xpi 738610 BLAKE2B
86d59219dbbf916225fce3b211e759206dff34fc7c6a63cb360e556d21d805bb91133098c2c53b9d4e30418824ee779a5c3c18f06506ca45a90e3b8552d84c50
SHA512
c001a6ef92a57d33a719b19ebd3fcf1cd148edc7101d061d26cf1f61b75d0d50d4fb8f6f6aa858fc6e9444d924a202a8225ca9bb876103591449a3ea95070d7f
+DIST thunderbird-128.11.0esr-he.xpi 697001 BLAKE2B
1a75a8552599024f784728bc9b30693ef20fd340931e6c61f935bc5c17dc2e0d98e117d1424cb14c0f1062371ecfcc0c9320be252e604a527cfc4c7c5b2f3dc2
SHA512
8981a29d12aeb5b2de3f1edfa1466290fafef4ca6ecbcb455fec68a1b3c23b92a944774b8a4bb29fd7d55964d9acda359c247d167e25aeef0f3b1521ffe2665a
+DIST thunderbird-128.11.0esr-hr.xpi 724802 BLAKE2B
b70a9e91b35f5145b55726c3f05c7cbdc14be9a611d353c2dc65596e1cb0ac54536ff9e0cb1c31e57e788580b81013848dee3a91ee65eca347c140849cc88fe4
SHA512
2b3d27d76e1864255363a8aab59861710f0f28bb79cc738a34f0fcd6eca4607161c18a56ddc6456571f1573c81f436f6f4c06f8f2b089760acccdb0d27e9bf8e
+DIST thunderbird-128.11.0esr-hsb.xpi 785135 BLAKE2B
ec99120fd396395dc428af78f7f4991c62553fcd4432f4dc3283bce7613644a3a482aa206b67f29c0db6d8d4f096f1982bfef838c4641a896a759d93cd4e741b
SHA512
f9b1a976cecfc890c7385b9459b80940643f8dbaca908da27c9054f178f54fd1acce80561119277c23987ff166181881f90353c7749cb6aa94601f7ac45eefa2
+DIST thunderbird-128.11.0esr-hu.xpi 788741 BLAKE2B
8f2041c2f4533bd676c8ed2c44a0b7c583d26f62df35cc3c14cd643f7654dde9b338d1e5b373a046cdef11631382e17ecc5d0c5226c1eaacd971685b8e86482a
SHA512
8498999690bece376c17974ab49980f154580284d8c35d2917599ecd4965abfb9cc6c6a94c4f18d760122aa9e3ef029518468947e11e5471828f7d1c1b299f77
+DIST thunderbird-128.11.0esr-id.xpi 721080 BLAKE2B
fcb136c6e5af6ee8ab2697cedd1ccea4866ac2d9d7caaef419a001d33ef827b5e5476a915aa8b680bf7caa0d8eb902ed0bb5ff85636a1ee10389eccfe3c02a4f
SHA512
b2a6a7b18e29473b36cf1d8399037a61a341b8bde214d102a02f8d65d5aa97eeabd62f36862944247807add59e6a0a71a9a19d6c3e4d69414401176d75cfb0d8
+DIST thunderbird-128.11.0esr-is.xpi 753324 BLAKE2B
128080cdf104b140cddfbdf73dbb51a2b7a10e44c73fe056fe09256cad828dbe018d574791602236e3ac4d530418d1c0d5d3605fd625c3dab3ae7d797e3a3805
SHA512
2447f9aaa95d670b273ab909b116b7a1951dfea0d64cb8c7b76a9552b4efb1776fa960e3e7a9dffc4fd8128e6b940d736f323b7f2dc75c15c51736c836eaae09
+DIST thunderbird-128.11.0esr-it.xpi 753056 BLAKE2B
91b9cd5a2c5371be4117689231aecb3e08c43bffb0db274d4c705bffa5f33b163dee9e2decb2eb827fa298b964917b395a1ea8297e5f545e66053ae7b60675fe
SHA512
f9e12dc6155b0c2d837a484abdeb7de6317bcef9aca39306e1bb5d55adbd3373ffbe83959664e85fba54e1e494e221bb3dbe1fa62567cb2ec80c06ccadd78ed2
+DIST thunderbird-128.11.0esr-ja.xpi 823998 BLAKE2B
485bbaf7e114244c61a279e0c5799cc30f1a7d0520ac647e89e20745052bb65f51087eff6f79843de78ceaf21f60c057e94008ca9dd06e3c8785c6aeca42f8c7
SHA512
099b137d91f5e466c4c777e32d9404ef15f5f925e43ceba2be58ba5c4ca6fa60ea857fc6ab677511facf8c1e2f95acc86a47f5159d685f99a3f73cb057145ab2
+DIST thunderbird-128.11.0esr-ka.xpi 819346 BLAKE2B
0083e76003cedb09488f80db21c13ac0b4879a50d0d0aeb534ea66f5ff227972fb305c166b04b101018efe5fd679792d331b850662481047f36565220289d39d
SHA512
e9259b7b4ef81c9c020f6427470889ee1fca25f7bbe15dfae9037263332660009567796a48d9079f0bb8e78864f6394cc9751c7aee2f7e288884362fa91c1303
+DIST thunderbird-128.11.0esr-kab.xpi 732128 BLAKE2B
09d552406566a4287436f4c972380aa857957f5094fb9c03bfc68a060ea7eb64e8f595352d49986570cfb46466615369046c823d7fd98cb49a0c27451eb1b0ce
SHA512
b233c5826338378406ed821142a2647081bf1023322c918df3d7a38518e839cb4b3ee88a9f0cc504c1d8af9452b238c017afd9e0f88008c8517b2ec71304a9a1
+DIST thunderbird-128.11.0esr-kk.xpi 859681 BLAKE2B
4b2981b6a7d13542b03d91ae89686894bd757ffb1217706e893b3abe9f3316c645ec896dc464c03a7d20a5e0b4fe4206f83d2724b9ed7d4b8ba23924ba52a361
SHA512
84ddbaed836e7eb7c480ed84cd76cf5ceec64d7b40809ad004e51261990abed1c0473867daefdbaf57e22e656b37655ccfb19d2d89ec7b5d6f35b93eb929fa9d
+DIST thunderbird-128.11.0esr-ko.xpi 792696 BLAKE2B
06d043fa5b69268618a716f81af71a82ea5cc5b26c0768b18315a5d0f69558d8b14d8c60b73d7ae056765c20bfbf1f09991472bb4ba1abb3d9d4974e1209e3ea
SHA512
8774e3d03a7f5afb1a1e69d73868b5a44259941a6282cfa1fc3c58ad23de2f7029886ecd561d4da44c98382253bdfc875d9d4c8c2dcb1bc4d21ec273170cb4ac
+DIST thunderbird-128.11.0esr-lt.xpi 696752 BLAKE2B
14b36729aaa509de06e59b5cf0c86c3b6259c8847a94577b3f099881d12fe4e6f92406f5482830526353ae3201851391fe118f4eb5201edb9f6b6664714c18d6
SHA512
d512d565a1fba49f3ff9d418c8cb62922fea131d2bdd78b2cece44c5f7ac57b18b48a11ac72b35ace03ab8a25917888cc168662b43403c5306404cdd3b82c2a9
+DIST thunderbird-128.11.0esr-lv.xpi 626199 BLAKE2B
2668f301c971b2d0ae5dd432eabe7d00ba515e541535669f3aff72eb6b8e25fe87d62eae05cadb709ae0dee2720e7115124be242b35eb9f91abffd277578886a
SHA512
e2c79c2df243d9782343abb780ffee6741fa5467981e1b524c5f8b6fc53c874fb6bf33c975cc52cba45d531fd7661128f374436ca83486e5568f3aa0a130b111
+DIST thunderbird-128.11.0esr-ms.xpi 586658 BLAKE2B
1383c6dc0eb19fd0d65f132d6aa9b7c716fdaeca42c90b8e22f0036acdaa7fc783ae205f3273f34db674e65621270db7cfd93a93142a20b6c22befb93ed47306
SHA512
9a3bbaa2d386e6330edd6e5205d8a7f7d816f99c77fc4a418d6da2b18bc51a0bc5b0501c72ebd6e45765f2dc150cc693c9add1269fa0489db15144e6c3b16e89
+DIST thunderbird-128.11.0esr-nb-NO.xpi 700495 BLAKE2B
2bf5e35ee0ea7ff9e2edf581ef3b44dc3336e265e4435ca4b83e3be2bdeb60f087b82d135e8e4d9fbf44e3babd6a22d6c14d2625b1058acf7bac5994e1238538
SHA512
de6375ca88926bc292d501d18226d46dc0bc06af305047ffcdecd26b875632e727ed8b8370f68f4bdea12728b3fddaeb5b3af405053150df69710539f39b73ec
+DIST thunderbird-128.11.0esr-nl.xpi 747737 BLAKE2B
c4575e8c4f4f1baf25036b16a7599465bb5b116f093f4191165b98cb41366a0f1d3e0496a5a4e5ce1e95a37998c307ddf223dde9243f9f44d858426fe514dea6
SHA512
23b4c2ccc5fca6e6be1d07db6a598f41c2be72706853f6e80b74e6e3b5af317a0d38a91f75c427105ceab508e5067dcf6eb38f8e70f7920dd790fc6c635ea1a6
+DIST thunderbird-128.11.0esr-nn-NO.xpi 727390 BLAKE2B
9ee9247b026dc8fc191178f7d24efa73bb302c5d2b744db9335f6c683cd1c066c0ea3be63a53e42a40984a44b0cd90610320ec590f23af4aaf24ed07964a12af
SHA512
1a5f14f7804687694290c4873f4262e2781a8d7dc40664bf3b26b915d05def0b565ab608049dce5408b2704992182dd775b81178ce21bc90a4034df3a794b86b
+DIST thunderbird-128.11.0esr-pa-IN.xpi 687931 BLAKE2B
8f39552e2201afec342d9b5a81e645c3d512fc405e472e3ed2fbe3a985357415274476546dd2262963f5eacfec259e0085baff4b999031322c6e49077d1625a5
SHA512
ff938f568a6ee325c4faff8b3752137362d606f521a21c26bb3973aacab9e0ff140a802f0d73a17b46978f177ea414031fe14b9bbe2e9ac70797c14451ecd314
+DIST thunderbird-128.11.0esr-pl.xpi 786554 BLAKE2B
6e9ea0704e686c9cb1acd21460e85665153bdb87149d102a06818c5a72368578d4475d7fc79698015b9e7fe9fd528268bb956c5c73610fc0472195d4e6cea3a5
SHA512
4ce536d718966426dfa15442a35d16504efc377e2a9f1014ead03fa226a4ccb30ae0f2ff3bb58e36841eb9b61d615020ee12f0d6afe5320621ffd77643f29007
+DIST thunderbird-128.11.0esr-pt-BR.xpi 756731 BLAKE2B
111ae91183a1cef9702a723af78f642c13719c5d65d63477f5b5e870cd6d28cce0a7df478fd47b9ee09d6adee1c83f65c2f463079a8e4070e8470bade896a37c
SHA512
a49cf3c4e6b5e87c56508fe3608e7f225d8ac658aac1f3840cb498e728ea73526d0ed70df85c731634c20ba7bb75e1115cc8df910218145edd3262a327475a2c
+DIST thunderbird-128.11.0esr-pt-PT.xpi 751446 BLAKE2B
8cf4e251deae97f4bc084de262f7a6b5179281869efdf8b704cde6493d715ac0e89e44654360e9d5b15e40473f325d33f3a163a78c45d96b7e03f0e6daa26f2e
SHA512
4aaabc28b14426911c41858bf042a4fcce2916416960be4455997f07f63e362c05e40b02181113efbb03c330352d7e6548ac7bc256a6ce28a4d2e6c3bde0b25b
+DIST thunderbird-128.11.0esr-rm.xpi 752637 BLAKE2B
bab98a63f999bf2a27c93fa5a9983e84d17c106b2341fa35aae9af0abfe2196548c92606c4b12c1323342018066a2aad6cad854617c87548a6c5a07c2906bad1
SHA512
9366e4058274d7a0787c56471e1f82c94bab9bf7f30ddd2c15f9ebd26bdc67ebe4efec7e39dd8adf56ca185fa1eecd863aaf59f677cc6a01eb02ce1ca4ef851a
+DIST thunderbird-128.11.0esr-ro.xpi 666560 BLAKE2B
588eff5afa602ed869b07d303838659c7775e677f7e51a14069c2abfb98a56ba1aa039b6416e519df9dadba1e49a4e340d62efbe2fad1a886e75c39592fa75d8
SHA512
b02f59800bfd38dc2a0cd380fd9442f8e16dd889e3bf43b92bb1d51a5276f2e76941eecc3eeeada7ab1e0e1fece71897bf5943addd1dd1774ea9dd1a1f59c368
+DIST thunderbird-128.11.0esr-ru.xpi 877026 BLAKE2B
4b65ec521048f9bde5f44afb231f01e367989e5c34a69ccbfad29fef4826c413622b459538898fd55db49612c54446be6e0076469bc5d7214049b60af2facfa8
SHA512
7ff48286721a943095b97293b49028dafde0950d290a2a047e74e11ff0102bcfbf3a62ede8e69e8dde0a089d339df2f38c8a6e4eb5a207a779de8a24a6acf0bb
+DIST thunderbird-128.11.0esr-sk.xpi 790343 BLAKE2B
08db3b09422aa02304d4fd29a2129ba0d85faea39b937fe3d2588cfa04f15e6f814987e45f97d0f4475b587d1a5675545154d6a661fc1b956f9cdb491bec2a14
SHA512
3211f721099c23c0f6ccd1e3cef1edd5ac27a1b87cd88707a28d686d3f095e2963e4c33b8d84e5a6655cefe87a41fdd238e5cc4805649947cb06ac3e1c5582c1
+DIST thunderbird-128.11.0esr-sl.xpi 751616 BLAKE2B
7ab1068ce4eadccd8bb5713eadd811a52648203e0448ee7e24ebb0a5f4bf123f2d7a692d9f6aa2344e6a2aedc0cb82b32277d06630caddc825f8ef0b7a1b93da
SHA512
b94b0598ece8b072808a7f0335bef58836b6404b97981337497f8b0f6f0006f2795bbaf5716c6f84d3eabd9034cd7d4702c168a256e97d000a9835179b26b069
+DIST thunderbird-128.11.0esr-sq.xpi 773958 BLAKE2B
5c54a72a7769e7e2977b12a91981c2e379e2f20525404407fd02f9eb49517c08f99152bccfe33d5effaf373116506ba7647c60b1190d0b6a1044dd01fec6a25d
SHA512
e6100961fc17f45d881d4ce852f0030ae2c99463cfb7718a8664b6682a63f07161226828b6d7242b7cf9699abbd92baaed2926499a6f160769c0e0b9cd0589b7
+DIST thunderbird-128.11.0esr-sr.xpi 766345 BLAKE2B
1a6dc726012f5492d44416b24f28b9f36a8eeb33322bf424bc1b82c50d1fdae50a5b3642847d5e348f52df3deabdb8b97456f4f24827bc9af2a807a275933094
SHA512
5252f968453d2edbc5e3cf2a97ec2de8b7ec3f894a275ebfebf7510b15844a79006094599f28094c4b30206fccf2f8d10d112cc5d22f4a914b1209dc735467c1
+DIST thunderbird-128.11.0esr-sv-SE.xpi 751553 BLAKE2B
32c894399cfcd26fa1100ae71e1e661d6496834ca8dcedcbb4c0d8e3f95591a4c1216f1565e33d78d51e4b150f9d7d6a3e94c6a3c5e806790fa3a0307d72e7ed
SHA512
cd49ac0d498d5e2f4bf2c13bfce800b6d7bfd90da92bd436e5c676cf9f6887b6a9a5606467924c51e02efa61ba113adccdb5b952c17853997380761fe385cdd3
+DIST thunderbird-128.11.0esr-th.xpi 846426 BLAKE2B
51f7f013061f0ee4153123a905d13b5c58be9a91dca5f5d83a8b7f4e284937688b6cd8f6df5d2dd38aaf5a72f44b9c4ce5b27d322e734319ee1607a63c9c2237
SHA512
ca9c9f43668a936bc444e72868d60800b9cfa4cfea4ec06dfc043d5b8dc0f115b9f1f6641925f956f23cbee296778884e655b782fabce7c60b7c1d5869040e4d
+DIST thunderbird-128.11.0esr-tr.xpi 763625 BLAKE2B
35abe0af6875fb9bfbb9550e6387cc0fd7b75cdfd73a47cc5a807bf8dcc154dde3009a709f559f03b6884920d4fe88298fb817478c6d057021b25eb3d6503a33
SHA512
0a5f67ac0100d674d58f28b28f8ccf280ead1bd50f9b5c08ad72ad9a8a8a8adc327285476b85e8693bf5db6632cab85170781a11c7a7b3c7f5b162a9333832a9
+DIST thunderbird-128.11.0esr-uk.xpi 865742 BLAKE2B
76d9e84f62ee89ea164fd7251b9a3efe254b98b2d5fecab2208664c646d4207f44828704bcf2a80ca1949929e4dc7133d85b2ca584fca5b73f99acc09d43f0f1
SHA512
b256b602f7d659d5da8f1539b7f654696620ab3db8da1c42812c2ef481ed91854d87b61225c30cc53adc569cc0bbaf7484df32bb616d96286ac658334c73bc3e
+DIST thunderbird-128.11.0esr-uz.xpi 589342 BLAKE2B
b649bfc8d085bd08aa14385e5a6eab531172f5d79bc1ea15547a66526dd897741044ec3c7c743705a20541cfd88696101a0ef987e1e5467fe583b46bda926cba
SHA512
a7d1f3d0df7479c1264f636df6487ad480be83d6f8beffa560e10e926ff859cf44d60aa3d5c991bd944a32601881741cc23101b359f6763c6c7626dae64559d0
+DIST thunderbird-128.11.0esr-vi.xpi 791687 BLAKE2B
548e49385e11053f96eabf6dbce6ccef866320af03fa261e35583eb01d767a749a9ff152dc25e9c7cdcf1b8f99961c4ab96dbc3591c43355bbd4ef6060f4f99e
SHA512
5faf1f2d2a46ee7621e9dc52e3f74bb3589c5e842980d249229454f62d19ab82cac4fa49f9ebfe6f10452d4e7006bd85cfd0a916ed8828ec81f42eea80f4121c
+DIST thunderbird-128.11.0esr-zh-CN.xpi 792032 BLAKE2B
f89c89df3881476a673ee62284c6688e8fdd9329eeb9dd6ce4eb8d6d1ba1c6088d9c9178306fdf2dba3c20e7faa550f6e836e49e1f5754ff9934898173c3ef42
SHA512
17011803d7d3c87ff1961ee5b2661aa0a37badc53d5a62e5b0f1a9e16c8f52ecee5ba7bcabcc68e22f3463a2eba758537d4482edeaafb854a47126733bbfe869
+DIST thunderbird-128.11.0esr-zh-TW.xpi 795261 BLAKE2B
c1f34704220a1555ce9f0ee23637ec94472ce6a669f2a14e85ef1bb8f477700aaf1c8f6c01025e9c8672547f5ef9c35f4a019a89be5695b2f91d9c739601be00
SHA512
30a2f6396acfc2d097f0aa5b8d4e130683be984bd08d694cd5bee71c79ae2f507c3a561e877301c60592f631056c19c67555d3d995fe24a621b2b178f06946b0
+DIST thunderbird-128.11.0esr.source.tar.xz 676164740 BLAKE2B
9ce3bb4b03f43b30ec1bfddaa6140d3a734a708a910da0bf224a8de0b08e6749c1583e1bf66afe3374419bd2a3c77efe2ec289e1817b03651fa414aeac3c4cfa
SHA512
33de73db2d5ab5152ff11c1947317081259f4e7644631b5e6b9c3b192b4473a5ae6fe897b27b3c8e240ff8c606ffaa8cc14e169c34a94b8de6e64b0c5f0f6810
DIST thunderbird-138.0.1-af.xpi 315687 BLAKE2B
7e46f99a8662119f8df95a3662adb7ff574e4541a4a26d5c0c705a4616ae83a096a76e8bd530967b456345b2c3f4b069c9dbc28cdbabf601e92381ff07f53527
SHA512
0cfa72fb6ec27db137f020941da2eb5e444ed7cb3ae0c5060b32a7b456476d60d4864a2f0f564ac8cdad31cc753b5f62b5a443f48854302b9b0b4602059412a0
DIST thunderbird-138.0.1-ar.xpi 432652 BLAKE2B
094ea38d277f6731427f1e572fbebac6df7a7fc1518a1bde7aef0a2b25e51f0192f5c301b479888ba577854a2e6b000350219dc2ab3f52fca086eacd04783625
SHA512
c9f5fe598968c6246f9ed0442c42a9f140e4aa7eeb8849d13f313f5c6f953467442c63f4edffdb5fcdf02ebfbfd1d8667e98be8515d0189c6e3d3f9d8bcd29d6
DIST thunderbird-138.0.1-ast.xpi 341394 BLAKE2B
5d54b5793efe1ca83a477d55b4c1a8aabed37d757fe973fe52b6101cde1662aaed20604cc22cb0fa7abd8b94b7da9d3bf047f9315f5d0c2f605d4ebaba0577f4
SHA512
a5884ac3164c3bbd2c6a95899f5e7fdf5171661c0d65fd04e899d29ccd24e97e46a899373104bd9e19a47617be494be716dee699782161ec42a9ca482ea1af98
diff --git a/mail-client/thunderbird/thunderbird-128.11.0.ebuild
b/mail-client/thunderbird/thunderbird-128.11.0.ebuild
new file mode 100644
index 000000000000..1e1f68d257b6
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.11.0.ebuild
@@ -0,0 +1,1171 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-11.tar.xz"
+
+LLVM_COMPAT=( 18 19 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.77.1"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's
rapid and esr.
+MOZ_ESR=yes
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info
llvm-r1 multiprocessing \
+ optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz ->
${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ SLOT="0/esr"
+else
+ SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy pgo
pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent
+system-libvpx"
+IUSE+=" system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )
+ rust-extensions? ( dbus )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+ $(llvm_gen_dep '
+ llvm-core/clang:${LLVM_SLOT}
+ llvm-core/llvm:${LLVM_SLOT}
+ clang? (
+ llvm-core/lld:${LLVM_SLOT}
+ pgo? (
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+ )
+ ')
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.26.0
+ net-libs/nodejs
+ virtual/pkgconfig
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )
+ pgo? (
+ X? (
+ sys-devel/gettext
+ x11-base/xorg-server[xvfb]
+ x11-apps/xhost
+ )
+ !X? (
+ || (
+ gui-wm/tinywl
+ <gui-libs/wlroots-0.17.3[tinywl(-)]
+ )
+ x11-misc/xkeyboard-config
+ )
+ )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.101
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? ( sys-apps/dbus )
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-74.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+ system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ || (
+ net-misc/networkmanager
+ net-misc/connman[networkmanager]
+ )
+ sys-apps/dbus
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+llvm_check_deps() {
+ if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+ einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM
slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang && ! tc-ld-is-mold ; then
+ if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then
+ einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot
use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ if use pgo ; then
+ if ! has_version -b
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+ einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi ->
${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d;
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p'
"${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to
be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server
can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif tc-is-lto ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="6800M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+
+ # Get LTO from environment; export after this phase for use in
src_configure (etc)
+ use_lto=no
+
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+
+ if tc-is-lto; then
+ use_lto=yes
+ # LTO is handled via configure
+ filter-lto
+ fi
+
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and
FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ if [[ ${use_lto} = yes ]] ; then
+ # -Werror=lto-type-mismatch -Werror=odr are going to
fail with GCC,
+ # bmo#1516758, bgo#942288
+ filter-flags -Werror=lto-type-mismatch -Werror=odr
+ fi
+
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif [[ ${use_lto} == "yes" ]] ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="6800M"
+ fi
+
+ check-reqs_pkg_setup
+ llvm-r1_pkg_setup
+ rust_pkg_setup
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough
anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox
(bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # Clear tons of conditions, since PGO is
hardware-dependant.
+ addpredict /dev
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to
fail with
+ # a traceback report referencing
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build
failures!"
+ fi
+
+ # Google API keys (see
http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see
https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+
+ export use_lto
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if [[ ${use_lto} == "yes" ]]; then
+ rm -v
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ # Workaround for bgo#917599
+ if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+ eapply
"${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch
+ fi
+ rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch ||
die
+
+ # Workaround for bgo#915651 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Workaround for bgo#915651
+ if ! use elibc_glibc ; then
+ if use amd64 ; then
+ export RUST_TARGET="x86_64-unknown-linux-musl"
+ elif use x86 ; then
+ export RUST_TARGET="i686-unknown-linux-musl"
+ elif use arm64 ; then
+ export RUST_TARGET="aarch64-unknown-linux-musl"
+ elif use ppc64 ; then
+ export RUST_TARGET="powerpc64le-unknown-linux-musl"
+ elif use riscv ; then
+ # We can pretty safely rule out any 32-bit riscvs, but
64-bit riscvs also have tons of
+ # different ABIs available.
riscv64gc-unknown-linux-musl seems to be the best working
+ # guess right now though.
+ elog "riscv detected, forcing a riscv64 target for now."
+ export RUST_TARGET="riscv64gc-unknown-linux-musl"
+ else
+ die "Unknown musl chost, please post a new bug with
your rustc -vV along with emerge --info"
+ fi
+ fi
+
+ # Make LTO respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure || die "Failed
sedding multiprocessing.cpu_count"
+
+ # Make ICU respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py || die "Failed sedding
multiprocessing.cpu_count"
+
+ # Respect MAKEOPTS all around (maybe some find+sed is better)
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding
multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py
|| die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+
"${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py ||
+ die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed
sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py
|| die "Failed sedding multiprocessing.cpu_count"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py
|| die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py || die
"sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \)
-print -delete || die
+
+ # Clear checksums from cargo crates we've manually patched.
+ # moz_clear_vendor_checksums xyz
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key ||
die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F --
'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1
"${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_clang}
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+
+ # Configuration tests expect llvm-readelf output, bug 913130
+ READELF="llvm-readelf"
+
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}}
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-disk-remnant-avoidance \
+ --disable-geckodriver \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-pixman \
+ --enable-system-policies \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-ffi \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+ if ! use x86 ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more
arches.
+ # bug 833001, bug 903411#c8
+ if use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # Enable JIT on riscv64 explicitly, since it's not activated
automatically via "known arches" list.
+ # Update 128.1.0: Disable jit on riscv (this line can be blanked to
disable by default),
+ # bgo#937867.
+ use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64'
--disable-jit
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_enable rust-extensions thunderbird-rust
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp"
--enable-compile-environment
+ mozconfig_use_with system-librnp
+ else
+ # This controls the backend of the bundled librnp. Choices are
"botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's
preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan"
--with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+
+ # Increase the FORTIFY_SOURCE value, #910071.
+ sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:'
"${S}"/build/moz.configure/toolchain.configure || die
+ fi
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends'
--enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use X && use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland'
--enable-default-toolkit=cairo-gtk3-x11-wayland
+ elif ! use X && use wayland ; then
+ mozconfig_add_options_ac '+wayland'
--enable-default-toolkit=cairo-gtk3-wayland-only
+ else
+ mozconfig_add_options_ac '+x11'
--enable-default-toolkit=cairo-gtk3-x11-only
+ fi
+
+ if [[ ${use_lto} == "yes" ]] ; then
+ if use clang ; then
+ # Upstream only supports lld or mold when using clang.
+ if tc-ld-is-mold ; then
+ # mold expects the -flto line from *FLAGS
configuration, bgo#923119
+ append-ldflags "-flto=thin"
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to
USE=clang and USE=lto" --enable-linker=lld
+ fi
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409.
+ # mold does not support gcc+lto combination.
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd"
--enable-linker=bfd
+ fi
+
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # lld is upstream's default
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to
USE=clang" --enable-linker=lld
+ fi
+
+ else
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to
system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "linker is set to bfd
due to USE=-clang" --enable-linker=bfd
+ fi
+ fi
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ mozconfig_add_options_ac '+debug' --enable-jemalloc
+ mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+ else
+ mozconfig_add_options_ac 'Gentoo defaults'
--disable-real-time-tracing
+
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS'
--enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS'
--enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default'
--disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS"
--enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default"
--enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # elf-hack
+ # Filter "-z,pack-relative-relocs" and let the build system handle it
instead.
+ if use amd64 || use x86 ; then
+ filter-flags "-z,pack-relative-relocs"
+
+ if tc-ld-is-mold ; then
+ # relr-elf-hack is currently broken with mold,
bgo#916259
+ mozconfig_add_options_ac 'disable elf-hack with mold
linker' --disable-elf-hack
+ else
+ mozconfig_add_options_ac 'relr elf-hack'
--enable-elf-hack=relr
+ fi
+ elif use ppc64 || use riscv ; then
+ # '--disable-elf-hack' is not recognized on ppc64/riscv,
+ # see bgo #917049, #930046
+ :;
+ else
+ mozconfig_add_options_ac 'disable elf-hack on non-supported
arches' --disable-elf-hack
+ fi
+
+ if ! use elibc_glibc; then
+ mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+ fi
+
+ # System-av1 fix
+ use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+ # Make revdep-rebuild.sh happy; Also required for musl
+ append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+ # Pass $MAKEOPTS to build system
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+ # Use system's Python environment
+ export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+ # Disable notification when build system has finished
+ export MOZ_NOSPAM=1
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support
arguments
+ mozconfig_add_options_ac 'Gentoo default'
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash}
${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org
default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with
mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
+ if use pgo; then
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+
+ if ! use X; then
+ virtx_cmd=virtwl
+ else
+ virtx_cmd=virtx
+ fi
+ fi
+
+ if ! use X; then
+ local -x GDK_BACKEND=wayland
+ else
+ local -x GDK_BACKEND=x11
+ fi
+
+ ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from llvm-core/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated
rendering to all-gentoo.js"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ fi
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path",
"${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the
pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set
gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name
'*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions"
"${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if [[ -n ${MOZ_ESR} ]] ; then
+ local desktop_filename="${PN}-esr.desktop"
+ else
+ local desktop_filename="${PN}.desktop"
+ fi
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ optfeature_header "Optional programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs"
gnome-base/gsettings-desktop-schemas
+}