commit:     7dfd8a45f803cd33f4714dbcc664fc965a5748d9
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  3 20:13:21 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Mar  3 20:16:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dfd8a45

www-client/firefox: add 136.0

 - add a patch that's currently being worked upstream which fixes runtime
   issues when compiled with gcc and lto,
 - attempt removing
   "*bgo-925101-force-software-rendering-during-pgo-build.patch" as it's
   supposed to be fixed by mesa updates,
 - disable pref "permissions.manager.remote.enabled" by default - can be
   enabled by corporations managing their browsers via remote-settings,
 - handle rust-simd by enabling it on supported arches, so unkeyworded arches
   can probably compile the browser with --disable-rust-simd by default
   without editing the ebuild,
 - increase nss, icu and libpng version requirements,
 - remove our custom patch enabling vaapi on all amd cards since it's merged
   upstream,
 - remove our custom system-av1 & system-libvpx patches as they've been merged
   upstream.

Bug: https://bugs.gentoo.org/950229
Bug: https://bugs.gentoo.org/950305
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 www-client/firefox/Manifest                      |  102 ++
 www-client/firefox/files/gentoo-default-prefs.js |    3 +
 www-client/firefox/firefox-136.0.ebuild          | 1382 ++++++++++++++++++++++
 3 files changed, 1487 insertions(+)

diff --git a/www-client/firefox/Manifest b/www-client/firefox/Manifest
index 7acddfb9a49a..efbbadd1013a 100644
--- a/www-client/firefox/Manifest
+++ b/www-client/firefox/Manifest
@@ -304,5 +304,107 @@ DIST firefox-135.0.1-zh-CN.xpi 455588 BLAKE2B 
80a380df7f7333fc27a6c1c499c778a8c6
 DIST firefox-135.0.1-zh-TW.xpi 458481 BLAKE2B 
f8c7dfd90b89c2f59d283c5f9d9299de81a6354ebecb91557b3fc1f286550071a624f9959416f890cbf1b4d38bf2ab3d83fd4ccced1e238339b0a3b15ee7340e
 SHA512 
388818279ba194a3de10ca2e5dce934397fc5931a943a81b163fe97caf28cb6adf2229b4c67082f41ffaa758221f258963368848ca20c2fc5f0225f1e25efb83
 DIST firefox-135.0.1.source.tar.xz 599617332 BLAKE2B 
a99e63f5622b3aa2cd5f686daa2fef60d82b55eea39d87b9a5b17403e8267fe5e542d73ebd32b07c80d3af5e69362fbd028bd338b5673de14b4dbbdc5034092b
 SHA512 
9ff7c2ab6bc1660e339cdcd7745f8bdac5be25d3a79b9f0393385935270d7ef488599856bc38c22ae0b067389fa71a6999703b74804a6e0ea8265eb99788cea9
 DIST firefox-135.0.source.tar.xz 613526736 BLAKE2B 
a9309d125b48988bc4e5c6989f2a1a0ee169dc7661a3d8d67d6bb32271812b2e22b885fa8384c027835ba1907fe00ad2fb8c8c1e8d87f8dafebbc9939c378edd
 SHA512 
7d283bcefe1e328901f15a88f5ff3da566bb0495ce5b9e3895e7a156020126a5743b6bffd69d94d9eb812e1868195ae92db162d29a5d98ee118fdb238469c089
+DIST firefox-136-patches-01.tar.xz 12568 BLAKE2B 
9056b1c750eeb7c226bd4ff5ebdb03d491177d93bbee95552f7176903ec8796131a491c39304030370ed55281f92585422e28926b5f7491081d33912360d999f
 SHA512 
48548637f6152fd3a72e283e3d16708a563fe84cd22d84129d5bd58f6b6baf7a6e50d521cb371ef21e7b9f95c13cc72531a3e1ab735abb70c51e5c02424fb2ca
+DIST firefox-136.0-ach.xpi 295315 BLAKE2B 
0fda96bd10aae73f01d47b33a48ccf16c678bbcfec98e679792d55428df54d1b43f5cf9c2c1f61fc1f427f0b965b3c7979626287e6b380bcbb83f3f84148034b
 SHA512 
edd4e151809d6699e84e01034b3e4004785957941317bfe9f356b5c37776ff9fd04e80e558ac300d7523d9130f6c82bf7318cf14a332c51eda3f6f6a35c67c8a
+DIST firefox-136.0-af.xpi 266789 BLAKE2B 
863db129ce37d85769615d882b83a3c4f1763a9c610f9b2d13e81d9583b06faa2b49e585517bfee7199098adecd2f4bf2da00be0c352e9f8aa96c92f23628973
 SHA512 
2c00f51278d963b0ff9627fd75621d55914552455a6dd64254981f037d1cc60b0737311006be31b7c75f0d83fccedd3385f6f2ec477f0815b0f9662fc612db21
+DIST firefox-136.0-an.xpi 333332 BLAKE2B 
f0c0adbb05292f85bcd05df172c7d3fe31161f7a1fafdaf8afe02791c79f1f7b45464a8fd8f1d464094a1ab2e19ef24a8dc5e73536618865ecec809c2d20f9ac
 SHA512 
79113bceaf87057153dd09051ee3f91cfd53f739876c385adf427f61313f8a71b355b9e43680b78a1c51929f35e27d336244dfc04236bea5b3714aa51bddef15
+DIST firefox-136.0-ar.xpi 431801 BLAKE2B 
9fd71b89609b0c371140b4063219fac86f795d4c465291b809e3645a26c03ad7c920fd64fbec6b5aedb20b16cec555b672e3ba4213c510df69f4e63e0448d785
 SHA512 
b553b8a5bbf51281ec3a2c50d43247fa51e1a7ac93709b83484a2cfb10b0a3526235e7c7112c93c76688865d360c9a94a3a08a71c7f661d27ce6049d3a9335ce
+DIST firefox-136.0-ast.xpi 314257 BLAKE2B 
47603cf9e093e37459ca58d775a0e4cbcbf08e5b3acda9bab78de47172ff5397ccf5bc58b1d9680eececf94ccbd29b2c83d569ede1c32e5b8877ea01c0eb4437
 SHA512 
f0d73709d2ad631a23980ccd481ae2d677496cbfb55b22ad0ab035d1ffba4bb67e50d1e46722df6510eedf7af6d7b757c258f943a1594c52871773c90d983d16
+DIST firefox-136.0-az.xpi 319696 BLAKE2B 
bdeb51de0e9c92e0780b57bfadc3a6e6f20b6d0a0be5e16577bd5aa6cee17955f0e9bfdc83025afee198e15bfffbb67b53f9a20d1eed0964a05ff3bd1b78a045
 SHA512 
f44d18f3f7213ae7047fbbeb9247548983b63c67cb8dff40f60f8d7008bb9944a6c4b80ab9a4df7988cb1be80b39023b341338e20f3db3cc2b4ab4ff96d01826
+DIST firefox-136.0-be.xpi 513808 BLAKE2B 
cd94b7d0e4abf465f2eb47e8d16abf78c199140b25c333d33f98f241d4ac2a7d1d8cf0a24c842e9b3da0c953e1778a7690a12ec309dfb89ee65b6ce7b2aa26a3
 SHA512 
98e29f20cd46335b9cdf8aa237f32231b17c28d4d2a8f3c79d8fedbec9e3237f44ab72d6eec041fa0ffe3ab9392ab22269015a72c72d98ece85f2e92924021af
+DIST firefox-136.0-bg.xpi 448912 BLAKE2B 
fd147851b277a23d51ba8cd4bda64bc3bed9189f92be414192f99b3f6dcd831fdf1714182de603e9bdaf2051fbaa1043d42ef7dffb27953cd11558ae16330633
 SHA512 
0871ac6ccf63a7c056a78156fee87a2553dd164b47216b0a8e8955dacc3b8eef6244a6da661cc57d9373ff98f1969e341624684072627412519b7075c229157c
+DIST firefox-136.0-bn.xpi 414169 BLAKE2B 
b2a7f0bf78f3f9ba7956c96580b0f325ffc19847c1c074ceafdeb61167b57732e99fca474b946abe0d99c70249bfc3d5b88aee876aae79745704257bea696cd7
 SHA512 
8d0e2eebe250a23d051fbb36b188d4dd9b9940f26f17738282acac64e96086c19b446f79a6db0f350f22345dfa978b3e45d1e5c98889bd0bf4b77442f494c3ab
+DIST firefox-136.0-br.xpi 394446 BLAKE2B 
5b0aee632c04f0a869c342a37c64af60e3d0af96ed4c4cbb8eab6902d388d88974fbb5bdd28b3c00a23e701834d425fe28fd2f8666a87535f4ae751a9f8163f3
 SHA512 
350bc31361fee963d8cee0bf749f0fad2964474304aaddd468690243ec1caa59a8e0b0accc00642e079af5b7b7548deb8866bacc10ccfc63b9ff67e3eb1584f4
+DIST firefox-136.0-bs.xpi 365280 BLAKE2B 
42e05111614233aeeba82567f82b37baedebc6ef378e485a51466e664679b9d71577083eae75d038457c667514638d998779b0ae767191c661f5455c5ce08e4b
 SHA512 
1c4e890915ce6bc44839e3e536d4126c9886d8d90d9aca391aba8f605f3b89e4e37ea4970f944ef881ac57af1a2359782489502963bea8183dd8daa376905f94
+DIST firefox-136.0-ca-valencia.xpi 359656 BLAKE2B 
38cdccef670a76f435d7619566ff1b3915c2ee4afc15864d98663e3730b587db9eb698dfbbd016441b91a96b2638166ddb041966c561e13752ffbc3e255cb3fe
 SHA512 
a6a61d064e67f5fcd57041e6e01aab05ae4424a7f9e0342f4ed7dc3f1c0cd24b965df3a99cb971b4f866a1790d3772ce42a574f0845fa20c72eb4bc1884f4f96
+DIST firefox-136.0-ca.xpi 400620 BLAKE2B 
6d1862a6d91398756aebe745732eea47261aaa6e6da68197242f5a668a39930ac636c5db083f184417e8176a192f9c656763642d165bb02a8ed14c7a098654cc
 SHA512 
91691ea0ca871610a64e21dba42cdaac9505b0af692c2a3d2d9b709f42e8df99a95d2323ae956b170b548251c8e2b7619069434171a77ca6af69a671cef23e0d
+DIST firefox-136.0-cak.xpi 394074 BLAKE2B 
2883828b0c88ee55e64732b75dbfb1642a28e3e5be3737d043dca7dbe150c17d6aefbcac72923fbcb1a1f06f74a551b425db7838dff8a83c8863996612ef6b07
 SHA512 
2662ebb948ee28cb7ed07e4167978caad9889caf0d23794f08643d910f7fc3320142c6b3c7ae5efed57d09d498235153540e522285a22295c40d2cf32fc80a96
+DIST firefox-136.0-cs.xpi 468947 BLAKE2B 
98545cff3dfef6a39e622ea4d97241d0bdba33220f8e3a6aae6db80046f40a494ee1843d74d5e55c6f06081d86974158141492dbf2bc6f552b5c54a55bb66cb8
 SHA512 
56ab5dcfac04b6ea6fc92e98acfebe17bc9d9106a83aa6eb9cbc036f55c157ba9e35ea334cfae0c7325a2997d3ad6dc228d0abf21d63e99ba456d995afe3b1b7
+DIST firefox-136.0-cy.xpi 435794 BLAKE2B 
ceb467ca39486ef40b84f389abd88485260748ab7f0667edb7973a4105c0bfb4b2cebe8548577fdd801d457988b8c903e9c2600a51f5af8349f627fba91dab8b
 SHA512 
01ba6812af7047f885e0dfba453bc013aecb7ee8d66d9c9425588b8b6e91c8aab0d50592e71aa1c70630c38ce73c7cfd653598f5a4c314188329b19a65c7e28b
+DIST firefox-136.0-da.xpi 425308 BLAKE2B 
12f7d607b1349d74d772ec98f0a30e3a825606a2141b92b5ea2c2ab83b07dace151ecacf161bf634f72bc7eb521597fb803340ad36afa6e9b3b089ecaf2ed338
 SHA512 
680ab440d8949711a2335e9396c4387ed85dbfc6f4a62b592a293edf0f0cd2ae0b758aa7c605a39402733ed474b07d78e59a989388d255288e4ed22e017b193a
+DIST firefox-136.0-de.xpi 446683 BLAKE2B 
31c7cdc11702360a53cc92f6c60339dcbef5c6a2d2f8f42f5b517c24ac4c60bcc71c38126ccbc27e0deb898dd8f56d30a0364be979028da9ff55680ed324cc0f
 SHA512 
9c4767f1093402e01a2443840911ff5bb63285885829dbc6d937a3b4343a6d97f44e15fd468fc9ecd1ec0bd798df6d4a9c7696ef0aef1c7c0efe5cf646b025e2
+DIST firefox-136.0-dsb.xpi 459804 BLAKE2B 
49fb910ac7f741d034d8590617cc746b3157fbab02ff3095d6e0702598c234e42cb94d16c6dd352cb6ba9fb15a3caabb3a35f2b6e1ef1ac15a78ce4d08f8d5b4
 SHA512 
1d31e7237138ce620d418022f4870ce0c17ba57b26d6f5ac2a5a8e40511e2b4f2dbd2d151542af131457f7e675dcfde12e3d4becf61dfe3ddc835b78db696770
+DIST firefox-136.0-el.xpi 529771 BLAKE2B 
3c032f65e8b3c271d337b0066a333400ac14b9818f7f7b15f696a1a36ab406f23e0658ed3ea26e00b27a6c014bd44c7da6f6c0e8789f3dd4ad7022a074ad7a33
 SHA512 
82a4467edcf075b87007bcf0efcf5e0db83179f957e29d7e4dd846dee23132a4792ca32977446ca59a5612caca1e6e9517d6f4f048907319f3bc192ad59fe087
+DIST firefox-136.0-en-CA.xpi 405856 BLAKE2B 
aa8420ef2782f02bd50d88985c975e81ca6b4f27a2f5f7c5c325911f14b4b7211cec751338b2b6a6f643e4c8a41ce9def41965d2b15c5b9dce7d9da86e28fe43
 SHA512 
22e39d0840f46856d2921795bfdaf8b882604406dc811d2b1cf9f52e8a3b61b163da29cda45c7b3d8c1c99c4a3e3914de9287813489be2b62e403c6bd7c3013e
+DIST firefox-136.0-en-GB.xpi 406157 BLAKE2B 
9646c9a4399788c491be2e56c1c1aaf335f2e3a891e82958f32fe1528e5391b31cd5a3d766e1c91228b8eb59414b5f2db7b10f04344760f6c0d75642a73f8111
 SHA512 
4fe63c93b7c5e048751b3ae7cc3d17e3db92a0a7440489de6d8c6c83bb7917cc62ecc8647bdec8a8d8c6a19b99874284fd2ae592cbcc4bbf7a0083e9a9205579
+DIST firefox-136.0-eo.xpi 427685 BLAKE2B 
566ea60090f630cb74114b7b08d2d30617066d176fa45e37254e8ef854f921ef7d1bb96916256007cd1ce922f03245f2fbcd8b3977482e377bf40ab743e2c31d
 SHA512 
5820e39581304eaa61743eb4e940a9fc0c49eae603cd63587ea1621a387db5dad8013d6a5087add7dd8052af0923e5cfe0cd82da0982d350a47e5225c76136ac
+DIST firefox-136.0-es-AR.xpi 439717 BLAKE2B 
1718258351fcc537af3a4a2d5edbae5143a2a5f00d78c2ff9abf090a92ed6d7739f5a0765cb6050a472a841a61dfd24b58660c95467abc141e2807f829c64994
 SHA512 
d2618c827f2f5033ac4c90387271b1e8730f7621336a4beead5c6b6776310881bc417aa4283e73c3d2b2c0bac8d342f6af2df7d4d7efd61b614eaed867b27522
+DIST firefox-136.0-es-CL.xpi 440303 BLAKE2B 
710f55cc2852177f63b842eb936036d7835f55697032e16b81563ceb24812db35017ff0bbad8bc2e9b66e1b3650ff8c2e01aba7c468327bb17a054f0fdfc3187
 SHA512 
5ab5f80fd03d98a11d01ba1f70732f5bfd6d759c5d1e0ea44e5bc3766a650d8d916cd055d2225f09d3e43cbd657d03fe1a0eb0f175842f1ab7226262b5d5c02d
+DIST firefox-136.0-es-ES.xpi 441193 BLAKE2B 
137274aa951aa6fc749ebd0275ce498dd11856678addcb7bd518e22f4765631a3ade688922214dbd3ad4a39dde437f10fc84f8f2d747a3d297f6a665a4fda3a5
 SHA512 
86838c81769af3cbb93f2cec889d9be27da1a2ab87df9fdb85ee26961a889d35094266c8afc247e207d90b7eec59578801fa857bcc4a67f533e87926018ade09
+DIST firefox-136.0-es-MX.xpi 440818 BLAKE2B 
2a67c7e57aef2e7654d256384dfaf3937cab0715f3838dda7a2c21074538e4e383e85ea50b725caec82e5b2568e23d54251327cf8af9733dc5ffccb81033928a
 SHA512 
d8ad9eb28275250f078943b00be699df43ccdb7a4806efb0d05e6236c680c0db9dcf65d35b90827839741774a9bb2030c3ba2906431548406b03b568a80526a1
+DIST firefox-136.0-et.xpi 358262 BLAKE2B 
6c85398ebf54ecd025e7dc17e045f2d6dd77b380bbac1a72dd2678ed856405ab8bd36cf59b28ec885b2692f8cc093efc15cb2db526841e9a49043af9462cdc5a
 SHA512 
35eeb7fd189039f239cc8630a69f517b8ec1bf8cbc92157aeb39d9534e1ec9867b0cc9248d3ac85652e2a4298612bc068a58d5af0c9e9b110ac644676957f454
+DIST firefox-136.0-eu.xpi 410914 BLAKE2B 
c1659ffe3ee85a7284786ccf34da0179ff34d0ed08093f7306cfc03bdc7d283c5bebca64de59b96c225a6be86f0232ce45a56d1e415a8de7407d991f8e81a460
 SHA512 
65508f6cabae9e620d7e296c69fc7dfb1e05cd0a088865ee3d298549bc110630421cc7f0ca74e4f4b7eddaf502753152ec77123640ffce52574219d3eedf7710
+DIST firefox-136.0-fa.xpi 414725 BLAKE2B 
6bb2c83a69761558f62d64630ceb08367dc898f69b778b1fbe90167d690da1dc7fce7ce21181e708cf94e5e8a4c64da6313a108cbfd4f57bc0234ee22aa30947
 SHA512 
dc1cbae907902dc1dac23755c7080e889b1949f09972140ae0d0cbfa9e82ed139f37f0bc84f03e1e33ebd4d44d470959bd2552f4db34c621dd5391441e57620d
+DIST firefox-136.0-ff.xpi 311203 BLAKE2B 
e81c9a3625a77c36806b64e3a91339f0a407b577352317661fbd8330a67b5a626e3aeb5dfbf41ff73b79b14137bd846c88ffcadfabc3a8b21f0a41b3b33c22af
 SHA512 
f5226e8b93a592bac9c1372508c954322b23c1ff7effb590108d695bdb134258221b8d375b6457e3d3b4bf1597f5ce5ea3be03e53d200c4693682600da62e346
+DIST firefox-136.0-fi.xpi 422713 BLAKE2B 
4f31a6ec02f07ee4072f814d65d209861b3bd08ff5d31919b3df051c7837a0444f6ae21c15fe50f7aa82991dec1a0a8cf0642ea6d006163a9cf8fae53305d037
 SHA512 
17e6663d45fe9d78150cef01c0673a8e2022405f87b75b60aacead62864febf3296af9843e7cbf8966c7048742439db376c34135cf4b916e0bf74bd5537ad66b
+DIST firefox-136.0-fr.xpi 452377 BLAKE2B 
edac56c922b4eb2eb3fb516e5031c91153b21b67387d145cc7a8c25012c135464f8e0f43087404ce95ba6df97e1387b82de49e960368324157a73365c2425eea
 SHA512 
a0c971b12a3695ba15fd55ff0d01cf5b6588a496b744d2c57066047a66d776a5ee9c17497e041519405db1c587e8015caea23890bc6256aa2716d330a8bf265a
+DIST firefox-136.0-fur.xpi 445653 BLAKE2B 
5298048cd0bf5ea594038b4f75b33bea7cc8bea72449a345105eaff3dd278748afb2d8c1445e41334e496bd225de445a60c84bdc8bd36cab7c20eb5b79c4568b
 SHA512 
fc0a41e9145ce01c3fdf7dee90c915ceca094f7943985e41cd77980565925ebf1ffd9c68ee956c0c9fb92f76638db3cb6ddea5f12a6eadc8747fe8fa5f769dfb
+DIST firefox-136.0-fy-NL.xpi 436309 BLAKE2B 
e82f824905e10e73c37953d3efd8fd9b81bfeef304afcf0c484f02f8a419c2d0c06dfbd0a3303f22a434d4950fd990a3059ba7b2298de069a5d1b996cf2d6cef
 SHA512 
0556e8a01b507191eea3f6e50ae89233cbe674521d2ba013a7a833f9345b6c8f4131401d044207ab95601506bd5b257ed5826ec6cbc3db3e651bb669c62b8194
+DIST firefox-136.0-ga-IE.xpi 307235 BLAKE2B 
e1658870113c9b87bac37e9c5c00bbb01b3bbcbad6ae1db46def3abc9b1282a754c286782ce54885dfd53687b981f91008c0576cb2461195cc403ec42fa372ff
 SHA512 
be2bdc539c2066a74cd81c3287d77b18ad03b7d2b063e3fa04b039c982644ca18aa60681e092bc00614e5589bf9155d72bb97e809247cd0853267bdd5efc71d7
+DIST firefox-136.0-gd.xpi 402410 BLAKE2B 
1938ca49fa7d46d2930c241e2249e5fb516976f28f0336c0214ee04e1120a09c49d63bd8a022ed922eeff9332f72af1914270f3ac77c9c5cc92d912b14ebb601
 SHA512 
0dcaf7e550ce2f6fdf12526c1a6aa7b419032ab6446e2b8f91a75f97a45ae6a94545a58f64418d3446f77878c4754eed0d44b671addd4bcb1661e708bbbb8a4c
+DIST firefox-136.0-gl.xpi 406523 BLAKE2B 
4c44128e5f21b2f33945aeac52ebd0ea94a01fed24c39b7ec1ed2d34563a493cf5b37b898f580710da1f7d9b163ac7090882484929eebd5c8fde7a9010fa0087
 SHA512 
