commit:     abf1928495be1b2b0f5b6367e9d27d1604e14d1f
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 17 12:50:10 2026 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Feb 17 17:45:40 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abf19284

www-client/firefox: add 140.7.1

 - bump wasi-sdk to 30.0,
 - straight-to-stable bump due to few changes in upstream code since 140.7.0 -
   tested on stable amd64.

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 www-client/firefox/Manifest               |  101 +++
 www-client/firefox/firefox-140.7.1.ebuild | 1391 +++++++++++++++++++++++++++++
 2 files changed, 1492 insertions(+)

diff --git a/www-client/firefox/Manifest b/www-client/firefox/Manifest
index 56994079b491..a5480c8c35a8 100644
--- a/www-client/firefox/Manifest
+++ b/www-client/firefox/Manifest
@@ -201,6 +201,107 @@ DIST firefox-140.7.0esr-xh.xpi 272794 BLAKE2B 
555ac6256ec1971c35596ce62b44b4c816
 DIST firefox-140.7.0esr-zh-CN.xpi 460696 BLAKE2B 
6045a642088c942e00b46a67c7b897057df63f6890ad12f3ab7556807afe27e7e340e22069b9931f5ad8a0f9dfb17358f103704262ad08ff8ed9e7065acc19c1
 SHA512 
2c6bfb8ab3bba19e2bbb5c48c48ce2632e07d6f8f2cc11a163d5a4217bb3980650897d05cad6a71816a795ec62cba7e6526f848b50e06f4d2e7e9ced766fc803
 DIST firefox-140.7.0esr-zh-TW.xpi 463737 BLAKE2B 
e094e8d61ad12b90cb0226f73119a7b6af81a5ce965a8c0a56c1492eb42fff6ba221e6f82f7dc367a902f714724b82ee5a0ace5fcd1db35ac7f8a107484734eb
 SHA512 
16cbfb24cd05139d7691374560b5dbe8efcfb65cf9497a536326dfcaa5199eb1977849b19063aa17034327ab63b9d2062248320fa7b5d917445c117627737ea0
 DIST firefox-140.7.0esr.source.tar.xz 641146512 BLAKE2B 
cd5723595d1fdc0e52ab98fec5205bdc3228d367d2ca512a44a1ae98e1581bc961533a0a0fc57d468a0a10d9a1c480f28baab69def12f834eb51dd98c44cf6fe
 SHA512 
7781b1e203130c1cdf2a0c2ecb05a9cfa824c75d467e7faca78b66bd5568c821324112aecb774883d9f447af7fa4ade36488ff1017255af5510c8f641990e472
+DIST firefox-140.7.1esr-ach.xpi 294367 BLAKE2B 
3c4bf188ac92ac3323a483d64aee68a9442549ae43c996f7a85dac9f5d5e6ef701579549ba89c5e4647d7010522e0c6315481936a1c6141a46bcbfb40c36f3dd
 SHA512 
3d9440a34f8436424eff33182c3cac0eebea8cea2724069177b3784ef875fd3c6279c6713287b6f2b86f55001e65010963f882ab095be8e42580f72ffd0fc1fe
+DIST firefox-140.7.1esr-af.xpi 266626 BLAKE2B 
7a3e997a980883ab5c60be166d49dd51ef2f96bb142b3b08dcf5f694ca2e205ea61ab9e996c71ee2bb5c8790dcf4665aae75cd710663bc059868b027ebe1a197
 SHA512 
74f3504a6594fc2997a8105a285b08f09ecb1dfbb85a259a0face7f92c3feae243f55df0e7e88e1441e1aed9c761bbe75ebf740e4fb8a5eb275400a2eee53d52
+DIST firefox-140.7.1esr-an.xpi 332298 BLAKE2B 
16f6be9543711566835e85b3c16ac49f61dfe2879660c7f57662fc7f82af6e5d431a6adcbcb3fdb53849497563dda1363830b0d787f881c60d3a43370b391347
 SHA512 
677269bc36fbf1bc02423e2347172129572cf53b19e29e35e645652d3b766346dcc42f3c10ee91017cd33161c03dd6740e3e51dbd1877547b37c1255bec5649f
+DIST firefox-140.7.1esr-ar.xpi 445278 BLAKE2B 
729fcec1b27adaccc360905c55aeb1dbd398a4c52c0ea37f23fbf76e5fd2bbf9a488d2afbd65a082824e4cc779334c2747327937a790a38454e7afa3cf896f4a
 SHA512 
a57f888fa44531976dbe098268c06b1dc63ac3cf12a6749ca7c621c427dd8234f7ff6b3552545c2ee534d4adb56fa05082859951b0c982e8a2cbb226a8ee906e
+DIST firefox-140.7.1esr-ast.xpi 312214 BLAKE2B 
800fefd52dcea76b13b8199bb30988829d9f6890833b2be1b996ae94e205527d050dd38550222ccf6111592386931e97288d5dbba33db018721c147bd66e9a3c
 SHA512 
5c5da7de91d51a3755e2c4e04c391ce34ef0770b6679e7d5b1f9eeac78137b130e61d6eaf0a8d7548f6b88dd4c09a679ab431755e0a5d15ff1618ea12ee61b66
+DIST firefox-140.7.1esr-az.xpi 318400 BLAKE2B 
b42339d7848cbd9ee75239d38d60b86fdf45fefd4790acc0c40749215bb4598ea0b967aad4c60be495f02e01855d4ca55a71399b476dbe19a55c8c19bbc3c51a
 SHA512 
f7688581dfd4fe85181107a5c843e5e1a3e2bd7d93925edef2c3b7efc16f744f50dcdeaa6353c9ee8f94223ca8b1ddbf46f04c3d2b1c6fa18a71d32b84199510
+DIST firefox-140.7.1esr-be.xpi 521197 BLAKE2B 
8764d9e7762c9fceae2f4712a7bc22c56958587072095a40924f5536bbb3b66296322193515c9123231ef70ff783d0885f0da93467a28bd0309b528c1638ccc4
 SHA512 
25276e65bf613c0ce53902cb79dbf92522a9eac27988304820db5c255e812d7e82ffcb8e3cd5193e4a3c6e0bf614ebb6bef03811d23dcf0d5b5fd76254cbb383
+DIST firefox-140.7.1esr-bg.xpi 457547 BLAKE2B 
3bb6e0185d98904d48d3472713f349f808a30431cf6fcb208d10b809ed85af235bdbd6af4469083c15763857e29749f2091d2b0a8fb20d6ae448a9969340c238
 SHA512 
9bfc910c70b984589f02120a5c468b129f2aca981c9803b29dca41e8b878da46599b3cb1b35041394bbcabf8966674785aa06f4f74ed41b160fef86b118fd22d
+DIST firefox-140.7.1esr-bn.xpi 413373 BLAKE2B 
41e75b387f111c18c11b66bdb928e0619bba02911a846846e98b35b93d8876e76114ba1ee3f591624f5781662ce2e28ea1e576bc87e4e83fc44a7c20b16711ef
 SHA512 
bad7fb835a82d4923dd8d490073b95f0296ed69da7d99de4af61d051c94ad11e5bf1cb1a4383127656b0d4d2a6ef57eb524c3e914682f4053859a04f078d5ff8
+DIST firefox-140.7.1esr-br.xpi 395309 BLAKE2B 
8024aa5e2983ebba812830a78ac151e415a623d64429e745be6161c5eb8b4da4358b5a6f786a607e3d1a60a9f61c13cb5bff2494b75299af499b42c2397aa1af
 SHA512 
50f1cd365fb6fbc1e8e257843dd5be2e11d52566453c6fe3f0d7b2933c38d252aa0d6d4f270861a00628ee9a1f9e7f245fbab16e4180232a0ba275ee2f793713
+DIST firefox-140.7.1esr-bs.xpi 447175 BLAKE2B 
b9fe7fb8d103bbf0fdcd4fad6af9a9b5a71106d56bd530dff564017057c0fd8c26a6d87605fd5ed9ca501b1a4b2b289803987d620cc3f6fba8cb74c6c4a1b504
 SHA512 
8ad5532099c9de50b11504e88439b2a1a107a4d50e0ae058f2c0c5276c1ea06b954bf0d2fc9ff32d034b1a0a1942fd5e5d51b3e715f79902741e4f2b48c0c60e
+DIST firefox-140.7.1esr-ca-valencia.xpi 357932 BLAKE2B 
a50e8870cd5e9fde5474b63b66dc7e3519206266f3c3b232b0d7c14059aa97efbebbe57e454ff93bf3a4dbc1ce9e522ed673484d8dd41d2e3e947f25d9638dc9
 SHA512 
1cf211bc0ca20e38c1cde136c826e9e6b9d36e6697d9dbe92f436546a692e5b8c0a41569b4ccaf4bcbcb4366a531fec8cc236f59123425fe3cb7671e76f6ae40
+DIST firefox-140.7.1esr-ca.xpi 404820 BLAKE2B 
c1e0ed416edf7d38b5aea8d4b7fc786fb9e9a2840684c31f3a3fc8a31b50c09d21c67517d617dc45c22b557bef5ae9ebdcd0114599502920ea7da732adb6d6ec
 SHA512 
