diff options
author | Joonas Niilola <juippis@gentoo.org> | 2024-09-21 10:59:44 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-09-21 11:04:06 +0300 |
commit | 86cca0f37387861060594fb01eb7285f086e8178 (patch) | |
tree | 00b90f76ba077e6b43ed0149fab8186a614de637 | |
parent | x11-plugins/e16-epplets: fix variable order (diff) | |
download | gentoo-86cca0f37387861060594fb01eb7285f086e8178.tar.gz gentoo-86cca0f37387861060594fb01eb7285f086e8178.tar.bz2 gentoo-86cca0f37387861060594fb01eb7285f086e8178.zip |
mail-client/thunderbird: add 128.2.3
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-128.2.3.ebuild | 1192 |
2 files changed, 1257 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 5a2121fc146f..af48666aedd5 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -195,3 +195,68 @@ DIST thunderbird-128.2.2-vi.xpi 787028 BLAKE2B c9fb95cbd3055b58f38d8e166eb64899a DIST thunderbird-128.2.2-zh-CN.xpi 785327 BLAKE2B 095094bc0b01974406837e776d263b96c85699123f7c5bb6cd9126e5da03c5320eaafac24344205b49a463a8b1729121f73882734aedd723ad43178ba24f0bf8 SHA512 345bba000b277941423af0f3f47763208a565a408c99a6a8ff5619d3d5a91a8c5c18d867d667f6ecdc2f56dad4007ccd2f75cff113bb7eb294f3ee2d9b8d1def DIST thunderbird-128.2.2-zh-TW.xpi 789780 BLAKE2B 1e1d95617c86fbcc00804dd18dcad0cc1b876ba09a2162696d14075e4814810aadc24e2124b25df935f380171a6dd1a95ec679b28ea509aeeb27d99b3a1e5950 SHA512 0b650d6c00a0dc05119e20b4d072124c98e70f70a7b98f05644e344fe952b8992d9aa5ea0f320e0f13c3c80e07e8a23f3160e4443510c139ebeedf2eb7778d1f DIST thunderbird-128.2.2esr.source.tar.xz 676994144 BLAKE2B e3eec7d15b4d855376ef1aa9ae2de490134a156f8ca817fbb88d6a942a567692656235ed3bf3cd11e6846b033a4ae56cdfaacde8365ac1d1facb2f41f4abf30b SHA512 6300f3f6d3a907e849a6acf06101d7441680a4eab965955887ac829886d4f2152e49a0ca97255e3cd9de579fea9ff5c03f75c70a361116a66c735face885ab89 +DIST thunderbird-128.2.3-af.xpi 530348 BLAKE2B 0cce80e2872b19315d3c91e3770737864e11baea97ff91d98923f82a6ca24563227a013d27454fdccf87ecb74a11804ed67dcc4c33093536c57a15e10254c2e8 SHA512 32799387dd5976f2765bdde160f4a63e0943970605afa697f0cc33929a99d8fe26f049dd03743e5ea051c1fe817d9530b83041ed124b8fad01087860f7675861 +DIST thunderbird-128.2.3-ar.xpi 679865 BLAKE2B 875056b81818289195e905bc1054a0d95aeb6968c8a783c851ea4c510d026cfe19bed962b4d4e98f174b5417e0bd97a2ae0160c429277820146998a39d5fbe2c SHA512 c06229ec5ba3517a11f63a74060ef539a40df1eb69966c473cbc8c02e090524b4cf04b1f65f5815680a90745d2f287f8d8b7f2b7412305700abf8203ffb96711 +DIST thunderbird-128.2.3-ast.xpi 561054 BLAKE2B 8b0ab0bb93ca93c14707371454a24d108d9e6cf0d9b6814ea4915a4cb37fdb42d159c3f8500d5cdda92e3ecd7a342fe8f1963398359209a538d438b655cbf5d4 SHA512 06b3821672e5e3266008ef1b0006eab3adb485824902b1819e5ab7b9934a81ddc0b98be0be81ed0502bc6eb2aa0415e36b1dd1632f9f91c988678ea5680ceb99 +DIST thunderbird-128.2.3-be.xpi 755101 BLAKE2B 8809c9c42e164f92acfcec3ce377df19c1c2263ac833ec6ddb42de61f8d8504c9af76b0e66f118d1e1922e51fb27ffbfee0b9a8a98086105f48ea30dc7f0934d SHA512 121dfbdfa4dd1e882b31e19be5061ab6ee9540ead08105f7fe19d8d96e079f6125b5d607083dba7b0394acc7eb5d94adf06dfb46ccecc9d362180fe6e221b243 +DIST thunderbird-128.2.3-bg.xpi 807860 BLAKE2B 15559cd9b6868c550c8e42204bbaa1a0c094e6aeb23fdb238c31888842831f48df24a350b4854cb766634bca5b06fdb09f8ceaf3f967740e9e3c4b6d08bf92c0 SHA512 2f14b9942a2b274eaada910db4ea2bb077c89839a2353f535cded5d6e9931a36504dfbbe5a9b176987de053a9a6b7d14163cdafaa77c372de2b9a2003770cd49 +DIST thunderbird-128.2.3-br.xpi 652475 BLAKE2B 291ed76a94ece1359883e9417a7cfad32960de514248f480526b1daca024270f45b45b981bbf2802ca18534e8d74e183b176274b93405dcb669cbc7d01057d06 SHA512 fd7864aa685c8e0528e28f11ddcc475f497a1761487f57a3e2818e385a93cce5f094cef3a87f986efc747f9c06ca6edc15d4e9722f9bab5702f51161de19395f +DIST thunderbird-128.2.3-ca.xpi 708966 BLAKE2B e0fcdb44beb729bc9e5cb58eec484ee456fdc58ed90696eb9510883a3b3e9423b1487b0147bc5eee880d5a08df17024923be9be0dea50558ff9a529cae5ad361 SHA512 f67349ddb4a11047ec4cc9ff81b86a9e62c0360231537deddef05b699722eda1b4a1babeb1dd302234118d86ade7321665fbb554a4d47dca4cac3c180279b7e1 +DIST thunderbird-128.2.3-cak.xpi 671704 BLAKE2B d1673e684c46aeba61717e4aa7c0d3777475e3b868d373ef791cd77463393625e6bbe4b7508db8cda599467a8c5d8a3378497bd40f496ab02da779141221a201 SHA512 810463d933fe2c2f842edf8600142730bb7e62b4d7787d2ec94b0cb958b9a5a99e9a4fb5c5857581e1dec61fffb6ab15cd667b5ee4a11c04ae4d3118d3f8cd80 +DIST thunderbird-128.2.3-cs.xpi 785043 BLAKE2B cc71c1fd367a1ce1196c1b247e5ea322a6a39420bbd5eb6158f1e11b0b8128294922401600b8a15a5f72033f74e9a7474e79b6c92d5c374e4901d54618ec2a9a SHA512 f2bee313f571c0dadc42002d14ae44c87da4b85dfa224c236e3a452916a8696daca3833f6e1c0749be9f47b4c0e30c8bea4de9a3a8610c9278c81f8c4938fabd +DIST thunderbird-128.2.3-cy.xpi 749049 BLAKE2B 44218fe51318541ef939a9a039a683dfac584793da2967342888b9a55eb6a8e40bb07c97b8dc98b7c6b2ae778e70111d89384af0b47d33d59db7ee4fb4858e45 SHA512 07260b39f0743b2959cdbac5ed2204089a75131374e664f58af9adcbbe0cd20e542ea606e5e1857674fd2a34f8408dfb9e7ecda02d2c3b75965ebabea200e9c9 +DIST thunderbird-128.2.3-da.xpi 734114 BLAKE2B 023d89566e4489c9fe58888ce5210bccc98259066ef9efab69976d56921d1276e4731f23fe9e743a4fe74a74567a6ff5d34c280ff2e2891741fc5ebccc04fa92 SHA512 9ed710942242a17004ca67ea47b3f888ea5bc01b191d53b0e973ea45a3483f9a9d84172dc7bb8d219017918d9639d892b3311dbb2461b0d5ece3fa2634f40427 +DIST thunderbird-128.2.3-de.xpi 766249 BLAKE2B d5425b53e84f1d59d7640bd819aff84663568a526917a86e11eaf348e46bf9e3f1f29a6d0826591388137a72f762fee59ae8069b48569dc404004231f304aebf SHA512 5c5ba44a13014f65a304136a38e9ccc376202db274c0d4daeb511beb5ea45b75c8008eef41d28d984fcd295e233c67e4f81cfe51f6ab42eb64788e32c4239673 +DIST thunderbird-128.2.3-dsb.xpi 782741 BLAKE2B fc8270fb2043b605ef1551d8252a85881ba09bc31a48e11ff3c9366abe55bbd607b57db7ee0dbbe6a64b71aee35c0eea0e4076576cfe1cddbc4833f5056fa7bd SHA512 b4a145f85cdba1bbe8d13ed3481c9140d3bdee2bd499080f73ec7a490e0c995596fdb488da65a2048daf687617fbdf5d9ce963560b444a90d498c99ceec3aa06 +DIST thunderbird-128.2.3-el.xpi 889268 BLAKE2B 8d6f1a215e4743c4b7e9fc05e62683672b98fd8176f102413ca13c959160aa17a173ba89a01cc1e2dcc371df621b60f3a84a8e5613e676a2b70a96118f050f9e SHA512 53b75b9c98933284c4e551eb0d0e6cc610c83e416b2537d668976ec594d7ef07c15abaa6b88105090b585ad53ff848462842e0d222db45fc61a66f3658529c0a +DIST thunderbird-128.2.3-en-CA.xpi 702142 BLAKE2B d4a6e3b1102f1e7818eec0ea6aa93c3c86e40270e8b7c8f1b6013a0323c338cad145110227e61f48695edaa6338b6907c2ef49a52a7deca37cd5c80e8925ca70 SHA512 809c007b0b5f2abf9656e021bd226d177dea1c400ae33d5e5a9603a1b1d608302c063e12854b8e9a8bbc0a3dd60bb68f9796a6761c5f7fb41a65ddb374e892fb +DIST thunderbird-128.2.3-en-GB.xpi 702699 BLAKE2B 76b47c8660e04f14e59e4c103226051afde9a8883d899b85700bae525b1109b599451fc9d262363006b05de97abb39141d54b897af6789f9aec3cb4094d0bb8c SHA512 884764e2e957d434ae7908b0d98eb7807114fd0fb38f9a6ab88aab848e06369e57e30d4403a70d054bf0b637754b6191d3cfdf42de30317f61822cf638bddd7a +DIST thunderbird-128.2.3-es-AR.xpi 758350 BLAKE2B b81ac10875c17c4d64e5f0a734c41a4a67a60f70ad9eb95b747c033ee5025a72b3336efc78417c79c2334169e5ceb2c6ef744399d5e87658415f8c15a1f590fc SHA512 dd21bbffbbbd4e342eb5474d83ae0ed1c6d7a0b85b54f3dca3c6929d96f2bce408a4b7db19b093a8c0946b5c636ab0514399f6bbc2525929eb1af1d6c50c36f9 +DIST thunderbird-128.2.3-es-ES.xpi 723515 BLAKE2B 328bb470f5f4089d1bdde4c67b0de8bf7eadde658b24550f04dbff35d1becae4705795e0940543e768073fe7d032be9ecf6d42a99f1c089682bca5ff15f8c3aa SHA512 236353230d32caeafac611cdc977a0f51d8dd354a458e741827fa9057238699780485ea42de8665970159f38ccf978e46a33b8213003675e81a21c25718e341b +DIST thunderbird-128.2.3-es-MX.xpi 737706 BLAKE2B d1dc9f1e72837d8249c3034194c08c6a13663ac2277b38a04151feb5d9b1e1b98ea8e53f57dc84feee1416403bbc50f9848fe29e75417d2df9bff1b93b6b0f6c SHA512 f56b1e441cca2cf544374ea64a7d642e6be0f5fb18fa696ee15ecac2dfd015e95fcea87c446bc619b6cac129eab777ce5b844ee535bc5541a2be6368c8fffa14 +DIST thunderbird-128.2.3-et.xpi 696278 BLAKE2B a221cd844a2e1ab4f38fe868985bb15685c335b8d8bd9c3082c5c212b8ecf2db75898431898165113bd3752eeb91985e98896f23755aff6fddb67b097f3d95df SHA512 3485be28ba289f811a1cafc64c4e4b2208110eac115df5cbd4a4e2ac5ec33c0b29f050c0805759f07b0098f282feef1387b1adee9a6ae1e6b3727d929ab982c4 +DIST thunderbird-128.2.3-eu.xpi 726801 BLAKE2B 7d1e52d02c85114ddaeeea23116b5a1ebe54e492b5736725f23bd4079b9c14480b90e39a7c9a4835380d17e13d773c637332972e34cefaecdbfe1bf4acf403be SHA512 b5b306270445429fb071c139a1e144e2d9379e425568787f0f878f4412d8124b2638f4499e161b3f7fe70a6f8f01b87c721d06f92795c1dc9d90d2431e452978 +DIST thunderbird-128.2.3-fi.xpi 733650 BLAKE2B f2cd5cf44043e00af1b99cf4b123d950f26580bf71245a7dcef721425822fda7a22bf2485984859d04df2fa7d9c8c8a61734a554918d249f9c5abf2def299ec7 SHA512 52f9fde6f297e31892bc6ded2c97e104082c3569e68cd71a3b668477875fe896953f8f5eb175825904003b663dce5cec7b27df1ed3f61e911f7a82ceeb5a07bf +DIST thunderbird-128.2.3-fr.xpi 770185 BLAKE2B fba3d2943e16bba6625b63808e1c047d26ab51ddb4442d7ab0f6f3eca5ce777aa5fb586d0584c8b99bb3255e51042aecaeaf5dc626ed5a84061d3bf0e472b6c5 SHA512 13aa3a0814f38cd3fd018882e61a769de65b237f0bbe6e506464922363318ceadf4bafacfcfe2c4880dc5fbc77eed82b2cb621e96da086100cd201bbafdb0bd5 +DIST thunderbird-128.2.3-fy-NL.xpi 752849 BLAKE2B ae11cf74df19d5fa8b7fe377531c208695eac8b90f888e316df130db2bdcad1d3b7756f04375006be5d49419d7da3559fe7c32890976e3715fbfabe0d961a0fd SHA512 ad29a5ee2a29f80c7cf4a2bbed47544846261849ad14c36a375e40794208c4c28f9ec863d8a18f45fa3377b085aa7f6a58f26d6f333d981398b0c3f3aea9dfd2 +DIST thunderbird-128.2.3-ga-IE.xpi 615198 BLAKE2B d1688832bc527c0dcde92fb86b2c71be69e95dc0ae6c5cdc13806d9caea46581a739cbd392ba965b321ec4b4c1070b04ffb75135815b81198a13366248fd6778 SHA512 395b56b68af0e9b248cf5b3d1c12f17ca912dcc74456035906a3cc3a832648ebf3ab71978817118fff132c436782ab5128c8b87c92d5a625c7be2d86448d8441 +DIST thunderbird-128.2.3-gd.xpi 727803 BLAKE2B a1fc7f1a4495867b935ca04b7988a2970f0337851be66671cffd6b67b16866270181fa014f412273076220ae6bd5beb5a720dca35bae8000c09e971890dec43d SHA512 5621a60df17c1f115facfc14864ab3bb2e19501c3f1fc268faa40f085dba83cace61cbfe3fbd411954a4aa0bc517758a4addda49111718ae9ec4f2ba76d0b54c +DIST thunderbird-128.2.3-gl.xpi 736572 BLAKE2B 96d7b9c43e37750327bb36e3fac3a4e31ff8a245ba58cb0c588a89e2bdf0587c1efe575ca02f15ac318a86d82c5a5e7ba73cb79a9fed40058db3386dd03bf655 SHA512 25722ad053e6a4ef0ef42386587c103619c43eafeb77b9761834fd7c3a2defeeda78da47f39ae972ca89184eb11c410938600f1ec69d068fdbbf1c38ecf4441c +DIST thunderbird-128.2.3-he.xpi 700301 BLAKE2B 036b9333c04f905317fa53fae42d49e67cd56882021213e35c202ed0f44467925076b6d476eef7364fa5ad73b9aabe215f59491dd37b1ae3ce0e128eb6f6f9af SHA512 c72bdfd9d007b6d6f6f9f6a868593b589260dbd98ba0053e9abd0adf0beb4e8aa154f7eaad75d020e0cb870f5e9c0016b7e3cebb85245e22b8c84bb712dbdb94 +DIST thunderbird-128.2.3-hr.xpi 715018 BLAKE2B 0bf73c79e4dc9321a5d75d39a83006ea0328f9661c308482a43c7aac3bf204321d17212ab0c7c659ba529ce469f13559eca7e8c7e7d90716ee02dbde38214594 SHA512 4d6cfe8dfe2412cd644ebbf5837878ca3caf87be0d07f4443abf4fce5f8d20687f1a2eed69430b3da59d16b9f9ccf2677708dd69910ecb2ed082996a97da1e03 +DIST thunderbird-128.2.3-hsb.xpi 780137 BLAKE2B 7b83862d1b6816f31c6b6c2fb2c8a78ed5507f46706d4b20c82b222946bba8d54c065bcb5ea26ea0375f17cdec05b4476323c19b550d11af638b05ffeb456670 SHA512 d04171abdb3474dc30f520e5c5d6aa4bbe39f749f6d3447b3bfa65a9c97c2cf92742a85049844f65fb6979b92fb429ec6be75c8033fe2907e8b6307fce039b2c +DIST thunderbird-128.2.3-hu.xpi 782932 BLAKE2B ec05be9d6d54f4228780dcb566432ade115447bd9ded560b536ea44513ff889b2ba300b076eaa144e5ba03523d4f367654191e60a5ed7c823c7abe0eb97e6dc3 SHA512 83522b6f181b701929c26a804f4e83025156a553181daab0cf7b7cd504c7618bba77a80360221719f96f0839d2ef6085bd6767e6c67fd04b93f0d66341eee741 +DIST thunderbird-128.2.3-id.xpi 666011 BLAKE2B d9c26766f3183b1cb345307b10bbf8907c4b7117ed1f8dcc09d0629be8285acd10799e8b0a142487280f1161a1e85807e7ae460e45363a2e9f6e126fd8644479 SHA512 5753e509fe4c62e84f9da28bf39cb34b088bd512cbd7716050b1a236367b4347fc1a7b4bec79ce69a9b1669a798a0f99fb1b98fb4cc552fde5bf82d64379c13a +DIST thunderbird-128.2.3-is.xpi 743886 BLAKE2B 1801650fd8833ce1b771cdecef891475b694a6d0dfcf82107da3e761cce459e7955d54912875c2917b212ff0379d58fa693f0ab1bcc22e17559add9356b3b266 SHA512 1648151bdff1910aa931890b0fda724d92fe83e2b0b2fae06c4cc6e483d0b4909139af053b1489b8538e284ad2f3e0c2526a1d009ff4aa430d6878e9e7ffff93 +DIST thunderbird-128.2.3-it.xpi 690395 BLAKE2B e5f00cde104ae2104c833aed244a7dc0df4b42b0d96174f8cfc92ef9f1e360fc7591ec53879396225003c1322c0eeaf2ecb36acbef3120b5a85c28fa77b1fe96 SHA512 970f5f4b23992d98431ede90fbc15e2163a26c3559d251a4a834653bfde6a61a48450a79304343261ffbf7326b47d5ec43aafa14682732d369f96ab02f27d32a +DIST thunderbird-128.2.3-ja.xpi 819904 BLAKE2B 4c01201320dd464919dc24c2f9b5b9ca3d29df6692e89ea2ee908a1d5ab6355edf34281a6dfe8cc993783c0b7fae4dfebe13e2655524dbe2a048f2eabcef2e0a SHA512 c7e16a74ab4a7075dab9fcd6d5eca97bcc5f4615a14ea54b393b27beb29ae2a9f3a196b653d77beb1053a80b8730f6f9b029d56e675626c98e858e15ede6b792 +DIST thunderbird-128.2.3-ka.xpi 796047 BLAKE2B 1e92b26f7d35bf7c1009913f1189613dd217c017612a8fa3eb17fde3574120982d84b6db63f15731d98609caaef40c58231a4240f42bebcf5cb61c17795ffd86 SHA512 3b496548a99ce40a7443679f12e5e24db5fa8616d1a3f92e138d753355f5b0deb452811c2e1374893af79b15e8ddd576fa1e86f04a6c27cbd50fe4d178d387f9 +DIST thunderbird-128.2.3-kab.xpi 731858 BLAKE2B 3014788c8786b13c38f054b0ace3cfcde2a1e6bbb2643d5cb27d375a94d09cd9f8f7aa008d787b383e4a16e02ca006d11c34761ca4f7b5aea163d0163ac3f882 SHA512 a0c823c189c61f2bd9eea059d72bb574ed28c1b25921908c9f91c943903dd0e38c856f1bbc72bfc087c53792a53d08a9c15cc951ef03c0cd2de7daaac630d095 +DIST thunderbird-128.2.3-kk.xpi 857289 BLAKE2B c3fde9f0a523b784c005a1dca755249037035965aeb93231232d1972667bb4e5a6e9ea2bec3e7579eb73e99e9cb03c9d39ec14b230389edaf5e9d3a0b11be2f6 SHA512 85eba822d16425daee7a0a262759bbd67a84b3a9b0964e3b4b5810209f74678ff938b0a803c65e6fdd903ed08d549528a5b352c7d757b91c9f1002e78b7ae835 +DIST thunderbird-128.2.3-ko.xpi 755164 BLAKE2B 32da4298f807b89e32c8f671451a1cfc0d68d2137b384d11f387b1df2127ae27ad002fdc34f411864ce6c036f2716993147b0d9e8bfc98c0daaac88baef2002d SHA512 5a84c696af0d86ecbe2ef7bdd8f00e090b5ec4ea5cfd9dbd12437ca85b58a97ac9df9fd00e0617d45b698337b810cc37715f0b77231121d669e3415dcf5ca487 +DIST thunderbird-128.2.3-lt.xpi 700918 BLAKE2B 782349e2040f2d44122d7dfb7f8432c1b1451273846a28abf3a95eca859e83f141aa7556e08bf1a30d550cd37caec431478bf693f6249ed44109a42fe1ca269b SHA512 b2b011945544684b8feba7337e99d7c9b2f7433b9984891916d9a712816ce72cecf6a5cb066e3ea0a8a506e03de38e0c81b5450af4e56a74e9f190db1f609d5e +DIST thunderbird-128.2.3-lv.xpi 623624 BLAKE2B 9987ba7bddd406896c21b2b6e315adc68462b26ff7f0c07e6ddbc14fd9b8ec41ebb477372b44d0e3bd9e6dec688a0453ace7340d070083bdfd45d2357ae60ed3 SHA512 1ac493ac0fac5db2837b2d0ba7bd5af7b462f6b8a425a62fa4dd1ef459335519c98ad86cd393d0a09581f594b84388423abd8a7814beca0bc74ba28707885640 +DIST thunderbird-128.2.3-ms.xpi 581082 BLAKE2B 0abe87234e5cec44fb7f266c601b015afad41ef281a395144f3b81a6646c5d0e16759117c36df7dc3e2f6f9b9818e973b757ad2fa5115f264aa9418b62b50741 SHA512 2b334336edcd962040f3dd0631bf8cafc975831d4db4a702b024aaa8e1eacd5e804cfef39da342fb52addab6ce46339e0424e51ddec9a5d6c889c3f4f35c7ccf +DIST thunderbird-128.2.3-nb-NO.xpi 703764 BLAKE2B e7acc196caf13a68b95d0bfdd9b4ea0aa65ed90454042c63faa501cb80ded0a0c9d8e27084fd89ef3f620e1c4d4f721a78e27981267b49aafbe227344cf4a7dd SHA512 7bed62a3f549382cf1104a467e947bc0a5fc815785f0c4d34ab674e48a216bd9502b021e42e5111fa9243294a821c137daeb2f0b94bf7d05336c7f7b6f111aae +DIST thunderbird-128.2.3-nl.xpi 744106 BLAKE2B 4ddbb1af6d7e435c131fdd8e48a13ef93322ee2bc59450e1baf3c74022ae3f7230bbc5c2fd5cec882d3074a68c3ad07fc282f9a67460c79fa2b061ae9aa69c62 SHA512 b383c5712dbeda8ca7215a9974759c366cc43df927d6ec9906cca22aca4a0631930c9f83fd01bc86d2ab1727a464d4b110a69e1f9c5df16de2ae722417f887ba +DIST thunderbird-128.2.3-nn-NO.xpi 723768 BLAKE2B a93c63c16aea56eb4c3db82cc735524637ecddcbb726777b8cac804903b770b765be5f56bd4650b8831846b50bdcc2f52cb44b156b703aa6ad749b4cea8b0897 SHA512 cb2fe3637d568c6fa09962f047cd4070a7a5ce217c036f16e39060a25bea8d08f55df708c72daa81d3ae8d15d349d36ba4a07c068bc023c15f8815537593e7d1 +DIST thunderbird-128.2.3-pa-IN.xpi 683075 BLAKE2B c8e5d26bd2e6c54707d3784d6e5ea0a72709020f09beaf79442258309bcf888cd7a628151fab43a2b533db5b69423bc6d93bfc16d34e189990a33cac511a50b9 SHA512 d5f385c2e11f4e42984e635546ecf3c635e7011c1544f85bc1ebc11a064b2c4ba36621c220643721e9b6afe10a9abbbae4c45ab4554a449dcae96e147b32d70a +DIST thunderbird-128.2.3-pl.xpi 762951 BLAKE2B 8336b7c2b3d76ac9eccd6b9bbdb5cfc41a94b50590ad4955c5873ee7c8550a690a198ee2d00347d21d938b076ba76ea3c41c4299ae58d2af70495515ac27d9c5 SHA512 86322abc42d22bc18185b468cc6221f5b09c4f0aa52ac1e372a26557cd29814b57a2f6fa56f6f64835a2a8d5e16394f41dbdc042904f9d2f802d0621bcced03d +DIST thunderbird-128.2.3-pt-BR.xpi 751313 BLAKE2B da9513dd69b3e946e1941add87094cd9a4cc37732866e9a0e803e3037c86066acb8222bcf8470e079fc440c9c81e7a3b81077b41d36e5e435fc4207ca8e63fb4 SHA512 b1e7bcb05dbc30421b3ddf1faa036d8ca459553de980173a371e7820113460096d159c906bc753b0bd34fe41b907e4a18a6f238a87d516db9431bd2efb7db0fa +DIST thunderbird-128.2.3-pt-PT.xpi 746870 BLAKE2B 108737b8be502f88e7b685dd8dc72627e91c7eef0bf35794f5076f3549ec681ec5ff6c07f29e46a91ad3a416e4da0738cc1c7ee55be2fbe8d596bb1115e6317e SHA512 0887d9294ef5010c4e8cd842b2ec03a75d41e5fdf6ea58ca624667b75933f84806c998548e05d574e2dd765e650c6defe52eca136b54ae792e2d406068a18160 +DIST thunderbird-128.2.3-rm.xpi 746778 BLAKE2B 0a96b77402567aa878ec32c3e0f8ab097eedec27c7073ac79bbbbf45ec866b8c6644717a52a236be65f50eccd1e4e6868430e1c6df717f4ac716ad4cfb9b4719 SHA512 28ee3b0fbdc1f6065483e27e7e7a7faee247e9f899d3e3eaee7775d5d9b9495d193fcc740f18b960b3d47948fb8e5116f3ffa81c95f2babfae6dfeb562270dd5 +DIST thunderbird-128.2.3-ro.xpi 669741 BLAKE2B 5b1ee45981743b244670d8a1403b987ee7ee05b35a947b613fe9bf898bb6aab99cad5d4078087fe09a4f8a9534333da32d629820b74a1e4f83bca6ad857936b0 SHA512 00f91287cdcb7ca12a0369ecc4ea091d238f7757716f80cb43fa545466bdd891a65cf8f5b4de840a0c2086e8b8cbeda6908fa57595f387a15ccdc8187212413d +DIST thunderbird-128.2.3-ru.xpi 872245 BLAKE2B 8df13bff59a25707ac66ead0c24ff11b72a318752b6ee03e22bd40a9f5f76f1a8157459c0a8f2ce35f82dc4a259e3c5029372a99c89af25c358367f524118f15 SHA512 ddabb2e2e3a47b6d6c99f3cbdc06ed99f0660029a6dbd5070c155be17fadf7dbbf1bb7342586fac194ce2c694e8b4619f4eb5333f7107fadd23e3db4a84a2973 +DIST thunderbird-128.2.3-sk.xpi 784170 BLAKE2B 8033becfeab21871005c5ad85feef88f50aa94135c8929fba5cfc38d2a704d43a603f684aca66748b1dd400e49897db23f5421dc956a5915bc82411238126ff3 SHA512 3aa13c254e5d0d7bb62e242fa2aeebc5ed8b38dd7f623d1c592708727abb231b703514f621ca15d0519cb449605a07156a1391071e7450ce4ee058df1e69e957 +DIST thunderbird-128.2.3-sl.xpi 743549 BLAKE2B 733ad0aafcee0b028792970530340139ad4aaaf2a6ed994672d698aca464e926e3a24912b0fccef14169a3a6f2707f4a48a7a954b89eae7840046284fb170230 SHA512 ae5fa42f0c61bf1e22a572b9b137a85a0e4e08ec8ee04841e4ee6d98efbf913e319583460216e3e52cec90f9e88ec1e7d6c0a5639c717c950892ae1d86d4a6a8 +DIST thunderbird-128.2.3-sq.xpi 765887 BLAKE2B 6926a806642d2218497939935eea43fc65599a9dfdf8489d41018190766204db09e3123e02bfeeef634759f3c903a4ac315c8a3134bd8b3cc10696d969c8adda SHA512 5c29a91ed1ee4b48bde070e73a1e5972639d6bade766db2325b186ef33bf083a6b596a48775c0f7c492da30598ba3f013746f46d818f3220c62696897ab9df8e +DIST thunderbird-128.2.3-sr.xpi 771005 BLAKE2B 47d54c5dc304c401211d8ab01bbc2a81ff8e0ce08976e96d0bb0248a00f3b52dfc57c03805197780d1ead796769c005c3489d5c2788d8ab145fcf893b0d1327f SHA512 3abe0a6c6e3c467cf7410a4466a1be50fefed5b27229e4eb2b69538e5e2707764e978d7984035fc45503e8df8989bc79f2821774806f7597b13049f5cf3f51e2 +DIST thunderbird-128.2.3-sv-SE.xpi 747521 BLAKE2B 77593daf9500fd057a2c36d13a4a8b0460eaeb5877886cba1b09696c4dd9cfef7a38e2131ef00895ac138339ff88abd727beffad43dd8f1495079312d30ff31d SHA512 d6e2ee6c9cd9c75ec32ca36856da1637ad14d842d625f0424f7b5e3a63f46af2790de9bacb5d87f6e426684271ca8ce99261b4bff12d7cbfae4f977f67b93120 +DIST thunderbird-128.2.3-th.xpi 813954 BLAKE2B f8e0ee98fc952bb39908c8aea8fbefafbc5845a4a0bc9be71aeeaa21a6fe336169ad344dcc602b27056b8e805c01fe05377f781816266ffb6d9fa7d1b4dd0a9d SHA512 a76970e0114c3e11eea7b5c5b662e0e71a8157a1f6f185d63029824700a0afdc281649b82b6fb455dc3e45f97e2af208a20f9df20471491e105cf61d6983ce58 +DIST thunderbird-128.2.3-tr.xpi 758164 BLAKE2B 11db65586e5ae93b8f32aa7feb04ffbecd0569c0a810faa519749c63aa1655371c47b623c90007131242dcd058b34ff2387c91d638a0fa636f8f3b7d174a9118 SHA512 53ced8767e14e3e35ada7beff6a1acf609d64d82b0a3f8049dafa253d7f2af30d464fc4e7f6f69fb55d55fab4d54a507fc22be5dda435f9fc1f5da4b4753a1c3 +DIST thunderbird-128.2.3-uk.xpi 856055 BLAKE2B 47c844953d4d643f67d0f13e18e50e9d47d52ff38f6e1785fd2c76fda1a06d4014ae16a988742c55351ee740ac241bfdd4366f24b043447cf80a562be49e74da SHA512 4640757ade6d6e033a2f920b7dd31654b6d3aa44f6b6ea1e5457916a8814daa2140bb5a37ba003113c27fd3afcadaa54e8220b49e5f37ab39c684005a7f82244 +DIST thunderbird-128.2.3-uz.xpi 592133 BLAKE2B 8ca52413636d339953004fc12ce56905e7fc5b81659930e57cc1e8bbb3c5c4e07f162a7bde1706d3d1702f5df00f63abb2948bb27183362b8adeda86e4d8197a SHA512 74795147371204a1f4a5cbbd34833b38c3b313c43f851e0f163fe99b849a52eedf3f0164f03c859bb624b52344e7b3bf0cb8fd88e5dc607ed4f660799631e110 +DIST thunderbird-128.2.3-vi.xpi 787028 BLAKE2B faa1a4f4c0589ff2f9758cc92facfd11efea8ea4cc026d925877e5730173ad8d5e5da4043db123b403a07589e6bbf2f0ae6a31fad9733ca2b96e3649ccef3d32 SHA512 8e2d93832638cadad63459d3ae56c0fdcd6d4e263183d18868b30e8248b0d967a209e0141726d48e905ad9df6c127a55aebcc90aa89daa3b1e553b95e778d4ec +DIST thunderbird-128.2.3-zh-CN.xpi 785327 BLAKE2B cf429f92fdb233e10bae1331215d0939bca18f866ee2e575feadf6d538a2afe1938c0f148e1a41b72c750c8719335064adafb01c9ef4b3c63800b38ecbe76463 SHA512 5f96714f241516c8f1427a038d7a64ed60f4a4be08b270f2b1b84ccb2655471a78e9bd25af908666e5be79e8c151b7dcfadf41a81b6ea34f9fe49e3767872301 +DIST thunderbird-128.2.3-zh-TW.xpi 789781 BLAKE2B 52e5d1ed734bd3afa3d67eb9d39bb9c048a74610a50c38c11db722adb400d0983000ecd7aa61a3b380f3d229119a4619212a54f8f699b53f0ba4abc40ae709b2 SHA512 1706061452933c5d332353ec096adc296d14e8738c647a7d52048f090bb244f37890abd821e7b7872c1ee138035285c71ac0a220c4d04150aa7ce84026f529b6 +DIST thunderbird-128.2.3esr.source.tar.xz 675213768 BLAKE2B 0d2257a976414d4cb0e2ce5bce76926737add33b50071dab3ad25fad64a69f08e491b9ac7430701555b740db67418133ce0e2995caf7be76094805b35a036b6d SHA512 f852d1fe6b8d41aa2f0fbc0fceae93cccf1e5f88d9c0447f504de775283289b82b246b79a01e8eb26e9c87197fb33138fb18c75ecc3f5f1bcfefa3920a7c7512 diff --git a/mail-client/thunderbird/thunderbird-128.2.3.ebuild b/mail-client/thunderbird/thunderbird-128.2.3.ebuild new file mode 100644 index 000000000000..1599513d8ece --- /dev/null +++ b/mail-client/thunderbird/thunderbird-128.2.3.ebuild @@ -0,0 +1,1192 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-128esr-patches-03.tar.xz" + +LLVM_COMPAT=( 17 18 ) + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info llvm-r1 multiprocessing \ + optfeature pax-utils python-any-r1 toolchain-funcs virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}esr" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}esr-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}esr.source.tar.xz -> ${MOZ_P_DISTFILES}esr.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy lto +openh264 pgo pulseaudio sndio" +IUSE+=" selinux +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent" +IUSE+=" +system-libvpx system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +rust-extensions +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + rust-extensions? ( dbus ) + wayland? ( dbus ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + clang? ( + sys-devel/lld:${LLVM_SLOT} + virtual/rust:0/llvm-${LLVM_SLOT} + pgo? ( sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.26.0 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.76 ) + !elibc_glibc? ( dev-lang/rust ) + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + !X? ( + || ( + gui-wm/tinywl + <gui-libs/wlroots-0.17.3[tinywl(-)] + ) + x11-misc/xkeyboard-config + ) + )" +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.101 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/pango + x11-libs/pixman + dbus? ( sys-apps/dbus ) + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-74.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + ) + wifi? ( + kernel_linux? ( + || ( + net-misc/networkmanager + net-misc/connman[networkmanager] + ) + sys-apps/dbus + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/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 "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm-r1_pkg_setup + + if use clang && use lto && tc-ld-is-lld ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + 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 +} + +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; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + else + die "Unknown musl chost, please post your rustc -vV along with emerge --info on Gentoo's bug #915651" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + # Make ICU respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py || die "Failed sedding multiprocessing.cpu_count" + + # Respect MAKEOPTS all around (maybe some find+sed is better) + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py || + die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py || die "Failed sedding multiprocessing.cpu_count" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-gpsd \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-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 '' --update-channel=${update_channel} + + if ! use x86 ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly + # 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_enable rust-extensions thunderbird-rust + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + # LTO is handled via configure + filter-lto + + if use lto ; 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 + + 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 + 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 + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # Allow elfhack to work in combination with unstripped binaries + # when they would normally be larger than 2GiB. + append-ldflags "-Wl,--compress-debug-sections=zlib" + + # 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 tc-ld-is-mold && use lto; 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 sys-devel/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 desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + 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:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + 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 +} |