acf2b3fdaf2c35ed083299257aa73ab27013daebce904e82a5924dacc0bc4675abc0b71ad0768c1a22d8b6addf6ad896979a291c4d86465b5503a4bfab223e94
+DIST firefox-136.0-gn.xpi 443146 BLAKE2B 
b45930be545bd092157419043a8a39b91a89c469b9c851ea584cb8dc8d2290fb6d0b9595be29a471686bf0e83f5f78679034fe03429c4545900dfc3b004450fd
 SHA512 
c9bcf04edc7155852f80e1ba95407f0310c1e9666189bd9c763cc7806237c6653255de9cceaf177050e5c483475462f9ea970ad70f5a4b032c623d29ace8389b
+DIST firefox-136.0-gu-IN.xpi 360251 BLAKE2B 
bb7fafa345a985de18d605c83863e47cbd917536a5f9c0b8514e7b1f734056314a2f973709c413291ef63e179201811ddc5bef3e4596d2064ad60a43e17a3837
 SHA512 
2b344c9ee0a8c6c7dae36c95c9c76b8ed845713539836e430467bea0893fd0725dd613210aba6bde0a853d7d08a7e634fcfde7dbc5f8d54b62b2390ad63287d5
+DIST firefox-136.0-he.xpi 437514 BLAKE2B 
006b938e80fa7e566041d4aae352e48f95ed0d83bc2930a46fe0d571f58680efcfce5c0b7d9233d7485f69e5714f28848a03a95044ed813b4918e6a9db9d32d9
 SHA512 
a82d5f2a0a77d1e6333290fb3f123aa218966c7a32eb77a17aced97f668d82887d8b17513ba4e8b81da9935f620d715a9308d2eb319644fee5194e84a2241e82
+DIST firefox-136.0-hi-IN.xpi 378741 BLAKE2B 
ad821579e3792ba46a6e83eecd95e8760f45423daa18712abfc02b5b7cd12fba6794524064da8f1db9b1a28974fee0573a66711e26fe1c3e8e42c95ca222c15f
 SHA512 
69b013539936a2d32da6ebaba29f221f4754a64ec4cf836e53cca4f847d57ab00f401f601b323005826e1048e48e1ceb771a06bd61dadc37120e389f63c542aa
+DIST firefox-136.0-hr.xpi 430745 BLAKE2B 
b33b43cb162b0739a6fc92098dea8c295527d965610b36ff4a7fe6f6c60d9146717a3bfd78cb8e26a4789b871f76093a79a4abcd39a5e8c034eeb1e96f95c0d2
 SHA512 
a1de3fec838a37730678a534acdfe25c5c6575b419a6ae30a15b1f5943bad3a3f60925fb5cb9aa4a9d1f4d0dcb0f42c7bed3f314567e4634d51824389dc9ccf5
+DIST firefox-136.0-hsb.xpi 456429 BLAKE2B 
0c7bffd5eb18d1d40373e988c0ef97594efdefbdc80e3b3a36aac06cc401c4b497252c413f1a796e3fd11c1335e1f755aaa36f9f98b09fd8287049621941fffa
 SHA512 
534d8e034a59e53180c7b34c34021a56743abb7b4c1f0c8c9e0eea8f85506212650a77d64a678610a60eb2aeda284e01c0b65a776c8eeb8a364bf341c269243b
+DIST firefox-136.0-hu.xpi 460489 BLAKE2B 
cb3c84ee66db5b3917d3033617a3ddc9cca4842112f0670c2dbc6297d96c17ca06cd36af5774c9b108c00cf24f0c1d36dd02bfb0722488f34caf00d16e993f71
 SHA512 
af3ca41f6ff82d67dc21f1a85a0b059ec5bb25ac93cb730cf205112e513f32a41a68bdc802572a88305dc20324c7ddd183835ddd7e77e29178d39c4dc4654db7
+DIST firefox-136.0-hy-AM.xpi 447328 BLAKE2B 
c25f107e9eaa18bec7065d6ab3c7a7db88696e45062c0b2e0f5dba9cd763b38e355080b9c44a5685f5e471fc22959608f60acb6b9bc3a850aab7a87b7dce9262
 SHA512 
879f96416d1b15b3ddcb13bb39990cd8d0fdfc9a3821316486dab4245da806a1471e9b8ef4883213a1a16f72e45619eab8b0e1a2801e2e4f494f3bb77ab51376
+DIST firefox-136.0-ia.xpi 424470 BLAKE2B 
969540911918ccf969114d194cd562c95b5cde476f753ae68182c63a91bbc94285dbee896b3f1a73cb2efa477d2b51fe557bf029ce8146495a66b3adbe266b42
 SHA512 
1c3f40efd75f19e3abde7a6970fb8859f345dc8d0bd0b705192fb06c74dab081e16b344faff3e097fe764b7abdfd23a43c05b8016087557a343ff075f6f768e3
+DIST firefox-136.0-id.xpi 414321 BLAKE2B 
c1523c1b65745e2aa8c5513c73e729c17598f53edf75b22e6380664dc7482391ecb21ce266b8ad06fd3988b06e0cd2e1ade03f7515c97ba89077f65bafbb2f1f
 SHA512 
e3a49e895c825179e393e91479977c4316af16c5993d9439a5879f3ba5ec439dc7ff02b0e6ff52d9d753a58bb754559616be2895031f858f70d9301fe479e19c
+DIST firefox-136.0-is.xpi 429689 BLAKE2B 
d8f3e5656ba34156b52976f8a097424da172b1d25d5422b07ad976e4dcf0e9651b5da5b83438f367bcdbb977048f302a0bedca102b3838d17dc678a0e0e20419
 SHA512 
ac1fd9b05d5e9b8e613509ed5c5188bb03df77fb90c089560ea0c292822e2fa77227d8a8ed815983914ac1acb58daace4a1b787bdc3e9ac6e5173b0cedcb4d4c
+DIST firefox-136.0-it.xpi 434986 BLAKE2B 
9e6088f8a9bbac3e432140999b2a408c6225294715ee7d67bcc8a9b110add6285dde861ae34ca1cb210f51bf9a16e3747398bb6e148dff9c3aa5ab0f09ec9d0e
 SHA512 
19280dadea53dd4cd74abd766cb23711cdcafc2b8bc7fc148cacb6dbbd7e7481056fea78de310df848b2bbb47214875c21a49c6eff6713ca3d645f9591f8f05e
+DIST firefox-136.0-ja.xpi 475081 BLAKE2B 
dd0490a64127d6f9494f58182cc715f7407c321bb21ee284c662d83dc3dc032dee5afbf68c2f5deed85e6e9b75b94ac861d2532fbd76835d83394a774daf22ee
 SHA512 
b7c5816b7d5d969411b2e20faab4fc0306cf674c16cb447cda858a66db0e7218bd27c4d410fa15065dfced8ca5ac36633e0eb9fa2092f37cecbf4f4f2a627b60
+DIST firefox-136.0-ka.xpi 487955 BLAKE2B 
32f1fda4d9a539244cd3c69f235e81d069cef27d4d2c75ef7cc9e4a728f0f06f5ff1ec0d1b932f378d0a23e31d85408f9db6a643ead0fc5068c2b5d777bb633d
 SHA512 
