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 0CAA315827B for ; Sun, 24 Aug 2025 08:41:41 +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 DC310340EDE for ; Sun, 24 Aug 2025 08:41:40 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E6960110561; Sun, 24 Aug 2025 08:41:37 +0000 (UTC) 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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id DB749110561 for ; Sun, 24 Aug 2025 08:41:37 +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 3DC91340CB6 for ; Sun, 24 Aug 2025 08:41:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B1EB34CD for ; Sun, 24 Aug 2025 08:41:35 +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: <1756024855.132d34153dcd71ce9ea28970e12bf48e9c008122.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.2.0.ebuild X-VCS-Directories: mail-client/thunderbird/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 132d34153dcd71ce9ea28970e12bf48e9c008122 X-VCS-Branch: master Date: Sun, 24 Aug 2025 08:41:35 +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: 804cb829-cdf2-4e8d-8542-8320d89652a8 X-Archives-Hash: fd0ec05a15e325c1759b1f8a7416e456 commit: 132d34153dcd71ce9ea28970e12bf48e9c008122 Author: Joonas Niilola gentoo org> AuthorDate: Sun Aug 24 08:40:55 2025 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun Aug 24 08:40:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=132d3415 mail-client/thunderbird: add 140.2.0 Signed-off-by: Joonas Niilola gentoo.org> mail-client/thunderbird/Manifest | 65 ++ mail-client/thunderbird/thunderbird-140.2.0.ebuild | 1156 ++++++++++++++++++++ 2 files changed, 1221 insertions(+) diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index decbd507c0a4..bc9aaada8b16 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -263,6 +263,71 @@ DIST thunderbird-140.1.0esr-vi.xpi 518716 BLAKE2B dbc6913e0a2c575785e461fb73a03b DIST thunderbird-140.1.0esr-zh-CN.xpi 507850 BLAKE2B b7e4d65c7d89bf4c30624fb70922fd9537b73b875a657e67745ec43b2532aeee7c2d03472b11784ac0484badc5ed1d3a5066a489abfb77a57fedfb09ddc936fc SHA512 80a8621726c801adf6eeb00204e41e26547d2bb4f93d709336a0d5d31815a486883a0eea0c28f1075154c6109af13aea84d3d26136511655d1500b84a4011241 DIST thunderbird-140.1.0esr-zh-TW.xpi 511143 BLAKE2B a8d08a853f9f27bf0218a904b66384f5779d4cff424832406a3ecfb9892ca117644b5599982fea1d0e5a1483a43cd977ddecd7536b36330e7bb5c3a19d328057 SHA512 dd2c49834ec9bc53f6587f315b7a578760bcdd2d974b6798f57b820f6ea00fc8e4d539b27e61b38a2445a90c5a5e12ccb31bb2f47710dd5c2aa29870a384a751 DIST thunderbird-140.1.0esr.source.tar.xz 754033528 BLAKE2B 32a59ef1056cd931375bd65f812517cde9015839c0f878758a79da7ef89c8ca3647dfd64b48f54682bdceb62e305a8b2ab7c20e007aee8398c94997be367babc SHA512 f12e2dbda3c4558d06f59af25ff7b374d34e241b9c085236d0d0646dc331f62df85dbe2aa8ae5ff356fa5d0e4b4d73415a10e0e6f5c5ee8bd58305a43aa44c06 +DIST thunderbird-140.2.0esr-af.xpi 316235 BLAKE2B f3e4b2e32b97d7bee190c9cbc905b0cb8b9200db36a4c214c4089c172d26523a5d994981d8c045394f3ff6507e3951b6f42e29f784acceea248eac8af3ded754 SHA512 2fd5085ab7e9185ef93098f0cb59bd1d888694aebd7441b1766289f1d3ee59fb9013638f8c03ce50d50c819e2d8af0fa5ac1e4d837e3f580ee9eb7f9631f407c +DIST thunderbird-140.2.0esr-ar.xpi 435612 BLAKE2B 8962455558f7d1df8fdc14e2ebc713e02bdd069abc2e0aea4378794b1c88b01763741c0f6537a2023df3ef7294c9c46ce27d887187cd868fe1cd922e112efd03 SHA512 d8034590f2d3b2a552cf0e001982aef73812897723876490784aa030ba610d405000a95e80acc9e70d0581eda8f7f5deb7b8a6661ae8bfda98461114c24be6de +DIST thunderbird-140.2.0esr-ast.xpi 340613 BLAKE2B 46159cf028db98b8d5e81b6968e2806df8143b58334a8c5951d08490b24c67d43b3c53aa9ad8a014dd9726496094031cf3f9d2565054f3977b4fa9fc18117963 SHA512 23142d7330f288189bd3e5f976c2070681b870e70d188b271bcef7907c32128eb7b3d9066d4064a59dbe65c04dea2139fccf7704d0451f20ff5774c95d709728 +DIST thunderbird-140.2.0esr-be.xpi 520593 BLAKE2B b287fded0f3e282536260260e31061b3ff5ea03c5e17a25a02f7db5489d965f0365ca165c87a81f07b23cbf113673b875b678ac741e41e65c97c1443a002931b SHA512 79673b7bf60bdae0b1149cbf100088f9a1432b4d7a6d3c64fec50cd5e7fd05eef859c08b9af639af7bd7053e2be1863f80717790e7ea8dfee9d6b8aeb0714838 +DIST thunderbird-140.2.0esr-bg.xpi 535523 BLAKE2B 0164f27093a66459aa136101a0fd25415b88208029c4661af58be324f46346a83f1040c55db15b78ed51b38541168a8793d6cfabe9bcf7737731519b67b5cc16 SHA512 035ef62cb9700c439bc512a33d6f7bf540068c20af72c391dee2634277be555b6d1b9b94b257c7c917c39b60b5ea162bd9b86cf03642b0d3de197ad565a814b9 +DIST thunderbird-140.2.0esr-br.xpi 402697 BLAKE2B 6cec9c3e4057be523c8ae931ef4a5e8851db8539ad1e08501b0c726e038937bde0488554200f556584a0a6038b45b819cc14ed3c0600129c82909aaaf304d960 SHA512 0706ad5277f71a80db43e16cf9b4a4c3006b328d4e84de78d499b1c275f3126c5a7652badbaae6a86ee940dfb0c057390d366b9b543f94894393af27b45e525e +DIST thunderbird-140.2.0esr-ca.xpi 440343 BLAKE2B 713c99aa6804927619f195a55879fea57c69db9236fc03e492e30943194562429cd78c63ad24c0b518f6fa6df039a2f9f20dde9f8b257268fc2ac20e2892baee SHA512 9617bda9399056fc1c723a9bbaca237e23873f0307f428a3ac348636a8dc764e144a36239d927506b3ba5df029b274089bd81fe34b87cdb08bfcc89eb9d4bb1a +DIST thunderbird-140.2.0esr-cak.xpi 418051 BLAKE2B fdbc5a4024615fcca3daadfb4a4a44767e4fd4c7214c4966b06c593a429ce1effb1d1f8fd93bfca0fabb40a8773a22b22682012dea35918a0628e37b8d864c4a SHA512 cf4c69e0c51f4104f822cc59ff93b4d7d35187ef00ca299ac73b6bc0f830dd0f794367e63361b397da139fecc372c038b9651ef004e865c2cc09c83f6d1c9731 +DIST thunderbird-140.2.0esr-cs.xpi 519532 BLAKE2B c2a8d867d35f2b8491dbe257607c278331848041fc3f0165a287b6df05f352bf896df5a4ff288c87a319cf6ae381628a900cdb189a866ecb1c1c2141218ee461 SHA512 cf90eda253da3029fe37839be57b02eed1d2d8f794842ff2dd2361e3aba6cb741e3505b14e3921a28f6194edb3ed5b62182b5656bafe8acb10d8588ca7256820 +DIST thunderbird-140.2.0esr-cy.xpi 487642 BLAKE2B 33d651b93503f2aa646952ce6ef007ba2317ea4ae2b900524bdd02232a9436e816fe2cac64d15fcab6c8138e9c07085e3cdfbc3028c489f402ab8dcf2b8303bd SHA512 076dee6a79da5dc70f3ab218fd36397a159e8ac4d779ea3e4c01ca34cedcb9286c4b18d055c17dee4ca1e7598c7088afc4711434d1a6b1e6ccce138b0c1a91cd +DIST thunderbird-140.2.0esr-da.xpi 476633 BLAKE2B f8302f71ccc13104bf14fd4ab352c666b940a19f99de1c4539831a01d2b1a3895012807981b71d2f98d1bc5e3676f9a4922f065c298ffedf0a52c05db1e71c63 SHA512 10de2fdcd789100ecc6d0eae6f692855885797c2da889b32954d4f8866d1fe2e7025a44363d8cfd1c9811ddec863363efa985d6eb3ef8dde03fda080a4a61537 +DIST thunderbird-140.2.0esr-de.xpi 505053 BLAKE2B bda2d98a4afd6c9eac7498dd299ece9c359f62e6a3524b074a8609da17a3ec8e8c50f63e96819c66b7acdb3b6fbfe24fa7384a2081c8b4ae328329bb2465bf74 SHA512 2fa3d875230f793377ffbe43b57df68231268b3ba579b464fa5f7b487c65c346318be83d543138d49ab21c9e40ab03b768173d8161f482eb935a0c692adb5439 +DIST thunderbird-140.2.0esr-dsb.xpi 517897 BLAKE2B 6d10bdecb61d58ff046e5c424afb0da5341144ab638b37761e0af615171eb03ee5e5f5fc69d2d55bc3e51534bea1fcdd64fa6ffa4defa6190f95d06811070436 SHA512 db2a40e66216665e688a355405c3e662af6158a22e648e6b29bcffdddfdda9320fd12cf69f9f57ab333f622e5b96f6c77f4c91c7052ab875fd824177d69825b8 +DIST thunderbird-140.2.0esr-el.xpi 609058 BLAKE2B 0690e6e045b60bfa89bc4959de14e2907afd08fe5a3daee59032753584fde234ba53a521fe0c204cfbaa6655e90324c517342dc3fc26972e0b8789a6a0e21fff SHA512 1e3c341afaa31adc9704c3f03fe13ce3e313d6407ac42d1e36c97b0288f26c920ad1152593812553ca21f3ab9fa7c32bcacd8798b18bb1941d3689a6ac77e978 +DIST thunderbird-140.2.0esr-en-CA.xpi 451439 BLAKE2B b13f300b7cf2bdf5dfec2d0150f7cba380ae298cefb855c6304fc3ee8ce6e5ffa011155737ae37c34d893ef21ea801e14dae16a154b1ee90b6de6d842e71f45f SHA512 5780167a2586fb3d436215b5e8d5d4fb124f6152e73ad925309bdc80ca091d7fa9c958bb59646377ed5439fd56b4f5a0dbeacdade4b4a58bdec25db733dcd9c1 +DIST thunderbird-140.2.0esr-en-GB.xpi 452061 BLAKE2B 8b6aa19985b93d5fd4d40b8d9613c27738570bf371e6386e5526bfe91a9594142645e31334bbd963d406e12a8b99063a6288668d02c08a78e2fb4016c5cbc437 SHA512 26bce07c25ec8070f26c490f4dc980addba666743fc26055743c39692ddafec011a681d24fac0514139ba1a5da097685e61af763ace919a8026343edd8f6cdf7 +DIST thunderbird-140.2.0esr-es-AR.xpi 495293 BLAKE2B 637fcf1f57f330553c99879a0ed0a021afb2d8bf5dd61ff1a5d66e87c997d3cad43b21ef3c798b78e0108911a360f28409c71edfab9dedc0fc969f299dddcf78 SHA512 c24defd44b4e1c8fa6b8506aacb651f010e993e8a89109a10f1090fb0da58e31d364a694e14ffa172e84fe38f557f061665a1381dd89e7b70a90d8878b555093 +DIST thunderbird-140.2.0esr-es-ES.xpi 497275 BLAKE2B b0dcf073b399ea6d86cb8efb80a1fe247e76b1ab59116bf55382195db5f4fa1de41a21c58b38ad6e4605ae7fc429610eb0d20c5e2c1ce2435c2286cc6c397627 SHA512 180e0ab0c620f13970d5da4b51a89ee895bbc5beeda966f94aacf1dc9c3a36db38483ab23d54abcf78d8b5fbcc09982e5cc451ccb02fb9dd599cdc0f9278e35f +DIST thunderbird-140.2.0esr-es-MX.xpi 488192 BLAKE2B 6a887884bf542994b9a090474830c0f714060945eac31afc45672b8dd7ad9c21da0797f55da8f44ec74b7783fc3ac33e770bfc15ae294ce04b8b800a04dc4a85 SHA512 0da35c3e0b1af28b606861a0d4e0f352e390400b9e966c8fbf56f9e082cc87043489d0927279a38af1aeaf77d37387d95aca936211639426641f8b239e9c1dc5 +DIST thunderbird-140.2.0esr-et.xpi 443623 BLAKE2B 02ae2bece5481dfa5d783388e71a92ee4197ae73846cf86df2fe494c2fafb37e332d613452c709292e2ad2563115a5281ae1232957ebd99625d19a3d569d6a0e SHA512 9b460acd149fd2074943b8ec9f9968297a7a7363d1062ec0d81701055d9d379a4607689da2c730eb20e3f827c4ff97bac02aca5b2b6d23f264a755179bd75f27 +DIST thunderbird-140.2.0esr-eu.xpi 471891 BLAKE2B b83026f3d05e35c8e38d78b1f73bc0a421821345d8cb8e9b9b57338c5e83697bc29bf34ad73147bf19091b08aa14f3e2d88cfb9d9ecf2199e5380ada4188f7a8 SHA512 610788757276ece7be1adaeebe15255aac421aade7fe4f48b5766d0a2a33310a0dee99cb4c2e376e675c4ec6674fb7721c0384b15c2b73b325306a37c81a50e5 +DIST thunderbird-140.2.0esr-fi.xpi 473728 BLAKE2B d242e22d830f3acd22e48b189811387381331eebf5b634f5cd09732f88826b356bdf3c57fd00e62c1fd1decff3416a6efc9a1b23ad0e26ea9745c57af080518c SHA512 aa2df8090e5aa3808fc7d8604ae09e8d98e156dfb6ab00e97199a1086a3a28c31ec579e5e72a83e225056fffa7ab5143770c49163f1fe0626f9d5cc1d5f05d76 +DIST thunderbird-140.2.0esr-fr.xpi 508255 BLAKE2B b94bcae14e82b2e1c84c282f2fcbb2b04702976e9368172c09aea65e1af853f867e84d5c614e9e2704002ff04589a872721609197f6528313239faf5feb04042 SHA512 70ba745a226babbfb9d20aa8b0c9f54f709dc2e68cdcc18eb9707878e4fa2c30c44a37366263e3ead0679b84ca0d2bef03d1e68ffe0b3155e35ae6a50bfc87ee +DIST thunderbird-140.2.0esr-fy-NL.xpi 490657 BLAKE2B a1917efa8fbdd4fbb54c288e598d5ee762aaeff33ad413ca064fff6a673a40a0b9c1a43b68d57a4d352be7b33a9f6b7b24db096931d9baf38d70aff3831c15eb SHA512 9ddd078987d52bac2856fc8996e42e4a9ee01fd74720db5c276f3936dbfab842bfec42e86c155e8ebd5cbbf80f69175229093447b8861cfdd81393190d4aa2aa +DIST thunderbird-140.2.0esr-ga-IE.xpi 376763 BLAKE2B 6da3025937e2180324a391316ea399ca0e62525afd8dc148100e55a476c6fb31728c311b0da4f700eafd3a66d1fb4022a85e2ee6e8b04fa2a69c8a31633b0ff0 SHA512 3942c28845be51fbdd15e1d10a9f4e8967f321dd603541eca7d322262740f2bb316ce55ddd5d93ae1b085ef79367efc5f7607433f4c50bc2412cb7e288ec38a3 +DIST thunderbird-140.2.0esr-gd.xpi 461986 BLAKE2B 4e7899ec464d63ee239665aa7d4254205067b8f9116781f4a5683fc38c8eb916600fe1f6fe454c44b127e8a2382e8512de28c1755e8aa9da11ca9118c3b7e4bf SHA512 966486025d37c0768fef1cfec3919d5c1873646d9dc43ce8073b192e9829fffd0395fbc96be5879acc1764efd0950b652cd0a8015786107c08f58615aa0e6ea5 +DIST thunderbird-140.2.0esr-gl.xpi 486687 BLAKE2B ad65cb2aa5dbef26e0d95e4229b031c7c409bdbe7bf1c7cb8c7940879b1a28eb63d5f07f4ba107e31e627744c023e4f3ab892f9b7d2513ab15b980ba923885ed SHA512 cd4613dd645bf913e940f97843afc82f09263b35f05ed9e34ca5f7e087064cea5f2175e47489fcab8d7f336f885518d4bdd851c571659cb9bcdab5806560e729 +DIST thunderbird-140.2.0esr-he.xpi 441520 BLAKE2B cec0a2a2a10c1f4c2e865de7ae04301a5f512f22f55a3c24a2af275538833b07b23afeeb47044beddfddbc9bec1041dd78d122b8ba3c7cd14f8f61c6b9815d18 SHA512 5359bf427815d21532580162ecb31fa1a6424f559ab88af616c02a7b0a77399e4fe17e3182a6cae98ba074b25bd43e42fbbe650ce931f23aa180ef1507f9f906 +DIST thunderbird-140.2.0esr-hr.xpi 463318 BLAKE2B 5d1d8e085394cd78b8ddb3e6bf9d109dca3c79819e1d400007e39e47a69ebff8d0004c406bd697a8d6f16e46d3761dbdda2fab35a745b0f66fa93f7171f0d263 SHA512 9438feeec12e1c7d8f42519c87d50b6d6f32ba2734bb7bc3e85924ea299eeca5cbba5580d165eab4937339b46270361430ccd69e3e89bc764579335309f5aa75 +DIST thunderbird-140.2.0esr-hsb.xpi 514938 BLAKE2B 7c70c0239c75895c21a4273a175958ee06249c9a39144396ee7802939c6003cce5a3dd7697d4e880765c6d8327b7a7c7f12e81d377244953f7805145bb23cbbe SHA512 4e52a42c72da7aac823972531f7d4cfca49bc845fbc91d2522a3fd8928399dbf6939550b21962b9e022a8cdd0a5b9545f74d7a27431049cbc32738d27f73b04f +DIST thunderbird-140.2.0esr-hu.xpi 517536 BLAKE2B 634f1c9e006e13f5efb48c589ddb81bf53a6262abf993dc9a566c56f83dc293e1c9eaf01b69b3393dd6cddaa7f5fd83033d4c5648fade6175d02cc5e98a2862d SHA512 3e51d0b19116389acc3437719525399d08fb86c67f50886b9bdb920d2c0e1009cc0975b06a5d63f95923d7f91932bb0016292cc9dd0c4559eb361a0cef5460fb +DIST thunderbird-140.2.0esr-id.xpi 463486 BLAKE2B 23c1e02b88c0c3f060e8e8834e6e724acba19cb86b611a6093e9825a55229921627e3868eb24904c803ea111ed74b304c102a57aa1eea0758c17ad206f3f2b8b SHA512 d2031b4677af92cc00c5b6f43e112ec4c56f77d61e8e5e8ac8cfe71de3729cbda66c60210b35a9a343010d8d3f13e6ccb9db316379af188151f3a6bfdbb55c7d +DIST thunderbird-140.2.0esr-is.xpi 481532 BLAKE2B 4b1bc313b19e3867589910ad5abcc6efa8a450c0ee80a19819f44a96af087d582d2f500ea8e394cd3baee9ecc6176096c809dcf460ea782188cfd917cff1c83a SHA512 4ee896ab58e518ae522474e95f4871ccbef8823e1f9bb143c517026683f7599baab89d7af6f49f06993abd3d055e843befe7b0f4dafc8b1355430d2ba464ebca +DIST thunderbird-140.2.0esr-it.xpi 488516 BLAKE2B e7a5a006cfcb9297842918d7fc82847d1abde79a560a31a79188afd044c6172e10c9b68c1d20d52b79aeb17dce34d4784f16dc3d6063634084bce636a2937ad9 SHA512 241fe7603f6b45e5171c68bc63197a67fa9ec9a856e73cbfa1eb2f96205141eaabb543516c3c2c920322bd70ecb0b9cb66a1a0572571e235f656da53767fe749 +DIST thunderbird-140.2.0esr-ja.xpi 539344 BLAKE2B f3fd396d9b4c7bcb5e44f000b29b9e1329b72c74f39318b0171d438beaf32c7f88525daa0af687a7d6eb0abb550b496b25fac95423980eedc624c630fe9c8fb2 SHA512 5c01d03805c7acfaba62a11f065e3c84d6617a7a1f6b5e2b09780a1cc46574cb26e75ef38efca088f34fbf6e51cbbe62b5fc95b2817d78ee4f424ffa515df844 +DIST thunderbird-140.2.0esr-ka.xpi 551139 BLAKE2B 741a1d7179b72ba6cc25a904fc3bb0064465f4b6249709680bd9180b9279e9fbe9de15581365bde9b9cee19574fc2cebc3113775763fbc960a8b14aac9077fad SHA512 a14b7ad951ce62fc6c5f596e3fdbdc38963f068e22cd6f4b24ee8638597a0e6ed503a5aa31af9b4817823a37649afb2c69ba919bee4321e4b80f14cd382005c1 +DIST thunderbird-140.2.0esr-kab.xpi 469072 BLAKE2B 32d75e3539a0930c5f1c09ba0b3c94ef89c19b99a11abc50f10c5ffebf48d81852a1010be039109505fb6f50c53b3fb16f9fbfd7db9793963df0a5cc6071815a SHA512 e5bd50c6ae2aec838705bc138b480ea9d43b143d9af2afc1f46e1c4a4de78f05484587db24eeeea11938f6700567ff7690acbee906dc91526d62bc0e4d770405 +DIST thunderbird-140.2.0esr-kk.xpi 573365 BLAKE2B 1cf71a4b72f71ed6e34b3ee8356560674ed2ba197e5475a0ff83ca8dd3ff19560a3d1a6b5eff8803da05f4096535799516e1e70607ef8f59141e2ff90a2c4ed8 SHA512 c328c52ec799d6a48df0b1e19b7ffa52a64a79272c3ab16c41cfbc75b58f1cd951cbbf9e6bef3c845beb8d4b2eb7999da1e583d140fa384897dfd8c5af0e8fa9 +DIST thunderbird-140.2.0esr-ko.xpi 514508 BLAKE2B ee4b3bd24c513270f30c2d0971954497a85ff8722fb297bcb459d11f6847f20c28ca039c795c12fccdaa4f1280e39cf3089c4796fb9fc32c987c22f4be4e253f SHA512 b94183b84f596b17358a88233df56cd3e2b49e70a3ce5abcc8a0325cf3fbdcefde204055c79cbad7590475446a40969e96fec3a510de5576d02cd2d632c33b54 +DIST thunderbird-140.2.0esr-lt.xpi 441891 BLAKE2B bfc3195a0db366c37d045f2ad742e94189683d0ef89e0af09d79c696560bf421e05b0cca0b938d5b15bbf4771fd35ad270d33edae8b102e90d006129c0c7fffe SHA512 2649ed40c1d004994e1fd0cc644b6131e445ec16259443e1f2348514acf72363507e71adeabdf216eb9a7bd7d6171dd06b4b110603e5de04ae95a2a8e3128472 +DIST thunderbird-140.2.0esr-lv.xpi 391818 BLAKE2B c597d2a858b2d394d34653d2558be83342b5d01fce85eae9ea1a4ef98d7e19f94e8bcc1c4f7c7c6024fd61aeb5868b95d4784da1789644fd3cd9fe3c9dc07a67 SHA512 9882be2e90b273a88d7a647e8835d1889aff478d5ded2e7e33e530e1bd61c38f051c941682f7e9f24c73b98285f8b455b21cf98635896a00f49078fdbae53bdb +DIST thunderbird-140.2.0esr-ms.xpi 352191 BLAKE2B 14f8dd940fb348fe5b3f47e345dbb7cf91b383c0d6c5f584a1f8b93c61340d7d21e97578d3ce3ed432d188e05b4ed1b0b4688bb67dca7710f6e40a11d065f4a9 SHA512 ff87932f1707fd8e2cb3e6ebea20caf536604c1589c95f8bdc05d2b078bb5c039228f96667cf54520f44d6a512f9cfcb47d77a1f888930cdc72d525d2362abce +DIST thunderbird-140.2.0esr-nb-NO.xpi 447971 BLAKE2B 8ca7c827dd120954069646bb138eff7f466485379087d17b7980b53bce8667006a9c0f15511a885c59d9077c63ceab51f6c1883dfa80a532ea83db6022b8a5a1 SHA512 a789fe8bf35b88ab79589abbe8a3bc93b931e1b43699ea8c584d40a2f83ca35c850f3a2b39843d6d51dbf3d5dd11a46f06de3780ec16c12ead7ebb16e1f4cc49 +DIST thunderbird-140.2.0esr-nl.xpi 482129 BLAKE2B 4bc6348b1ecb662314fc2344dc1a23265ecaedad42e196271495dd4b85ac52e4c58edc4e409c8c7af93b3673798f1a4ce1a826a3781b31e30ed9560085b8a02d SHA512 59a5395f9bb6d4eadecf86d409671bf95bb915f208463172759af09299703ca4ca6f197dd97951418956e9a2d67b027a361d15127645fff86f7fee07bdae0390 +DIST thunderbird-140.2.0esr-nn-NO.xpi 469409 BLAKE2B 1779bfdeb018f2d5d234ed569a741879cb3ddb31259c4d50737a8f1d73f52a759bb674c7c7666a9f170bebadca82c97f1cf04a4710a561bfdbde8f16e6e6faf3 SHA512 f01f5f9675de0953ca4ee25fd7fd5bcf94a6be350fe704085fedbc974107f3c429e1efe3f178818e082abd90381aa3e051c6363c823d2cb8daa317009cdb1c94 +DIST thunderbird-140.2.0esr-pa-IN.xpi 434258 BLAKE2B 9e83af50089db1de2795649cb720e574a1aa14cf864bfce06b7fafe6d0d4e7693f1a934e001edfc5dfee934c3385ffac886ebe1c67e6ef6c83e66f5c7f920fde SHA512 ff9e794ac1b3113ec19e77a2c462d6c0cfd87e477ad2bc9c458763855e648faa83ee126578b0f4799aee5acea4ed090ec77c3a639f5e7a336034e6257145c581 +DIST thunderbird-140.2.0esr-pl.xpi 515036 BLAKE2B 45261a94470534a1f21311b4efce780ca6e6702a1e6b28172940b4c4ac4ff32d3dac8c3a11c27f56064defa8591a4fed69c937912a60df69c658f7a822d061a2 SHA512 68ec067a5315e0e0848e9605d0337a1175f1381f5b14646f67e2a112f5592d695219fb8fc51d1fe2885aa67fbc32a362e79f31fe271db88514d5a3c144552903 +DIST thunderbird-140.2.0esr-pt-BR.xpi 489967 BLAKE2B 7805356bce399635a26b54eb2ca075b429b006590163afcdbbf1a82efa51ea4748e770c8eb38d5a84f6ae36999c87ad3d8d128bc8630f0e169c73ba4d19c2fc8 SHA512 56b8a94398409ed541d0fea6c4649e48511d94f30cd794df53dc79d98bd5731e09dcaf342e10874b373ad68f26f701f80cc740a122f15fb1d7b1b75d3dfd7599 +DIST thunderbird-140.2.0esr-pt-PT.xpi 486351 BLAKE2B 772e6e09061b2511a40c45da5eddba3ce319a916fe696dfcf7f96d75c1feca60cc861d3dfa608b28d812d6a02a937da3be059a10d66a443407af62a85ec52b9f SHA512 de3e2b4768bfc883ed11c58d36bf2b00ccc8282d5a16fbd8972abd95d74452c78c3aa14243be2ae0106251e1ef078d8b3dd07b10aa9eb5c02f0d4e6bc642eaeb +DIST thunderbird-140.2.0esr-rm.xpi 487143 BLAKE2B d15371e1b164dfa6ce10885669ead0d48eb37bab66e6e4442ae86fa72e82d0afb7f97feea842986f8499641f40d251b2c5d9b49d78389504ae5bf4bd80652221 SHA512 efa3597ef81b0153edd690f1535f134440c3b06514800d85d8f7b280916b73da1e29b961aa5e9e135a30ea434533457d837323e302aa5c68d52f28ec94f0788d +DIST thunderbird-140.2.0esr-ro.xpi 427192 BLAKE2B 86cf61f2c393f726ef2667c19830b0d34d89319c64bafd31ab296c1d95e3136369b52508583287c8b32c622d7c40532280bab28077ebc7e9a566b10fc7cd1163 SHA512 a3346c40a8e6c605fdbed0fccf1ef13fdff96a08eb9aeff8460b2c8a2a334ffc121d274b4f60e7a1671dce9529e9d6e19f97e70e11411c821c31a77f08abc880 +DIST thunderbird-140.2.0esr-ru.xpi 593151 BLAKE2B 74a66ccbd88e4e6ed7b362916a558cc4c903636c9db22c487fa0f18a4d1ffd1c1c7cc60c535daf82a510f945c8b412d4ed881504cd1c55b4ddb28ff092bfff8f SHA512 af9c050139fc322becd52b1be60f1dfb2216b4857c1ba07b7e75b7b7424a32b6e8095ea445903851fe93f37641999d0dd4baeb1370191cee225405030896e35d +DIST thunderbird-140.2.0esr-sk.xpi 519233 BLAKE2B defab7e64fe52df83f51b0cc6a346a6ad0aecf681de357a4b33524781996d6194688eb039cf85e6ed954cf7ba5370b80971f4010eb1765af26babcbdba9e473d SHA512 680d4ed6a262f28e070be05d2f918bc1b6c9033e514572501f7b1c792b4880cdc71d95ead31da832e289fbed99ea4e6d5a48e21518e53941f0418d9f6ad419ed +DIST thunderbird-140.2.0esr-sl.xpi 485949 BLAKE2B ef7eb18324af325ff2b230baab3c96ee086a1998b98db6304fd7417d4c746ea43e8596792fdb7f24ebd121ffef9a942c03a5a00270027d069cf6affb0a2cca0b SHA512 44ccd873cc59ae3bab06a49c25cc83d1fff62ded7e1947556fffecd975b605e00ac6660eb4a5ca27b20fd6a4a57b2b76aa77db68455a3116166c16cb4254ae37 +DIST thunderbird-140.2.0esr-sq.xpi 504072 BLAKE2B 6c2188c886fc583fcf671d895b7ccbd83e5d40fad1fdafb53217edc52ec21833cd4a3e6e99671afe406d5e09e0a5b36b8b39f7ae133b46435004f05c0fe65864 SHA512 b143d971783bc4aa1b91a91fd9fc40320afdf3fed28978623c59ba1ec7e35b6d266452b9e69f3df7c9c310009cd94764a881f6f694b7d0aa7fd36841d5591a51 +DIST thunderbird-140.2.0esr-sr.xpi 496042 BLAKE2B 82441e446c02581ced3b58ac9fdd1a0698f6c9c1b8a552b19a03b1d48482b76517ae1eb003176d49f77616c71f569eec61d79eda9d7990f7b4d5b89e0c16af4f SHA512 0b1aff3489feac3f07b1a9ea1644125d5c6893d5a161dcdf8b50d46839dca5d55d45d7b71a8984ef657e909d2a6d33b3879be3d337e2de382343330bcdd6e04b +DIST thunderbird-140.2.0esr-sv-SE.xpi 484414 BLAKE2B 024e583f15d76d80f98892c0ec004daf9dab8e3e57432e38b35fa2ba52839fa1e04f4e98aaa2f22b3760d51cfb87c505af151068a194bf428f7e55c9a6946bfa SHA512 b6498f4e9844a43691126dcc989ca926610e0fa7322d1c8fcf894cd55fc94ed7a54cc9c85d09b853c4724f5ada2e1382ffa103bb00f80c1901ed253150f9cbe9 +DIST thunderbird-140.2.0esr-th.xpi 565683 BLAKE2B cc72b2ae5a741f7e81428539e34cc70b278f6b99755e86b056057ad9628706376ca346f91d0caf3c26c528084d1f40ccd754a693da17a6402461fa2b007310a7 SHA512 9339ba35b7f7357f5b3c5e6d68844967a38b5ad05e335d111d02d21d8c21f7b176e11f99b655d5c30901a8076e9e6dc952a9e178114935d4a354b26672567dfb +DIST thunderbird-140.2.0esr-tr.xpi 495428 BLAKE2B 3194f05cf87e3960eda48ca7ebe38a6c774c8321bfbafc4de69d0523a2fedf971a26e4786c4c14d15a44b7bd5d68c1baf6a4105d01f114f2e66e4662cea51e86 SHA512 8781bcbebb1794f0d5c640aa7214beafffe27b5b38f3f4c55d695d885e526081cf8e321b65e72ec1730c7febe290f55544dd8cf2b335d190f1ceada36512f1dd +DIST thunderbird-140.2.0esr-uk.xpi 582188 BLAKE2B e66ed28f88111d20d6b415958b26657be975cce76fa132bf55e8abb63d1a5cdb04916047b6024882637e5f71900077ffb230bd3404dc9d7b67147a191d725e16 SHA512 19dfbcb5fe9f89b96e79bd5687761b251bc2332e4abd7e6921703e4941c4d392744707e5c795007ea966e6dd5c2389ae742a915e811641296e09c2c0370dc4f5 +DIST thunderbird-140.2.0esr-uz.xpi 355294 BLAKE2B 3d13adeb019220c779a4823dc2053c3f152f17dbd98accac90bdda0fb77da7c8176ce77e9484cdaf3a673549c9265e3eeb3a4f92fd3cff086ed8993b8a32df2e SHA512 658d8d6f67fc12ab4d103d8e7b43aa981f0c9c031312817eaa04d022d1396e51f18c5fb8eaa6754d2c071097d0aa78c9efc04a5fb10b874d59ddba45dc856f17 +DIST thunderbird-140.2.0esr-vi.xpi 518731 BLAKE2B 6492403e061a68d45ea4c94ecc9eb68465226819afbae3da7784206fe9d642ae030e15120f29dba548bc594ce86a510856ee0003e7f766d16796a54740c72311 SHA512 953d0f410b138ce6f0f9c5a481cd674ac996426a3d9fcdf18bf2768ed6e92f741b13ce91c9658d7c130722e5f4d117e0059f6cdec74a2332b7b63b9095dedc7d +DIST thunderbird-140.2.0esr-zh-CN.xpi 507881 BLAKE2B 2c6328fdc494e465b2a45b28faf15a4891920737db4ec1a1634ece3cb01ba8ecbbe2a47789bfa5185c2266dabf02b034145f10e518334c8cf65fa6129cb56009 SHA512 83d598bc965e8bcb32d127d020c30072bef847eac542dd1c6bb78aeb5337013ac3cf0419e373423b396f25b086af4b7a4b38f3a4a2ad6c80ed1ecdffd6073c64 +DIST thunderbird-140.2.0esr-zh-TW.xpi 511182 BLAKE2B 49e76ea71ffc8c922fa9b2ca1d8d42c1377b9e871f71810bd7e2f6df98607c6542a01c408e609e6cd0cc6c1e668e02073f4886d051c63bb90fd9bb84292a0863 SHA512 d2e2d51a8bd7c33bf2e61e3e936f1857f92e35da782a8b82d35665689624b97bb111be1925edc689ac599fad2da583fa6a0e5209aa36ac435ea4c9c705c3434d +DIST thunderbird-140.2.0esr.source.tar.xz 750140948 BLAKE2B 2ee887e89ceec009fe2e778d817769c835d13339f9040b255a3007d593469e59cf48a010e02e17234abb1dc9f231fd6dc286dac719048f8297586b646ec686aa SHA512 6a10f95b805f00a0820c822ae07bc52ac39d0a55f084c319d27f01710d8a1d809b7b224da966632ae0a22658bf14e76c8fd7cec022718316c306c43809a4997d 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.2.0.ebuild b/mail-client/thunderbird/thunderbird-140.2.0.ebuild new file mode 100644 index 000000000000..c80e1b806b2d --- /dev/null +++ b/mail-client/thunderbird/thunderbird-140.2.0.ebuild @@ -0,0 +1,1156 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-140esr-patches-01t.tar.xz" +FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz" + +LLVM_COMPAT=( 19 20 ) + +PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.82.0" +RUST_NEEDS_LLVM=1 + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +MOZ_ESR=yes + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info llvm-r1 \ + multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]} + loong? ( + https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET} + )" +S="${WORKDIR}/${PN}-${PV%_*}" + +if [[ -n ${MOZ_ESR} ]] ; then + SLOT="0/esr" +else + SLOT="0/stable" +fi + +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86" + +IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio selinux sndio" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-pipewire system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + clang? ( + llvm-core/lld:${LLVM_SLOT} + pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.27.0 + net-libs/nodejs + virtual/pkgconfig + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + !X? ( + gui-wm/tinywl + x11-misc/xkeyboard-config + ) + )" +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.113 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-apps/dbus + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/libdrm + x11-libs/pango + x11-libs/pixman + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-76.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-pipewire? ( >=media-video/pipewire-1.4.7-r2:= ) + system-png? ( >=media-libs/libpng-1.6.45:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + ) + wifi? ( + kernel_linux? ( + || ( + net-misc/networkmanager + net-misc/connman[networkmanager] + ) + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +llvm_check_deps() { + if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then + einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then + einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + if use pgo ; then + if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + + # Get LTO from environment; export after this phase for use in src_configure (etc) + use_lto=no + + if [[ ${MERGE_TYPE} != binary ]] ; then + + if tc-is-lto; then + use_lto=yes + # LTO is handled via configure + filter-lto + fi + + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + if [[ ${use_lto} = yes ]] ; then + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-flags -Werror=lto-type-mismatch -Werror=odr + fi + + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif [[ ${use_lto} == "yes" ]] ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_setup + llvm-r1_pkg_setup + rust_pkg_setup + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # Clear tons of conditions, since PGO is hardware-dependant. + addpredict /dev + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi + + export use_lto +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if [[ ${use_lto} == "yes" ]]; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + use loong && eapply "${WORKDIR}/firefox-loong-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + elif use arm64 ; then + export RUST_TARGET="aarch64-unknown-linux-musl" + elif use loong; then + # Only the LP64D ABI of LoongArch64 is actively supported among + # the wider Linux ecosystem, so the assumption is safe. + export RUST_TARGET="loongarch64-unknown-linux-musl" + elif use ppc64 ; then + export RUST_TARGET="powerpc64le-unknown-linux-musl" + elif use riscv ; then + # We can pretty safely rule out any 32-bit riscvs, but 64-bit riscvs also have tons of + # different ABIs available. riscv64gc-unknown-linux-musl seems to be the best working + # guess right now though. + elog "riscv detected, forcing a riscv64 target for now." + export RUST_TARGET="riscv64gc-unknown-linux-musl" + else + die "Unknown musl chost, please post a new bug with your rustc -vV along with emerge --info" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-dbus \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-packed-relative-relocs \ + --enable-release \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-ffi \ + --with-system-gbm \ + --with-system-libdrm \ + --with-system-nspr \ + --with-system-nss \ + --with-system-pixman \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --enable-update-channel=${update_channel} + + # Whitelist to allow unkeyworded arches to build with "--disable-rust-simd" by default. + if use amd64 || use arm64 || use loong ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use loong || use ppc64 || use riscv ; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # riscv-related options, bgo#947337, bgo#947338 + if use riscv ; then + mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + mozconfig_add_options_ac 'Disable webrtc for RISC-V' --disable-webrtc + fi + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-pipewire + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + if [[ ${use_lto} == "yes" ]] ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + # mold expects the -flto line from *FLAGS configuration, bgo#923119 + append-ldflags "-flto=thin" + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from llvm-core/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if [[ -n ${MOZ_ESR} ]] ; then + local desktop_filename="${PN}-esr.desktop" + else + local desktop_filename="${PN}.desktop" + fi + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_postinst() { + xdg_pkg_postinst + + if ver_replacing -lt 136.0 ; then + elog "In this version of Thunderbird, upstream introduced an in-app notification" + elog "system. Setting pref 'mail.inappnotifications.enabled' to false and nullifying" + elog "'mail.inappnotifications.url' may help you avoid these messages, if you don't" + elog "wish to receive them." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +}