diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-10 06:41:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-10 06:41:31 +0000 |
commit | f9d8ddaae80afb8fa0924cd3f769f9b37dd373e1 (patch) | |
tree | d8962e6446d606b8c95329b4b78932a65f928a5f /mail-client/thunderbird | |
parent | d94fef9a5708b8e64f363f4a71f0b56caef5efe4 (diff) |
gentoo auto-resync : 10:01:2025 - 06:41:30
Diffstat (limited to 'mail-client/thunderbird')
-rw-r--r-- | mail-client/thunderbird/Manifest | 67 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-128.6.0.ebuild | 1163 |
2 files changed, 1230 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 52cd717a2956..28e3c53f65f9 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -5,6 +5,7 @@ AUX gentoo-hwaccel-prefs.js 162 BLAKE2B c5f2dfb727081e2d538c262f12c0cfdda31cbda5 AUX icon/thunderbird-r2.desktop 913 BLAKE2B d065ceb9a6bff30bce0ded0410a90a55f04cf19e237f26d5573b5956eebcbeec6e0ad94ecc4e306d51522ac511b4e8e9cb9c452ba2a4496e2c9a340a991709af SHA512 92b7e7f8170cbfd765935d4ebda91ab4292e2533fa6e07602648f19ba0959fdefbd00bb3552498f455bf8c38ac50711fedac8c52204751bf60596ad2fca02c67 AUX thunderbird-r1.sh 2896 BLAKE2B 140047417b24e959fe6388c4913457f8e3e786158b7394abf7442b0d2e83de21238e58983845a23b855e1aab60c9289e1a12af430eac9a8b2d9929da97de2852 SHA512 f9b989152a8a3ac274033722c77ec19374085654ad6c85ea4db6f8af8f4b2066d6d9f82b610be2db341c8ac867547f54f806ca6571258ed98dd9e2527d21b357 DIST firefox-128esr-patches-07.tar.xz 18856 BLAKE2B 44d0ddf11518c7eef0a96de4f475a6ae1535e43e5bf89b8f61dc95330f28d6a053d08e6a183cf71432107256c83cd6ee6f742b235ca82babe4dd83698bf80d07 SHA512 60b4f18f5d91fc25f86cceccd561b55f167299908fbf2f9d7d69a8ce299c643f0b538d613d4348e42dd17c3812e4fa315e15004614af1f40fbe2adda417a1a81 +DIST firefox-128esr-patches-08.tar.xz 17564 BLAKE2B d904b74fdae2e76866ded11de5377a7b6883d35996b358ae3419ffb7da53b04b2c7d4bb10d48998a8318a84e8221de39955289cb33a8f278c131b4af2006be62 SHA512 344a2d04dec679cd8ed714dcecc9dd5b56696803cee9267e7c0c45c439d78728e7eae674bb5f0a64f2e5802dc59c1ec25f1703885024d88bda8a02e2b3e0d69e DIST thunderbird-128.5.0esr-af.xpi 530351 BLAKE2B 9acc5f6ff8550ea7e8ec4b66eb2d8b1fa5e03a6b1d57284ccc660f0b644ae57b100810a5323a7095e8cb715f7a2658cb6b699bfb78fc0277c0c34b4e547a710d SHA512 53dc9a9acf7eb2690f4c87f9845cdca3ffea5ba0e7fb4322048fd28a819d6dc7aa22be8eb7f2da069535e9c44873f3141176195e86c03ca2673ea886f53ed9a7 DIST thunderbird-128.5.0esr-ar.xpi 686986 BLAKE2B 0bcff3b9818f9fda817411e6dfd991bc1e7cabf51e0796c83cf2b56855f26954089fff42ef9eb9435e88f01ab75295b0e49c03b3c7cff10bf1ec634d5108de31 SHA512 495b539e3458da7e643d210d6d4171bd9b2eacf1aa1ea7a65a7ce3b9edee503e71f5955bb44d0721b75e9ef54f87ca72375820d19542912f147dec75fd313094 DIST thunderbird-128.5.0esr-ast.xpi 561056 BLAKE2B fb337bc98db615a407b23ba82cdf72413fbb4267c40791fa15e0e3742fedb44730ab93c7b69cba76c8fdbe0b4217fd7a7f88b54f0d5b7591d2b548ece9b15c78 SHA512 b9795142448137f46823d6468a31bc2c8527657bb8ab51eeacdb87d4edb9d24795fa5e4c6b0de3c46c21284399f9abe05271900f019317af937cec1addeeeb64 @@ -200,7 +201,73 @@ DIST thunderbird-128.5.2esr-vi.xpi 794034 BLAKE2B ae0d1b8b7c780e421bc567d8ad3597 DIST thunderbird-128.5.2esr-zh-CN.xpi 794062 BLAKE2B 7690a4514b2ffb7fcf2fc1d26b149ffc7f82d9b7ebe97c6e144f6ac684b2a3e08f00044a3237233e0d17db44dfd58d4859efcd93101f16954bc0027c9700f175 SHA512 fa77d6463508e0da35852625072326ee95d2bb66cc8a184c99187c7facc05a642b3097c6a03ba19e10a793c5f4bad51c6fd7adb3c44ccb96cbb06adbcc625f4a DIST thunderbird-128.5.2esr-zh-TW.xpi 797336 BLAKE2B 78b896488e71b1db7990409fe178ec2309d050a7c1b20c9b1e8276fcfd893c59ea4cb77b9241198e54e0d3f34aee8de53c540f2ec9a75cc1112d0f24a203ff3d SHA512 fb6e0c3cfe49494d678252b7d0eb8ef6d19a85502979c3c6965da76cae2c1f8dc1aafa0df1a15c39c9a26f0ecb4a335acdf4d6539a2ed0b35a625eda84994f62 DIST thunderbird-128.5.2esr.source.tar.xz 674696420 BLAKE2B 3dea8ca8a7eb1e155e50a3a476d8b448c2e810eb347731efd078e15227073fb31c43eb8456678df21d834702085f3470248c51929fe01ed8c02735aa64364739 SHA512 cbfd4b1a7245c2a2f6ef9b2cf69d95a8095eba855755d00fd397351b21ad504733084d6f41801f4114be7015332b8db65e5290bec45f5321efc753412b9acecc +DIST thunderbird-128.6.0esr-af.xpi 530348 BLAKE2B c291336a6e9eb40b1b8a3f2e64406147afadf8da89c4b479c5030af834899790eb33825338e779691cbd3182825067d49b195ce5b89ba473fd73cf84ce25f1f0 SHA512 b8d4efe5a31aaaf8d1fda0fad64e92014fd9c989a3335af79947d4cba9f49f8c243723ba71494f092c03b14a3df4b51c9e6ecaedf0fc0439df3f4dd870fd6cd0 +DIST thunderbird-128.6.0esr-ar.xpi 686983 BLAKE2B a3c3474888b6a5e0600e11412fe9bedd7992789c730baabfc4043be47c971a46e9e3b8d7b6140f89daf38b7ebd1ee83e3a71c52abb55570702c0c8f99dd42c71 SHA512 cd7d41f5267cbdc6e0c7a397c8340c06cce3a213e6abb63b06e5bdaedf9dcddbbc653691cc1086ba63f45d5b3bea8dbc4e845292c5a5bffc4d40d8c7c735fbae +DIST thunderbird-128.6.0esr-ast.xpi 561052 BLAKE2B e0a15a2cc6e271182a124261b5bbe394856d8d9547ab23f780cf1dfdbf03e99f02948586b966205dc60bcd71127eaff1a8e65c12c49a530a669b2ec211de9295 SHA512 c57ec7f29b3ff3eff8e94d56be6292cde5edef45e951ae2cb702c54ff9e48d2cff5a3e5dbd8203bc2f6e315ec2cf1050068c0c3b7f642c2ff72dd2d6c49d4e19 +DIST thunderbird-128.6.0esr-be.xpi 772988 BLAKE2B 86cbe59197929b30c6dbe7e359e67d262adb39d0b63b9d7ed8e228e85034c231080ca9a3ce3dd8d00d9f7cef4981c3fdb1e3753d9f2808b1b83cf3e0114a1cde SHA512 2105943491510503cd72a6278c60a6c99c9a70352a1698f07e81e7b618a6d5e77e0c1918c26c582e5538429707dfaade269ed1fa8df6de954d1f59432362ad5c +DIST thunderbird-128.6.0esr-bg.xpi 812322 BLAKE2B 682041133e3a33c1b517e8846031a9d5c16e4e5d457210bc50aa3d454df319841cebb39bc3582e3281699e7a952876af881d2b07eaaa717f5c1671787b8f9848 SHA512 5765cec6046cae25a11517582b3a254a0e1d0bbcc7fe1ab34cf48b865b34584e598b8548ccc92ae5082c9c411f6ee096a4c758deebb619f1261e66c74c35cf52 +DIST thunderbird-128.6.0esr-br.xpi 655125 BLAKE2B 906f6fe6c588e3be0d8103db89910b47e248ae1c2c8026feaedbd0b94936da456bafb247b4cb7a615abf8934dea7e85639bd0e31b9b3edcc19d87e5ee0a6cc1c SHA512 8227bc3393dfcf8f55f4cd861c64333ee9b75e265b13ed867c4d8eef70c8d92ee8e7408655deb3dc16d54771ea382328ea8004c2a73c7cbe18a723ae533210db +DIST thunderbird-128.6.0esr-ca.xpi 711075 BLAKE2B 3ede15dd28ebfa6324faea3c7dba21e37a604e5d4de5f4b940b1e583ec37ce7ed1246b84f3480d0720b2478a700560a1aa2331daf1ed0f1a8560420b6e8e2c20 SHA512 967d2f507303d1271845abb2d4ab7c558c6a1b9d9cdb647d59f9e40e922bc6c22203970c6b512a447ee6d494c13cc4af0198c9a863bb205e1edd485e98a4742d +DIST thunderbird-128.6.0esr-cak.xpi 672193 BLAKE2B 5407232e5309171c30306bc8a191dafccf6ea5dc4e0334e78703c03c169bd0328069aadbfee31d53f8d7169f210dba4b55c95b4afcb1705de83ea09ff9f35a94 SHA512 c33f22f1313c4ba104babe4bd162ff9d8483b71f2eab2912888e2a1dc65042fa8ee890749a82a570c9605efaa1d6bb874b2fee6daef1941a36fe491edd02c73d +DIST thunderbird-128.6.0esr-cs.xpi 791606 BLAKE2B 0f752dcaf1a9cd1010bf79f10638ea65186660c05b1985aceb97bffe700d6bd166571563fbeb8d2933cf998dacf2b3053b931a49e36e8295afe1a5a913ff2639 SHA512 0d5bd9a69f6314b67745775c58ec8653c2369a5cfd7306af8395d8792230247e518abef5d1859378e52609e963dc645e934bf6b18c3abae4836014792382ba37 +DIST thunderbird-128.6.0esr-cy.xpi 756814 BLAKE2B 8202561c2f83b73d6f73103b3ca759f740be0e4e4dfc8e4e73a59537db26bee7570c54db587876ffee76718c94f5a6ff97c25c80347b4352c6c8b9b0f94626d0 SHA512 315c9a888ce877879a1080c19520315eb7be2b5cf8c0d30f9cc49c382ed97a90bb94caa19d607ebe96d7f97b43f656723346ad3580fe110510fdaae455aa9d5e +DIST thunderbird-128.6.0esr-da.xpi 740055 BLAKE2B 4ce399c01054949cb0a695f4387d155d7de9e5213d09c71ae5ecc838445c95bddd79b7a564ee2be3ca5c3be2859406d248decc0136ee45148c9b5193b4550221 SHA512 c2871fe936a23fac5f7b876d41dd0500de6359a145d8a4ff11edbd25041623960172af552632b2501a165b1aebc4edf4b88eaffbab70dff2b5e1a9fbcc3d9c75 +DIST thunderbird-128.6.0esr-de.xpi 772205 BLAKE2B 69d3eafdd716b01eeaf71d349e90e354125ed1447519598201bf7437cfa3bd293db1308f65ec5e6c41d1a4b7fc8e4f609325c46af0b46b8207bee827ef0b3318 SHA512 b1a051755bf2b3918386e2b65ce3e43f3b504024d1916510c8a71ff5068e933b0c729c4b1e823d4ab8aa0509e2e187446b5dfca1d6d315e7dfba92df364919d3 +DIST thunderbird-128.6.0esr-dsb.xpi 790366 BLAKE2B cde948d8738ec82efb0a64c3ea30888985424fdadf2a3a4fe2c51035cb033b545e63b78c18238f00bc3fd1e0e2bda541d8643c9b7fc98ad090c2b4b083d300f0 SHA512 d0740b71e3c381f740ef7bb1a4f3fd84ac3dc030b5119b58db5f008fd82f3159f1b19e48f92ed32b599052ab0f8f49a0523d74dc371ed888d76bcd80b208f8d3 +DIST thunderbird-128.6.0esr-el.xpi 895919 BLAKE2B 35ab6d658b40c485be55da4f6f573a28e35425a2c5ef3b48547df41f2902024b7e4c2c1bc2e4dddce110cc2388408c719da1d6820d82d3d5e3343a9638f8a3a7 SHA512 2a119aed7b83de6a2ac7341d00cfe2889bde0ccc6a74b2b25fa8e3542238c13111a31daec13390090af6bcf76fe1baded0065c040a83e6a5dccc5f390e3b798d +DIST thunderbird-128.6.0esr-en-CA.xpi 705212 BLAKE2B 469e87f31eeb362c0862e07c605ff65037582fbd8436e0fec16ee9357631775066eb09c9527ddc88a754de91d5b170af7a45750bf852a5a6c862fbafd22348d8 SHA512 fb0c861a9f5dc2e2d59dd48c42fd500e37f625dc232cbd5d3e6a23ee0d5cd530c96484436f52ea9f7532b71fafc9c6811d36a7a2f89cca407bc1d4a4b8d86314 +DIST thunderbird-128.6.0esr-en-GB.xpi 709686 BLAKE2B a76b720e9713b146d20814f59247ee86f6e1804495aed6a2683715d48697c5999279b729a289e7caa7d9b23f3ae9d4f4239c118657111f777632c8b2e23b5130 SHA512 400383b2d1808bceec7c3b8a1cfc4fc4c56ec49341145d9a9def64b6f55f99311efe56cefa09fe037d78ed04b355141abc66e0ef048348f614a00efd02e849de +DIST thunderbird-128.6.0esr-es-AR.xpi 765753 BLAKE2B 9d45331b8dada5cf0d152de94e353b24626ed1e90808d9f81ae620ac97f369ac6643683437721df2721febbe1b05c337812dfca9d0d9c7739e6e175ce1776491 SHA512 963c88d801fb1092a4cca94be64ffb8f467b9dd3fafb3395c7b25bbc377fc9186df086502f25f621f2c43f26ead345234d9553cba5e29e2eb1c332427c4fbde6 +DIST thunderbird-128.6.0esr-es-ES.xpi 733783 BLAKE2B ea67a4d36e8b51a47edc15defc62e598b0497a52dc5a20419ddcbe44ac41a3e8337eef6030e301bcd6a1a3bf4f65d4c21ff3718017855e1616545c18426b5b2a SHA512 6bf64be7c04df40c531682b03f282856f020bc7910ef3a1a4b01e83159506f6afa4085fbba1d5af2c92ded46efb5f36ddbd4fa9ddc4c6da140eaf52af220ca8a +DIST thunderbird-128.6.0esr-es-MX.xpi 749781 BLAKE2B 4c7fffe3db1a9bc4ee3092474024e8fdf754769601768c5d2d2cac2dc24b4fc1bcfa68d5948adaff0e80dbd18d86ed23a85f9c9eb440b5fe840e81ff4e2f6802 SHA512 70b3104f5c44973d12ca155f155989c944df23f9c2d9d637561a4aebb19db244426ea982b1dda4b58dcdf0c69e575e75b3ad4f451c1203a251622155ae6d7e12 +DIST thunderbird-128.6.0esr-et.xpi 696771 BLAKE2B 212c18f86b802ecd4305e143148746c868f7269a2e23ed3fe407f38fbc8c6c3c0966e29a327a49431a83b8f5de20bb5711c5c70d4ab73875e131631f94c530d7 SHA512 50ecf804139e5fee2b92dc1bfdecf676d0cd3d3ad74cf9a49f23233e4211d8d5dc562911a87080db76d5ec8f3213d626793394220d94d0646567b1c91f135ddd +DIST thunderbird-128.6.0esr-eu.xpi 740303 BLAKE2B 8d38a900abf02c3b3c9c288d12569cdf638a78c413a2314e473b399ff4aa93f65b3cd47096cee1285241756de8ae3b65ae1848f2c5a1723d6fa8f745fe600c1a SHA512 3eff3d9ae78f416f2292cce32a82ccb1e54ec32c04efc0deeb2fc1bf9d7e0e2aace59607f0275a57e4081748dbb93af50fe345c13e8dec22a6d0d3ca94116e2f +DIST thunderbird-128.6.0esr-fi.xpi 738929 BLAKE2B ca5110469fb6cff237bdd87757610453043d776cbdd5f80c2b575eda5b336b93230263df199df097334f733498c8ffa15c5f89d1faee7a277fb89bd10eb6751c SHA512 3cee622136e2165184ee7cb43e453483c95d617afba19b49fdd25d15d6050ee7bede17b6b6911333b82a30f07f55ebf49b3c8d265a803484af6fbae111bfb799 +DIST thunderbird-128.6.0esr-fr.xpi 777362 BLAKE2B 93d577d3980bf35406e82db368cab3b58bd5f0d8b527059f1f536bd78fe6374b6ca31c586ba1b4082fe3e775810a28566bd3a7e8c0c79b94970934be0639f7cb SHA512 a29311c5849c371402607a92cab485394b648bab8c753f619a1c68505f50799603c533da42cde4c2a4c208cbf33e9b5596093033d0d665c84112ed7e0b525be1 +DIST thunderbird-128.6.0esr-fy-NL.xpi 759927 BLAKE2B 24d6b2550e335a461976a6536c453f45c01c8486f4196e720e3e0f66501ae9c55fd97529249a86d981e661c8c76d0bfe7819270b07d80e503ed105604b22ec7a SHA512 73904123c62bc4669aa4a4b54059d3da74b12c03a75c5485f72139319c307caea47f58e6626e5b450de5d1f45328099de85999256b90d72977789e14c45290ad +DIST thunderbird-128.6.0esr-ga-IE.xpi 616367 BLAKE2B 64a6426046876c74375a443af2c8b59e01756a95343d16e5c1c08bcf5b999c9d2b301e91a9f1c8c3a221d2d7e41457761e735a92a45484b90b717e83825e8963 SHA512 4375d6cb7db6aa07acddc73610f791c069ecb88e39685b0443f4f2f5b1c759f68f503f052ac959608248a8b1fc939dcc851d2c3619a61b95c792401f457700cb +DIST thunderbird-128.6.0esr-gd.xpi 729137 BLAKE2B 803cfc378293b448ad41f82af290708623c7920f65b86aff855e7e0e0783d2906db8a2005a2f83c688d283eefb9e85fa3c59306161790d4718cf40c5a9d6ab8e SHA512 878fef6be1be5e68f570a9845a62080c69cfd1ff7fe265f63806900e30bb72d0491300f7abf777e57c70e211c47ef55a4de5cb7beb2f30efd318264da139bfbf +DIST thunderbird-128.6.0esr-gl.xpi 742174 BLAKE2B a4f66a7999dd4c94ff8d81fd0638f32d591941d7d922d2d2f8ef8160541833d748289db233b9032768f1f84cd41c3924c08ea6cc70530df983f1a7f3d2d29269 SHA512 ca1650451c1bc9815637201f4fe6f835d20ead6fd869dd65f1fc1740f40c5bd4770d18b9d33f1fe2bfbc6af1538a7feeff627a2daf39f7942b506c54f545980a +DIST thunderbird-128.6.0esr-he.xpi 703445 BLAKE2B 691e73f8c75b5a3880320c164af4325b6cd9f4f3456067cddc51a094687f3f3b675c1bdeeaca81485bd90e1416bd22de4e116eee75b9a69f17d7e6346d8dcab2 SHA512 380cc758eb9ae27186e07d27ce38f875daf0a8cff17da511e984a8bd2d9b9f90cde973f574672d7b2845b38095e3beeaddeec2e9e907f7f36aee1e9b4d90f36c +DIST thunderbird-128.6.0esr-hr.xpi 720117 BLAKE2B 3ad821fbb006242b1f8350f182121fbe80aa089c270c82f8e36107d3b58a787e5f654f1b3a6e9be1003f5640a427498003cdaaf58128169f510827f42e6a9f72 SHA512 e75c85d1428d3abf930764d703c2f36e4815a03c946c4d102672ce748015d8a3158f2d72d9d306aaa9b5767bc2b9be91afed3b2b1fd9a8e66cd149364654134f +DIST thunderbird-128.6.0esr-hsb.xpi 787747 BLAKE2B c0be155089507c003fccd23333168137290cd18027f1d912f51b9be9bc49780442303170d91deadef2828d2ae5cc717003f5e116bfb4d65e8207e0ffcf43968d SHA512 d9e7b5aa7442d5b1f95fa06c379bcc23047836f191143b1c3b42d7ff76a5c89e493602bbccc0a3b5b30ae4abfa661581aeecea495d98ecbd6abf8247aca4167c +DIST thunderbird-128.6.0esr-hu.xpi 790229 BLAKE2B da5b291250605f6ed4ab574f22c4f30c0ea7e9e110ecd8e581bd81a4117497bce7f3d88acc302a02ec99ab1248bdfcfc82fb93aeef3080a7e929d1c60e1b3f17 SHA512 de2972fa16663da66bc7ece9efd8d22a0625a35fe009d5c6ab60cc841fcd9cdb9afbe39c0fad6b8a2aab56ee36f221676768b6554800d8c728a39d4911276997 +DIST thunderbird-128.6.0esr-id.xpi 710323 BLAKE2B ed29d48c4e4fd40b302f71de3d72f5bedd0ca2df92fe3b5f49f38f4dd557cbf6144d638f4ca98aee47f1bf16bbd964e0b65387b9935ad11739db665b88031787 SHA512 455e198b66a91d033a29d7e61f8af887ae672a8064b771af944548001ec989de2d41a07edec7eb0acf4a3e8118567d14ec0be67570e3d40ab05c7ec25fcd9b98 +DIST thunderbird-128.6.0esr-is.xpi 751185 BLAKE2B 9814f174a21085819e25e96a45f37026ebb6b6e8675e2ca7fccf5895d0ccbb2a379d868d6538cdef089e29fc86a066d0a3a3f499c848f05d0c91892818682c21 SHA512 f602e41899166e92bf68001563a4817a5884b95899ce468f074907adb2e92d3dc76ff76a00f7580309744e05bb4518bdddd5c4ea506079daaa6329c014f815dd +DIST thunderbird-128.6.0esr-it.xpi 697093 BLAKE2B b8398d2af10539f191a811b2920556637711e6455bcb1dc281fb9e7da840f46363f083cbab7a90c428c4b04bec0a76d42b7219445dae0b4a46e39a0f72f58dcd SHA512 937f1616f8a0dbb2c6c7dbba027efea7c7a452c9a2691b2d03ac114b1484bd8f51eebe5cc907f56779fb00d839d1b115e11de937fa6b0be434645656e9add71e +DIST thunderbird-128.6.0esr-ja.xpi 817723 BLAKE2B 290f46202d0c1c739049b9f2335bd7817fe1120b88b66e4d86d5fcbe208c3c7e76984d9e92add20fbbaad9a014d7650cc0039c59df32ab8f5b43529f282ef8b7 SHA512 1ef79f1d840b887b7a0569f6d3c7e97eb2322616a727b477474fe669e4bc5e655b7bcf5acbea8be4894e7b2f0e33829d8181517fc4e551d12b7a44f9dc575fa2 +DIST thunderbird-128.6.0esr-ka.xpi 796713 BLAKE2B 36a4b12099b9abafee286179ed3cd5c96186ffc366b3822b1ce5df75606ce8062a5dc4649fd55b7658f053353fbd2b7bd863fa0d5eebf8524b4394d1a6434b8c SHA512 2058f912ad4dd964d661d031fb97e2f3c120188e3467da12dc21b89169f1525b4909dcf8b64b2804e6cbfb56cade85879a8666a98768b5b117e1b8ce073540ce +DIST thunderbird-128.6.0esr-kab.xpi 735472 BLAKE2B e04f17eca5213be8b60da7ca75bf446e1878e50fb26f0453480808e6a59682219cd6431735c07fe6fc6ac06a754c0d687d14390d32e6fadb7193dad87b13ae02 SHA512 6f221da487dda45b2d8da905a545c60b98cd40788d32d73c7a2d752738b3b8ddd653ae05f2e8a6323a12dad5974584b8b4c73687eb6300c3daded50178006212 +DIST thunderbird-128.6.0esr-kk.xpi 865510 BLAKE2B ea80f0c5831df3850181eb72db6254b62f86714018d817d604706103aa1ae0617984bdc361295a33f4decaf38382245f4e1bc162e077c9f72d01308e6eb22cd9 SHA512 8ec4b88ed4fab840e0040e10fd8db1d4f332de956e970403b538cb7f2563b0a34737c7c1cfc6acf1f2653b259cb1b0631c8b88f2c64e217d618d3659116673cc +DIST thunderbird-128.6.0esr-ko.xpi 762640 BLAKE2B 11a9acf63f72292d1ee08844d9a0d6d62c04229a253cb18d2469687be1d8af31bce1041e03f5c563aa8c49262d8bf8d2f84216bed29ceac283774e35bc3daddd SHA512 e747dcbcdae386164028a2454a8c4c45419f01d087794f75cdadc09a569e1aca88435f39951ad53ac7b000c3a1f5ce1e522670a94cd937ce8bc6723e0dd76f19 +DIST thunderbird-128.6.0esr-lt.xpi 701408 BLAKE2B c79670b1dff56429825d7bbf50519a6f539923c4e5b17f5ef2edad2c0c3dfc9a48b9d07eed69b52d73ea4aef6c60bf04fcbdbf0855c16a90a6aee920a033d2ae SHA512 78d990650323399c975e41f2fd8f3b7449d34c64ecb93f1c0ae9fe290a1610a354278ca8952ed4e380507a6637203cd24c67d36a9241f7fac811dd170a0cf9b4 +DIST thunderbird-128.6.0esr-lv.xpi 625979 BLAKE2B b6e83c16e4e1daf417ba1dc14c9ce098f9f9ccb82f46fd1c708bcbd4e6e1388809d192364fba3be1c779a2aa947299ac1be2328254c6f83bf270a130c3bf3d3c SHA512 31e3a42b02084293e4728a659abd94ccfc17e97f11cebfa1a52f4a6b0220132ff8e562a16ebb2ba9643c5e358427f37479f6a1e09e0414bb236b65242ff0c7d2 +DIST thunderbird-128.6.0esr-ms.xpi 581572 BLAKE2B 7ec201f640f936ca5ceff810014cc647f4ee59cd137e8ddb300822091998aba85f4332a967eeaca80245e4d10646cbff51b506be8eb6b6daf4d98e73261dc72a SHA512 876e48c0c68cd7f8fe5a001f44a507fcd64288944bfe9c7c84d1103c44303f57b34fade9ed17da73514a724fd203ac8438af3a61c551cfbb324811b4dde5e4fa +DIST thunderbird-128.6.0esr-nb-NO.xpi 708559 BLAKE2B 2d380eca9b21a6e71b8837ab3e66c6b390fde862a60ed7f70c05028ba2464a59e0e8a59b225ed9814819a06c711ad5342abcc80c4af8e7da956808c4dca3af5f SHA512 99d52606674fd115ba9f5699d797b7019c5e443d8273cf04a91e6f76ea4978606efa6ecfcaf7357c5b0c24a5d949a0ec0c44642ed71ef311f388c016d63eb862 +DIST thunderbird-128.6.0esr-nl.xpi 751613 BLAKE2B 5f01f7da5eb447da566a2c6b34430ef3320caa9dbb9987f500412e47ef15a3191962e3495be111eac38c4bedefae855fd4e101f3edaf4c1f82e6a2506e07601f SHA512 00369570b88f4387f11eaaea1ed0337143b4c2d252b0e5a6d0352c5165c9cbffea1b9580f82f5d6b402adfd1627b637caf107ed47c56e071d5377fa69ba56314 +DIST thunderbird-128.6.0esr-nn-NO.xpi 729656 BLAKE2B 3d255bd5c1179ea1026f12ca772fcf9519a891098eebaada3e9bed1a86c3fbded912e1b554998dc5a405be98347dbef03fb6c4d02bc13acd4ce973e47882e1da SHA512 e98c72b7e11d520f81a60f3115d23cb06812dd5fcf65e61087338459b5d79180b8136b3bb0ff0fa1aef8483e686839bc358c0d9bbce58339387be57c03de68a2 +DIST thunderbird-128.6.0esr-pa-IN.xpi 688137 BLAKE2B b7cbff1b6239564419616ada453c632e9b4c80a4053f86605d472493be0bb4dba5ebbbaf51289835b187a598a64518c90363b394015a7b6f9f460c336925567d SHA512 929f478206ceb94b6a27f7a53738a43e844f200a5ef6e061c3170710a2b5b4bfb12e9106e0306c5f5c3b4bd6d857d6fc3280cd45b019397b9aca290e3af01131 +DIST thunderbird-128.6.0esr-pl.xpi 770778 BLAKE2B 8fdf8b0101e3b73e34a821f4fec508da4f915c0aa96ec91020ed14f5f9fdd3c3f5e19bfddbeae4a831280a3dcd0ff4597c8b843d99cf926d35427d95c27fa11b SHA512 26a2d2cdd1bd21d7e15348849ad95a4f33bf317ac31d8c76b447e4998e0e187a1f87e54eeb5654758054a2b2f5aa89eb3d409de4239447d3167838ef69395d4a +DIST thunderbird-128.6.0esr-pt-BR.xpi 758843 BLAKE2B 054860421a300456ed5436f31add056cdecd7153ab453dd6c5c6dbd5da8d85d34197c4ddb1cd56fe880b3912cf32bde45c87f1883c3c9f567e9485c86f8d8e33 SHA512 6bf1231fb8c18082d296a9dc9a612047c2f615a6cf47228b64d3d7eb131fc3f60eeb74d5f47c3313d8d19d979c13ae28ba196398a48f38de1a4470b9ee1075b4 +DIST thunderbird-128.6.0esr-pt-PT.xpi 752023 BLAKE2B 2d49880e82a8627f9a3ba311970c2b266071668024886dc6f0a34cff218bd4aef184398e962d93bd59e359da35b259c24e7d4e2f2df042dde5257e1aa392451a SHA512 399a966c6c0151826d9b55d517507d2c039bed846b288621339e416f3f86cd700e86b55c3edd4dc15412fe2aebd5bf7064e6217b30bfb7f63a19e78297ce9459 +DIST thunderbird-128.6.0esr-rm.xpi 754441 BLAKE2B 1747b723e17d56b9418aa070d19e6afa8b67d22188bd77972d0ea08fb4bcd089c7bcd6da572136d15aac1b9b2c9ce498bd5b96d78a3fd208d222b534811387b3 SHA512 767ba60cede87c497823cd75debc73dde92b6185cf1641e9755ccf6a31e1396ecab99d7b35b25eed3e3c25660bced9ef05b3ee3b2a383f42b29e4ddfeb4a9357 +DIST thunderbird-128.6.0esr-ro.xpi 670225 BLAKE2B e00d61a68be5d70eac9958026d4636427eab5cdc17d5525f21beb3d72fa4901cd6a3de16da2ed2dcf8fd47b1f06ea6f9703e01a1ce76c2b92accb29ddc1c4b87 SHA512 304993ef19990310b9cea9f1edbd0bf26bc40de36b29a0cbfc0bf34e5ccfac9345e63fadf1f98d6534a7d1fa66d89d2a1157eb2cfde18643d3432d421b02108e +DIST thunderbird-128.6.0esr-ru.xpi 880794 BLAKE2B 6230944633c584a6d5996a6f44b0af1df179921bf023f2828e4f690e835f6bfc8a005edfa9a2115b13aeb855de92a93a0e5789653d5e2ca91b78006cd70b7d27 SHA512 004a59985a3b68da9b5b57e5d67f84e4af231d9d79cf09a9b266e926634c098743877ba4496bcbba831929331fad41690dbe2ffad5335746f2863d98c908b464 +DIST thunderbird-128.6.0esr-sk.xpi 792218 BLAKE2B ad6413e15cdb86122458566a4912f5169ea3d3346f498d29a63c887db336a1e028ec25d8a68cbbcdd70380c9329e42721d72052380d7e44910c5b287afe1ec13 SHA512 f809469dab44d024d6fee4c094f7682ce875bc53e45a1441d9656df2691931fa2a8fc599fc14986295cd983062e1455485ce4e0259c46231d34296afe833d268 +DIST thunderbird-128.6.0esr-sl.xpi 751646 BLAKE2B 761b4950ba7ea9a23fa93edf7e192471b99ead7cf0477f930dd7f7d3aa54e0287311aac2e7ba67ff92087680115d3deaa3231807dee7846c44d9d9b65e2a5f42 SHA512 9daa2f3460586204f33ecd64a30482aaa5fb31f0d6a9e53a44aa361bfd1ff802363ea0c5109a089086e8978fe16fcbc8642494a36e294e7c1cef4562118f020e +DIST thunderbird-128.6.0esr-sq.xpi 774995 BLAKE2B 9038ec651e5048352747ccf3abe5a84354c9fc85b009de3d25e75325f0866ff8881170e933954bd5ad4e8e4e527c2cd6346ca229b5f5c82054332c027204ba5a SHA512 75cb0917997d6eec80560ce0ff45d620061586e5740ad4b8b8b7e4196410f9fb1542f95e8bc40ee7d9c8aa741d909c0088f5338df66c1087431982237d2576c6 +DIST thunderbird-128.6.0esr-sr.xpi 771751 BLAKE2B f147bbff81508fab41a398430879b864bd335db873e8a4b24272913d461de0e4508c583194ba9e970a8e82f685166c40d8ebbd31953c1d94dfe46f07ad5039b5 SHA512 482ddf1d352e2851387de67afe5fa1cf32253d7f0034a61eca799cb4a863dda192b0d70a31e91abdc1245d7e627a676793c2abb0e1dc92f72bd9c0f790201dd9 +DIST thunderbird-128.6.0esr-sv-SE.xpi 754937 BLAKE2B 913bbfa7ec2208053f363d6ced46914107d6e2afe1eab16b1719719fb565af43baa5ad7b3adf860ebce8a5b9ac9c13d7f965ca9375555cfbee9b3c83a7c74e4e SHA512 de455beba43db7aa97dedb9e4b8aeacaf4359a88083df250055d08ceb5e93e30d8f306aa3c7c9283124c8876040a2d0de184eafdd430dcc94f0ef36de7ae08f4 +DIST thunderbird-128.6.0esr-th.xpi 819690 BLAKE2B d5d561d777cb45f583b24eb72a8ad628281055cffb1fcb6204b29dbee5adb0017f51b44f0dcc7d81a805bc9ab8f0f10f8b2b1e9c7b41aa595c78974f228cdfb7 SHA512 1b1e83f1a35a1bcb2e3ad084c922b89d5bf2ab90827eadb315e60d5868dec0fe93b26951a36ca2301083f7878d51c12449abb6292888735a99cf5b20861fb01e +DIST thunderbird-128.6.0esr-tr.xpi 765547 BLAKE2B bc5772e4e32eb5b5dfdcd8e5b1158d446145a13c822c1fcd453d475a7d4f732d80be17d9ae88e55cbd70723115dbe7cb3dee4f6496295049b1a8f93cfbdf6176 SHA512 92366cf98ed85f114aed2489e3a4d92d6d51949c24c73b0928c3b964edc33134be09e83daa697ab91285c7a46b6f9c8a299eb1545edbdb182bb084fcf753d4be +DIST thunderbird-128.6.0esr-uk.xpi 871375 BLAKE2B a06e5f41409af4f6c3a62011e54c065d73e4819880d77d4d552d307da1bf8d6dd42314fad2d85917a705f03ea9d8281a76ad4ec06792e71c80a7fb19fa16d9bf SHA512 39e0b2819efe5b7716ce986e9ee362d2d367089f138836aac70b11a4e47ca3043e411e1fa7b7ffa5ba9c85a7422206bd765e43e884b729cf8115beefaec72e87 +DIST thunderbird-128.6.0esr-uz.xpi 592619 BLAKE2B 66ccc9ed026eef75e1b14cb5948a2999d4dc77fb428f9624970d2ffdbb2b8cc4cad6a3b95c5649d745f6ac61363650f996fd43f4c60fae38a443c2752e815333 SHA512 e44844d875378e9b325918fa56470921e782950515f467dd366d20fc6dfa05284e68b60e72bea0c6e0e92b776fd43f07090a63bfbf2a20e0a956bb048ea302aa +DIST thunderbird-128.6.0esr-vi.xpi 794032 BLAKE2B ea5a6ceff2a399cbc0331fdbe8ad401f0d581f036a6cc9c2f274fcd885c85e2f61654d58e5a6cef361d912eae2b8642ffbb809c51cec9604eed1adf2e931fce4 SHA512 1d4954a691c24b8a097c111c87ef476fcb03ee38eb35429c1b77ffe7732fe24c136f20a8f6d707476471a640a05e3099e8156d2b2ab6c07ee0af5f9fa6d24f89 +DIST thunderbird-128.6.0esr-zh-CN.xpi 794061 BLAKE2B 35c330a426b5c6e39a6257ebdf0f3382b80d73867792663089e5da3fa69309141b0783ba09ba90b1e9ddbced6774637a29a658d1ade289f65801ea73cb78dece SHA512 4448164c809d52efe1e5406117be01bd582fd75c08a59af5f54bdaf885e86e1753ecd69bf910396c70e6f7f6cc9c201bea65201dd99c55942f59bb8fe3926374 +DIST thunderbird-128.6.0esr-zh-TW.xpi 797334 BLAKE2B 517c72d488ae48839959083bc29b19b966bb3c91982f926ed73f2693309677476336650afa63a6c9f8bb1c8e4e335dbd7626d71b826d961a370af851519649db SHA512 6171c002769eb847d96a693440bba6f7246f033357dc22da93858a1a70833aacb28eed95e21592f49652221895fa1ecbefb91d0e24f29ce01d0fe216fdd5fcea +DIST thunderbird-128.6.0esr.source.tar.xz 675443868 BLAKE2B 5cb17164327a222bcbb70f1ff4f5da36e130866e7e4d7c4122d0ed7ad83104fe84039d46b7d638fd4bc3b8cd08e9ca3d7a400f0970014e510b26b6afcfd3c11d SHA512 a561eac0bf0b8c72f3337ccebcde9099c342d1b31ce2b1f31096f1f805a195c49d627cf726cd56d41b21ec292d96fd577e8f226fcb24d8b13e0d773fc334b073 EBUILD thunderbird-128.5.0.ebuild 34115 BLAKE2B 767d96ad146357bfc9bd7507d5f46349056eeb7ef8ee75277cc8310bba9690a662cead451788d33d71c971119121a645b6aea2e8368cb79ab06f9e01fe1fb255 SHA512 03edba5771b90cb823693f60968c7e5a125221c4a11585ea631bf2cadb6570d832414289050f8338a473d19a518dd4f4f72b67a157712a4ca1c0f58ecc0728af EBUILD thunderbird-128.5.1.ebuild 34116 BLAKE2B 9f8cbd07cfa3db2b6a506edd79197a050ee8006eb2c2ce7be79c2a9ff3626fa186eacdafadec26a9594609d1842ad846eda81c94ef3da3907094098c57065919 SHA512 b7e28e21debdaad028c4b104e2ba7dd224a2451d138a6744e7774c6ec5214ae32b7dbfd3cce3bfba89c46e39ffecef01adb93e1bd7909a8002b9d023e877bc4a EBUILD thunderbird-128.5.2.ebuild 34113 BLAKE2B 1f798c3550e02bed86ded41b991406a907d4c9db9a5a26c995682949549bae931f31b335d97df99a25608746357faa5206529dfddedb30f0b7b51958a14c1e3b SHA512 65af6cefc3fcb766368040fde4f688339ff373c2cba38156b5c9e44c7731dc0a43c79d5687459ef70c31a9af672154f05b532e5133611cf54100c5a3ae66a8ca +EBUILD thunderbird-128.6.0.ebuild 34114 BLAKE2B 4b0a6090060e7a13e23604de7eee2d1a00c9ae1b75df283dc30dc5e3be568ed2a367e225204d467d4e17d3a9ce55bf392d3220009bfbbf1f9141058c56abb768 SHA512 5178eecc3cfde9bfcefca259165c54c6747855dcb62014b07d099ab39fc362fcab8f6a291e329851d0c4cd1503acbef6d4cd56bd34f9e06b6dcc5e154e805464 MISC metadata.xml 2277 BLAKE2B e4681b61ae7363d0442ad382e5972c7654624c2033e43559d9d751af8abcebf6e1badede00b68d8f28ba0eda4b060acb3f730b79181d0acfc286c1a03c7cc2fe SHA512 517460e6a4ce6232570290b69596bc2e1913c7a95ef4df62216df4d3be7b8c83247004916ed5e74d285951d9e9d96fe80406d128a0764ab41aa26458805a1513 diff --git a/mail-client/thunderbird/thunderbird-128.6.0.ebuild b/mail-client/thunderbird/thunderbird-128.6.0.ebuild new file mode 100644 index 000000000000..37dc301235fd --- /dev/null +++ b/mail-client/thunderbird/thunderbird-128.6.0.ebuild @@ -0,0 +1,1163 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-128esr-patches-08.tar.xz" + +LLVM_COMPAT=( 17 18 19 ) + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.77.1" +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 autotools check-reqs desktop 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[@]}" +S="${WORKDIR}/${PN}-${PV%_*}" + +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy lto pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +rust-extensions +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + rust-extensions? ( dbus ) + wayland? ( dbus ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + 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.26.0 + net-libs/nodejs + virtual/pkgconfig + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + !X? ( + || ( + gui-wm/tinywl + <gui-libs/wlroots-0.17.3[tinywl(-)] + ) + x11-misc/xkeyboard-config + ) + )" +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.101 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/pango + x11-libs/pixman + dbus? ( sys-apps/dbus ) + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-74.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + ) + wifi? ( + kernel_linux? ( + || ( + net-misc/networkmanager + net-misc/connman[networkmanager] + ) + sys-apps/dbus + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack )" +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 + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="6800M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + 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="6800M" + 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#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + elif use arm64 ; then + export RUST_TARGET="aarch64-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" + + # Make ICU respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py || die "Failed sedding multiprocessing.cpu_count" + + # Respect MAKEOPTS all around (maybe some find+sed is better) + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py || + die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py || die "Failed sedding multiprocessing.cpu_count" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-gpsd \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --update-channel=${update_channel} + + if ! use x86 ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly, since it's not activated automatically via "known arches" list. + # Update 128.1.0: Disable jit on riscv (this line can be blanked to disable by default), + # bgo#937867. + use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_enable rust-extensions thunderbird-rust + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + 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 ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # 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 + + 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 +} |