976741f8dfd6faf7860c84cf56cd5a753dee6fce4e4c57a0b136dbadfa452e431542e4206a6ffa818b1bcca0992111baa875219beee7d10f64e18de0f3559552
+DIST firefox-136.0-kab.xpi 414030 BLAKE2B 
eb9a6032693cb6220322e2f8767dd35b15895a0a82b1efc71e62ed384f25f2865a21dafebf172dd3fe87173665203cbd6cc40833a7177c096c8edc1d1c053c4a
 SHA512 
082648c229ae1c3ad4112ea7f75e631fe87beb0b42199ce76342161d0b0be15f7f4fa0ffba61d39594c861015c5ada94ec08a7a56f0e9396d5d3025c5b759fee
+DIST firefox-136.0-kk.xpi 501971 BLAKE2B 
dc51fff935a23931033fd30f816031f2e9b1f8bed2a265101935068e4db2ffcf26b4a445d3c8aa8e56ee81169f6e9b2f253c02625ab993c3552ad0e21675a38e
 SHA512 
632b11174045b928e04673e410e8005f2846927ff7b3838db3afc55831386082270afaff73c4c908ab4f9117b3b5bcddd1328766a49c2f5c9c410050131be882
+DIST firefox-136.0-km.xpi 350112 BLAKE2B 
48d261c6c5bd298e1cfd3b44e1105d7be693a28367091a04f9d959e7cfe3473c3800de064dbbd322d8cce1a4e6bf09309aee1e2eeedc74477ff31cd5eb794803
 SHA512 
73924f2bd34bdf8d93faa91201f704df2696d9b78630fea9e304d24c77db404be5edba18fe147837492a6fd2ba96aa4b54708e6767aab0417b31e918d50d2057
+DIST firefox-136.0-kn.xpi 332803 BLAKE2B 
c12bbc1d7159088d04cefd1e27e4b7157941db2cd5d677c4c7c75b18b4227668d34ea8f810d65a2e7c48cfdbd0eb7062b9066b142beba4d428e8ee080e99aff1
 SHA512 
0b46115220cee0119a1b5b8b32dfbf936b22cb1956943e3ac62a32c0859998f40dff9010113b13cd0c5d5e8a5efa4eab43488f0f9b0f24f94c98a33cea82cb90
+DIST firefox-136.0-ko.xpi 461346 BLAKE2B 
410f8d3d0e7b75e3bf4c5d1e515f246bfd8e89e9d7e227be1d8193bdcd033450f4ffa939420abd269e051ae978d433131ea560e0871394926e0467e75f8dc8c1
 SHA512 
fcd678ab61e5e8cdb7013cc461e66051aef31c621135283d0be566e24f30789e1276f18e8e1b634ec538bacc64d406e2281f1537424d49fd74262ba96e4938d9
+DIST firefox-136.0-lij.xpi 319141 BLAKE2B 
bb6ad00bb731b926a3fca9ed1ccbabb7efd24210bac75f38810bcb36a7f676403cf0f63346ff9b55fe1444546ff335616e501989138139656d58b6a8c41482af
 SHA512 
d29b8580b41e341cd47e655cc5bcac4eb9584e3b6def579fec92355c614bcc48a03069d360880cc3cafbd1562f905b09274b58966e0e610cc4667b6468512239
+DIST firefox-136.0-lt.xpi 382136 BLAKE2B 
6908d26e52f541c51c7c62c7eb689c1cf1109df4b51e1489b549233dda6168dc2bdfca57540e52e8d479dfbd9da9a88201eed68315984fdb95ad35c3c9f144d4
 SHA512 
195cbcfe7479b2cd5f2def84e3a64bae609b695f2799883ae52f5ed34de09ff35565674f60c54b0c24b8b69f54f895cc36665f4c3b97f8a17d209db76964d004
+DIST firefox-136.0-lv.xpi 390652 BLAKE2B 
0b19333ef1e973b877f005f91ab7a1ab270b18071fb7bc5fb3672ceb0c7f7f3276dbb124af44f70425e32d2d84140a2c16255285bd48710e2f27ecfbde627532
 SHA512 
102a663a2b38015a9f903de555ee1cc8ad4832457e7021b70cf0263fc4895389ad0358977815fa4d8eaf2e12853a8736f7df429a89f3e58f7ace6e50389cd503
+DIST firefox-136.0-mk.xpi 318444 BLAKE2B 
24b6c9df0410de521e7a2d6fe853e918fb94c198d49635931c63e4a299b31d0c56557828800563fbd2ba6e40cfce63a2988c64229bebfd58b39b1d0b68be3bb2
 SHA512 
cb5174d6f2168a19969f0f03b6e1c6f21ec901ce58bdab25775c14bc03361c5558c8dde0b4c0f47576c517ca2f32f8b2c4d697f0021dcdac869bb429a1b4d966
+DIST firefox-136.0-mr.xpi 357286 BLAKE2B 
f23d0925b2814a6fbd61ead36751ffbe2e917733b96061d93cc2e3d9fce82475741dba952517ffd0200cf9b6fd6a405c6862ff16c7bb5f002efb6e2a694361f7
 SHA512 
4dd05c487b3b1b71377716a6e900354b1f378420d4e64812852fbfe61b25ba3fd8cc79f0ab67fb02260bd59bf70d40bc594fb0a2cbecf1b0d0177896e8174fee
+DIST firefox-136.0-ms.xpi 296092 BLAKE2B 
3d8dea11b1daf2363dbf8b9f97c6939f9b17ba443b97d6cc5428593840435d564484d85b6d22a96829f3bd4dd63fe5305828a033e492d799e4407aa27a72b686
 SHA512 
6a4dbc18c7dd691d86e8e4046e3ee21d852a95e4ced934432ce7ef3c9b26460ff3a190cad41276fda0a325c89dba85255bca2bdea1cd7b989a06341f29482370
+DIST firefox-136.0-my.xpi 344220 BLAKE2B 
b197a94d2ac58cb167e241e0462641224336106c22c1b510b1f0642de606fd1624a808e56b24345af251b295ff6f42633a8566aefe8186cb21a783f659607d9b
 SHA512 
8109db7c2c8d126cb57b65d9d296d534193d87c9c69892a10d8d2e39acd836111a5f1bffc19559b5bfb43af61a7a17f3d8590aeaa02c27b7ef11f38acea56bbf
+DIST firefox-136.0-nb-NO.xpi 416130 BLAKE2B 
61099b7a4038b1d99eaa3c2c0b47a990edd11848bb94443148b92ee9397df70d920e456508d1b9370689cbed11c1db06f3c4bcf5ebb094a98cd5a5d35919a377
 SHA512 
1b5a191b0478a21009dff08184ed176e8099fe3d7b7b7114880e235210e852b6141bd78094f2a213ff78db6236146626546cacac99a0f94f761dd4621990aa18
+DIST firefox-136.0-ne-NP.xpi 350391 BLAKE2B 
aa647bcf423f75091dbababc8c4a5adda5717967ead3aaa9aa44a8a6eac490d6e6f3070faac233325471b1ca5fe9732da1cd8257f1596faf278f867fd3539229
 SHA512 
3405725e494e3f8746d0a666bc69b264bfafe70a62d8959ed63e9eba3f04706c26f1b4c7097b9126f0f4cd80e86afd818ed62f339bfe169e21664a93759c95dd
+DIST firefox-136.0-nl.xpi 430395 BLAKE2B 
5ad55daa44b14937f62131e199c718a3aaecb5a43967ea8c3b453941dd7427200f94cce3509f23711a46dfb829135d33fabd9e1fc11cb6933003767043fd3e5f
 SHA512 
