From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C4DC1581B9 for ; Thu, 02 Oct 2025 08:07:48 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 70742340F64 for ; Thu, 02 Oct 2025 08:07:48 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 46C301103E2; Thu, 02 Oct 2025 08:07:45 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 3DBDC1103CB for ; Thu, 02 Oct 2025 08:07:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 98F3C340EE5 for ; Thu, 02 Oct 2025 08:07:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C96A11BD for ; Thu, 02 Oct 2025 08:07:43 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1759392343.68dd405071147cc19b3164a42290d1f15981435d.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-client/thunderbird/Manifest mail-client/thunderbird/thunderbird-140.3.1.ebuild X-VCS-Directories: mail-client/thunderbird/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 68dd405071147cc19b3164a42290d1f15981435d X-VCS-Branch: master Date: Thu, 02 Oct 2025 08:07:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cadb174c-482e-480c-a2bc-ad555869f111 X-Archives-Hash: 5cbae20403a73941c0fa06c5400f53ae commit: 68dd405071147cc19b3164a42290d1f15981435d Author: Joonas Niilola gentoo org> AuthorDate: Thu Oct 2 08:05:43 2025 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Oct 2 08:05:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68dd4050 mail-client/thunderbird: add 140.3.1 Pushing straight-to-stable due to low amount of changes in upstream code between 140.3.0 and 140.3.1. This release fixes a rare case where TB might crash on start, so it benefits from stabilization as well. Signed-off-by: Joonas Niilola gentoo.org> mail-client/thunderbird/Manifest | 65 ++ mail-client/thunderbird/thunderbird-140.3.1.ebuild | 1156 ++++++++++++++++++++ 2 files changed, 1221 insertions(+) diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 47d30813f857..629cffa10095 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -460,6 +460,71 @@ DIST thunderbird-140.3.0esr-vi.xpi 518874 BLAKE2B 027561b22cb1a49818f50522fb759e DIST thunderbird-140.3.0esr-zh-CN.xpi 507841 BLAKE2B f44b932d0f436992573f68cb03de70ba6d1f67c287a8810cd51c1fb7ca7c8e9a483f665cc05100932a6faa0c9c8568fd5db1904343fbf3480b014acad3d1e89a SHA512 9691d61646a2b9d4790f37f445e4b32b8708ea6299adbc49371ddd41be20548bc062c45a359824e3e01696e48f54463e82d010f3d74768be06a061a5d74822fc DIST thunderbird-140.3.0esr-zh-TW.xpi 511165 BLAKE2B ddf7db9c0c43cb6d6c6bc8e6ace3410c1a4d988c306d4c09649cdac15045063ae372a9c4aa2c72136702e377e03a9d530394234b435c3f876b87a7d954c26847 SHA512 58e008a8ce47f0077fe629a19dc54ef0610006150718b7016c37d1086d7a49dfcdf3e0ee2c18835b269d848a842aceac7574bb1957786e382d44defce4aa200c DIST thunderbird-140.3.0esr.source.tar.xz 755800156 BLAKE2B 3b8fff0de38f6f639527ec8208e3e7f84327e237300238132d35c3417b310301d5da36f42befc4e4332e3d0ffcb873f5d7f4dfd0f00c8b3229f7aadab77c1835 SHA512 82a9c4aa250b01e0e4d53890b0337972e46504636831c1b6307b841c4c5aeec86482b2da3c1666c46e870a75f6cb54db9f759664688b382ad66efa647145d900 +DIST thunderbird-140.3.1esr-af.xpi 316218 BLAKE2B bd4889a7accb2ff53ed2edcf31201729c94e05c8d5c6b3d9e1e1fdd4d760fd8cda4e9a0a66dd49c0fc53cb3138c03aedac724bf0ae24ead496a2eb19ba22c782 SHA512 4bedb9733204c0551245c18e7ffc5435ed0686812c50030351fca7dff277581747f0722c41fa64851c68e56aaebd9c99ee169e3b7ea465e5f7ef56ec6a768ea4 +DIST thunderbird-140.3.1esr-ar.xpi 436173 BLAKE2B 27febf9e2424b7780fa9b493feda00bc376795d0b2d00a8f1be0a84346f46444fa841485a1a47face821bc670e634243af3819bfdaf6f50f6ecff9207be12be0 SHA512 5f6552aceea9c2fb67d104d4a08adfc6de5ef547d5c0debbe2fc61d71a2e6572c1624eb93ab542a67aeddfb8670c0bc2eabd4782da25b53cbfa3932cb53ab2c1 +DIST thunderbird-140.3.1esr-ast.xpi 340599 BLAKE2B 9f6ccbbb78f4203b76cad603d1372ffc9b786ec3a02408c660fc492ca849ed91f342fc02c72853071a5fb3b62ec44196d65ceb69ec1c5f02a6a6c1920444a209 SHA512 dd2ec3b9f01bed8c0c2689b5b63e60a791fda2313dc67428030aaf6455bfdf7a60eadfc1288a6033f9651e7916078bdcdb4d868d570db687a8fb66112c735b27 +DIST thunderbird-140.3.1esr-be.xpi 520646 BLAKE2B a765df6a8034bcbdb19019440337afa1a7ccc8dae748710b0da3bd6530f50e35d0843abfeafd52bc4949d4118e669c3e680939bb1485c50c5e6e871fbb9c97fe SHA512 01f42ba67fedde010cf4f09c97fa476d030810d7820702ed7e6028357cb918aba151f9a7e0569ccd9ffbcc1dbdfd8628028986b68808dbb66490c7b75f36ec52 +DIST thunderbird-140.3.1esr-bg.xpi 535504 BLAKE2B c085f30ea87ed7c6daa39a1e4ed9c7946f95fa2e4bb1f80750a6e14742602ee5d17d9e76883903b0af1ac6e324097adc25b8d92b40782333248c79a1d482afa2 SHA512 f782f418fef87e394ffcf5575b07655e1aa6b0375583a52cbb67bfbd355c4f208419ea38878af0c89bb247a24c4ae754212664f5d46a6c02c6daee828af875de +DIST thunderbird-140.3.1esr-br.xpi 402748 BLAKE2B b5c30535603f1e7395deba9655d25781d1252f5ff8da70ea3a1f415640b35a09c0b221a724ef9dabcafde605bd237e09ced8c75f57bcc21aceda8c20e0adbaff SHA512 2ae0afa46ea6d9e740b987add054cba0d57fdd682548e9fde053635e82bb1982ab3995ab96b99c8a4414814966b368546f05e158e60c1c0ce15ad3bd31cee264 +DIST thunderbird-140.3.1esr-ca.xpi 440585 BLAKE2B 751c01f65b6c058168e7b3f8c20957aa79535200d6ad21eb4ae1e3810b0480631816702acf9d630ac58f2e2abe74cf7a562b30e4f9a96b1bc6f627f47d970604 SHA512 51ed71e620342dcaff1b57fec7d09fd6194d9d1d0c2a213aa1714e12e1d17fe5a0546e9794b5c6f5de6b23dd222d2d74f5ace893ef8d0ccd2b44a82ed1c9aead +DIST thunderbird-140.3.1esr-cak.xpi 418020 BLAKE2B b992e95f18430078339d4ddc55307bddfc86151b5ae2a263fbcfb7b42b8f262b17f977e4031828a04325f8075c3ec9032b36e8b0fa5fa8414063910bbaa7cc77 SHA512 d8a880551de65513844583d0a81de8159b44ad38cfea6ce69a830acf4f16ea9c0a3b78cd830d2dbf1ad927b15baf6503e1515564313bf5065c02da3dfb6cd589 +DIST thunderbird-140.3.1esr-cs.xpi 519528 BLAKE2B b44dff39908fd924787d5f0d6ff161abbb6b3cb74245a4deaf14024faeaf5ed15d4f822007878bb4ee2996019cda3d738539887ac5b8786dcc03be088c619910 SHA512 f59ca332b34b61288fbc399f5dcbd9a16e7ca7a8675b62c37b7fa061278baaf03b1cbd9210c70e4faa73c16002fd54de6a40f55a893b06d88012f733d799e8d5 +DIST thunderbird-140.3.1esr-cy.xpi 487647 BLAKE2B 952c16681ec7125b6ddd305b51427d6eddf76a744af3c07095d34402e1d49ee91b532edb42e8e077fad9382ac7bbcb2d82acf7c1e48801d4f175f4a3f8d8479d SHA512 39a64ac289f4810ce1e15ae0d30573013df66cc40ac90a2392c62011d0af9a7f688d4b334529dc6761934bea75e7bb48dfab1ebf2eb85a0ad66813c22f1b3324 +DIST thunderbird-140.3.1esr-da.xpi 476638 BLAKE2B f2a8a94be876a119a9c2bf54a163163910bddb33b9bac98d05d3bdcd64f1426549ce088b27eb5562fb004b10de206ba131d89cd474c4a92da5bafcfbcdd49ac0 SHA512 c5f03ffecad9df21bbb96faad7fc5c51b54e135a99ca7bf304fe645e5e3b7ed3de184fd5e379f4359aabb99032011a22514f1be1ce4ae4e00588737806355f36 +DIST thunderbird-140.3.1esr-de.xpi 505054 BLAKE2B 85b9e7772b9d23e47dec90a2f09dd0bbcfdf9ca0d61c59969500c238039b7cf4db2b675cb1f49e7093a1460b93c804f8934422fb967375a1f79a46181be401dc SHA512 8b6b09cbbddafee72aafb90f44ef0cb9db71bec75e3740158de452c8b278bb8037f293d0d5d567829c3d56c41bf229d4889555623563ac31e72b23538b84fedb +DIST thunderbird-140.3.1esr-dsb.xpi 517906 BLAKE2B c03344fa1cece0dae8a7dda497404c407cf829c25ab3fba2f058d754e04de699514e3815c2311a86638bd7983bc8d3eb16f749b86eed2de88453afd5b602c51a SHA512 1018a9b7ff38fa1fc04850b54be15b40efad2582c4f58fa8e8288c4a645a8483a942e3848774bfebe7cb350a87a69c3ad21a0b2814ce0383d3e0805edcf22c30 +DIST thunderbird-140.3.1esr-el.xpi 609083 BLAKE2B 553ca553a6b83c73249816ac822292e9aae62a5579fdff6b4ebca6e9983cdc3145f9be4af181a3813fa965aef2830143736f87fe4a6980ed53833436942ca3af SHA512 2965302a97d007c5fbce5b1a668b7fe35b6b47d175141dcec114bc1b09ffed3fe560fe36d1abeee62057ff6effcaa8e5fb584279c7e7be6b95526d7e90c80bca +DIST thunderbird-140.3.1esr-en-CA.xpi 451421 BLAKE2B e50e769663ea386f69d8dee786fc46eff6197a0b86d4b4b4a43a110a833ecbb4c7c8153661e709b5066f1816929dad665dc7504b7caad53e85adfcd15b8f8725 SHA512 92151307b2362c1a523e785222e4e3269f3962dc8584bc3c360ea59bae76449e8b66dce23660de156f12513b34f1fda9ffcdddc124d568fcb9ba4f78d94c8c57 +DIST thunderbird-140.3.1esr-en-GB.xpi 452067 BLAKE2B 3ec695b97c9e4dd805bfbe66c74964f4066e49a599726058f46602381bb76f08899ad558f106e1c1ede9dbb9b8126c6d1eb021e9ca2a661d7b29fb45f9e22712 SHA512 2ddb1bf64d4feafe446336e652f2aa7b8c5411f7dbae3c69bbd4bdec0e733bd38a64aefa54351c52c11adf8868a4026f2ce33340acc5ec279bd27ffed30d921c +DIST thunderbird-140.3.1esr-es-AR.xpi 495295 BLAKE2B 1a85eb0344c6ee9016150b59ffe8a343bb6daae6f351ba69e6ba274125eb751a6be3aa88fd25a9b57fa4d91a549e2a083de50443a0b102f5a8361ffa7d5f27f7 SHA512 ecfd2ab544941d0224ea73a614bd4c47e28f60067369aaeb45248a84ce82a4d2951357445728b8b9381181e83da5469bc73846691d24b81c2de30a460c4fb7e6 +DIST thunderbird-140.3.1esr-es-ES.xpi 497280 BLAKE2B 9e268bab97a8c86d84cecce708eebc4cbbf8867ca3c729e800b341b9c8a97a2ab52125cda0a80189030f693b69c70cbec384e6d775e41e025ea9b18f88be8250 SHA512 3cc11b906fb58ba83b4526deb53b6a9c6fdd17d3d769c190aa6d3c31f82b98cebb599f6b4aa4ff772675657751246b85091f7111c8c39091f3bde315e8ad4a4e +DIST thunderbird-140.3.1esr-es-MX.xpi 488156 BLAKE2B c50ef0dd706cae8f80e4088e633c3bc5d104a922618c07cce3c22f1c11beea4f81beccd1216cda53ea4f0c48f25a0a01b13737ca413e488761a2d966c4862edd SHA512 ad7efd94fd8793aed7d63b64b9b9cfea24c8fd8bb4a9c20cbedf27a972a77f8fda873813386c0628e07964f42e0475cae2e8c422e46e7d4f863edf5c644a6e81 +DIST thunderbird-140.3.1esr-et.xpi 443609 BLAKE2B eef13800e56d5381f86a0f77bdcb607890b6e5068fe804cc0554428935fe40e0a523f1458bc1ba571a875e08af6c7fc245fb13065dd9b584bb2d6374a375f3ed SHA512 ca42885bfbd65f89a9c1bc25b7ffb20078783e604c0cdea8254ed747e74fa28d8a750debc1791b8970fa9c24ee6c7f96f37f2f7ba1d35e4a63925d8cf5e5b460 +DIST thunderbird-140.3.1esr-eu.xpi 473513 BLAKE2B 9802092a4d95933611121105e944c6279ac7e91ba5ee8650f6e69a7b2ccc3171bfb38660c50d0fa529d945cb7f96ea6cccceca80ecb0222df1bfe8a4714981fe SHA512 e38220878d49b4e3c2dde0d928c1468bed1fac66f7615f6b0258dcc5515fb9ffa756bda532cd52def3ea2dbb8b70efb48fcae22d88e53d815b825d895483e4a0 +DIST thunderbird-140.3.1esr-fi.xpi 474566 BLAKE2B bf403143079cda57021812c9026d6a1abe6d8d30a51c8861e101a995011fc2c37984759272f50666f9d8a3903a03e055ce5791430ce88226d31f70615b3d9631 SHA512 5c3fae1aac99fde4b0727dd90894615b7e844432946b5813e0f887d7a513455bf4d761bad07fb108d0eda627560ab7fdf9719f20cd9d2f15fa5639e18ebc7cf9 +DIST thunderbird-140.3.1esr-fr.xpi 508257 BLAKE2B 3dead80babb3ba0d1dde38edba8804ca12d2d1590844f7f234c3d3a78317633edd176785c952176da95160c28e45e44c35dd5f467605b31903176ef2fa8649f5 SHA512 6f19139121828e56000362c6047aaf02def43d252f3e45f04c5e1b6b224dec9c14192410feebbbefbd15802fb01ffe385f6b9299093327e1971ad3a0897d60c9 +DIST thunderbird-140.3.1esr-fy-NL.xpi 490662 BLAKE2B 98ab00634f1b2a7554a4f77e75c9f7e38c55f90da5f20b8503198e8b262df750a5e992c37d0265814457f6a287b0803caa9893ddebd95abd82a5dfd8780283e0 SHA512 0c29b04c4e3104805038348fa00de4e83671a09475b9cf433b12c434bec4496c44cc7ef65f5179de4f18d0f4fcefa8764916c12531aee8c4f5cf7b6d9df4ec1d +DIST thunderbird-140.3.1esr-ga-IE.xpi 376741 BLAKE2B 6827543a3c187e9f16f6bc99ac0d7dcd937af15174e5a15b10965612cdd4aeebc6223103a31f7d960f19716c06b69da4a35779108c03e1783b4405c36c0c00e9 SHA512 c550915db70e28d10ea1018a20a8ca427d9bc1c662ac4344d834da32fe8e25841260e92d7fd3c47df6286f25eba2c16216dc3029e636a80b7671ea076ac0efa6 +DIST thunderbird-140.3.1esr-gd.xpi 461956 BLAKE2B 7acf42112e7d0101b55661064277646943ea530da0d386d56ee38456af6bfa0e58a6a9f56f352d20392e788c94e5e39badae00e7d72d6861e52cebaf964f800b SHA512 89b6750663827be9e870f1e851bf9cab8333fc6e20450cc7188d4e928945672dce5e75eb421aaa30c309b607fe13a0995d2caceaea8d87433872f3c3c2ef5c26 +DIST thunderbird-140.3.1esr-gl.xpi 486672 BLAKE2B 49bae4e2419c8f7ef93ae94f9e97a474f25d7613bb5cfb65e037669a8fcbe132fcb100802c401163342810ef657434aca58ed3ce7a5a1ce733860b6dfffb3aff SHA512 784b4c3e87c0a21e6654ba295c76ae0f662eefb9426b1f3f7d6eba44d037cdc5a3280b7016cadedbdbf5934dc28f25a7a7b75bfd138eebc91614a79aea4c9e1f +DIST thunderbird-140.3.1esr-he.xpi 441521 BLAKE2B 05d810d13b1c4d4a61dedd917b002ff8713a0a322fa0e57f2814dd547243342a0a80eae1e772d1c83ead8fb6d5345630fc238f11f7388e2168637de634d904da SHA512 4b12e520cdce92db207c41e751d842d43720dda188d43a517b22d9d57da89030a9a80daf6ad858e1ab66a68d0792bc0334e6ca94a9905cd4683343798cf2a045 +DIST thunderbird-140.3.1esr-hr.xpi 464035 BLAKE2B 8cf0c561219131a4f731f4e0ff6f56c0e25700e82a07fe0e1658a0a1d3d93ac1df3f2da88080353601f7527bdb68de24c63b9aafc887789310cb29b7d17e5bf7 SHA512 bd12cb1669d34291b1cdc512824ed4ccd76327a2fc92b56de46f59bfeae4237032f47b4bfc76ddf93c36e8bfda2252e09166811f0573ddc28ca2adb43df964e4 +DIST thunderbird-140.3.1esr-hsb.xpi 514948 BLAKE2B 35517def6e45411e2e4879bffc764bd17ad0fcd07ce503180792dbf7af643d0eaf526d62493291875dbc2659edb954ddd0eb7c6660ee089ef7aa5bf770e24b2c SHA512 23a2a223d3ba9837e80fd68e570db051f9da3761226e1b8d83e6ecee10f472ab4cd87ba616c57107a16fb143451062593bd32bc8d78c9511f9e6578ec1659486 +DIST thunderbird-140.3.1esr-hu.xpi 517536 BLAKE2B b6bf46de555583d1bfa943dd5b43a10074f22dfc83f396ea0cd90a0588c66c8d18b70158142ad31a32543ccadd59daaab4a56be2ea872e80fb1fb9a913fcafdb SHA512 61b23576bdfd06248aeb8d8ae79ccd443ef6c62ec756572a995ce91bd04bbe25ed0d0a9047db9248ec5bb183aaa62bdb9f32079dd2d1262473ad5b6a61932b85 +DIST thunderbird-140.3.1esr-id.xpi 463453 BLAKE2B 303cfa855309b08ca11d37592b1d281894d8ece76e557dfb11f15d2e4427c10de7d0e752c205a5bacaec69ee2005c57c529af259d8aa6efb823083000e94afbb SHA512 68464a45575a9889d0ff556439b51ad5d9fd97b2cb0cdf3f86fe0ee94d824625b1fd0f922f97c777d5da402aacf40e8f5529d13108f4864aec55f2ccacda891a +DIST thunderbird-140.3.1esr-is.xpi 482737 BLAKE2B 306a9cd9aae063f43ab745160d4da2ac04a8f9984634d685d4eb5daa8a1ea1aba69f16722438f809a98dcadc687d7e6ab358669d1fa4cddfd0d97073b4607bf6 SHA512 94479a3d66725759547332750ecf7bbc5b4a866edb4b65e4033c54e3874feb2d4b9a2c8dd2defc4f28c05ad5b9333d755d1162ab7dce799ed1c29125ff47c49a +DIST thunderbird-140.3.1esr-it.xpi 488523 BLAKE2B 9e2e264602e489c2df0a9a14075af21187d5c26931035e0e208f29667ff610d32a405db9667ee354dfe026ee464e4481fb3077a16efaca23b836ccd717938588 SHA512 fc1e3c5184ee0dbc59221175813a0da7a27ce5f630b8f9c30b71afbf8fc4e4b18fe52e48fef3785be5cf9c602c4e7eebeaa80b80e4bf0d0896cd6c72cd324361 +DIST thunderbird-140.3.1esr-ja.xpi 539357 BLAKE2B 5a57f06abeb95aa940a1faf1c9ee78c8f9d2854f675a570ea56342eb88754de5074c8467fe8fa3a52644fa3318c5c87f7c52efdff94a60e84dded5b20b278b53 SHA512 d08cbbb4545f85aab5440a1afe7d9050efcbb212cdcce780a00d3a954aca4f44202e3cf7324609dab33224e36b9bcfda1fddca3204e11ab05b416837e8b60066 +DIST thunderbird-140.3.1esr-ka.xpi 551184 BLAKE2B 8c8a5737ebf533f9244670da05f776698bb98689a4500a2097942e9103995b60fe460ffd398dfa3b80cad158a161eec2c4e282559149da48269be235a75c5e2b SHA512 99dd04154830b8a5b64c6f7390e36eaf1ec2cf7f10350ebb8736f4766af99928fce99bd31af3fab940d5d317c1fe37a88f88f06ad12d3bf282bcdd6a0618c4ff +DIST thunderbird-140.3.1esr-kab.xpi 469133 BLAKE2B 285c213a58483df2678c5b1113bf579c3c4a928452ccfab1bc93cb413e6908029c53a93704fef47db61e1ab6d5d95849c29889f46bc51f6864c86235af071eb5 SHA512 ecb523a5c98482f0ecf5dbe7f146a6070bef7b119b71305ff6cef3316ca6ee6d7ca46e6f03f0e79216e8e8c0218434b0821ad0b9ca6089ccae2fde747c2ccc63 +DIST thunderbird-140.3.1esr-kk.xpi 573788 BLAKE2B 42066fc0cbdc4a7989b88da2c29a879cb221193b85c9d408f743cfb7c1adfecc05ef6188e441c6f356cfcb41ea756ee950a2680d016c929380d0c4b961ecccee SHA512 67d9db9a813ac2cbfc0eaee7d9c403eb872935050eb86bfdee71907efb45725ce9ec3a47afb66c26a1e9596a1ac7d9eb8f72c1806d76936d0b46e1a5e934cf51 +DIST thunderbird-140.3.1esr-ko.xpi 514516 BLAKE2B a3f9a11e2cb276117b3f50b8fde2df173999fcea9c00f84fd38306f5830bf02fc208f69c005fb244936ceb006afefd6498acf6efbfe9a6b3f4422d539d0eb045 SHA512 2308d3ae769b5d007530e2e3433fab5876673659ee3c618aa4382a95ea500ca0f503c351b12af61b9cf91cefd618a73745c3e7b2c0b2d4b0bfc293258906833d +DIST thunderbird-140.3.1esr-lt.xpi 441852 BLAKE2B 28db62cbffc7d1c827d134d3ed3958983e6d48794828329058f3676ed9aa6fa33b0eed6be6c38a20e59840b8f855455b14db1a796fd6d384b208f15dbf0644a5 SHA512 3e6ecc858b15aea6238d91b5ca605672f64acf57ce3d3d5e38a9575ef3a38128418e85f79af02cdb2856fddf93b8a50c068144fc7d2d78fff1730c6105df9821 +DIST thunderbird-140.3.1esr-lv.xpi 391802 BLAKE2B e6c06bfd6430cb25a8d4abd978e30b00bb7cb224cba768a9962cd67b34c2898a9efa248db4351a7f5071e395060785e0918f6c8c20eb012dfe7ae89549764ec1 SHA512 a67cae5cbff8abbfd06addb9849c465a3804169efa4987dfc7602e1a75e34733432c1f5b49754905ba0cf0faf9dda9943da713b13e0d367f0fc129f10c6967f6 +DIST thunderbird-140.3.1esr-ms.xpi 352175 BLAKE2B 148617588cae9a85efcbbb50a29c23111d547caa5b44eed978f40c5c149e2cf2aa8718da541c9d0db2e684d2cb63b2cdaf00401cfdda10f633bbf0b6f6957036 SHA512 c4116a077ed6432505c2606da91e00a6d1ca4cd0b956a6cef5fd9a60a84dbe043adda503d5383efdb8f59555cf92be98d78b24199bdee908d1dbe5c2d5686cc7 +DIST thunderbird-140.3.1esr-nb-NO.xpi 447969 BLAKE2B b433641a63ae3b84136b886dfb38c29158853941cd487f0d4f5f62ce0ead3abd92ce74f1258327c771967dde54a59556667c3d71e0ffdbc51e60166b8cd8efca SHA512 628139e9da19b90a10366f16b5458e886e4aaaebcd32df499438859d53ab210281d9bc46a00a99e92e127fb46aa66114ea36f56e1be9ec524582b50175a33266 +DIST thunderbird-140.3.1esr-nl.xpi 482130 BLAKE2B d1c64efdbda51eef344f39f7b8661c27787b165ae7a5dfb835a2d3f22aa72709d9b46806ee2c95f6dcd58df26191b459deb3e4bbf0801608c14a03001e2b20d3 SHA512 c2674541fcf63e71e4acb5d7ce35a6d3d47abf07a44b00d6a8bea133853cd98350de7be4e590f9ba3f29c62c235a04444d4e9c981a067adfb87c5883da2e1784 +DIST thunderbird-140.3.1esr-nn-NO.xpi 469413 BLAKE2B 851612d75c8dab0051919981ddc36cc06898913b60b8e118005923c2d5d358a65fa541db23a3eb7e990f6943a997e53869939fa9faa1d7167a895641f4cd96c5 SHA512 d84643ea72cfda615a53f4ea0956e9a8b8b6a4068ad0d047a95a79e753f26ad11f03c3924b2f3ffdd01d4419e29c0945a685fc7a5f3c56f23391ee29f50c6ead +DIST thunderbird-140.3.1esr-pa-IN.xpi 434965 BLAKE2B 6ac5d22277292d1277740d0ee3425aebcf2d84aac214177fba6579a6102810281782f5aff992732bfb2b6012f8804bef74ae887131a3f07ed105c522a6afa4e0 SHA512 72e900348da54182c1036cca0d896f6759450767f5606c982cd352552a4668c401aa02114ff1547596c44754bd01936bb064df225ff1feaa16b65c94f8f3010f +DIST thunderbird-140.3.1esr-pl.xpi 515040 BLAKE2B 134671885717ad7132afcfea1987061607c5d6ec69aaf1f98db4df5753dc99d926476ffdab2fb685ebb91609641ea011c22698d83e41ff4b8d312c730cbfee16 SHA512 1d90dee910f46c91ce109f7ceed904b16cb216cbeadf3115b3120089c36ed00e91ddbec77fb6aa8458264c72a3b34eaa8ff28926031f5fa6cb252c5c9a613240 +DIST thunderbird-140.3.1esr-pt-BR.xpi 489975 BLAKE2B 4915813a20a48c3142b1421e6e69840d0486966894e99becb25fbab6e157c8ba1c591b1ad3f9c7f55ac0f132c69b5f4d0210e323c25269fcb4268129ed2a48dd SHA512 20c03a231b4c9134b1460ba11229218e31351709cf65b3fc9392809ac0b8d8d76f0f02570773af86ecdf2e7c7cd53e5bd18dd9daa3f0d65328a581da2d0a9496 +DIST thunderbird-140.3.1esr-pt-PT.xpi 486333 BLAKE2B f4cabf7cdae167810d3e4fc6e7b3a33150aacd211c3451bc3accbedb6c3635d1262bb47c3d9a6628f0f3c6b55866ec7db8ad2cb5c60ea42ed06901e7b4830874 SHA512 5b563b94ea649eed46fbca6b38b031fac4b9e93345c07569ebe57e60640303cfe55e64676746dcbcb821934d9f0d821feaa0d98ff22c1bbd326cf1f5b21523ca +DIST thunderbird-140.3.1esr-rm.xpi 487183 BLAKE2B a9c684ae5fc1674e11368d33ad5ec467668b10d3357ab53e74bf587ebeda436b16c3dd2b7b495743ded9ba2f67b472abaee8d465d37145945638918c61668ec9 SHA512 4b7c666d21367cc9acb65e6c570831eee7b0542e99bcd58b9d1d3b402aab87d5226fd25d5623ebfd2ebe1d6e3207354b55e5ab6a5ba0f5b957ba2a183f97f645 +DIST thunderbird-140.3.1esr-ro.xpi 451872 BLAKE2B 3686dcae1394f756f812dd339fa8a73118b5e73b6b0e26861d7214243895a6134f5780436cc7e6ec8ea3ac81b30766baaee8b5c16b966efb629c309d16f32cb4 SHA512 eedc3fdd3a09d2d030294ae696a4783e81260c7c120529bb26e0e4a7a3c8949f672b2dea94e2fcc161d376d8e258efa7f30e7e85d722ead451419142037d369f +DIST thunderbird-140.3.1esr-ru.xpi 593156 BLAKE2B ae94fd9cbd0b4dadaa564e1d26dc290d01f4283f8971b332b52867c581fe40c2f017ed382c4099822ead3ba9c0541250e5b4b28884fff0f612d573195145c0c3 SHA512 9bf3e1f0e2bec200d1de8c4167b635bc05fb4d348c2d18e9fdfca5dc4b6bf2539bbaa27bb6421da78fd63b76fc5862ea8572a4cad837dc266d4c812567be4a7d +DIST thunderbird-140.3.1esr-sk.xpi 519235 BLAKE2B ed46523c1bf34a958e1be869a333c36cc72e449314121b80d10acba912a512b98f817835d3f1583267732632a2db401a5874a460c215c34172d96ebd72e909fa SHA512 7274903717cf60ea0d9546e8bd4961386a3a9c626d785e090ce392839c3f3117a8286609f50154bc606db6846cfbffe5c05af958bafa01ef85a585ef497a8e73 +DIST thunderbird-140.3.1esr-sl.xpi 485940 BLAKE2B 86894cc573bebcd5ff202c2f9b2c6b479186a27662211e949613fd6b21b244508c3176bb31c8ef785af3bb43d2e14844223162b3c1897fd3056b0f52a7a6272d SHA512 c8bbf06b6896380971e6aba45f70a6020ff5511f9c4d6dcbc36b58ef7452acc07df66ab79df6cc224606ae72a29b2597f7068547cd199be6ddebad0f0c2ba2a7 +DIST thunderbird-140.3.1esr-sq.xpi 504055 BLAKE2B 2a605fe70d224e7ccd315138b4708a7d7e3cd7bad867717a4659cb669b86755f25eefcbe81fc0aa76b40c7f2b8c1164a7ccec74d3d8b44429011330ce15e2d1e SHA512 70f37e939f1d0185f329a4483278ca42cf4f9594e2b797b104eaf87637dac1e299004e03c11f709c8225cf5988313683df2a56f8162fad223016afbcafcf7a85 +DIST thunderbird-140.3.1esr-sr.xpi 495990 BLAKE2B b50d3783377191c34e35501dfdd27f61a7d124108b38b2f3c59a02796221394d39df67585ddb10787806805986b00c30ff01d0c072fdd722401b16c1a1ae6137 SHA512 fb3b0fda93f7755062baddb822a5a1d61b57246ccd5c2a8029476d4fd24510a96f39f1e5055177f1523e7bcb9d34fec668ea7dbc8cac67c46fffec50b63c7363 +DIST thunderbird-140.3.1esr-sv-SE.xpi 484419 BLAKE2B 1c2784ba1494477625c11dd973397b3968aabde2a51d1efc5f488f518ff705a46dd8201e469b5968e130c6c376d18d4a1d57ab59c43b82883638cdfdb7766407 SHA512 81e0f0f133700491f179122260502577f413c00b69cbf9912564199e6ee3c153334409e04e0e6c1d49d4cc309bffa22b82968d1f12f07af5ae48d960377e046e +DIST thunderbird-140.3.1esr-th.xpi 565641 BLAKE2B 0464331651a53cf7d9a8eb5957c4affb159da20d066ee86a241221cc25a3c051755a1c7b4d706dc2c641eee19c4eca8f6a55b737bf4943b23c4feff7d2f5abb3 SHA512 d25bbb74353ecbca3fe5b2e311e6f49cd4f4dd4127101cb6498172c58d37954c0dfba92f27c7975ed201eca2c3824ce0f992a775bdc7029a987a2743dfd97c29 +DIST thunderbird-140.3.1esr-tr.xpi 495544 BLAKE2B 849c260cef5aadfd7f12f37074c9277ed25cf963d4b74f38a24770c9c23a077e20a3778a6e68b6fb6f6ccabf72fa62aeec85e47db1958f8090070f61a6758c6f SHA512 bc123a56daa8708666cd4ed58f221019bdee87f3ce77a969e69c2498adbc526a842a6640bd132b986d155148de4f2ac79c56d04996e10c122c63182b28d0d022 +DIST thunderbird-140.3.1esr-uk.xpi 582167 BLAKE2B f36023f700aa850bb5a2626212d89d694d6e795678503837d9cbdbb1e6f4e9e1aab2a021861b8e7490fc8b0a1600a1756661fef446f3208a48cac0526f1452d0 SHA512 8a19136d3600d994e52141168821d71fbbc0a0ca703b89dbe65c8fcf34f44ea31ab060e7bc4ab0a4e006e193d0544d56c266bfc0e456edacd04d10c8e43519dd +DIST thunderbird-140.3.1esr-uz.xpi 355265 BLAKE2B c4fbbb3a80ae3882099050dad2237ffea31e89270cb4f496b80d8a9dfd6ad081f0ac470f26fdd529dc7a1af873c8463acef6482d033f4d87f763f2835988dce2 SHA512 6cb45311faa8387007bb366733563a82aee0f0d04e45b53fa3260fd9451c32742b148669f0996a41e4af3b7a3640eeb7f0844b174680f0a325c0b148eb620327 +DIST thunderbird-140.3.1esr-vi.xpi 518875 BLAKE2B d5002e8209e7e3195e683ca094038223bd39b8119a50197d645c987ef82410c68b52ad9c883054d5bffc3e07c39b06303df6a629279f4c97a283ae59b31033f0 SHA512 1b9aab2e0c59163cdfd18068acb2b1167434945514e223dfa69aa04522bed2163914c0b814152cf6f798dae844e223a00d9247be5c9b03ca786c19926b5dfaae +DIST thunderbird-140.3.1esr-zh-CN.xpi 507841 BLAKE2B 69178397a205d6f229265770b591e42f045645217c1c0346486b60b39e4f46bd8335581946f8e336e01e5f9799213cd79113478f1bfda8a66446aeebfd4b76c1 SHA512 ae2b5bb47bf367a7ec79aa3ed46a020c890fb0cbe306463399732649b1faaebb577977c756b462ecf4230913475fafddc892b0cf68dd762a16b7860c216c9862 +DIST thunderbird-140.3.1esr-zh-TW.xpi 511166 BLAKE2B 25241877d07fa074f70fc2c356b8af07f7df7868fd5c14048ab57642835ef47cccfabb3eb0e6dc72f8e15cf88a693e6d053a1e55d0b135b356516054842aaecb SHA512 1474c84b06c213687634b9b57d8a1c26e4a2eb2cc584288172c405cb3577861cbde860ef12fe65827a94f7619c647ec1c9c082e92dc5bf6ab0f1838d389cf838 +DIST thunderbird-140.3.1esr.source.tar.xz 758697864 BLAKE2B 8aa297f3c1ab23672573875ba9e0045308ba850eafd679edd1e73e39d0ff3caf94acf679e6c9c2bd2d0a79b504563cde04c6fad1200d5f8e2cc8ec6c383ada55 SHA512 836294f4265f7076b4dce86028d4aeef7b9c9ee473f3af075d19c976a203efbfa778a4485e50e4bed6c32d1aa497a148c3e8fd21a765d78eac8bcd23a77f0c7c 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.3.1.ebuild b/mail-client/thunderbird/thunderbird-140.3.1.ebuild new file mode 100644 index 000000000000..fc8fe48e3410 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-140.3.1.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-03t.tar.xz" +FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz" + +LLVM_COMPAT=( 19 20 ) + +PYTHON_COMPAT=( python3_{11..14} ) +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.112.1 + >=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 +}