commit: 831b955f6f5d991a0728bd9079286e1ed70ec4e9 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> AuthorDate: Wed Jul 30 10:41:05 2025 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Wed Jul 30 10:41:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=831b955f
mail-client/thunderbird: add 140.1.0 - sync changes from firefox-140esr. Closes: https://bugs.gentoo.org/960807 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> mail-client/thunderbird/Manifest | 66 ++ mail-client/thunderbird/thunderbird-140.1.0.ebuild | 1156 ++++++++++++++++++++ 2 files changed, 1222 insertions(+) diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 9e710e2d7710..979d67f6d7b0 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -1,6 +1,7 @@ DIST firefox-128esr-patches-12.tar.xz 19024 BLAKE2B e6e1cd56548cb429590cac156de6e5ea003e9db30e3486ef3c822dea063f22bed08685a52036c0ee749b50a803c84fd998470d049145bdd70936068e9fb9568f SHA512 0af68f23777038cbd02c9991a5c5d59cc407295b21065c144428869f3a2ce21e8fe4ed80983950b75809a7c6d530cbf629510c5a18f5ec0439e1a0daf852999a DIST firefox-139-loong-patches-02.tar.xz 3096 BLAKE2B 2e9c0f3dac780c808a13f70fe3808df9976898360b55113def97bf3594893166e0647c70ebc389b2d14fa2c2453fc1dd68aba20d92178670ef97d70c34205e1c SHA512 e1244007290e2e15d14cf519e3ade6a4da06abe41c416de60569a11396609661cb62fb5b592e763cc079406699dc33d6a34851f71068f4d09bdf34021b035a59 DIST firefox-139-patches-03.tar.xz 11536 BLAKE2B a7610d1348a2a4d02305c8d694a1648997040c69cb1445b901fe456045d0b1a73f28b0102ed03d34f70d8cc1ea9ab0245599a104b0063c7fb0dcb5a8fdd6f60b SHA512 4733d34a842d525824fbcf6ef5d8f33e26b4f37a16aa87043427eaaf1e0665aa257cb8487bd692e4fd095c2a78553ab3f0213208124c3455e534394576fb5614 +DIST firefox-140esr-patches-01.tar.xz 11100 BLAKE2B 7a433e80efab15386ea69fdabae0354fb7ca431e0370fd642a864e20b2a6b558a187580513bbdd92b2eea98059eb4ebc5eb2117ebdab810643a842eeb0d82da7 SHA512 50a33f760d57c52a233fe6769931a5c869f72e68af2492fb068f2e3f2a3de5acdf21beea01dc6069911bd00f15c16b26e40e58a9c4f332d3247bbdceac4cde93 DIST thunderbird-128.13.0esr-af.xpi 534911 BLAKE2B 3b167ab88316ca54c392f000cb49a0e8f69d5e84ffbd4586148a8350af21ec59302d6e8c310a067f08dbb1462f90e801f1a99481c23508e1c9c89d143ceb8ba0 SHA512 4ab4dc6f624f98460d5a135aed856ad3b6f49dd6f52359c5ea5e76a88f2cff3cebc07ce49e12948451ff1b5c5e6d2e7fa702c8aefa8bd61421e83b2d4be95a74 DIST thunderbird-128.13.0esr-ar.xpi 686456 BLAKE2B e67bef5615435f6985bdd56a5b748a7684b00d65a74291c6c43e101df614ccd12b691b8f479ded87330557043cb9053a9cdba9f0cc57e2d3f488ed530b9ddafd SHA512 7afe13fab73643179700526c76d078d3241b5fe4606f3321717eaaa84344d2661bef5e52ce3f5d146e01f32f51f219988c324bd9c986f57ffdd7912a251ffbf6 DIST thunderbird-128.13.0esr-ast.xpi 574780 BLAKE2B e00eea3465fe1247ec0720b8ab9186175d6660eab14a2697c635fb20d896da97c3d5eee9e3a86b27315d4c86473817ded371c5ee93d20fd8ff9c125b194caf96 SHA512 71e6f51194017d90636356951c007b7215ed109b3f35fd4fde2ccd2a281666bfd3f01bc49ee780fc8b3ac251479a7f1a1a225bdb6dedf6024ef29841d1e7ff59 @@ -131,6 +132,71 @@ DIST thunderbird-140.0.1-vi.xpi 518716 BLAKE2B 2bb9980111a17b65079297da253be4f24 DIST thunderbird-140.0.1-zh-CN.xpi 507848 BLAKE2B 4e29fad7bd7decb4e1c63d071b2f731a4a976a813d7c79b8cb6c4a8180ebb0d3660ff7aa74f0150596504c358f5b2d250e69a4fef224f40b73ae689d62954a16 SHA512 52bb8d454c38e37bfd35294715df3ac417ff22921c4dc5c07f35ad6c7e43583c12dbac0f1d3c68c8a06605f339355be5112b107a27eaeea93dddfddaaf6391a6 DIST thunderbird-140.0.1-zh-TW.xpi 511140 BLAKE2B d213c5df245979d9401a80f3c9890439be250efaa1b16b4c620ae201740c341663ae851e37d9fd372d727a8f753145a33ab20845f52082f9142a2332eb26c949 SHA512 399c118445769321f8282b2b597ffe021747e4b67dd11caa70241c7c325a862920d03ca3c8a61995f3f27595059cd2e3f09ab8a5d56138319c83f0b4b533d334 DIST thunderbird-140.0.1.source.tar.xz 760372872 BLAKE2B d96baa60b3e350bf205c838cb7ae825543a61694bb0337b653a0934fdfcb4386e4a3ad63a2d2effd6affd8dc04f6c194235193b14f6127b6f3e71f714cfb3503 SHA512 fbef1d0228c49fc9c11425b6be03bb7e44e6abc6f2027ee23317270ca2c6b0a935bb41b38667acf014bd9e1166cbe62754f1e919e04f2355dc4c833e015c78b8 +DIST thunderbird-140.1.0esr-af.xpi 316236 BLAKE2B 7ad50cb52648788b1ae9873bd2327b90647892c9b389eeca577ecb2243698fc6b1d7e29609d17f2d55a0ce75919ac48595c6bef50ec4fa3a87a46801755ebc99 SHA512 90fb71ba88211d2e6dc04f966cc87f4072622c264d6794ae1b04ee1ff7131709e9497d084dd7bd80991c52f20aef2c86badbb21504d6a6c4bdea76aec1361b09 +DIST thunderbird-140.1.0esr-ar.xpi 434822 BLAKE2B 647bbd17a1415717c2e09ef25dc7017f492588217b5b6f13989ee1ae9f18d9ea5b50fc32bc39ca6fbb2f3fa634428f10db8db239a48d33a603825384becd09cf SHA512 493d43b7892a853ddd5750a8d6fd612f9f2d11311c6a59da4e2ca8ba7c3169eda80505a089c79f37c652ee02a8552cae4e62da08e91bb8436b8f9a569a882f5f +DIST thunderbird-140.1.0esr-ast.xpi 340614 BLAKE2B fc0f55646057627cfcde96170faa68f8fddd5ce0680ce5e957fbd6a61451d1a9d5e46a761ba73fff4d4c9d80c08394856c85d964a779ae8fa7a9b6b3ac9d6756 SHA512 995afcdbf6b3c9a114dd401dc51ebc1d60c4b67284c895151ed77358d3426b27f8a7009e44d8452ffc41ae9ff422d4620bb665af9548292b375cec8ac6c1624f +DIST thunderbird-140.1.0esr-be.xpi 520621 BLAKE2B 988b9bced2beeedbd3009bafd8ed1b1c7fd821319bb0e002e2d55297222cc06af1087cac8bb0de243b51c35886ff3362f4fb09da08cc62bcb5faaea48fbfe3ed SHA512 51e9340c65cfeae05da0cd0a5817831e4247d7e30e2b4d7cf726d4caad079464e09a00ae73d477b2be545b3df51239991e359b609f0a77001fa540e9623fd0f9 +DIST thunderbird-140.1.0esr-bg.xpi 533984 BLAKE2B 86d6e8dfdeabddc8c425db35bfd5c0d468fb004e9b2cef478f56c8b390f63f1c3daf437de25272548dadfa24ec5b934de6462ce9698e77441d5dadf2e0eced44 SHA512 935c3761ed00e258a6f1c2e2305057fe23c6a70468a5b7be1b6b5f4d2196142e34fc5bd4f94069650c495e28095a37292aafe612cb7385141a013a9ab808e33c +DIST thunderbird-140.1.0esr-br.xpi 402536 BLAKE2B c7ae182c814b21128931f039dac59a1d51195258d3c5feaeba17cf6f4b6003b87f837bdf4fb8e85568b32fc79218c26283194c31732491d1321742e21bf0a6c2 SHA512 59a284b993c6b6eecf67e4a6f4f4e3bb9b5e7cafb267a395f04b91c96143d2f6002f1a50eeb970e446bdddd452da114f3e2a30ee0ace47f4192146b20ea4845c +DIST thunderbird-140.1.0esr-ca.xpi 440342 BLAKE2B be97c9c8d03986e8ac6bc38364033cd4a337eb23a73ca7c919d90b96559a64e0c8bfe4305f239277066886e72f718a967fbc771469054b9e5574d1e2cb908b1d SHA512 397828112adafe53872440749fcc1baaadb4fb914db1485daf764b77985f734c1fd4c91755b5da55a0319c7006507595287940120fadc87f70161c8ce7d466af +DIST thunderbird-140.1.0esr-cak.xpi 418051 BLAKE2B 18c02e76d97a9fa5206c8085be4947a1e16165dfb164a4c021f129800b3519980dbe6fe1670adb462545c1eeb4bd41c03fab90804602c6b78f5fe58b961a576c SHA512 74f81eca9c731d8693e8a668e01dd05ea5148c017a1b22dda7c6db19ef99f1b55d753c8f4e95e98b5633e9c69fc47c0525c625b6526aee5f02be86102f1b2f4c +DIST thunderbird-140.1.0esr-cs.xpi 519342 BLAKE2B b50a69c0e2953da479e33bac46547dc497e63b56f05600191375f97f7d227f433e0d1a29b0f2d0c03c0cf9a37931354bd719da08c5188d0b24d690a48181141d SHA512 fd8271d12859a2aaef0953b1971116d319f4c8525e45c9a4622788490ef90653dc5ddad7f9a57403311af3621143e882ce5f8434b027be2c98454097b318f889 +DIST thunderbird-140.1.0esr-cy.xpi 487612 BLAKE2B f70256d0a82dcb83bd44116be6560512d7cdf04ecb64e057f219341625260e54801178c12fdae3cf42e8b19afc8bd2e974a3dc58bd345fa12fd3eded1815a03b SHA512 e5ed72903c1db50f2037068a31f8e4e10c8ed204c89a0a6db133929233d2bd276f5260c662cc2795a20f664d26bf218e72f5e781a370c4b2a81e3833579fcf16 +DIST thunderbird-140.1.0esr-da.xpi 476631 BLAKE2B 54ef90d15972dc892aacfa1ed760087fcbf39cfb53b5cc81d6fee3936a4344c6a4deb146f1343296260f4c4fa38d44478ecbb05d5e46fb74b39334e845255021 SHA512 4adfce40be012d29586fe0e8ec3793d7520a723ca38acb1936e47b5a364b47ceff4e7bc6e6dfcbd70d03acb1a5150a34dd6b573b9871d39710bc2a08df700770 +DIST thunderbird-140.1.0esr-de.xpi 505019 BLAKE2B e9d6c9a23836c1e6ea87d2f5f90121d1a28623361d46c8ea4a4655d53c0317f3a0517443986f2cd44fbd55e470cee172e1adcaf08f7d06f78a1c5ce94e268b64 SHA512 fe41080bda4136107f165c2a6cc260adefa6dece1f0d8a0bd0bf47e9ae9080ed8cf45f617adaa03f45a23c12d884ae404df8d777ca7d931862b4260f7db0df95 +DIST thunderbird-140.1.0esr-dsb.xpi 517882 BLAKE2B 90a3e375be6f28fcce240ca6ae5b7b3cdcdfe3344978a1c7e2201110b51a1bffea9603cde271ca7e74d9ddf3ba4e34cb4e7000ca7ca0cb072c918da522a2fcbf SHA512 9e54e3252aa0e61fbe3498da6cee1655c18aa3d0e0779a6dd014ae2e083d5601fa3efce54a46608a7043b1335f24ef799e5c896d139e1419c60f9a1a5f87e5ea +DIST thunderbird-140.1.0esr-el.xpi 609143 BLAKE2B 78f958fe26351836050e12f86561be37eb0253532f9d76478a9420768558b28c317c812ff113b94970bf0ae09578883c20c26ed8928d9b5f5594fb502ad7ec80 SHA512 0402d204d0d9147b07a9774ecdf5999206970efe3c58f9198aa65146deeeeb3ca87c75aeec4f49abb4dd6e5fd98afad7ac71d64c36efcb976f1f4c102474bbce +DIST thunderbird-140.1.0esr-en-CA.xpi 449537 BLAKE2B 7f550a2e09bbfdf3e87e9c2c5abeda07ed729b3abe6c35938126b3b8b2b745d2d1335b07644a25a1e36b75a7b72b4936e90b1247dffeda66e93e658e8d320408 SHA512 af66a057977322d97ebaf45cc0f5fa68409c5f7879c44d32b63d318edcd6b077cee6528c4da4ae8da037e7a8926bb5b88a17fe070fba43c140bc61d954ed388c +DIST thunderbird-140.1.0esr-en-GB.xpi 452039 BLAKE2B 1fea2bbb43e616549971e004c3336f8775d258bc8d2d38d03df41961c4d492853e8ce46d6e2f205239388f5d2ae9e604d6736e6c646e9133d38a4b8cdad4886b SHA512 2ff6caeb9a31f4ab0e937a4671955d9b8ceda279c4cd8164264ea02f3da73a6e800fe1c9e181977c7b2542e2fc4bd3223e2f9610f0887d5a399a4f1796e97105 +DIST thunderbird-140.1.0esr-es-AR.xpi 495266 BLAKE2B 43fde52f68ec2dffc6a2ce917f2adfbef67a5e1610c9a18f438e9ffa4d08db213dce013e464fc8c99fbf1bd4d454df7f73cbb80431683126bead4be2e6498025 SHA512 5b853883d749ae0b45f0d202af1aa4e7e272122c242ae3e3f1ffad5c8706878f46a7f2b6fb074320584386ed872f901a0677c489f542d7a12579d9bab550b563 +DIST thunderbird-140.1.0esr-es-ES.xpi 497245 BLAKE2B efad52309d277fa74759c3256dbac7f10dee427f36ccdc573c6213c4266efc4d8ab7517a4ebe183339426989fe0104e57d9a312de57002be94db50cdc320f6b3 SHA512 5667979d35e9c46f8c18681333f0b60fe3a536cd3bfb009f509e0dbf0122e7c3f92dd836341448794ae552bc537d8ee9e54f7f291a905c7cbdded6b9aae6b2ff +DIST thunderbird-140.1.0esr-es-MX.xpi 488218 BLAKE2B 2d02bc92dc2908042a48f53aff32dac5a4741f8c289738299e0726c9b6e93bb50972dd5cb1affd37400515b0b066ad8b17be685dfd8b4b51e899d5f0b3348f5b SHA512 0644a1ffa714724081f3a7908974135659c384cd10393e5aa20969b61d333d040fa26b00c56465e7e8d38f61862e407d9c129b088bd297b00cdd92634d33eb97 +DIST thunderbird-140.1.0esr-et.xpi 443622 BLAKE2B 42980b298bd5c761e894ae346f4012fd5f5797444ebe1ecd93624c57c8fc1f889808235abcc4b4aae30a78b7c6a88b5a95d2c3942720003db57bdde5cceb3488 SHA512 cc814c1002cd1dc153f132e8c8b43adddb85b6c794665c9f7ed538acc77dff647336974fd133d07fe6c315beebd64574394bf6a7cdf1fbb3225fa4da7b8cd263 +DIST thunderbird-140.1.0esr-eu.xpi 471079 BLAKE2B e050d97423c35ec8e25230d70b077ff9f527a6daf58b77797e925aa49a0cdb0086e5d19d0406757d02e2692278a53decc2a8d720efbd825a7012d521ff408b13 SHA512 0d90d354d726e2f52c1d1cb6ca86a5e6814ebb885f952ab352a4702f88c2c80925974a168b830d6daa30a737db1c2325e8eba226cd889b032b5194187e71bf89 +DIST thunderbird-140.1.0esr-fi.xpi 473772 BLAKE2B e8c72416cdddb99c3e595ad1016546ad947d938c37229a8d805cfe89fc5d15f8a066ed40b997d2798e1751f2d7ecaebaf784d48f259154d7b5c4e59784e6ed03 SHA512 f0d8f9f51b2ec47905abf19d42fb01aa2b3fd33f1f6ab532a4f5de920cccee486309a547be4812e45578a7c9251cd1823fbd7352b8b4eddbbd925bd86af7ed73 +DIST thunderbird-140.1.0esr-fr.xpi 508170 BLAKE2B 625d3e8389d27f4d8474ebe090da9dd29e5b59f53ac248b5d243efba38c4a50f0dd518d8a35eab6f25f6a8b229822bf1a9b4162fe4beca77a0a99c949fe02b81 SHA512 b57ddeaf67f69e73cddef94a96e2f8d503b76c9bc86dfab055f4ab74371d7f38818556ee9ac185a5ce2dea4f8076b8ebd86ce39888a69f83729ad17a70d04e5c +DIST thunderbird-140.1.0esr-fy-NL.xpi 490634 BLAKE2B 297056a3de9874d8141e193f34c6ff6094b59a043f2721c89b9afeb6d79e5dbf3e8743183279a7c2d56e4c7d242d43226e9e0f9545482c736e7a9061a3898409 SHA512 19dee98e9d6c7e5c21e2989f42eb85f5594ae57aa9e0da6a02919e032060d254e2e86f67a5f24c4cb43515e919c965e03efa9ce2a695e98f2207a6b58132c8ce +DIST thunderbird-140.1.0esr-ga-IE.xpi 376764 BLAKE2B 0e2023d001520773b750e65b4977576d4eb8f6cf13a38fcb9f333735d3d76d9c3b0c6b54f196e489532afbc4b1e2651d0ad8aca7a91ef92a33e60320f7d73aa6 SHA512 190b0155bf4ac853a4d3b154a16d7f1e4963753550fd8b1d891c89fb6a7bc124a795187bea5e296bb20f280765d41c5bab1cea510532fffbb754fc95a3421748 +DIST thunderbird-140.1.0esr-gd.xpi 461986 BLAKE2B 01b61ce2ecc9c6334c01856e53ecd1ea362e833fa3583ef7d34c2bd788c23dbd4e443465fa2d83ae2ff69c6416bfe057ed753f5fd8849c4cc260b5a82c44c155 SHA512 b530d16edc81cc60b45e98bb68c7e4280abae98670c06c28d511a156d20b0198c0560524a171726aee1a2662c5151eac04d4df2764c5cc7bb35a56dba7b63f0a +DIST thunderbird-140.1.0esr-gl.xpi 470946 BLAKE2B a6c33c20ae1e46cc9f0db5c7041bcfcf60f0482a62ad241c7e0f4d2b76b957f4b44a42534d9e575f47c5a954c62ea7007452aff12fb03e2ee70c5d3666719703 SHA512 417688e7163f41a2253a9910f7a251e9d759fe35175207609784ec94db2c3d2579e2bf3d9621ae8947697c379fb73722f562e0c0ed0c7b1e8de4792c2109e98b +DIST thunderbird-140.1.0esr-he.xpi 441376 BLAKE2B 06cbbbe1f353a8549642ace13a11d2791bbdaa274619769429b22514021e68fc1a78e353e01321ebe9aa321922e8fae07255fc716d1e0e4f1c812ce1bb053a36 SHA512 239df10a96d06feaa325d6adc81642fce883142aa280690a741a621f8b5ccbb5b6e4ebc837ee32a25fb7f4803fa70a565217dadf33fdc164d1ce3ffdad3ec916 +DIST thunderbird-140.1.0esr-hr.xpi 460827 BLAKE2B ef27f29e7b068823bd56741e5a51c8f80d8c3eb80b6ab00c624ab737a90612394214a29962b8907fc7e0760b0fba28d8bdeaf956312a5d8e7fde825f0f3be994 SHA512 575101649766e1bf01df9d0f2275dc8c35f5c2536ae83d4515d817182061fbe525bbad5a88b91f847e2b8a044d9a791a41b20dc75eb0766401619c562bed2680 +DIST thunderbird-140.1.0esr-hsb.xpi 514913 BLAKE2B 7dc11b993063eaa9280988884347638617216475b99b8c25f15730e8e1f4c484908d13e38c2551354c2f6ba9c91bf2771d0067716396fc4809096d860730fc89 SHA512 7e8f818851f80502f55af9c83d1dd89cbfc0616d0bb5a8fb0f9af5c6ba09e8212c56e301fcaa6b37a77b7d60de83631133ceefc1beec3266137dd1eefd7e64fd +DIST thunderbird-140.1.0esr-hu.xpi 517517 BLAKE2B 65fe1f3a4f04517816d6e29947588408b77a3350e3fae12e821c2dd92417290bfb02ac2bf7ab58cd52438b716d0fdc7a5dbb9a7562f50b14483314065fe8f0ea SHA512 5c8ac5233f68deaa2ddc71e805091fe22c62870e510296447a15ba47c2c84fd050ed94a980f14b473c708df9f374cb47d421a0f8a7aecc4a940ef35e6779d2ab +DIST thunderbird-140.1.0esr-id.xpi 463522 BLAKE2B d6aecbe03171548d92d286f8757774febf163d4549091e79dd27d15603a91fa8dbd293dcd66812d7af0b4efde30859d0fe74bb1a2bcd319317046120d866fe35 SHA512 b5f453ce69c02638e583dfe2831b4992c035ac60f2c44e8cf9d29aab7a4e6afba98a929f5ed886d25b8ce02a5c5af1431de7c299bdd51243a47b0b1e6bf2e1d9 +DIST thunderbird-140.1.0esr-is.xpi 481560 BLAKE2B 6deb8673f3f73c1ec48498fa09deb63d0c6b285a420d31ac34a667d9fa4f0d0c5008eaed1e0932e270ea019bc261d065420fb3914fd47690c7c703afaeba86ce SHA512 ce52b17f987f78fb1805a5cb41b55d18cd2acc9f536691aba903b2cff8cdbf9907e10bd76b8794f6c39fe35925bcd61e3c82ea5ecfe6031f5f7fdfdfd01179af +DIST thunderbird-140.1.0esr-it.xpi 488497 BLAKE2B c21370713307b5a8388c79ab68a577aabf5576a031d26614b6ea7d0a7e7ca7b7f501694be62a236191cc8eb149adbacdd8a87e43e44c64c107f3878c8327616c SHA512 56560fcf2869e6fc1d866b4ba6fc2a0f97a85703f6fa04bd5f5e2541f2f2d08226a5e3daeb91a44b0bd4960b7de0259fe7494c713545191d59f3553b73285537 +DIST thunderbird-140.1.0esr-ja.xpi 539321 BLAKE2B 3a40aa06c1b7616233037e151db8bbdc63049f2c1e23e051789b85f5f002e2ae3cd292d0abe455daa49407718f2fdce1139b74dda9eb96e11a4504484da99850 SHA512 d826b419b9653cf5e9a33f6e585f3e78469759015e4c1b813ba8fbf6690d94b98cc0a3adbec4cb514f90d1d5337df51f26879fad72eeb937f1565c41c95d1929 +DIST thunderbird-140.1.0esr-ka.xpi 551107 BLAKE2B 946f7138bdea89577c6ff3b8e792d10d2bd9a17327d7a6dedb8eb3398e9b6f8d3cd941f7ed9422cd031ed948febfbe02b058f15eb14731513f65cc3effe44ef2 SHA512 c61fd0d722900972392389203403fd1736930e2bc692b00ee172eaec9ffa857c601268cbf9e2c31a11bed67dfab64ef9ab1cf4937e32be36065cfe9edd975646 +DIST thunderbird-140.1.0esr-kab.xpi 468638 BLAKE2B d040328bf25c4bb0800166a4ee1cd1be3c47666f0a2b769b5b265560998877c6564ceaee5038787da050945f219d9846aea5f9d87898259327262af78370a271 SHA512 74b3b1af7700b37ea18a666975e37f38a9d31fdd8a558d22db6a7c8995f4ef0b74ca4300dcd2af55f658a35641f70fe43aac65c170ec134ec83c68bbb8f361ab +DIST thunderbird-140.1.0esr-kk.xpi 572523 BLAKE2B 85d99284e19c44dc744848dfd9b7c05c3adfe3f686a41edae88b8832ef0608f7840e7407d1a8f69f59ba1420d1303949fb6da1e275c86467765e78103242c25e SHA512 5286fcccd2619c863e57e72bed0f11133d4de0e67817087d8df7249fbd22758d56f382bf4408ba653aca03ce5defb842f1d5bc2ee2d0e6a94fdeee8dbceb1c01 +DIST thunderbird-140.1.0esr-ko.xpi 514484 BLAKE2B 9fc03c0c48b8fe3fb5106491dcced16302766d2273cfd07993f704085163187bd8331311218b3924e787ca2907eabe085840f45cd581fa87fc03ea5f2674ccb8 SHA512 0c10caa648d5e40b5a7d7552c2bc6909a45e0ea3f1adc9a4574d7ac842ce40185566af2c6af939a545043106f31ab533d69bcb23855f3bf9ac5892c3b791d95e +DIST thunderbird-140.1.0esr-lt.xpi 441891 BLAKE2B c8c0af69d019944f197bb2a56ca77c67b0f4b5ea678ee88dd94dc824d99bf3376acf66241aa6220c6371d9f667d4a60979f128c733c2b9d5f0029021b26f92be SHA512 1a0727808a0bf70c6c290239158ce9d65a9c5ad195798206a527d61b9a780f77b378fc2e1c5a5b9566519b813d2a4ea0cd601c129c29dfccdcc3e5b4489d8320 +DIST thunderbird-140.1.0esr-lv.xpi 391818 BLAKE2B 2a22167ddf76acf0cabd00c388f14d12d59df9227987fb4cf2f29796b0b66d34d6a8bd68cb0e1606007ca73adca9e0e56fedec76fa6f6fc1a96fb4275649012a SHA512 1aed3d140dad001c1d2f99eb7b255aaf2dd8f53a9d98d4543e5a95c148c393815c50fb7b15f5229daa24e11fba98a14eb95b3e3ea18914483c7d61fdbeb58aeb +DIST thunderbird-140.1.0esr-ms.xpi 352190 BLAKE2B be337f3aebe94c47cf6ca64fcaa28745bf2a4e70acaa9d5194349e0d59f6862245c9e221b51435097ac4ae0a748a01c948010beb8efa2863bf1d35fcf5a031c2 SHA512 e898d6dd54131252b3a744241bd06748c3103a3302039d21d0512c0a150cded5a4cca583c0f33bb4752deb6e0a7c67d56bc01d0bbd9d1ba36e6cc67aa6be4755 +DIST thunderbird-140.1.0esr-nb-NO.xpi 445402 BLAKE2B a8825755bc2e554cd70cc848ffaab2f6c6f2e8b807f23e2f196113d76cd28d82cc6a8a84f7835c5e6d9f1bb1feacf719b4db9196c05be7fccfcaad5969278a5e SHA512 fc24add2770047d0e4309ba8c8c4ff2fc2cd31c00768d6589a6aa3262686b27aab3b760e4e499ea874f3c1afbae9a11a0e899f789b1b52884815ce1472a27e3e +DIST thunderbird-140.1.0esr-nl.xpi 482104 BLAKE2B 3a6ea82f69296e0eab043cfdac84d0846912e5cb2036af4633d30ad2482ba215c940e3fef6b49bdb3148501ebfb6ed62be977fe563468d7d4ef3db74b1c399a2 SHA512 2ff8d968e065494ee31eca507ce5a68e32e4fc117896ae337c15dda6d21bd11605c78d5fc3af69749eab5fe8a2dd80bfb901138800efc505095466567147a541 +DIST thunderbird-140.1.0esr-nn-NO.xpi 465582 BLAKE2B 5cc13ff227dfdb125f7a8890cb384d638caf17ea9769e61151bc896e7ab298ee3986a07628cf16607de10db8d62cb88d165a67bd42f45d48fab78231523e6b7d SHA512 5dbffa700d492badda3a5e4f8eabffa2e1826f0fb17865c5d5f74b730097dfe33b3cda857f5c0bd34feba179eb603350a9ea0ec6e0d3a04cc38e9361fe584a29 +DIST thunderbird-140.1.0esr-pa-IN.xpi 433540 BLAKE2B a66e33eb4f3d0364f6f043384bd62e04352299d555fdb4948c52b5d50d12d4a212890daa32d949a83baea20aa75e456a2349d23804caf9c2c2fba305403724f5 SHA512 2921e4a8d3be1141895a87b0862169c7f837b76178f6776bb794e3a7844e9071b253e24fe198c22e7bb6602ad47bbe5c77b049d79b5be0819f7ee6e8f939d2c5 +DIST thunderbird-140.1.0esr-pl.xpi 515002 BLAKE2B 36bad2ec5312081c9142751aec891c209f845dc7aa1641d77f14d7fdad567aada3c96b5caf3cf11ce2c78955fe4ddcfa4c9e4ec7bfba19e7483d2977cbe33701 SHA512 05f02a06d0c0966f8b8adc4f4f1bf1b294a6d5a9a394fa7541a225643dbf492ec5657a298e88d2a413ba66085de420187e57a9ce024b802751fe838c98e9fa8d +DIST thunderbird-140.1.0esr-pt-BR.xpi 489945 BLAKE2B a4c1043729624b629bbcaa54312731698983727a88a6e65f1ff5f90e809379a807a063c08d48a499939ba77d5675db8f05d03d663a9daca8df932b14de5dc97e SHA512 423a9244a8247736e508c31b8890574c6a849c6cd4812333a8afc752fe89a6afefa66de9c09b3229145ef5e72d326ba5d0f3c94659ec9d9d2e87114ca864542e +DIST thunderbird-140.1.0esr-pt-PT.xpi 486378 BLAKE2B a7239141db5b409649dc759aa1ef6699c9fa0aa097abf3c138ba7739d25573e60e80d2c43e4a9007e185cbfea298e6b0b40c089d93a331f9e7cdcc2c80b4c8c6 SHA512 5d6dd83958f46f37c3510c282798bcf349dcdcb17e87da8b7b19d3bba071bb09cb4520fe3e6a59ef622dc711e3b598081f425eb9b4f8f787819c95de50edd717 +DIST thunderbird-140.1.0esr-rm.xpi 487172 BLAKE2B 3951f4ab5ba274cfd6fdfd3ca88525549d82ff1ecde3656febaaf938e461fa30c76d8be0f48471ed911132f6ebe7b9895743471fe36df420360320470e61d230 SHA512 ef6007cc3f7b60de2eb1116a0fb7dfc9ffbaa10018624cc4b758f9b03b5b5735f17f92ba16ab93e1d8b83c3f0cba72d81bc6c550215a969bde6c92f3e8d4b485 +DIST thunderbird-140.1.0esr-ro.xpi 417296 BLAKE2B ad635f56bcadca2312f154ace8c0537d255d89fa58710bdfe81e8a4ec0e2023289fd9ead6711242290698415a1b6e4b76fde3fe3953a2ffe4d6a96d8bfa40ade SHA512 2aad0600ffefb378919e50cfee0f3fc5e75920c4f7b9257e81bd9a963f632bae5271b68651688e327dcf8715b8f4139f01ec3ada992b4bb6ef0fb6b7feb615dc +DIST thunderbird-140.1.0esr-ru.xpi 593141 BLAKE2B 10c9705cdfe1b81ab0cbbf22f3d9b71d98ee5cf93bba7770121c4ae1ae79ecaefed426f1cd70267c4f8e87704b9ce7569c187bab9d75be9805ef354f796eca70 SHA512 852c6e4130c86484b5df03b2948b2550fa864782c4083b02cae18d70b699e8e8b545d72be9ebc5298dac7ae66708f0deab07a74bf3b27139cf083104741430d8 +DIST thunderbird-140.1.0esr-sk.xpi 519210 BLAKE2B fe65e6bb15d51f5484dd8f200a40d901cc97c6a2de162ae132e279eff04aa1da27c9df5bfabfbf28627ced5f3f008ec1c73c9a79b764f529dff994d01bd5dbdc SHA512 1e62b9cd8358946f92281380a95a6e36902bcb03603affadb72150b0f2fb90e979deeee608bf618439f4276541a2855964f39489730d85c2300f287a6b374133 +DIST thunderbird-140.1.0esr-sl.xpi 485772 BLAKE2B c2794b30539ee8f4879e548aa6f0cc3ae46fca7d7bfef95b52d7daa943fc1f78dacd3d03bd8c4beca1c2df444f4fd4273e065b3df66b89b3ec27fb3ee79e55c3 SHA512 5d7bd8e4cf52dc5bb63217b40e9dfafd2b367db5b8f15caae9a295fcf87d60d9845bc2a785827d822adf38089d49486128cafa5638ae69c7bc558c5571b7128b +DIST thunderbird-140.1.0esr-sq.xpi 504102 BLAKE2B 4da47edb1fd7daee5a293016390de332e3a6606371e1c3c4d8d3f458dc24578e69ac5364594b5c14af2fb1794c1ca220d9c45c5d6ffaef057f447de14fa0cefb SHA512 39e1293f222cf3ab58b601eeba63352561157f0a7ca61e2ad6dba6b5bea55f1ea0e16a6386b671c8fdcc2aee58b47b7ba10d8646ed2060aa55a79a19596f9d2d +DIST thunderbird-140.1.0esr-sr.xpi 495667 BLAKE2B 85a5d4f4fdc2f1e3f2ea94bde4378460e2d8996646ad93b10510fc94f96d1a81a3535ef48255c457ad3691024be6b4ea0135037d312178ebd19436c799c95889 SHA512 7b0d96b5c1f4a04643e25f9b7e2904c7ffa70744b79021f5f331804dead6356046099e25e80c211d492465ebeb0a247be78af15ccb89ee67a962fb1cc5018bd9 +DIST thunderbird-140.1.0esr-sv-SE.xpi 484390 BLAKE2B 0589299103c7a7850f30b1449e49d3a6667de060fb63ffca8ef72167d0bb959ef961f611a84b8d65aa457ee962db70ca1ebe1244e71dc8c0be1cf8d3818ffa55 SHA512 bf75bd970379e38065d1fa04a1da518cc87c547cfa4557f15f41f8fa9b51d8fd5160b17c689314b5245f749f051b4b84015180969e9a6c63f46ae684cd7e53d9 +DIST thunderbird-140.1.0esr-th.xpi 564487 BLAKE2B c0f5b50e0e40fad2bb60dd9774033a01532d542986d86fde6bfe898325b465265e3e1efdfcdbfa42b7fe8d8d6772eef66cc32c9093e00424b64ea5452a1c810f SHA512 a349782e2ef37c240a16d2064f3256ee53f6a0746c1dd4087dc3cf3ce16f254b3e0d7e77b242fce82d864efb3c44d0480f2892a26dfb6cc03137f379d74ce734 +DIST thunderbird-140.1.0esr-tr.xpi 494873 BLAKE2B e0f9ced16fd5f40eaeb6aa1237de021af87f934f11ac2c1697aa3268db882364cc41c90995ce050f19464becfd2c4de810968f9a6a8e4c0e7b621992f1a0cf04 SHA512 947defbeafef8e57d12c3630a755ca853cd2c517c2776857b200185e9ac181b166b666d93d5e133c3dcb2be7e767a3b9c5bfdc32e751f9d7cfa75c2396e1d77e +DIST thunderbird-140.1.0esr-uk.xpi 581211 BLAKE2B a8693448aa7b6b4caf70a731e1e3f7f89803d978e1ef91f6c422d95dfae6ea4cc24a741eaf830b7747fec3d311a08fa3b466f95156bf0c9e4651680166bf8482 SHA512 0cb9bde6e90bb6be36859be72b72b6f885dfca06455e74d7ce8bb28cc5484b468723a20de4ade2321fad536c09776b68dcd928139efa52c5d796bd19da218231 +DIST thunderbird-140.1.0esr-uz.xpi 355293 BLAKE2B e958fa6db87e5efe60b69142f555f792d256a699c85bfdb253d50d947a18a0143f4bdbfcce87173d0cc5c261bddd9e3ddeb2e0c8ec8a3d1172994f8b3ec61b23 SHA512 34862a618a6b3adb5a5e16563914b78fb721e8333ae10432483c65bb243a5d61ea5e4c66eece69083a07cc5bc42481de79a61ac8f16e5bf40460d3a8a2da381f +DIST thunderbird-140.1.0esr-vi.xpi 518716 BLAKE2B dbc6913e0a2c575785e461fb73a03bd7fb995038c9a44c60df3180a7e2d72aefd1b2e122c121613825b61b722209171ccd705a1153f2f4c89cc5a261adbccc02 SHA512 16ccc4ccc3729f9aff1f36dafa500d9d60d1fc232c5d79410271251ab29746a330900da9fce31303a8f8d5614a51273e515797e2cb3f206fb4af881e0145d793 +DIST thunderbird-140.1.0esr-zh-CN.xpi 507850 BLAKE2B b7e4d65c7d89bf4c30624fb70922fd9537b73b875a657e67745ec43b2532aeee7c2d03472b11784ac0484badc5ed1d3a5066a489abfb77a57fedfb09ddc936fc SHA512 80a8621726c801adf6eeb00204e41e26547d2bb4f93d709336a0d5d31815a486883a0eea0c28f1075154c6109af13aea84d3d26136511655d1500b84a4011241 +DIST thunderbird-140.1.0esr-zh-TW.xpi 511143 BLAKE2B a8d08a853f9f27bf0218a904b66384f5779d4cff424832406a3ecfb9892ca117644b5599982fea1d0e5a1483a43cd977ddecd7536b36330e7bb5c3a19d328057 SHA512 dd2c49834ec9bc53f6587f315b7a578760bcdd2d974b6798f57b820f6ea00fc8e4d539b27e61b38a2445a90c5a5e12ccb31bb2f47710dd5c2aa29870a384a751 +DIST thunderbird-140.1.0esr.source.tar.xz 754033528 BLAKE2B 32a59ef1056cd931375bd65f812517cde9015839c0f878758a79da7ef89c8ca3647dfd64b48f54682bdceb62e305a8b2ab7c20e007aee8398c94997be367babc SHA512 f12e2dbda3c4558d06f59af25ff7b374d34e241b9c085236d0d0646dc331f62df85dbe2aa8ae5ff356fa5d0e4b4d73415a10e0e6f5c5ee8bd58305a43aa44c06 DIST thunderbird-141.0-af.xpi 316528 BLAKE2B cf495fff6dce79f769348a1c403e8cc754320b7cbf73b1d06318da0db8de0f0ad533a6bb4b1f6e1bc7887d68cb05048af96064aea0ced8266cdfd92035d417ce SHA512 9bf54ff65f9f607bfb44cb94cae11cdbb14fd2ee49bd1eebf4d0a8f4777085004f5e8e00e5719c514b09817c801dd3357138a2882a79e6c19626e818d9818fed DIST thunderbird-141.0-ar.xpi 435929 BLAKE2B e68e34ba41dd78183e0f1fe53b5bac475acdde75369a99e2cb86e5b13128f6b60a14d148bad1864ba2bf7b1c12df246a168601fe870694eb88d6ee004aa80ffa SHA512 088d6d7868f60a77fda04c4bc39fa63fb1cb8a93e99a232ce2d0cf2e791e08f5f8dbf383095b848fb5ccb431c33aeeb8348b27fb647becf065d901f5f4a6fa4f DIST thunderbird-141.0-ast.xpi 340911 BLAKE2B 96066df0a7b63f30cd39c7b6e125b99f6d615a62e5353ecb51f1385cee45b20daae1d3269169fa33ed5c54c678a813454a1e35f24234960758495e1bdfda399f SHA512 bc48e9667d3c6becb2913bcd4d8204e9b9d4f902935d09fe859bc9d245be579dfc691786c5b6c061d25910d19604b4d63fd61bb0d833f9dfa1979ef4e4413b84 diff --git a/mail-client/thunderbird/thunderbird-140.1.0.ebuild b/mail-client/thunderbird/thunderbird-140.1.0.ebuild new file mode 100644 index 000000000000..023a027b96a0 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-140.1.0.ebuild @@ -0,0 +1,1156 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-140esr-patches-01.tar.xz" +FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz" + +LLVM_COMPAT=( 19 20 ) + +PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.82.0" +RUST_NEEDS_LLVM=1 + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +MOZ_ESR=yes + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info llvm-r1 \ + multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]} + loong? ( + https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET} + )" +S="${WORKDIR}/${PN}-${PV%_*}" + +if [[ -n ${MOZ_ESR} ]] ; then + SLOT="0/esr" +else + SLOT="0/stable" +fi + +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86" + +IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio selinux sndio" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-pipewire system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + clang? ( + llvm-core/lld:${LLVM_SLOT} + pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.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="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.113 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-apps/dbus + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/libdrm + x11-libs/pango + x11-libs/pixman + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-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] + ) + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +llvm_check_deps() { + if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then + einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then + einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + if use pgo ; then + if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + + # Get LTO from environment; export after this phase for use in src_configure (etc) + use_lto=no + + if [[ ${MERGE_TYPE} != binary ]] ; then + + if tc-is-lto; then + use_lto=yes + # LTO is handled via configure + filter-lto + fi + + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + if [[ ${use_lto} = yes ]] ; then + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-flags -Werror=lto-type-mismatch -Werror=odr + fi + + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif [[ ${use_lto} == "yes" ]] ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_setup + llvm-r1_pkg_setup + rust_pkg_setup + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # Clear tons of conditions, since PGO is hardware-dependant. + addpredict /dev + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi + + export use_lto +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if [[ ${use_lto} == "yes" ]]; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#915651 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 + + # 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 + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-dbus \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-packed-relative-relocs \ + --enable-release \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-ffi \ + --with-system-gbm \ + --with-system-libdrm \ + --with-system-nspr \ + --with-system-nss \ + --with-system-pixman \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --enable-update-channel=${update_channel} + + # Whitelist to allow unkeyworded arches to build with "--disable-rust-simd" by default. + if use amd64 || use arm64 || use loong ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use loong || use ppc64 || use riscv ; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # riscv-related options, bgo#947337, bgo#947338 + if use riscv ; then + mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + mozconfig_add_options_ac 'Disable webrtc for RISC-V' --disable-webrtc + fi + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-pipewire + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + if [[ ${use_lto} == "yes" ]] ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + # mold expects the -flto line from *FLAGS configuration, bgo#923119 + append-ldflags "-flto=thin" + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from llvm-core/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if [[ -n ${MOZ_ESR} ]] ; then + local desktop_filename="${PN}-esr.desktop" + else + local desktop_filename="${PN}.desktop" + fi + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_postinst() { + xdg_pkg_postinst + + if ver_replacing -lt 136.0 ; then + elog "In this version of Thunderbird, upstream introduced an in-app notification" + elog "system. Setting pref 'mail.inappnotifications.enabled' to false and nullifying" + elog "'mail.inappnotifications.url' may help you avoid these messages, if you don't" + elog "wish to receive them." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +}