bbcf635fe2d291663f35005bf820eec63cc6f89a030087f62680fad90b3f156c3c7e2d02d64827c3eb917c2eb3b43ca6a969b215c7dfe183070d58039989b349
+DIST firefox-136.0-nn-NO.xpi 421303 BLAKE2B 
8999d5cacfa0a21dd0b66b51a95afac1025eba88e1ec55ff8e6c76f4a78123d04ca78a76bc0057b7b2d09cf44f740471f972cd3a2c9165e8783fdd9a4b1ed876
 SHA512 
f91d96541e202a354b6e1107f79819a321510c9d821684861e79a12daeb5fc66ce2e28138ec598bf8ebf05eac17518391a01a4994708ec574362d9f04d0ba993
+DIST firefox-136.0-oc.xpi 415674 BLAKE2B 
f78288717da8792918acde0a07713a4e38bd8421e129882e4f7dd74f32b4ec9df9d00a5972051deadc8365281aa620c06d46d0a3b35eb8d840f1bb3923869a40
 SHA512 
6e95550402d29c5842b3827aa4cb6621295aaff0d95db73f4f8d156c9cd206c87aa3bdc06a7fe68bc6ebe33b40eeaf36f302f0771743977a0d3ea3ea3a047617
+DIST firefox-136.0-pa-IN.xpi 489845 BLAKE2B 
d6eaf8b3e929b611c6baa84b52115dc80668a6e8e44fccfc2d863f17a42b72494e4d218a8bab1693e255bb77dc66cf4d4a725ee925a43c524443d83cc571f84e
 SHA512 
fdbba02652822b030f9efa7116e9e9717a4dd60ac96dc5308383e51e34484d89a90318bb1d84c3136846fad8d034af693b99c429926110e75eb21a1588d51527
+DIST firefox-136.0-pl.xpi 450695 BLAKE2B 
8cac1e8ae62fdcdce0839eb9dc161e9eac9e6cd2028adf7bb0becc5b296a1a8ed8853c8a65e0988b432ba0c35962caf44fec9a32c2437f6c13a02986c3536604
 SHA512 
d1a31ceaf641966f188fb3c086505c93eb7c1d34b5444751ad7b278d83ed8651ebadb6e8459590d7ba8b5b913f7fcf7de1545d3a354a818d4f7ff45d093c25e0
+DIST firefox-136.0-pt-BR.xpi 434760 BLAKE2B 
6c4186b3d9791ea2fcf753401f4fb192adf87c784e143b103526ee6423a07bcc2f883f8200007564e081f7f653bdaec126e46c1804dfb6cde7baa9034c1e0d38
 SHA512 
a70ecf779cd44f2973d3231efa9e637b6dcbadc73ba32eecac2952100d5178e45756ba6f36cc1ea96359a83e6885dd0cc44c68bcc9b73b3d0bf2373199d3f49a
+DIST firefox-136.0-pt-PT.xpi 440562 BLAKE2B 
7f53cb5582d713bf0f38e6a99b2be57865fb14269f1257cf346d85a30550220f33e9ef3bbed219d6ba807ccd16c1f764ea217dd0ba0dc5e8f3cb6093106df3cc
 SHA512 
a64cc8f57a20217a5d442dd320702950764691add7b8ec9162a76544d42bdeee00b3eddbe40e7776cc13cccbb89d5c517dd3beb7d9a9ee66c75911328040f50b
+DIST firefox-136.0-rm.xpi 434104 BLAKE2B 
69e2fdf6d8c31e1ec5e35b6515a54a41c47fcd5b85c50327530d5e946bf04989a790888169f8f2cc733e057cfb8d20599ea81b9a41f3fbcbca8f0bbedfbe60af
 SHA512 
3d122928c6292d4525c332ae1e610102d42efec1b72f69b9cf83ace0801ae8325303aca34b9e6f820c762e0f459ff42bff035e110de4fe8d91eef4fa180fa3ad
+DIST firefox-136.0-ro.xpi 363421 BLAKE2B 
065751dd554cacd96fb35bb41d86274d59ef14b5c13e221b6b2f9a44dc866e6f37acf7f7d3f425aec974b2371252b29545c6cab7fe61369bd64161a92ebba955
 SHA512 
7f55385a8d71b069b91dcb0504e356cf1240a8ef6d409e394745e913b819e8dab609dcf9781445374ae31ee12482d43b615588b05c5986bbddb172c7a8e492ff
+DIST firefox-136.0-ru.xpi 517925 BLAKE2B 
9ea359d1c3c3a1f52ba015c8875cf88cfce66cb818cdc36896bf0f4ee07309eadf37e5967d6d542d6e9dde2cf097f0d38d774f949499662b629c970eb4ac9231
 SHA512 
48209372f8795ecc0198acfe7285afec62ab9a01e7a3d500bd66a8263ebb5524020f16d59377044e7968569a8898a74774402f6b199239bd8cdbefbe9a346f77
+DIST firefox-136.0-sc.xpi 403792 BLAKE2B 
7251595e550d865646eb68e9859dc00b341e7a00cc7980395547606eabb9d72e49222103678d022aa58b01ea482d0a0cc00cc1826936ad7e7a56ee8b2423e798
 SHA512 
65772095886544d21c907394c38b9677879785dd357da3a6e8bf7bf32fac611a80184d914c43099cff3eb27fedb01527dfd5fdc7a83fc147e36845a9d36c4fce
+DIST firefox-136.0-sco.xpi 324885 BLAKE2B 
72fc99fb43f7ca8db28284f687488886b3f5b76386aa79c1585793297cf409c0c0453486ed105d078a9abde33bb8e9f2abe7fd1b4ac6de176e41dd9da2d4eddd
 SHA512 
9491917ce9b78e8ede17163c2bc6a7eb58f043e4c4ea6698e8a1627d21d23befe3c73305ecfaa667e5f6c9d21b122b7b1e6c6cfc48b060269fd73466ac99e4f0
+DIST firefox-136.0-si.xpi 414027 BLAKE2B 
bed111a876ee33a9aff8da1c30242c8cc3e12912d75c031f195641b70178ecbdcc674ac4b1320112f89d3eec9b79d14062bcf52a5a0c46075a8060b902a4bb6a
 SHA512 
1ceb0703e083f978434a7335e5d85675ddeba4b4599aaee67ecf168079a85777f89019b978e479ff9bb06cb95c3b6106208c176b59ecd18a761becffc89345ce
+DIST firefox-136.0-sk.xpi 461609 BLAKE2B 
a7d5aea1828fb9996aa528bb0b56a1527db95d129a81dd025874d2e69d43b71cb30bab86912a0452633c52c4dd4a93d11e7ce9b53a1f7a868a3ad59292e6a7ff
 SHA512 
51139a25bd992dc2a0843cbf0d2e689bae0d08962329dda55090940e475c0df3a4d5d1b1b2010eea84f607203bbed949cfb0eaca57d1c66514939f472c88c852
+DIST firefox-136.0-skr.xpi 494197 BLAKE2B 
9ba7a83105ed70163d3c791518833d4b9a8680f98e227875de2d9090f574d0e191f8c1c07748223314cf9d920166bbdaffd4fc3d441b0fe2654ce54a93ba75e2
 SHA512 
8dc1fc79358a1b4c62db63c8827382598e2a654cdd63cdd871dcfa988a797782c7ac3617c52017ba651b3a0dc4228f6bda1a9e98e30bbcbc88d9fba700584c7a
+DIST firefox-136.0-sl.xpi 433461 BLAKE2B 
e20f9541ae5f249a2bd9371fc3c08e1c0cfd6d69cbe393feb408ac7865baf34c7e03096cdc48b74e8e38e517a3bcab7fce82c0560a0f0787018005afd5a83b22
 SHA512 