9bf087b648f982fcca93721b1f791c283c81f52ef2ec1acd0704a7414efa6e1b2eb2eb920e444002e2758efb178ea4c06c2e10ac3161815819698dfc35e83a83
+DIST firefox-140.7.1esr-cak.xpi 390839 BLAKE2B 
ba60ee252059ab29b7124916ab52b7f0a2f3898dae9579180b9fb0e203a2a254ec606ab1a0c63db7b6862e9c03be8df16eda74eafc33667a6b03ef7fec528861
 SHA512 
98e5584ae6f4426661c1efe6d192cb65b70900c992dcc2adc5f477adc3279b3069c637f668f967039422f9ec05d1bc281e4c43cc5dadabcfd4d17efbf7728250
+DIST firefox-140.7.1esr-cs.xpi 475924 BLAKE2B 
09b0fac341174c11c063c08b37b30a82224b14389c98a316e4127e21e5d636abcf9cacc08a20432260dac9be9f99cb94d08402fd03c153c2cc553cf1adfecf47
 SHA512 
4241f5787fc2a85e67bfa2e0cfeb98e94220c050b9b93aabbc4b21f3504a33008e4679cb8a307af31551be4938d4826c1fb009af4d01cab41e848dcc3b8b926c
+DIST firefox-140.7.1esr-cy.xpi 441961 BLAKE2B 
96e9e705db4df0fb53ba41b56005fd75a65dd2bada5b4daffb8fee8456629dbe5e84d0b35a7be68ea68fcbb63a96031b7afd4a4cfcbbca8a22a1825c507acf1c
 SHA512 
b8f2dfd0258116e2bcec7945d9a9c6e5dd1720ca5707d32a749788478c59085acd2944e9f4ea69564485c782ee4184e698c0580ccccf702d2baf9e848da44bcb
+DIST firefox-140.7.1esr-da.xpi 431122 BLAKE2B 
64a9e817f6ac4cff82bb16e8aafdf7ef5c8470de4ae9ac7e43aa9fce07b33f30c41a02e58967300395a49f7eb0ac45ba0078f240e9c0dc35b4802a6984fa4c3b
 SHA512 
3e3824367b9c9bda9d39dc4a8dd5eef5f4cea9bfba71be5835568859340cc7630b99bf591b4679e6d35ba199aa0afb3c7ab2b99e3bf6a4a6ac2d2eaca4c86b92
+DIST firefox-140.7.1esr-de.xpi 452700 BLAKE2B 
5deb1ce54d7673ea1ff714fd410b0546ddc332ee2b1e6bbab09c06fd397f68cf76e86a4721745525e536baeaaae69de0bd56d43becadc9e76cf5fad8dda5ec10
 SHA512 
631edf225020e8c19c73245fc91745ceaea76b00682e721322e8c13b864f69d5526a1a03ea42a4d06e7bd8be24b0a5d0e931d85f6fdd107556902e727235fb04
+DIST firefox-140.7.1esr-dsb.xpi 466061 BLAKE2B 
718e2eb81d26791e59b3d2f54ab1b96cdd04dbbcb2ae69085d26e1b48936335ba928877f29d3be8c3758b0c007822a255a894e0ad0920df51d300d0312c7c731
 SHA512 
70aa0b658b9b350b614c45e9f226eb8ef14ce9099bc29ebbb75fa4b2acf17e0f345b1420e6a106fbc8b59f1c5592b7d7801f539a6fb763f8e56262e2bb6ee559
+DIST firefox-140.7.1esr-el.xpi 536818 BLAKE2B 
72754f653d8c75eaf4bbb4f7558bb326c56461ee9378e2370af4063e7f2b23afe541e03ef0e7a057ccf0c3f41f763de3ac210e1ec1c089e1f188f56bfeaa3ad8
 SHA512 
8b32d82e026600dcf241c494baa865456c584aceb7dc0e10484ba170be22f23e53e6bde906c25aedb9a10387ea9b9a13d334e959734365a7443340212eb9679e
+DIST firefox-140.7.1esr-en-CA.xpi 411055 BLAKE2B 
57c3f782427038046fd06927f51d01ce3e3677edea8c4dabfbd0da3c4eae79580e4ca29baecdb55117a743e7d4ba437d1ad41f472205ee6e31abd60c7221901c
 SHA512 
cb30889c2e237c08868947591fb58e9e97ec16dffd0377946637600493b96692950ea386c72521109bfe7ad00982cf2cc3de7577b943908c6b73994076849a6e
+DIST firefox-140.7.1esr-en-GB.xpi 411404 BLAKE2B 
5ee0053fb636ffda69256fab7c416fe8f91b800a6578a64959adfee2cd44bb42aac42a5193a95b6d59103d8c810432da0f9f64d191b39f896e6d9be54e7ad52a
 SHA512 
ba008b41673f1e2be82bc748c693b792310c934222424e0db953d8cc6afdcc5ab5075630decfb62087ea46e623531d925c323d5e1a01a7f0937c2c4e888ff3cb
+DIST firefox-140.7.1esr-eo.xpi 433466 BLAKE2B 
e2193bbb341700b71c7bda28418017f91008344af04586e47277e7d43eee7c24ea1f3266bfebfd8eed416a2aeb13be02063cfc65877a7369ed21b0e329563cf2
 SHA512 
434303fde53f07db7554c17d4da720dee96aedc70080f7930a39f3e06dd2644c5d674d6f567c8bf69c0734cef2b00a4a8f6f7479be04a8b6729de2e72054c464
+DIST firefox-140.7.1esr-es-AR.xpi 445517 BLAKE2B 
248bd765fb8f1520cf4eb5071559f670ab0ed0e6532f712068fa7576e97bcb534fa56ee1cb445ef146083a70f7a1b3796cdd777974cf5e9c54514c3eccda0300
 SHA512 
391b1d8e707b3c93c3cca4012cad7ab951370342b90e309b269601dfc51805631a6bd2a2b46bd93b448289dd627ff2ac05fed6acb75d3bea36e6f373222421ff
+DIST firefox-140.7.1esr-es-CL.xpi 446308 BLAKE2B 
fc1a052561b3455d1e7a694c1da05576e7f778315bb21865a2031f30a51f08c53d8b58ca645877e91380cc53117aee5246fc47653008282fb7451aa4ed395bc0
 SHA512 
ab67fef6df087ae9646a7030d1ffcccb02b38f9451c233e29668117a2f21280c76382613ea5622566c6b2d7c7f74479a503a285feecb3e67069edbbd9f45b899
+DIST firefox-140.7.1esr-es-ES.xpi 447011 BLAKE2B 
bb33905922d2e014ed6080aa34d3f588ff5be04767604231cc0b6a777185f2fc3de1665cd4ee41eb854e97586b7f8cec9b62e728d3b58bec3760029ba58abe0a
 SHA512 
e8f761236aa099d07819b8ff77b75df1b5316d2a97c99a537047464dd7e03dd24f1df3fb533b52515a2aa6e173122072e30b8696801d2321c6da6dd85b327f1c
+DIST firefox-140.7.1esr-es-MX.xpi 446241 BLAKE2B 
b940f38b434a55f645120c06779c273fc5c37661482fc08e4cc925375e936b991df0df8dfa2ad3ea33f8eeca8298a946e131e0030c15000551d958b14dad4aef
 SHA512 
af3d7ed34831c09e4d5b14cd2d15353ec2f0f4a51994bbb83470c618c6002c5c8d4aa288501154e78361a7476d6976d0ea3e5e283ec1bef0856fa2adf6e17241
+DIST firefox-140.7.1esr-et.xpi 359312 BLAKE2B 
854f8809c230cfe12e97ae16b46b01a400cb7b0316d42bda0c590b95daaefb289a3b2535061dc328b6d4015191814febeaf3e92cba2810262a8099f7ff240121
 SHA512 
5c8587dc1b647b6810de64fc625ba2d49471e9fede930e32bbf8b50357a50bc4f42b6be5c50f0995898f647a1cc3c1c0703643fc984558465941e9ad938e9eed
+DIST firefox-140.7.1esr-eu.xpi 417293 BLAKE2B 
ecb01d2208d6eb4219ae6586a6d88bf4ed3ba42af52b51299a583537a5c9a3a5f1ae46ed488157047c29a4888d3baddcaacf0c83bddbac8732450950cbef6f41
 SHA512 
39f4c4ec960681857ece8154054580e7323254900bd5ad400ff58e3179bc2cdfe0ad8a3e7b7b1c3aab19c488659a545479b7d988669006ce2c3b1162e9022c9f
+DIST firefox-140.7.1esr-fa.xpi 421636 BLAKE2B 
9f39a6271255019229cd4dd661a83754d0987cf5d1ba1187062803a3d5c1a52d73a5214c09152b0fd031aa126f44adc33f45f0a26894988ff70c70f9eab719f9
 SHA512 
dc9c3766fc08d29eb3657cccb3aea9f0491118b0d708463e1aebe9a65a4657726e7bae98a90ff3e988a68cf6a9b999ff50c7bc7e0c587eb56bb967e7d08a9c25
+DIST firefox-140.7.1esr-ff.xpi 310177 BLAKE2B 
a35d326782ab43753614a81fbbf41df63df284f03ded47386222378bac9c88d70ea36242157d1b44806a77716590d5a7fecde94e0012e04d1457cef9e82214a7
 SHA512 