0ce98913ee3fbbbfd027b30d0c2a6d316d026ebd80b250cb68c0ed08c5a91b96eac29e1dc3b06547acb2a9b5da0fc6a98c6b2353d51f39bbc97467efd437ea2f
+DIST firefox-136.0-son.xpi 273279 BLAKE2B 
caa3d19fe8e1176f4efdbe1dbeea0b192f25014d6fc5a83c598e9871811c5f6212aa06a131e98956a3d8156280187da6ef638a065374083b26c2cfbcbcab9806
 SHA512 
69b0a76c9d0a8a47e39ad71c42eb92048ae7ec0e13fdfed516481e7e829a6ae74177a2ce53d05ebcc76b77ac2f3299c52a1d24391ed2f68711078ea1da917fe2
+DIST firefox-136.0-sq.xpi 449802 BLAKE2B 
8ba19d3935dc85fd6d84539a6fcd8e2105be6b8d3b23a9403940c9485e9e71d6cd7d6f62eb1f602322cb299b43ee2bfdee0a0acda9c8dce641353eefa1109c98
 SHA512 
3444c40406f7aad89bba3764292edae35f1f36e1bdb33755d6ffb58141025e36701966f0bdf87a37aa9ee85b9b6fec3c27e7961abc257cae72cd78f73781c495
+DIST firefox-136.0-sr.xpi 456464 BLAKE2B 
890cace6fd48fdcabfafa5876ad42c4e04260733e5dd4bdacfbeade549822129d024ee7227e63707e7f60d71f18be1fbf40cdcdff9bcf77f9eabb54e924a3ea8
 SHA512 
962bd01f07fd498efd1f00f558a9c08d4eff33e45fc22af4d3943cc2c3bfa0ec772b64a8528366a024bca03f835aaca08431992a1b4d8a7fe617b88d25ed418a
+DIST firefox-136.0-sv-SE.xpi 430474 BLAKE2B 
42a9c591967abe16cc070db19390d44f0fd277de4f86e02c31bfcc9ffe51a2714acaf96243d258d3d6a811d9be68ebce91c41dfb8f7bd1ea986b2081e5857c2c
 SHA512 
c43bd5a935fc24f593cde9be17791b827e0a9d19117b65b770f10d830bf1b9e9b3f9aa36be93f69db5ea669f39c9ec5e71c86c9961ca371c700376bd0c3b1ea6
+DIST firefox-136.0-szl.xpi 344447 BLAKE2B 
164952698b365c8bb85367fbc46fabcb5d528ca64a27c4f436682188536d684cf7810748d3181d74f454e45e9c86d888297b03f89e1d8c102042b56fda36a138
 SHA512 
d8855a80df2a45a61992a78bea4601e1ec4c2f082c78afaabe46c9c33d138652f50079540419e61579a9b22e1b7649fd3749e98d3761cca3b3fcbd8757534933
+DIST firefox-136.0-ta.xpi 338588 BLAKE2B 
183ec42483bd7346eafd8ae74c6b8749de97e973623244feeb1f445d66f2e497f8707b9058ba144d7293e840567b24e39d2b78578f416818941a17be1321cd00
 SHA512 
01082bd5df962402652c0396c10139906a802e9b769dd59461e521ec99a25d1980ddfc2a874ad7833efa9aaba1acd66c18713d0b2334ad336cba19a5e55710a7
+DIST firefox-136.0-te.xpi 384066 BLAKE2B 
11df17668e3915be13db59647e94eecca0049b9b418babb3c97c960059f7c49850546e0e865f80a62c706d9db736d5cd403404d9d3b9aa135c9937f401763835
 SHA512 
1ff10790bef001d7e6ffd9c97db37f887cdd84df8e3fcdf6440ba47f91f24969694a92c3a6a7604563c1ae77f6283dd3f2f326797c6fd95c532ba2a1a7b69e8c
+DIST firefox-136.0-th.xpi 499244 BLAKE2B 
5ae3066449b8455b0258295e98e77c7e93096437ebe16f3509bbcc4f78b9d76f26785edf372a4046d6792a21ab65dbbd46eb2c29ac780aaf4f7f672be0415838
 SHA512 
7a0b3bddabdc388eaa621c80901fe3238fe0aa4410561195353e0bb4f92fe1506df84ecea96884c3b32574f0df7b8e0d7616aea7076241d18d5368ddf2181108
+DIST firefox-136.0-tl.xpi 351833 BLAKE2B 
7d5fe613a9f02d309bc200bd97f0e9634310600f93fb182bfa8ffa39efa2355815a1fee01b3a016e0e6e49be9c07d17a55d4871a99044a00b91b5b5709aed3d4
 SHA512 
6fa679b1fbebddb163a9c256ed86751d944f74b4933ce2e661dd8128955f69519290af6899c5075011ed8abab30f5210e1a311200b732ad0d24ac42dc1c209a6
+DIST firefox-136.0-tr.xpi 442282 BLAKE2B 
5af3d410bfa03c353b1a4a8acbc8534f07b5f68f44c66e6785d3f8f3aff9f0113b534b07bee7ce19668910f725416482f4797d8349b26e1113e4381d494fa810
 SHA512 
d2e94ffc56f5624626fb77e93eb906972f571bdea66e4433ac6b0fc2b2ec31e705e780090e1a319bc614acb8b735d2f27d11467be3ed92c1e4262e58bf999e7b
+DIST firefox-136.0-trs.xpi 323924 BLAKE2B 
f43fabdafbf8b5cbeaf47cc28b55945b0289157e3744411d498038bbd3aca872aa6527cc6844a804351c4eb5522d8c9aaed6dba3e4f3652e57c4ef166516f356
 SHA512 
6e52e673f63b8d7c024f0c43f8e77e8f450a693471eda7dcbd170432d3ea227d253bc1e5d845c6f6e0d561f9bbb87171975d013564751f3c72f936c8ca43bfa0
+DIST firefox-136.0-uk.xpi 508666 BLAKE2B 
1ebf50de4621451dac2f991ede68b895c4356dbda41e4baec0295dc610da808d39165e59a96d68ebb6270690b141c5675256c6556818c4b01a566fec6f8cbaec
 SHA512 
f04b49f639d6232b11a611a8f87065961a4dc4400a1b42dafbb8bdf9b5ccf31342f6008d739b5b935409063bab933366361f918918bca87446d4aecfb6e90757
+DIST firefox-136.0-ur.xpi 371888 BLAKE2B 
6d79a1cd2a38f1a409cb5060cea86270c2b62f5ec255a93a6f0ead9ddf7bb4baf140ab715c982c748e5acbcdeae87bef60e858f8b329efa3c122f99826f17ab2
 SHA512 
f0f10689e0a7b90ea8ccb17dca5fb4181d9854d427fecb88d23af5295dac710e1326d30eedd04c517ca351e5211fc0ed8ae197b3f2e7dd0c04d255bff6d1a4fa
+DIST firefox-136.0-uz.xpi 305440 BLAKE2B 
7da1080018a8244cd59a33cffccec8e777757c7bfa9ee4f5ea4ecfa25d1b11d645792e4fab1fd59d6d422e88b57c80e280790cabf0dcb075e7d5270ca892bff5
 SHA512 
aa05294d4a87a158e298b987781355413d0bc494dff8fbb9318e585064f7943ad453a86351b5fd001a07f76b0e2352bf933effa43797bd58d0e3472a8c349069
+DIST firefox-136.0-vi.xpi 463346 BLAKE2B 
a6cf4482db5c4de4287dcfd588deab08d318df43eefba780ac3b641488e2bb658bd860cc6e808499fa89e19c0e0ffba9a81e44b36ac4f333b03d5b3b17dd20fa
 SHA512 
ab49772a25d298508ce0c3d9adda0d324bc4b1f2efc2fa4fe6eb6e524940013d8e53a4ccca56308004066fafd0fb9839302dda74a27954a0b9bf08e158fc21b4
+DIST firefox-136.0-xh.xpi 273270 BLAKE2B 
84b39837494eb27e02c1218d571a42bc36cc0b8a5ad638a066d3df2da745361c77edf7207402a924dcfdcb4d55980782b8cef3257a90ddb9236670102c6d4b51
 SHA512 
0ff9f15230d88e89e281e6b10b0cc7fa5d5fd018dd187490ec684d8c37f0a417b4e21cfd672bba5baca10f77401c0fcbd6a22e6e545190fda4bdf673d21f5c80
+DIST firefox-136.0-zh-CN.xpi 454853 BLAKE2B 
a42369fd948e6b1a2eda3cb26e7ded75369b15fb75c5ed9e6ffb0479bdb6f684fb76d791dd29bc558023d7a696c09938dc04ccf6344391a30f48a8278d8961ba
 SHA512 
60b0499e8dd17f2b9fd2f7176539de470ce2e2b407dec386b3f045d0479cb5f5a6712455ae5fb053f2936c2149d7532cb250b691f55679d64b2969b2923a62a9
+DIST firefox-136.0-zh-TW.xpi 457684 BLAKE2B 
5c2714f86e81806d8dc8dcd5f4d874a0dda090213d8ccbc621492cb9f48b1b35fcabe7eb88b7d4468b54863a1b0e3ae00d2125d09b748d11c8f4a3b10ebbc890
 SHA512 
b7646c4696b16f560254f0454ff279ab11a1fd0d2f03270935c21294094f32b2a0d2f0a022f6e2561fd7d727982dfb62af4aefebc2a8713d1a8c690c974c795f
+DIST firefox-136.0.source.tar.xz 603708216 BLAKE2B 
05f92682dc756998f1dd56cdbbf8a90a45cade9d8541e83edbbef07ce4cb66e6a3bfdef5e59bd824b2d6b13c49c6a587e9302779064deecd68ba6dbaf9300f9b
 SHA512 
a2b7e74e8404138b294f7b3c5f1eaeaeb8ce84c9aad25379e8ec785a9686f42def9f8c119d4bc276dd371d13d7bebbe4b1b092af41500aa8c2b2c827971445b4
 DIST wasi-sdk-25.0-arm64-linux.tar.gz 115160800 BLAKE2B 
1ce22aaea87d0720d40d46ebdd96508c8fb0593b53c4489022fd5a1a9afb043a26a6e162a992d73454f612f2b6ab01e17a99c189c0c8b8c2d2d68fd96fabee1b
 SHA512 
ef4eff22c1efec4dc5ab199d09d93ee0004f9fa67b32cac0030f8b6a40def10f714391cec8e803c200995dd8bfad3ebad9ec79b4195aa6b2ea61ea47a8b9e61f
 DIST wasi-sdk-25.0-x86_64-linux.tar.gz 114450290 BLAKE2B 
07618828d4c25d67421aa72d38fc49bbff9052b8ecfe0fa9f4207e71880e9c650f458567cfa5bd389d5f830fcfee89142a77d33c29e7bccd1da7ddba2bc47b95
 SHA512 
716acc4b737ad6f51c6b32c3423612c03df9a3165bde3d6e24df5c86779b8be9463f5a79e620f2fc49707275563a6c9710242caca27e1ad9dd2c69e8fce8a766

diff --git a/www-client/firefox/files/gentoo-default-prefs.js 
b/www-client/firefox/files/gentoo-default-prefs.js
index e0389edac482..7967cb3e4029 100644
--- a/www-client/firefox/files/gentoo-default-prefs.js
+++ b/www-client/firefox/files/gentoo-default-prefs.js
@@ -9,3 +9,6 @@ pref("intl.locale.requested",              "");
 pref("network.trr.mode",                   5);
 /* Disable use of Mozilla Normandy service by default */
 pref("app.normandy.enabled",               false);
+/* Disable remote-settings from permissions manager by default but don't lock 
it
+   so corporations can easily turn it back on if there's demand for that */
+pref("permissions.manager.remote.enabled", false);

diff --git a/www-client/firefox/firefox-136.0.ebuild 
b/www-client/firefox/firefox-136.0.ebuild
new file mode 100644
index 000000000000..5b30b1c78bba
--- /dev/null
+++ b/www-client/firefox/firefox-136.0.ebuild
@@ -0,0 +1,1382 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-136-patches-01.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-135-loong-patches-01.tar.xz"
+
+LLVM_COMPAT=( 17 18 19 )
+
+# 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.77.1
+
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.71"
+
+VIRTUALX_REQUIRED="manual"
+
+# Information about the bundled wasi toolchain from
+# https://github.com/WebAssembly/wasi-sdk/
+WASI_SDK_VER=25.0
+WASI_SDK_LLVM_VER=19
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+       HOMEPAGE="https://www.mozilla.org/firefox 
https://www.mozilla.org/firefox/enterprise/";
+       SLOT="esr"
+else
+       HOMEPAGE="https://www.mozilla.org/firefox";
+       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 autotools 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 
sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-jpeg 
+system-libevent"
+IUSE+=" +system-libvpx system-png +system-webp valgrind wayland wifi +X"
+
+# Firefox-only IUSE
+IUSE+=" +gmp-autoupdate gnome-shell +jumbo-build openh264 +telemetry 
wasm-sandbox"
+
+# "wasm-sandbox? ( llvm_slot_19 )" - most likely due to wasi-sdk-25.0 being 
llvm-19 based, and
+# llvm/clang-19 turning on reference types for wasm targets. Luckily clang-19 
is already stable in
+# Gentoo so it should be widely adopted already - however, it might be 
possible to workaround
+# the constraint simply by modifying CFLAGS when using clang-17/18. Will need 
to investigate (bmo#1905251)
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( jumbo-build )
+       wasm-sandbox? ( llvm_slot_19 )
+       wayland? ( dbus )
+       wifi? ( dbus )
+"
+
+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.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="${FF_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.108
+       >=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-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-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       valgrind? ( dev-debug/valgrind )
+       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
+               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="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"
+
+       # 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-tests \
+               --disable-updater \
+               --disable-wmf \
+               --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 \
+               --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}
+
+       # 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
+       elif use valgrind; then
+               mozconfig_add_options_ac 'valgrind requirement' 
--disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # Enable JIT on riscv64 explicitly
+       # Can be removed once upstream enable it by default in the future.
+       use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' 
--enable-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_with system-av1
+       use system-av1 && append-ldflags "-laom"
+       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-png
+       mozconfig_use_with system-webp
+
+       mozconfig_use_enable dbus
+       mozconfig_use_enable libproxy
+       mozconfig_use_enable valgrind
+
+       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
+
+               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
+
+       if use valgrind; then
+               mozconfig_add_options_ac 'valgrind requirement' 
--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
+
+       # 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
+
+       if use valgrind; then
+               sed -i -e 's/--enable-optimize=-O[0-9s]/--enable-optimize="-g 
-O2"/' .mozconfig || die
+       fi
+
+       ./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}/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 >>"${GENTOO_PREFS}" <<-EOF || die "failed to set telemetry 
prefs"
+               sticky_pref("toolkit.telemetry.dap_enabled", false);
+               pref("toolkit.telemetry.dap_helper", "");
+               pref("toolkit.telemetry.dap_leader", "");
+               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}/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}"/taskcluster/docker/firefox-flatpak/firefox-symbolic.svg 
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