fc9252327586647f030806d13a850ab51ebf45c248fab8d4b0a2cae1d58e244b13fd7a1763aa1965d477ee15e416e22086e1a48adb4de80a9f7c8b65d18aef6c
+DIST firefox-140.7.1esr-fi.xpi 430159 BLAKE2B 
f1494655492d694cb9422ec3f39e3e206bb135aa57ad8a1dcc109fa77fc48cada8dc35df709126fc6c332035d4175e065df0d756af8e2e8434cf8396c60e0473
 SHA512 
fce604680098242642f19ecc97fb4f0b91acf5197f2e86091502faaa6a28a3fc66a136ac31e0f3a05c154391a1dad21c2fa87a95d528d6d10bd097cee3973510
+DIST firefox-140.7.1esr-fr.xpi 458452 BLAKE2B 
65c64b0f58ed6c531ad7ceac27d5fea945307a05f2342e04d908ee76d28020a0b1281c518f43ba63f2a7647f9d724d3c1c2481d0673dcf8971bc2f0e744faf01
 SHA512 
23def56b0eb653a2fd444d529fa22bae169aac30375079f99aede80e5b24f0ac31e39ad5c74622c3209b540d95cf07e3354703982ad91be53eb7269fc676599a
+DIST firefox-140.7.1esr-fur.xpi 451825 BLAKE2B 
bfc243879f7748cf0a52d49366b89b8c55fa714536ba0512c443c50c6fd5f520a6672cb9d9c0423a04e85c8bfaccaaca0a5e61d6f5c2db6491aac850c89d3c3f
 SHA512 
c9da834426f1d70bd018b6e1a957f8bcf383e0e218cab149dd5df7b863e34e75ec5e012291414117988578cd9cba68ba4d0ec464ced38caa551745d6967df252
+DIST firefox-140.7.1esr-fy-NL.xpi 442170 BLAKE2B 
173ef5e29ecf8c60ced63f129d9f5eac549967866087d7012c542c2933ee2dd02c1a262ad2e13ea7f9d5a32bfeea4378a1b297ba4634854d46b28763f7a2f14e
 SHA512 
72858045b20a1dd6da1b3db7966631ae1b91afca5bd797154a99e55354b5e2aea46f8a0337ed569d7fc61b555c431e3b16a3fb245ecd0b680e86f8b9db63fd49
+DIST firefox-140.7.1esr-ga-IE.xpi 315275 BLAKE2B 
abaa515c01097b760e9a2824f44dfd5df131955b4cb0c0835f15da8ac394cac52f87f84be1230ba50fc853c75673049f3472aa2d73469396d09ade56d8388b23
 SHA512 
ecfb58b3fbb3709567d6f72e0a346eb5622b9493c40aa44800bb50737062c0a7826c7687475eea3c606081c4a653b396bfa53ef039371d3de3dd8934a0508751
+DIST firefox-140.7.1esr-gd.xpi 399432 BLAKE2B 
c078771c27207a030663fd87424016ceb393886b8d14d7fa71537cfb8da8288b11f991194690a747cd221a815e734e9abc7082bef4f5504a013e32312aa0f82a
 SHA512 
9929e989062073fe0626f83dcdaa15450e91f2fbb71bf43679d2bc0e7e99084cebcdc045469cfe873fadfb542e4d72efd66f2560b8fd16efe32a359ba2ba4650
+DIST firefox-140.7.1esr-gl.xpi 442899 BLAKE2B 
5f65f4f9f61abc4525f085ca92d7696bd353e4307c91417d49da97567f578dfbc12d374fb6705d1fff51fce5da2e491e2b609abb3c1d6b1f7f2c0e78f37187f6
 SHA512 
d35e93f8fa5182b7c4714652876dce74fd65ed4f165533adb69ffdc47a8628211971b6ce004cb456d6d7463e198afa97a412ba6b0e8c136313f4a7b3761464ed
+DIST firefox-140.7.1esr-gn.xpi 451083 BLAKE2B 
855103609564a970e2800964e8aff7a1274abb6cc12e74be6a754affee0a9ff068b9734c8048eef2e6b73dba03499c8ddb750747fa8490557ec02862d19674c8
 SHA512 
5cde86e48a2ab885f44929aaecf1c91c78b7a64ddaa00d2ec39eafaa390807bb036ce9d223756a490837224e548d1f9f7e78f8093d4a651b1f825c7ea96cc1dd
+DIST firefox-140.7.1esr-gu-IN.xpi 358965 BLAKE2B 
b90975fdc97302b91ef02b36130b8205a1dd14bd802de93f562f4b3195d504b84af46a0ebf0acf257ce263ac445cde073c360f1bc19f2def1ed9e40c69b5943c
 SHA512 
7c32f5f05bb9a3933b22b8f33209ffddd29c029db12d51041e9c12e09251ed28b102d5e6bc1be372fa0645f5644ddffc84627d94721c2e4784610277deffa270
+DIST firefox-140.7.1esr-he.xpi 444983 BLAKE2B 
35fb37416ba05e4b64550bce6d32a676985fccba4593557274038357110e73c0de093880b32d41a30546b28f92fc0845bcbaebd7101bbb727b54dacf85affab2
 SHA512 
9ebc10edb755895b52bee01cc729a9187471c4d85221bc0bff43babd3c3c444a5544ec993c2bf4aca32cc62eb3d60b76f01fb46a57613c770187c727680c4d21
+DIST firefox-140.7.1esr-hi-IN.xpi 377458 BLAKE2B 
2257e3931a44e74d2c75930bc8ec5cc07b6e08bd091864421e40b351bdff0ebf24a58f028761984ec0db392d2d1dde20a41e109f029e348d681ae8a7edf196bb
 SHA512 
9b2fc2f3e196ee1b24ac69d8d90bb5b5eac8e112446b52238cdfd58eb12793b7e1aae8bc3d9d815160048acbe2940b8c960dcfc0cc061cd6a19d1b7803d6ab86
+DIST firefox-140.7.1esr-hr.xpi 437683 BLAKE2B 
9ca23fbf1eab240c0569388b06d98b943a06eb958347beafd6fc001330b21f717ea4577a3978c45331fe1d6c862810afbf779473a7386c5294ba985f9eeace7b
 SHA512 
97cbbfc639122839c41e8a96a383b33b2ee63c9a7390ac15c8e47f454ce460a98459cd1aeedb90968c9febc584721855d438f96ab33dd668e9bc3e1d3d6b78ce
+DIST firefox-140.7.1esr-hsb.xpi 462689 BLAKE2B 
cb12e83ffe1fe593b024e2dc533c1ec4e7d6d664f940d0ca7d18c9c81ceda021f392dbeb41520767acbdd5653a870f334ff6798dc4b800718785a2256c53f598
 SHA512 
9776b909a9af4e954ec370b68a257114667f7caf20d48acbc22ca3a5fd76fed8236823b6e2df9c6da999ffab1b4ebac17a0ec30e2802c57f66991f8ba7b4cd07
+DIST firefox-140.7.1esr-hu.xpi 466172 BLAKE2B 
2f66ae781963a9b8d87506168cbc4c033f38db1a6d6b69f27c44e83921ea5d0cd96ff505504a2c213f3d17a9ca2a81fc31a60096fae794195ad8dc21335ee1f5
 SHA512 
9ef8ea200f9d651dd169513db0665c56bd14e5215fcb661d54b813e14a5575c61a3997462afb4ca317c429a2f2f39e5a56187f2eda0b9ac4352428cb93195a24
+DIST firefox-140.7.1esr-hy-AM.xpi 461609 BLAKE2B 
584e6ac04b03ab92cb663f7d11bdd8ced67ea0493f6f5c0dd55821ca442c3f5d1e98fab2b88470151f173bdf860d318c462e0d06943e9215a141dc9b4def88df
 SHA512 
36e2f7a0411470e5aed949c788f745b8abd90a4883a1a44f7f61a6bde2c4cfed98ddb3a9cd25964d874aea2f68533fab766796e6e7c322137eb43ea2529d2c5c
+DIST firefox-140.7.1esr-ia.xpi 430108 BLAKE2B 
78ba794061e193710a6f6cc0a3f6125129087cc80c4e2d7ca2cb478755fb931ea26e34d4f0ad7e91b412937144b63bd250be7aa258cce3661f9848a7026ca9a2
 SHA512 
64357116934b2685e23e00d9a39f678e15cefaf5368b67a0206ea6ea12678c975b636fab1fa9b6510d54a621fad6b6b58348e661ee2a6e93d387bd02ebc49810
+DIST firefox-140.7.1esr-id.xpi 422737 BLAKE2B 
3de318cba5e860cefe9e72b1d2658523bf661234e2cf871c5e60f82f02d410f969d9f44a96cfede9591b50369b0b90bb05900a235972340e9f1a39c808b8574a
 SHA512 
f95e4586baa898a59f9f81bc0017196813654b684da1bde9ed7e708ddd0492c0cead625c00bd083b5b09d7540891ecafd1f3ce3d40512513e92dc83091d5851b
+DIST firefox-140.7.1esr-is.xpi 432674 BLAKE2B 
384043b4c8fb3f3ff6c0123d846194863ae542b76bb5757bccf6b8cc5fa9df33e8f497745d49cec88ccd19b824417fd5db32e4a4bd2e007dc549b1dbe5725b12
 SHA512 
69a8bb307a125274b45e0ba41aa446d08d877e0dd3365f681fb563816c028323c40116524eb67e3b774517301cd06dbd4a9249ad39e519cad342ca75615ceb64
+DIST firefox-140.7.1esr-it.xpi 440900 BLAKE2B 
97a1a4a626ce978ee6da429c12ec4a49577f74787718c0109b8ddc1d306c6d5640ad90d08b02c4ed67f437440b62a330beeaf65b38306c1d1afcb8b460f5dce2
 SHA512 
29126ffd2a69bfa7b01aa58c8d8f5f5ba17ed3d028d7959758c55a2a60266b3ae3909129dd25a9cbcaa45c0efb6fd998495e6df5726f03e63d8cbf18229336b5
+DIST firefox-140.7.1esr-ja.xpi 481314 BLAKE2B 
a3279ce69d58419e039d534953109c907766482fe9fc8c95606b05f2e39b52ad9fc3dc4a788303bee3061eda8cf688eb1be73c479e2b6eefb1f2984c188fa651
 SHA512 
f665b85146291019301e8f4a47a6d249500405b5e13a132e7b54addba6cde74b4f70aa8a7f6a2516b4860ac5a44b7dae1704dde2999b1e141718f28f3fdf9fff
+DIST firefox-140.7.1esr-ka.xpi 494867 BLAKE2B 
850a396bb7139c55d04b6d748895fdacf1109517a96a7b263b701a14324ee6accbc6181927bbe9440971d10634e2f971e4affaf89f91644b5d681ea176d5e116
 SHA512 
e45ced7bb51f38724918e8a627bb564f0fcd40d2f1984fc4aeaec166663f3668bedb594257d979aba5957f3ba36bef77ab49f302147493a917f5afc406a2d427
+DIST firefox-140.7.1esr-kab.xpi 422842 BLAKE2B 
85c64b0da4c9245cf888fbd3e6587d606d0bc6f4a51a0878dac8115fa196ffa0f642020ad7c7c7d6bdbf6afe2c2d1a7d600f46b51bc155b9e59f2ad1eadade1c
 SHA512 
dc20a7281c1796b1b5613d884aa0e8a0fe6328da69cf21862568895646a77148fb57d6d4523513dd035f8125d83a96e3a4eca19e535356f68267f167a4aa9d52
+DIST firefox-140.7.1esr-kk.xpi 506686 BLAKE2B 
fe1947919048ba562d5ac4cf76972e3ea8b25ac4c6fb577c97905d12691069eb2d9b8b4bc063c44da7bec24f7585dea105e8f536411d7b3f9a8b80043efd9fd5
 SHA512 
0603e6a881e1cc077d66b0c7e1b6264e83fc92dd17d2a04379cfc5cfede5383d2be64a5596454149bba693126acc31f553b58f25b5a26ff1dfee8b58febfb46f
+DIST firefox-140.7.1esr-km.xpi 348775 BLAKE2B 
cb4231ac5c6cc026604017dfe56371a3b917e529a7a237e82664e90421dec7181a6f27c43d7cd8ee55491e798ef911be128114a1e2a7a2708338dc2fcd2d5cfe
 SHA512 
0d16309ee6ac8354abdd9e054fe178151d49ee3c9180ec4edbfdb06febff2ed99817e3f7b12beb62525a3fc5c5f40f441a2d64d4583100379c55aab3ba099dcb
+DIST firefox-140.7.1esr-kn.xpi 331777 BLAKE2B 
b31e4861ddc9611155d3a736f69558bbb68eb8f369f72dc9c93e9281d80a95fa0162df1daec2e4e7d095e04d1d601bffd8b1cb02bd9289224bc8fef6e3b56888
 SHA512 
77202009a117fec5b82ce81666da5b96dd893900a28ffbb8d1794d849da0c4969423378634381b44e18f466597b4a908f06b01bceaadcf7b4e0fa902c670aebd
+DIST firefox-140.7.1esr-ko.xpi 467538 BLAKE2B 
a2d325a8708dd7290e4a3e0736e3fdd61dc9d2fe58120a3bda9b4d37502365db163239c44c5f49c8732ad4572bcd863e4cd4fb86b5cfa39694c39ddd5e167f1d
 SHA512 
cb2389f674d021a18d4fe5e03a732801b0b239b04a083fd481f9ed8a2c705a5369505cb3e5ced0924c83c3b346304ed4011b73b705b44b747489e7fc34d9bcaa
+DIST firefox-140.7.1esr-lij.xpi 319275 BLAKE2B 
4c902b8e8542d91c107b11c28dfcec91d35d622257bb59dec9138dfdac3881f1ff2ae9b64d6f956e0b142562611da5ca988353cdae01d796f52c6e8ce6bbbf77
 SHA512 
f56822c6dd33402d0475b2b4c79b7095409f05b785fd7c0d782b029e9059b446c70c7c0df59272a085e0fc1fa913ef797791b2def0fcb02e56548c6c6620f445
+DIST firefox-140.7.1esr-lt.xpi 379953 BLAKE2B 
8f25cae79f8918ebc3b61ef54edda08a467f7c53e7a407ce99a7964dc3e5be826fdee7ba5bb773c619bca487f91878b57e51c5f9a71b260b42e1949692f8b2e9
 SHA512 
eb0f5f60e1166409748fea50f8678357419b2f55d64cdd9dbbb4f4b4ca6e085b7c5004314ed3679dfd020098c0b6ac379d759eefc37d5587bc1adba699459b10
+DIST firefox-140.7.1esr-lv.xpi 389076 BLAKE2B 
3f6d34541dd7ec69176d2505142bec60c6e00095c46c55c9ae44c9e16d927b2e343e649dece50f33b7468526b86bc44c5672552357b32d5e08086794bb96ebbc
 SHA512 
9cb59e84eddf5f58b08ecf0320b34cf9e95b4572ef38c8ca5ffad8ba727c97e1027b5b250f16ec8b9a3a577c806ddeb67e88fc9e07c63ac1d74aedb218f13db3
+DIST firefox-140.7.1esr-mk.xpi 316828 BLAKE2B 
ee1b67ad9ac6c88dd8ed4f241a9b2846d18b4a30915151ab2a18d25c3a3546cdda132eb02a1c39c5ef0ab6f19b98526fbf1b6d2b83ba46524583112117390676
 SHA512 
5757979ef058877742020c96173527fefc01ac55d2a08c772b2b3823cbfbf46549747620dcbee4577f32118f5bf1c67beed8a98c81b4bcbeda62c96ca5ad84c6
+DIST firefox-140.7.1esr-mr.xpi 356252 BLAKE2B 
0fdb1b6416086af9df51fa4bcd26db2dd401154ef2f374081f08200996592680a6afc9fa838616bccde1fd36e17e556311d47b58ea8d33381ce0db592783a02b
 SHA512 
cecb9d60d676a8af5bf4c7d0d144230fc4966bed1df70abd7344455625e932604f4bb5241b4e9579c45d254a71285e872bfcf8502679f70264f0bc2a063ac3b6
+DIST firefox-140.7.1esr-ms.xpi 295388 BLAKE2B 
b9ac3eabcd7cdb5422ba72af4e0f1add073004e05c228c9fa225f79fbb1572eeae37e7bfd48e3ab672c8163d11a3ab16d2e0466fffd129010644f532874c2d60
 SHA512 
7d2a6f413f3ad5e3c115aaaa9532a4a0c3eaf6a37297c47a466820a6ded1968b4360659b7692ae7d3c588c2b72b9702f6f1ecaf372dd12234399fecea34de2a7
+DIST firefox-140.7.1esr-my.xpi 343021 BLAKE2B 
cc2a1e9f2af1d69b7f6effb535e4057a168e678c703988d40619e583eda255005bec6e00d8540917e76e75f7cc9059228005b922adf083724ce031c359bc7efb
 SHA512 
5d45af5dffb1d59d33fe3be64caf95bacfccbc61cf42ddd695d4aa90b3d3d78b61eba4b977df6efdea8c7f6775a02dfe31e292ea1f3b81b3bb9d546c05ef4f59
+DIST firefox-140.7.1esr-nb-NO.xpi 429338 BLAKE2B 
f4912ff87cca577906a2b35594e8b6648a7453d065deb7464f6dd922986fa1329160f8d84a4fda72e4abfe19eb74c9e26482cf9df58b377481409b78781e0bfc
 SHA512 
d2ce6f8c10ae56184f5764f280bebcc2a43f951b76a519d02a45bfb4b705d19984dc298e8c48d92cd4b5b235f9aedb84b302e2d8301d97ceba7abe27e6cfd5d5
+DIST firefox-140.7.1esr-ne-NP.xpi 349015 BLAKE2B 
6f48a703f6fc2eb55d90ad819a2573dc7b5c66ed5f25361b8509d512f7d5f4db908a570b67d8c3f2b5992483db1cc3ef56dc96fb5ac3b72bac436d4863a30e9a
 SHA512 
00d1db81cb0e84817942b74aeccebf794cbec62efc5eb5f76b67fd651d81d66b137dc33ec650538ac1c86bce3802c68f3d45d552f0492f9648b410f2e6c9edf9
+DIST firefox-140.7.1esr-nl.xpi 436184 BLAKE2B 
717cf5a58c73e9fbb580239d2732b264cc89951c2848f74d40c115612b7aa15d3a40a5f6ee21ccf8ef10515e6ba9b9db7fd75ff26734e95fbecedbaffc954ab1
 SHA512 
fef5af8dd656da0b49d7a0a1d8b4f363f994311525cd6153da7c1418e1ce9c55aa310265a0025e189ff35e654458b4b501c776d062d17a6ffd27029a49ee481b
+DIST firefox-140.7.1esr-nn-NO.xpi 432214 BLAKE2B 
e8cc36fd6420db21dff7dc2d92cc17bed38d9e44317bad91144f8bbf7c3c6c0c53b658e2947fb6a94d834f398cb1b35b2d50e03703e35ec689c9c62e9f4e3a61
 SHA512 
fe7705808ccbb1eea17f011347ef9ec9a32369fefd7aa9594f13c9d6e7607fc4ae8cdc49f26ad052916dde6a7922082a64a3d1ece4285181858b5a7359241519
+DIST firefox-140.7.1esr-oc.xpi 410926 BLAKE2B 
9bc789025b1e0cbc2cab41f38b7b8214793f540def4e4e510f71ec465777148c1af84586156c13733a15fedd738a60408122bec80f770b08bd79f69552421f12
 SHA512 
356ad320439056680778ba243fb4253ed4795dd33958f5dbb0f0016847be3ae22623cc598877de8a84229e61b91eab240d800d7d2c96c753d7020d6e4829fa52
+DIST firefox-140.7.1esr-pa-IN.xpi 494411 BLAKE2B 
f9abdb08f12aff81e10348efac61c2d5a70be044f2e8e487500cd4e28e25c719c39e663c0da01ffe74420faa35c5d847b5f67436c21a07ffd103ef2054c7444b
 SHA512 
e3d956f0f5b0e4171707d5bb9f3c59ebf67d9f969bcb4a812c66a0b43d78f2cfc03a96f41f6ee7f12407b4807e9b240a31564cae386e34ed92064bfddab6cfc4
+DIST firefox-140.7.1esr-pl.xpi 460928 BLAKE2B 
5beb6e84fb1b6c300b8a19710d29b91e931d1cc6fb00a17e36ad0d13d58699b0bd2e20bbae2577df4c3060454a2ee55380e567e9f0103f98fb6c0443f64c5664
 SHA512 
b9af99997656f176eeec81d986e34f146b629a18de4f6dded2d0d0d742e62d75a73a7301740c6d28aa282d0bdc8ebd8d4956567f433d32fa8e0c318eee59e025
+DIST firefox-140.7.1esr-pt-BR.xpi 440758 BLAKE2B 
93e16918df89c1aa28e2ad50464fc7b3f72cfb4cf518d9e0b37df3a325c3998665dd8400df58ee608328a857558ee9f1bf09a6b90cde83f6437e3dcfa2c1f9a8
 SHA512 
dff3613d6daa59cfc82ae62233b3defe0d6cc02e7f1bf867e59d1675fa17bc55ca4d289422551745eb0ae3cd31f100d9a703c2d1614bfd15881bd44d6cbe4138
+DIST firefox-140.7.1esr-pt-PT.xpi 446404 BLAKE2B 
2da8d8938814d7bf9c689bd8fd8c41c1e60ad78c0e0dfafe1cadd53b8d4e335bd0cf82ef2c931de5fd1244104d38a6f34958466f8138f2a8b9fde38b74866ce5
 SHA512 
2b5ce065a1be860c8f8cf734d6de9891a89dde4dabefbaca9bd5a703c800455b08e3b27e39a0a6b1db0577e5e1c5965742a4501e2038a9af2ee35e69032011ae
+DIST firefox-140.7.1esr-rm.xpi 438019 BLAKE2B 
a056b4d20fe63d65f2f97a4e806d7ff0e498e4575b9d43035a063568337943ce6ba8f5ad8037e9e4fabfee3ba198d9172064fb1883b7045a5586fd31329c5ff2
 SHA512 
b49eec1fe6c48d11e5419858de814205d43beacda4110022fe4773d76047247f989df2c130b6cd517786dcf69410c3422a0bb9614d09b63a86071fc9abdec351
+DIST firefox-140.7.1esr-ro.xpi 452828 BLAKE2B 
40f9dba74b7c9bacd0c00a8b38597bec6500d68386f8a7fcc81e74626e673a9e5b1cbe108f27019112c52c2539b163bb3b03ae9d71a627e7c44d91e5f6a40552
 SHA512 
c932f35443b8b633ff388c1160b00d035cf891e32711c51e2297376cc7b45ec8dbebfce050b79596065d6f865674f70fa681352ada4438fd42ff36c3dee91c54
+DIST firefox-140.7.1esr-ru.xpi 525178 BLAKE2B 
f7cae91503231f2f13614e50f9b70857ecb99b7cca5185d9db7f44c07b75d986e5ec62eb7fff42ff3ebcbddd6226e70321786145fce3b08d89ad6539b0983bc4
 SHA512 
e8b42db2a02ecf41086c32717917569ca321a2d7af5315d1c60c0a996036eb717cc9b8bdfce15630af965851f1ab017cdfa09c8d2e062f2277627b6a932f17c1
+DIST firefox-140.7.1esr-sc.xpi 410460 BLAKE2B 
202df0993977e8b0621af4b432e43cffd52ee7a9ef57d67bd3d60948f23d2ce9a3d139dedca907609a3158a76dabdf100e45529b4d6300226f771674f213a9ca
 SHA512 
f8739c006e60dd4ef2221ed2f75de77e51247e432fef5875857c8a427f528a71192d667435030453f8bdfdb0e7a7ce444346fcd82ff5a0e66fc062c71760572f
+DIST firefox-140.7.1esr-sco.xpi 322643 BLAKE2B 
530a364c85b339dfc117904ff522cbc7e85979278e0524ba423db06cf2aac54092b2b6a7e75f07f268dd8e7fb4309a4e3b39495c065df4498b89115ffcd16b05
 SHA512 
73a164ce7cd84c2c9fd1adc18e971ac237c6787e365636c17fb116806ec225314932466f11c5944a5d94f0dffc7c7c7cf2b423dc535800655fe5d1271c9ff83e
+DIST firefox-140.7.1esr-si.xpi 411606 BLAKE2B 
4ab27a14795cee4c248ee74c9c08e4ad16e9b739cbc375572eca74e6ff9f71ebaf6402794bc82a99ea44c2580560d0d7f8f1a9b1e1a3d4dc5746e69aea1ad8c9
 SHA512 
24ca9bc2717b982604898b3f20a835772dbac0c6c30a2f5bfc27ae639546f7dcd681e18e438d377a2826c3e0b6ded94cfa588b00bfabb0f4616f4ba40ad39012
+DIST firefox-140.7.1esr-sk.xpi 468223 BLAKE2B 
e3e76116f95aa81c87396643a48ef4e9c56eeea0968eb5368b8afed28c553d5c6f77379b9214e1db58783d6e8b863acda945e58be37028f3acf0a859823a9751
 SHA512 
f4b1a8816f0ca3d8c60871797157747bd014f2a1d982a3ca810faa1903a9b66b721b6dc4a2f940604e8f7c0d067b108017b0bf2586a26e1a6c3ad186ab178386
+DIST firefox-140.7.1esr-skr.xpi 485867 BLAKE2B 
6bab747d0e7aec64ce7f0962f55231c042b815b062eb61ae48c90515206560e05d80fd8c2a00b2ebe2295bb296f73befcf9329fdedd25b0161e84c7f2dec8a4d
 SHA512 
53313fd973f408efae26413e7fe14bca83cb1617a1decb150c6f316f7f424115082595f04718ac4f0a35acf5f75df6762b6f5fa135f76ed04ee62dafabc0d140
+DIST firefox-140.7.1esr-sl.xpi 441196 BLAKE2B 
eb16a22cfcde9416bb746a99313ddfffb046cad2226538325fcc9dc2612491dff1536070e93b3941835dea9c41768201983e25b7044f17e876f2a378eb2aa940
 SHA512 
09cf998f1e8b0187be0764142500eca2b71ca3c9ef12efe049271686c350988b814c871acbc56880c0eb0c2738ad1a9af88ee4ae0ab97e0f60038efe9de079ba
+DIST firefox-140.7.1esr-son.xpi 273121 BLAKE2B 
5634c3331fe3782bb3cabdaf28e82f979f312ac43be0c44aa741186d39672e1d35f16a8a27c5df3adfc6656fbedbd754bf457485ac2b253d0e24b075989927fb
 SHA512 
13f86c12d8014c9ff1f81068e2518e168cab0b461e196924ad0b84a5834fb95318ede38d83a4f2a46007bea2194c34dc313bcfb01d23cd02cc8a62a28635b761
+DIST firefox-140.7.1esr-sq.xpi 456009 BLAKE2B 
8d26ebc42ffbc37995088266a0d60b27478f80ed13f9b76fa413d137e7ea1dddc111441bc2a7311764a4da01f7f0692536e7a315b27e7a8711ba25f3364f3787
 SHA512 
41ae060bb492ee861be23b64b9923cb17ee2b7525d5c0aadeddd953890d27b3340130ec86c1273a85c50634e6618e227b075870b74439c84ed2392351647f042
+DIST firefox-140.7.1esr-sr.xpi 453368 BLAKE2B 
a72bd459ce5dcfbf96b1d3f0ed3791c44e02522d30d63f545d6e77de692f5c57d1ea2f494231b11bdbcd7411d1219bd3d67954223f2dc8873286372720d19796
 SHA512 
d7b3e4f6e59dbebf0351aa767bc203727e4ed935325584087ac9645ff6bd64e0a58551bf7d9d3bbd88ed413eed0087520bef9aedac511f66b874255ed41787d8
+DIST firefox-140.7.1esr-sv-SE.xpi 436150 BLAKE2B 
b6d4de642991b12c9e7f80cd9f1ac9e89f36dee7206cb603e63fb61f875f31864e05ee78cce38e3e89835af8021a24e741a798bc3a877a6ac10c0a1eef2a8c07
 SHA512 
d0d0ecd8fea251f75721afb0775bd0a49d692d5c644f7709e00d970f65f167c98db17194436b01354711272ccc9a967d49e2b64cd2b0c55c7c2896122e0841b1
+DIST firefox-140.7.1esr-szl.xpi 341666 BLAKE2B 
394323297acf225ac6727329f11ee8768069d3146a22e1d6594646f7ded08cb61c1ec61c4b22974828c1e1212c66842a17eedd8a030954104baafae84d820ca1
 SHA512 
8a6665089697faa6af6fb71b3ae0b205bc0f9a24a5520fa241759b3802505a49efbcde23574796c0b31c38478c104e2de6c23a9bddfbc3289dc9761e522bbd7f
+DIST firefox-140.7.1esr-ta.xpi 338140 BLAKE2B 
17481bafc30a519ffa41f6edc2cf4ad5779961138953990c1d2b2de799518d893bb70723443876c1a044d70a111f51fef0d5c341a47e6ea4e4dcf15d7276fdd7
 SHA512 
c8a0231f1c35d3a6083548cc2e3ab8ae2898dbe145200292e31d284afe6b1ef2d1cf10ed6d7e44e612f81414067daef76bd53eb29db755700c9b73893a07a9d0
+DIST firefox-140.7.1esr-te.xpi 382200 BLAKE2B 
92a2285b547f722baac3dc3e0e16faee5aa0b52e539e69ec4ffec4d1939c01d788c793e67fe9103044b3eee9a76834c92d36cab9eb791ac622b652dc1552845c
 SHA512 
4ac9650e6113513a55efe76463aa521c43ef0a6a3a9b87f2fdc6fb79c0b6de0142cc444ec6d51b4e5a7575c3941297aea442c876ad8b84abb4cc6a76a0190a4f
+DIST firefox-140.7.1esr-th.xpi 505495 BLAKE2B 
c6a2d20cc3b3a69a0bd33fcc34e7600adc564ab3fde7442e1998e6d0c449220ebb70b3f43d5cd2191ecef8e32a50670d0a8196a1f14b0e6899c0a27a6ce4995a
 SHA512 
b28f40c7d04d6db68d72fbe368ac38ab4de2cca4f4af275476440698d6b0b512847cc410376905716082d5fb4c65fb97308319dc7609991cda28bbfb00191218
+DIST firefox-140.7.1esr-tl.xpi 356649 BLAKE2B 
2614e6f3a084a734bf1eeb560ed439477030c6c2e3287b3599306900a335debbc0400d32e25e7a4ce2279ae234ed5a9e7bda6572173eb1a4be176b880a126ac9
 SHA512 
8cee058180c0acded751d0bc9a1cd97991d577d1683021b7a942a8de4f089f42ffe2bd659933e908dffae8dbb4b31397ab51605a918d416abbc7b43b48d2c5ff
+DIST firefox-140.7.1esr-tr.xpi 449319 BLAKE2B 
b4e5eecdc680c84d37d64dee649637e19728008d76e277fe7fe1f606da74b40e97f11646ef15dbc8de7c01744597a895a90e62dd48333f89e3ed63634c37d4a1
 SHA512 
80d27639d8b2b5eee7fdc7c22175dd2e51f13bc431c0b6682e1fef9c366da2b6d5b3522403168d853127d6156f9d1387d4fb80b4a334b6797a8bef2183a1b6fc
+DIST firefox-140.7.1esr-trs.xpi 324525 BLAKE2B 
a31b5f1d8731f3fce340fdf6ec5f4bcba260324577d99e03552d4b9a5c46af3782cec097fa36c36e8003b26afc3e57dbf23734dc2e597d8e67e476709d200436
 SHA512 
7e14cdfbad379086a4e4bd522d3c6c40ea34c716df44d199c04f88cf0a772310a4547865ff3daca28468bb4df8bd2ff855cb54b1ee89b3f6f3f87c660897b338
+DIST firefox-140.7.1esr-uk.xpi 516722 BLAKE2B 
ae0e7c49245dce00d88d53a8030d6afcbb205a23d0056d240cdd70f5a22167e9476275593e75730701f206676b1fada21e4a8a549735ac9cf93257b2626ea123
 SHA512 
0a67eb295dfe1defdfb6cdfad09f02ec536bb967136e94993a41faee7453126382837fe6f87f9cf296eb826dbb3a0b4dc2dbae6c74d694df18eb681439069967
+DIST firefox-140.7.1esr-ur.xpi 370174 BLAKE2B 
8ca0bbd5970d61f963695dd0561a2eb00dd935473e7eb10f432b6b102f0ba1d5c6abd808f714658f637de013b4dde42d6b8bfea9fa47d2a5f1420cfaa070ccbe
 SHA512 
7287046302dc803f87d6b2bcb1fd4f258291f391127e22b301b1facfa2c9fbfd03300ffd582cd30d41fdd2242c8cfdcda7a6123c353c6707150df9782e0dacb8
+DIST firefox-140.7.1esr-uz.xpi 303477 BLAKE2B 
9eb68f063e71049d9ad2c50a09d74539e0d83dd9c682a70f2c36737c9acbcc2cd07ef62184b0c38c52c2ae5497f42197582a3ca9c6b95770f159127700957886
 SHA512 
1c250ebfccc27b7988db17b2daf0c47e61a09166cd8fea5e09a0107bbec84cd212263504c33c1b12b6d2d4cd9e0ef8ad4b0cea92cb228e7f53cd1bf56e0e2e37
+DIST firefox-140.7.1esr-vi.xpi 469146 BLAKE2B 
aaa6b8e313b180a749880581e2aa4cc964f6f8efb2186bbbac86b0e2bf1d7748b4e6426a354398436b649404e52acedba0b81ac7d1808eda91f4e267c862a400
 SHA512 
c7a8bb1f9c73f3f8e134fcd1cc79a476dd546bb7e6704d025f7c014ad0c6efcf373ccc3a84e5986913f221fb99265e8866a312ca152359ee2bdc8ed038fd5ef0
+DIST firefox-140.7.1esr-xh.xpi 272785 BLAKE2B 
5acef7ca961284fdbba06598188a06d8e5c960ffcab0172839a4acb7115521a49f63520c07d3c5ebd2dddd01b956590aa126d21b73bd78927ccea1e7a1a90605
 SHA512 
f690b033e11437dc149ed5ef618a0b91471f6d47b89fe978d6dace3ca63493b2ad2221695714f053dc1d6e55a9bb48d125b58f1ff21deb1c454e613981797e47
+DIST firefox-140.7.1esr-zh-CN.xpi 460698 BLAKE2B 
cd5387a47a820d774815527e0ba8fe8f7b6fb210b12f8b399fb9cc36d31392797f89b45729b61cbc329e9536823d0dcff010904f43e09038e1a1e1ce0e9287bd
 SHA512 
42f2658a7b130dcb917ae887673019d438fc59d0ee7dd273853fbd846bfdb47fa872d07bac16b4b8d512c2f411d149782131e8f32a8883593e9b6cbd7cd66469
+DIST firefox-140.7.1esr-zh-TW.xpi 463741 BLAKE2B 
18aa719aa26d660d0ced096aea783e5318b411633bbc9635ee9218015d8e4cfe6db7c1c57f3a8e2ce275d11e4b5eab5459f915b0bdfc6c4be792b3feeaad5ea0
 SHA512 
8b4683a7a1518293bebff1ee1a4648dd828152569535d2a82f815ee0a0379bd7e485785c690633889ca03827c15b5ca59c0cc9779af138c8a06e9d57c333e10d
+DIST firefox-140.7.1esr.source.tar.xz 635535480 BLAKE2B 
89699f1200a913205ef93aac5ce24aeed1be41f2befa7d5fcb4d5a7a0124ad8b42fb7075243ee09efb0de7e793df1e753bb8b275515d5b3efa690d49be28b249
 SHA512 
7d867fa3c9c94903f6583be75ad4aa8d918f98f74c99c6615a0e40caf21c545a30149115214876693ef1758a320ebdccef017c484365c195e55998cce088663c
 DIST firefox-140esr-patches-04.tar.xz 124424 BLAKE2B 
89fd2cedb67a9d82c339fed01b79c9c4b3f58051b68764121f982d4eba04d979c9d16238a7599fbab4f9d3965253f3ec4886f2da590b05116bc6ea0ee027e935
 SHA512 
b8c268fd5118007490edb7ef99f90148af4fa88ec7cdec03d028630476c85862e896b1ad3a6964215835f6f442aa71df96d6dd9aab632802773792bced8dc17b
 DIST firefox-140esr-patches-05.tar.xz 124432 BLAKE2B 
9281214dcf3da5d2e288112a99dc1fbee44ee93c4b83e30d73e8383805bd9c8ad9b1918d11351398cd963fdc30ec3cb50d7f6b5c9905d7c1303d21fdef440fbe
 SHA512 
70551bb7eea2a50bbd30418438a78a8ace07467fe852b7655c24373c651f816df89fceeb98b6fa6c7d95944b0c5deef76b89b3e742795a8ac04259f02bd25c10
 DIST firefox-146-patches-01.tar.xz 10568 BLAKE2B 
643ed4298d7ab2251ae1f813473a7b461aa386dfb72984e46201b22b6cb0f69f28e92b44a4783dda32a81b4b0dacbe8b47a25b9232481ecd79a19550e74e4812
 SHA512 
9e2474eedda1c2644ddcb0f9fd2d90ede764469337eab1267d3d4dbe8e3487bb519106449acf1da9798050d61a51e96a882f365e4587f88747161f6418203e4e

diff --git a/www-client/firefox/firefox-140.7.1.ebuild 
b/www-client/firefox/firefox-140.7.1.ebuild
new file mode 100644
index 000000000000..284e43717e00
--- /dev/null
+++ b/www-client/firefox/firefox-140.7.1.ebuild
@@ -0,0 +1,1391 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-140esr-patches-05.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz"
+
+LLVM_COMPAT=( 19 20 21 )
+
+# This will also filter rust versions that don't match LLVM_COMPAT in the 
non-clang path; this is fine.
+RUST_NEEDS_LLVM=1
+
+# If not building with clang we need at least rust 1.76
+RUST_MIN_VER=1.82.0
+
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+VIRTUALX_REQUIRED="manual"
+
+# Information about the bundled wasi toolchain from
+# https://github.com/WebAssembly/wasi-sdk/
+WASI_SDK_VER=30.0
+WASI_SDK_LLVM_VER=21
+
+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"
+       HOMEPAGE="https://www.firefox.com https://www.firefox.com/enterprise/";
+       SLOT="esr"
+else
+       HOMEPAGE="https://www.firefox.com";
+       SLOT="rapid"
+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 flag-o-matic gnome2-utils linux-info llvm-r1 
multiprocessing \
+       optfeature pax-utils python-any-r1 readme.gentoo-r1 rust 
toolchain-funcs virtualx xdg
+
+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}
+)
+
+DESCRIPTION="Firefox Web Browser"
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> 
${MOZ_P_DISTFILES}.source.tar.xz
+       ${PATCH_URIS[@]}
+       loong? (
+               
https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET}
+       )
+       wasm-sandbox? (
+               amd64? ( 
https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-x86_64-linux.tar.gz
 )
+               arm64? ( 
https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-arm64-linux.tar.gz
 )
+       )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="amd64 arm64 ~loong ~ppc64 ~riscv ~x86"
+
+IUSE="+clang dbus debug eme-free hardened hwaccel jack libproxy pgo pulseaudio 
selinux sndio"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-pipewire system-png +system-webp test wayland wifi +X"
+
+# Firefox-only IUSE
+IUSE+=" +gmp-autoupdate gnome-shell +jumbo-build openh264 +telemetry 
wasm-sandbox"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( jumbo-build )
+       wayland? ( dbus )
+       wifi? ( dbus )
+"
+
+RESTRICT="!test? ( test )"
+
+FF_ONLY_DEPEND="!www-client/firefox:0
+       selinux? ( sec-policy/selinux-mozilla )"
+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] )
+               )
+               wasm-sandbox? ( llvm-core/lld:${LLVM_SLOT} )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.27.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               !X? (
+                       gui-wm/tinywl
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${FF_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.112.2
+       >=dev-libs/nspr-4.36
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       virtual/zlib:=
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/libdrm
+       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-3.10.0:=
+       )
+       system-harfbuzz? (
+               >=media-libs/harfbuzz-2.8.1:0=
+               !wasm-sandbox? ( >=media-gfx/graphite2-1.3.13 )
+       )
+       system-icu? ( >=dev-libs/icu-76.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-pipewire? ( >=media-video/pipewire-1.4.7-r2:= )
+       system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       || (
+                               net-misc/networkmanager
+                               net-misc/connman[networkmanager]
+                       )
+                       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}
+       hwaccel? (
+               media-video/libva-utils
+               sys-apps/pciutils
+       )
+       jack? ( virtual/jack )
+       openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+# ESR and rapid dependencies.
+if [[ -n ${MOZ_ESR} ]] ; then
+       RDEPEND+=" !www-client/firefox:rapid"
+else
+       RDEPEND+=" !www-client/firefox:esr"
+fi
+
+# Allow MOZ_GMP_PLUGIN_LIST to be set in an eclass or
+# overridden in the enviromnent (advanced hackers only)
+if [[ -z "${MOZ_GMP_PLUGIN_LIST+set}" ]] ; then
+       MOZ_GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
+fi
+
+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 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
+)
+
+# Firefox-only LANGS
+MOZ_LANGS+=( ach )
+MOZ_LANGS+=( an )
+MOZ_LANGS+=( az )
+MOZ_LANGS+=( bn )
+MOZ_LANGS+=( bs )
+MOZ_LANGS+=( ca-valencia )
+MOZ_LANGS+=( eo )
+MOZ_LANGS+=( es-CL )
+MOZ_LANGS+=( es-MX )
+MOZ_LANGS+=( fa )
+MOZ_LANGS+=( ff )
+MOZ_LANGS+=( fur )
+MOZ_LANGS+=( gn )
+MOZ_LANGS+=( gu-IN )
+MOZ_LANGS+=( hi-IN )
+MOZ_LANGS+=( hy-AM )
+MOZ_LANGS+=( ia )
+MOZ_LANGS+=( km )
+MOZ_LANGS+=( kn )
+MOZ_LANGS+=( lij )
+MOZ_LANGS+=( mk )
+MOZ_LANGS+=( mr )
+MOZ_LANGS+=( my )
+MOZ_LANGS+=( ne-NP )
+MOZ_LANGS+=( oc )
+MOZ_LANGS+=( sc )
+MOZ_LANGS+=( sco )
+MOZ_LANGS+=( si )
+MOZ_LANGS+=( skr )
+MOZ_LANGS+=( son )
+MOZ_LANGS+=( szl )
+MOZ_LANGS+=( ta )
+MOZ_LANGS+=( te )
+MOZ_LANGS+=( tl )
+MOZ_LANGS+=( trs )
+MOZ_LANGS+=( ur )
+MOZ_LANGS+=( xh )
+
+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
+
+               # Ensure we have enough disk space to compile
+               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
+
+       CONFIG_CHECK="~SECCOMP"
+       WARNING_SECCOMP="CONFIG_SECCOMP not set! This system will be unable to 
play DRM-protected content."
+       linux-info_pkg_setup
+}
+
+src_unpack() {
+       local _lp_dir="${WORKDIR}/language_packs"
+       local _src_file
+
+       if [[ ! -d "${_lp_dir}" ]] ; then
+               mkdir "${_lp_dir}" || die
+       fi
+
+       for _src_file in ${A} ; do
+               if [[ ${_src_file} == *.xpi ]]; then
+                       cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die 
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+               else
+                       unpack ${_src_file}
+               fi
+       done
+}
+
+src_prepare() {
+       if [[ ${use_lto} == "yes" ]]; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+       fi
+
+       eapply "${WORKDIR}/firefox-patches"
+       use loong && eapply "${WORKDIR}/firefox-loong-patches"
+
+       # ICU's subslot change should trigger rebuild on Firefox if it is 
updated 77->78.
+       if use system-icu && has_version ">=dev-libs/icu-78.1" ; then
+               eapply "${FILESDIR}/firefox-146.0.1-icu78.patch" # bgo#967261
+       fi
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               elif use arm64 ; then
+                       export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use loong; then
+                       # Only the LP64D ABI of LoongArch64 is actively 
supported among
+                       # the wider Linux ecosystem, so the assumption is safe.
+                       export RUST_TARGET="loongarch64-unknown-linux-musl"
+               elif use ppc64 ; then
+                       export RUST_TARGET="powerpc64le-unknown-linux-musl"
+               elif use riscv ; then
+                       # We can pretty safely rule out any 32-bit riscvs, but 
64-bit riscvs also have tons of
+                       # different ABIs available. 
riscv64gc-unknown-linux-musl seems to be the best working
+                       # guess right now though.
+                       elog "riscv detected, forcing a riscv64 target for now."
+                       export RUST_TARGET="riscv64gc-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post a new bug with 
your rustc -vV along with emerge --info"
+               fi
+       fi
+
+       # Pre-built wasm-sandbox path manipulation.
+       if use wasm-sandbox ; then
+               if use amd64 ; then
+                       export wasi_arch="x86_64"
+               elif use arm64 ; then
+                       export wasi_arch="arm64"
+               else
+                       die "wasm-sandbox enabled on unknown/unsupported arch!"
+               fi
+
+               sed -i \
+                       -e "s:%%PORTAGE_WORKDIR%%:${WORKDIR}:" \
+                       -e "s:%%WASI_ARCH%%:${wasi_arch}:" \
+                       -e "s:%%WASI_SDK_VER%%:${WASI_SDK_VER}:" \
+                       -e "s:%%WASI_SDK_LLVM_VER%%:${WASI_SDK_LLVM_VER}:" \
+                       toolkit/moz.configure || die "Failed to update 
wasi-related paths."
+       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
+
+       # Respect choice for "jumbo-build"
+       # Changing the value for FILES_PER_UNIFIED_FILE may not work, see 
#905431
+       if [[ -n ${FILES_PER_UNIFIED_FILE} ]] && use jumbo-build; then
+               local my_files_per_unified_file=${FILES_PER_UNIFIED_FILE:=16}
+               elog ""
+               elog "jumbo-build defaults modified to 
${my_files_per_unified_file}."
+               elog "if you get a build failure, try undefining 
FILES_PER_UNIFIED_FILE,"
+               elog "if that fails try -jumbo-build before opening a bug 
report."
+               elog ""
+
+               sed -i -e "s/\"FILES_PER_UNIFIED_FILE\", 
16/\"FILES_PER_UNIFIED_FILE\", "${my_files_per_unified_file}"/" \
+                       python/mozbuild/mozbuild/frontend/data.py ||
+                               die "Failed to adjust FILES_PER_UNIFIED_FILE in 
python/mozbuild/mozbuild/frontend/data.py"
+               sed -i -e "s/FILES_PER_UNIFIED_FILE = 6/FILES_PER_UNIFIED_FILE 
= "${my_files_per_unified_file}"/" \
+                       js/src/moz.build ||
+                               die "Failed to adjust FILES_PER_UNIFIED_FILE in 
js/src/moz.build"
+       fi
+
+       # 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=browser
+       mozconfig_add_options_ac '' --enable-project=browser
+
+       # Set Gentoo defaults
+       if use telemetry; then
+               export MOZILLA_OFFICIAL=1
+       fi
+
+       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-updater \
+               --disable-wmf \
+               --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 \
+               --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 ppc64 || use loong || use riscv ; 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-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
+
+       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
+
+       ! use jumbo-build && mozconfig_add_options_ac '--disable-unified-build' 
--disable-unified-build
+
+       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
+
+       # wasm-sandbox
+       # Since graphite2 is one of the sandboxed libraries, system-graphite2 
obviously can't work with +wasm-sandbox.
+       if use wasm-sandbox ; then
+               mozconfig_add_options_ac '+wasm-sandbox' 
--with-wasi-sysroot="${WORKDIR}/wasi-sdk-${WASI_SDK_VER}-${wasi_arch}-linux/share/wasi-sysroot/"
+       else
+               mozconfig_add_options_ac 'no wasm-sandbox' 
--without-wasm-sandboxed-libraries
+               mozconfig_use_with system-harfbuzz system-graphite2
+       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
+
+       # PGO was moved outside lto block to allow building pgo without lto.
+       if use pgo ; then
+               mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+               # Avoid compressing just-built instrumented Firefox with
+               # high levels of compression. Just use tar as a container
+               # to save >=10 minutes.
+               export MOZ_PKG_FORMAT=tar
+
+               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"
+
+       if ! use telemetry; then
+               mozconfig_add_options_mk '-telemetry setting' 
"MOZ_CRASHREPORTER=0"
+               mozconfig_add_options_mk '-telemetry setting' 
"MOZ_DATA_REPORTING=0"
+               mozconfig_add_options_mk '-telemetry setting' 
"MOZ_SERVICES_HEALTHREPORT=0"
+               mozconfig_add_options_mk '-telemetry setting' 
"MOZ_TELEMETRY_REPORTING=0"
+       fi
+
+       mozconfig_use_enable test tests
+
+       # 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_test() {
+       # 
https://firefox-source-docs.mozilla.org/testing/automated-testing/index.html
+       local -a failures=()
+
+       # Some tests respect this
+       local -x MOZ_HEADLESS=1
+
+       # Check testing/mach_commands.py
+       einfo "Testing with cppunittest ..."
+       ./mach cppunittest
+       local ret=$?
+       if [[ ${ret} -ne 0 ]]; then
+               eerror "Test suite cppunittest failed with error code ${ret}"
+               failures+=( cppunittest )
+       fi
+
+       if [[ ${#failures} -eq 0 ]]; then
+               einfo "Test suites succeeded"
+       else
+               die "Test suites failed: ${failures[@]}"
+       fi
+}
+
+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}/browser/defaults/preferences"
+       insinto "${PREFS_DIR}"
+       newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # 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 hwaccel prefs if USE=hwaccel is enabled
+       if use hwaccel ; then
+               cat "${FILESDIR}"/gentoo-hwaccel-prefs.js-r2 \
+               >>"${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
+
+               # Install the vaapitest binary on supported arches (122.0 
supports all platforms, bmo#1865969)
+               exeinto "${MOZILLA_FIVE_HOME}"
+               doexe "${BUILD_DIR}"/dist/bin/vaapitest
+
+               # Install the v4l2test on supported arches (+ arm, + riscv64 
when keyworded)
+               if use arm64 ; then
+                       exeinto "${MOZILLA_FIVE_HOME}"
+                       doexe "${BUILD_DIR}"/dist/bin/v4l2test
+               fi
+       fi
+
+       if ! use gmp-autoupdate ; then
+               local plugin
+               for plugin in "${MOZ_GMP_PLUGIN_LIST[@]}" ; do
+                       einfo "Disabling auto-update for ${plugin} plugin ..."
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to 
disable autoupdate for ${plugin} media plugin"
+                       pref("media.${plugin}.autoupdate", false);
+                       EOF
+               done
+       fi
+
+       # 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
+
+       # Add telemetry config prefs, just in case something happens in future 
and telemetry build
+       # options stop working.
+       if ! use telemetry ; then
+               cat "${FILESDIR}"/gentoo-telemetry-prefs.js >>"${GENTOO_PREFS}" 
|| die "failed to set telemetry prefs"
+       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}/browser/branding/official"
+
+       # Prefer the upstream svg file they use when packaging flatpak so it's 
always up-to-date.
+       insinto /usr/share/icons/hicolor/symbolic/apps
+       newins 
"${S}"/browser/installer/linux/app/flatpak/files/share/icons/hicolor/symbolic/apps/org.mozilla.firefox-symbolic.svg
 firefox-symbolic.svg
+       dosym -r /usr/share/icons/hicolor/symbolic/apps/firefox-symbolic.svg 
/usr/share/icons/hicolor/symbolic/apps/org.mozilla.firefox-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}-r3.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
+
+       if use gnome-shell ; then
+               # Install search provider for Gnome
+               insinto /usr/share/gnome-shell/search-providers/
+               doins 
browser/components/shell/search-provider-files/org.mozilla.firefox.search-provider.ini
+
+               insinto /usr/share/dbus-1/services/
+               doins 
browser/components/shell/search-provider-files/org.mozilla.firefox.SearchProvider.service
+
+               # Toggle between rapid and esr desktop file names
+               if [[ -n ${MOZ_ESR} ]] ; then
+                       sed -e "s/firefox.desktop/${desktop_filename}/g" \
+                               -i 
"${ED}/usr/share/gnome-shell/search-providers/org.mozilla.firefox.search-provider.ini"
 ||
+                                       die "Failed to sed 
org.mozilla.firefox.search-provider.ini file."
+               fi
+
+               # Make the dbus service aware of a previous session, bgo#939196
+               sed -e \
+                       
"s/Exec=\/usr\/bin\/firefox/Exec=\/usr\/$(get_libdir)\/firefox\/firefox 
--dbus-service \/usr\/bin\/firefox/g" \
+                       -i 
"${ED}/usr/share/dbus-1/services/org.mozilla.firefox.SearchProvider.service" ||
+                               die "Failed to sed 
org.mozilla.firefox.SearchProvider.service dbus file"
+
+               # Update prefs to enable Gnome search provider
+               cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to enable 
gnome-search-provider via prefs"
+               pref("browser.gnome-search-provider.enabled", true);
+               EOF
+       fi
+
+       # 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
+
+       readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if ! use gmp-autoupdate ; then
+               elog "USE='-gmp-autoupdate' has disabled the following plugins 
from updating or"
+               elog "installing into new profiles:"
+               local plugin
+               for plugin in "${MOZ_GMP_PLUGIN_LIST[@]}" ; do
+                       elog "\t ${plugin}"
+               done
+               elog
+       fi
+
+       # bug 835078
+       if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+               ewarn "You have nouveau drivers installed in your system and 
'hwaccel' "
+               ewarn "enabled for Firefox. Nouveau / your GPU might not 
support the "
+               ewarn "required EGL, so either disable 'hwaccel' or try the 
workaround "
+               ewarn "explained in https://bugs.gentoo.org/835078#c5 if 
Firefox crashes."
+       fi
+
+       readme.gentoo_print_elog
+
+       optfeature_header "Optional programs for extra features:"
+       optfeature "desktop notifications" x11-libs/libnotify
+       optfeature "fallback mouse cursor theme e.g. on WMs" 
gnome-base/gsettings-desktop-schemas
+       optfeature "screencasting with pipewire" sys-apps/xdg-desktop-portal
+       if use hwaccel && has_version "x11-drivers/nvidia-drivers"; then
+               optfeature "hardware acceleration with NVIDIA cards" 
media-libs/nvidia-vaapi-driver
+       fi
+
+       if ! has_version "sys-libs/glibc"; then
+               elog
+               elog "glibc not found! You won't be able to play DRM content."
+               elog "See Gentoo bug #910309 or upstream bug #1843683."
+               elog
+       fi
+}

Reply via email to