diff options
Diffstat (limited to 'mail-client/thunderbird')
-rw-r--r-- | mail-client/thunderbird/Manifest | 66 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-115.4.3.ebuild | 1325 |
2 files changed, 1391 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index b06699ed1d73..904361749084 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -135,6 +135,72 @@ DIST thunderbird-115.4.2-vi.xpi 742633 BLAKE2B 3c6f69a35e0f0509d5342b4e98daf22e1 DIST thunderbird-115.4.2-zh-CN.xpi 740611 BLAKE2B 4ffebb29634666701660dee78f4bb8eeeb0a3df5c63fb19a0087944f704f1245765dac1338d7285c5d7937c6b194bc48539f3591cf41853a8c15bd2c95516b5d SHA512 cccf099c3ec92b5322623a92775147ad859dd062d0325129dc55fead0613831b63cb0afe3459b8e8a1ba94ff8c1458b9785c0f62630f72a01973bbbb228aa3db DIST thunderbird-115.4.2-zh-TW.xpi 743525 BLAKE2B f2d75f9b5861e7f86cfdf208ccc7348d24817b94f430fb23e0ecaf766186152b3d6e54ab87efaf4ea7134b5bf3fede25fe91dafc1f0df51ebab0b0ebf252330d SHA512 448a82d71905e3b6253b3a0f34edab994d3115574c3497cfe675286377142991284992f02a4c65d335d4e353954e801bc85293e59383e714da8fa7e7c6181e26 DIST thunderbird-115.4.2.source.tar.xz 532064924 BLAKE2B 89c6df7c8992143eb8f2d1b3c4cdf1ff5698195e43bb20b5853a24c743df730ca86c8d4a6877b86a479346f851b09c07dd174e65203bdd0f480b3900242a4841 SHA512 44cedd5931edbac2ab0babfaf0e71a0262317c01fd7d71e8740bb8f54766c9b49b9e325f1d2796c3a233d4298457d8769b675213a21bef759c46086080bcc8bc +DIST thunderbird-115.4.3-af.xpi 542153 BLAKE2B 4530226aacf2ab2eb6a036a471ad6d4dc650673dbc6708d4633a3518840c0a5f44267ff94a3891cb86c7d97fb70aab159ec1f6839ff7eb846d336ba585471fcb SHA512 3c4ee8d994651f9be40aea8865165963dab6452f2b256842b9b7f0269d5e6ce7fb288d0084605ec25c4da857fa70d053d4b7e628145f72c5a59e885cf0de0859 +DIST thunderbird-115.4.3-ar.xpi 654727 BLAKE2B bc2fba8ad27c6759c5961e19cfced2026639f8a41ef056cd40012f013bb3dfdf3435060a9248d3b70609cecd86b6e5946379b2cb709a3c791fce05ed087aecdd SHA512 0f5ee9812ed28488c6bd7691845def142b694f7f9ced7825bc695d6776ccf6ff6b5b17f3a61a1788c08ba0349b2aa7127102cd821f35c1793005fac53554a106 +DIST thunderbird-115.4.3-ast.xpi 561119 BLAKE2B 48e2f193d923200b51b3878e99590b08c441972780c16a27aafb0700b2e836b2e2f8dc2ecd15265752c3d378a862e133a11d04a9b0e20b0dfb66b401d12c5e69 SHA512 360a85ad2a398cf6ed2bba2e0d0e94d2cdc9833f8712ecbcecb347749cf729dad464d3192886ca3d693150c51e19575b688cfb24e040a0551e6f39dec58b78cd +DIST thunderbird-115.4.3-be.xpi 694083 BLAKE2B dc7376071dbf2073c8b70f9f3e21159720f7d4e5f38fc6c8ceddaabc427db4dca4452f8be9368ba75b5c58f8d8baa39a7170a2665eb4210ea97cae765a19e352 SHA512 a0e542466476250f94f42117dce7cfc1a4480a4228c96edc78d3e76456c37333a5028749b2cbe0104316759d320339efdda2f236688587989723af4b3716aab4 +DIST thunderbird-115.4.3-bg.xpi 681252 BLAKE2B 3b5a3d747b4894760f7ac56d7b5b9c2209e74bbab81c378380ff079ca6f16cee4e666b15cb11131f8740c3ee57c1cffedd273e03e0f8d5f7f0a4157ced5d60dc SHA512 b66f5161364f008710881413ea09abe8648035f310ce698b1919bc51be7dc17074a1a83471f97de3ac5e5c775ecb626a9984d5d080054d3f726b63c87a889301 +DIST thunderbird-115.4.3-br.xpi 626933 BLAKE2B 34fc7b66db103ff75a0c4e39b9de3468a4770d9f9a2419ee8a44c63246d2bfa8158c33b1bdce6e4a67e0686d0c8f6c5587d9d94079392f3892c401a886ee88d9 SHA512 75ca943b11ed952e48da3cf1b40629aa1f974eb62fc57c54f4eafa114d7d33cd8fe1a37517c3d7cb4cf2d0ece1c829dca4c01ad980078ab169bbd84b1d5436be +DIST thunderbird-115.4.3-ca.xpi 670650 BLAKE2B 3e7c579363e8272e7eb2e3834b9aad190463f35dd7be2535cced8b71796be8926383bb7c1b0c6362d7034452a0a9499650e7e24e081003baa6ee98deeec32b30 SHA512 5d0e6c9e2a0534e9de20d829c79f85cd0f40d043e887a5035a75046bbb05c564440a458a0b06166bf844e3a9d3f77cb41344312c4066930b74e094f5311f4a2b +DIST thunderbird-115.4.3-cak.xpi 657815 BLAKE2B 5e8f5ab4220fc855cf8a4e0ea0a9d8bef288794c2d99be11eadf4eb39fc76792b651dce47658d8bb8354159dffbc63ad3195b9a3755b6ca60a126f9baa637120 SHA512 eef947c3090e4c1b735ddbce6d3756cfe47f4837d2fadaf9944894e97d414dfbf09b4933c927d95f4e1c036a2ae16ca0d75fb04bc3e6f3cf9ba5c8f4c7261b18 +DIST thunderbird-115.4.3-cs.xpi 733800 BLAKE2B e1aa37cc03a2feb04706810405b2ad6f618ebec1a881328e88e943f89fa973dd047d31579fcebe7bb78a1e26a5c372518b135f9685ffdf4ab7a18b42f1cd0b9f SHA512 e930a5db030f8a442bde7cca4d56e006305d4ef256109d677a94f19fdf1a7a4489a082a68f70eb52a9dc1ca4ab19e6e090d17eb864881cbcf1c9422fb3806c24 +DIST thunderbird-115.4.3-cy.xpi 703266 BLAKE2B ecc3868ac2a398b7f54cd6465bc628a43076d152fe2e706ccc46ace7a0f8e0794da92bc0e6743fc91179ff3df21170c821901c34cd40153ab494fa87489f2720 SHA512 210c95a7aa1ae64baa4b65988f8e76448956934c51e5c1e4822021d636408c717e069fe588e1d4d255cf342aff02e58169069f2ec3ade557faf169a6bbd593e2 +DIST thunderbird-115.4.3-da.xpi 690752 BLAKE2B 2d61d1223c0d3e8015df0cfb673ca0358a51b29307c56702652cb048280e15f0da90597a08a2dd975caf2f783888f12e7f83b0ed7e4547b16cacee49700bf045 SHA512 de1c975ed08a52f3996a2d592695f9484225ea8aef1401c13439f4812f8bdcd361d36751489ad054a3db545ec634718858e9d4c792444d2d4c94ee185dfec541 +DIST thunderbird-115.4.3-de.xpi 720202 BLAKE2B fe8e814c25e5e98c06bce6c1750230d2525768a07971be8155036c6d5a7a06c1360c4ca8aa63cf9f2c5af2203765d961c1fa0800bb05f0bd42a81c9bee8d5ac4 SHA512 b8bc54665c8d6c14c5710491201f92e8f58dc66ca55056ff71c2a3d473147da49e86557e4d6eeaaeda03443056a27af0ef9e235de4108cff37b83bff66bf0644 +DIST thunderbird-115.4.3-dsb.xpi 737297 BLAKE2B 952f63cd849e77f42ca94dd261bef11c6126285b49490bd76be3b4ee67dd0ecf0b4fe10bcb4546e777093259b22f81b8cc2e2ac40f99b8dedf26afa798f11fa4 SHA512 af5b344434881c743cd2112174472964b3c8d7bb6edd8fd7dd17ca9b283489f59efd585a71eae8f21346dbf7967fdb28b491fe0e71a297be4f550cebe9c09241 +DIST thunderbird-115.4.3-el.xpi 836691 BLAKE2B bc06d1ec607488f75b6abdb367ae9e05743f6e7df7ee37c729b95ab887101ca600fc06ab8e14513c29052c162c3de2a1dc73ddb7fb343f91e53951737ff8d201 SHA512 07e13c92d61748912c0650d9c75af289bb6a25c8c6eb454b5015cc7d1459230ee151ba9a4a1762eee2dcdcebc3d51b7c1278d683e642431b09bcff68ac6fcdf5 +DIST thunderbird-115.4.3-en-CA.xpi 656171 BLAKE2B 7529138780994b606c3f8c6dbebdd07e754a5ea03f52807c51620dd478cf3fd1ff90c53a599cdc5c331b9bacd6a92a3a3ecd8135cf1cdf0373ba157945bc7c62 SHA512 c176461c523f6ddfa7b3debed64eab477a3eddef1224ac2e7c5ebbe92d562dde5742224482ef98f59cf4d6cdb3e5ca9d6bdcb103a6d0169c3a7203ed2b40d498 +DIST thunderbird-115.4.3-en-GB.xpi 661450 BLAKE2B 74de154e25f8133d8ebec5b69ab710cb2553037cefbec644caa566f04caa8832954343e3d42c30aea27c017cd9d5efa7c1705dd9e51b3075f4514707b00ba696 SHA512 62720359273ef221e7fc5997aac0538913419ace478bcb241960e4fc53fcf308407ea70c077f08ce46457a00a72ffe8d9acd868efc2c6346771b52c9b92c14e4 +DIST thunderbird-115.4.3-es-AR.xpi 713034 BLAKE2B c848b20f5ebd63bfa790031d56a0228c0f4c6447f8e0c7e0abb6d78f7ab23887f1d054fdd5d5c1500842b23708d381f01057354e80509b29d3b14c684bfedf8b SHA512 ccb8b47483552fe99c4e1fe2448229b42ccf48def717ac41eb87437df73061060eff62f0ec594edc597574524ac79417bb52c59ec53f49bb8b2b490fe1281bf2 +DIST thunderbird-115.4.3-es-ES.xpi 675614 BLAKE2B 19487595fdf9b4a42ba9d4c6e017806db116b62ffb0dd9fae946ff5e8ae0f2450eff7b01f7f2dffefe75378be89e663b211cc54f6a2c6a9fa093cf78cfb0a437 SHA512 617744b5eba33c0890a4f06ae7f242674282bdcc4bb7a860e9fd055c152fd580783e8b10152cd6739c37826eb4124155975e2bc8584cc7b684db3760720f89e0 +DIST thunderbird-115.4.3-es-MX.xpi 710140 BLAKE2B 89b26c4848baebf981d2499c0471156b0dc074b69bb6b01c281ef3a4fe1ff61e0f045fb798e2689942fe47c37859fe9d54ed4eac8c72084e682461f22980caed SHA512 7d71a83c78801c2379067b7a78af2e434caca686d4c2f2de64313f689789206eeea6ba9257e53dd6f222001d819990d588c7c14acc2f6dfe9b2f351c7a0a5dbc +DIST thunderbird-115.4.3-et.xpi 671818 BLAKE2B 1d331718f364e594a0b98402d4b66905ad29cd3f69ac734c085a7314245234db75c91486dde768214c9d4cdcc26d934da395c9676423d74d1f910657def0f9c9 SHA512 f59e7f2133e389be7beaa6376051f915110b8a68647b59b4bbf6a31d40a65b9df9ced3a132f08b986835af132a6adfccb1295ecb58910b67b5b777ebf2125272 +DIST thunderbird-115.4.3-eu.xpi 692550 BLAKE2B 491cb473a24b4efdf307045181e88bd4534a7bab9c374ee365b73b67a34b21236a2f0ec5d128451b502c7b06e48321a115e2ec60dbb62f28f02ac053d9aaefc9 SHA512 2701c868e632d179bc21f865025b1961e702a6b7bbf811d82dd277d6ba486cb82b12f7893043e1aeebf3d8b552b6d3e842663a73f43e3262fdd4149e8c234961 +DIST thunderbird-115.4.3-fi.xpi 690417 BLAKE2B 1cfbeed1c78b7a2038b105e7cfffbeee1c23f975bc30085f2b7e0312ddfd9137d4c0dd87d6cbecf9fc868273bd9ee3e9dbd0200fba9044ae7b7ce3e7ad4974af SHA512 315abec8928a9fc9960f381f295c345cd1123d2067be91aee06f4ab9d4642e05f6bb733fbcc602cd46aa44034c4409c30e9a0ef0c9a0fcaa0c279230ec81eca6 +DIST thunderbird-115.4.3-fr.xpi 725268 BLAKE2B ac69d773ba3d3c8a9cd73758bea9076e82029e833a7f7903387ad1307cf66eada88c7bcc71e31c4e9cead3d507d32497aa99f932242a2af53e7633d2f8ee9862 SHA512 01cdf848729ae40ce5c901d19bfed2287b959c22eaa83caf812afc979fd03712eaba8b81d849b5fae299af019612877e015e72e7ea7747992cac2fdd3ebe508e +DIST thunderbird-115.4.3-fy-NL.xpi 707840 BLAKE2B d388b3441d4e4b1f89552d3b25f0914a5713726b17125ed1eb81bb8e9f496d07ae325518eb69e70bfb3566200c8fa0f259b87a5578fe7221d164ff60873c3f8a SHA512 69966c8ee1bb11cf1145e5848aeb992d0da0acbe66f39fd59aa57fe11bc0b3ba11b166bfd51a2caa48e1cbddffc1098f0373d4b46102d42e29f83fc20fe8c591 +DIST thunderbird-115.4.3-ga-IE.xpi 602152 BLAKE2B bd82be5afaf87fb6b0bdf42b66d73e9b5d5c0f8b0377d8506a0e12587c1e95213ae1020056397028a9868fba276c822c49a4e19d02356b5463d25dae6b7d9534 SHA512 168355e999ccdc827eca6d366968345d995127b30c6d87ad1328d45a9b0c803a225f30b16e8c15ee5381480fed2730358b8e1a22a837cafc495c28feb0ef3389 +DIST thunderbird-115.4.3-gd.xpi 702993 BLAKE2B 96a58639445ea13d6af52285b70bdd7cfc76f9ae65323333509ceabe4a01a10a60a9bba036ecd0870411bda52cd46f14b947fea1dd7c1d3c25400d1da3ec9eec SHA512 75ffec16dc1ba0e21fc8759bda30bd62aa0c63150d47d11c000c0b1449e1156127ba77cadfa61c7c03ec94c24992b83575ae7851727f64315d88e71cb178a972 +DIST thunderbird-115.4.3-gl.xpi 705370 BLAKE2B 2809c79018c1564f6ebdb0ba999f9b86f468169a5ed177621abb3bf5b254718c195f0bef12e807ddcbb0be999435b7e060a4ef0b859cdd6676809171bd61d4ee SHA512 f582226d8285ac3ca764f12e5d5e43dfddcda0db8891d2465e1d950b7e3493cb807dc178abad1d903a18cf2059b73d1f6aa5b96558394088f765cb64758cb7b5 +DIST thunderbird-115.4.3-he.xpi 667477 BLAKE2B ed367cc29604c9e66eeb64e350531ff0af7c47249caa90de0383cf9a3ec99de6996ff47d03371a1df772178f79a54ac78ebde790e0292c7320be2b309bd1c8ee SHA512 c07741428c440b00ff3c15a64ed7334476f6ddda9da1b47de05b12336d4c75f971309e0e9e5e2d5bbbce6dd0498fe1c91a6eaf1b88cb43c178b86baf392a054f +DIST thunderbird-115.4.3-hr.xpi 674804 BLAKE2B 2d98c4b875b2fd87de35c579585e016c519211b27f5408835fc41c9c906b04d910ba8f66bf75ac50dd8f6fbb58e5f7d49b53f2e6e2b50d35e6b2ce5d25490c1b SHA512 8f738feffeb04d28e2290e6693b204fb8e538b28a610da4f0905ec0860d6ab811b5dc6c335da2776b8d55236bea0b94e6bfd0cbb3c79229030443d4fa961968e +DIST thunderbird-115.4.3-hsb.xpi 733832 BLAKE2B 0c6a926c7cccc5055562d6878ce7736561e793f154b42e0427de6c49477ca3753e4fc4570c6c04821e6eca0c7e114eecf4e96700324366ef1ac92c2e4c428fa4 SHA512 14e1689d80904497e5c1e6fdd9fe493950d23687dc5906e38a0f6f6e6f2523c3e7175940d9b31c427945b56fb945979e9a51a5812fcc1b52cdb36a5b0ce86c6c +DIST thunderbird-115.4.3-hu.xpi 736573 BLAKE2B 639d6bd6d6ea44c358a79f663bd3b3c0667f4c40de5fc905eac94e11f34904ea8229bd7196a109237496a2ea311f8325f2662dae26553dbb7ce73b272021382f SHA512 b90122f3d6da1e6aeb39724240c0723dfe8f2c79fb472dcf455615fb20e9ff24d592750d8be3ddf95e99017473bff1f3ab6ff7a8776a70ee0752251990e60e28 +DIST thunderbird-115.4.3-id.xpi 642539 BLAKE2B c547c6142d2f25a37bc034c59d5ab94a390e1c894f1ab9ce2b13ac4fed36696ad58fc2c8262a1dac4337f2069aeb2037d32af72b56118d0cd6ef4cccfee32448 SHA512 72993c730b8163795c730e3c5c2d0aff1617e8b58ef0896accb93ac23cea8acea6d324ec6e749157f770c937ebf62d98d8fda69709a56442a7125a9b414190ff +DIST thunderbird-115.4.3-is.xpi 701959 BLAKE2B 5069dd4d9637a9d0ec6ca6b0111ffc4e984e181710df40b5ffb12d25f56242de669c29052e9b7e27d22aec9ba01aee6cc737302198927fcf9d4d938eae5bb459 SHA512 cd80396662290608232ad195936b6ffe8927e015fdbfcd7079d7dbbf9e1f950c85b1404aad931f3a81d76d57345f8a7008736a935f60d8b079f988870a8e39b4 +DIST thunderbird-115.4.3-it.xpi 643459 BLAKE2B 5f512a06e26534fb47b2fb36d43cae81fdcbf6bfe3b2164c518a8ed3450ccda9964ac86ca92ef27c5720457d3f5be7c07ac5357de705a951f71f26f02d920a6e SHA512 5871e76b8384f1262fef76da667702f3f0b0992b92ef2794bc19ef58db394feecceabb80b74b0bd5a7f7192dc2c572dfacac83dda40af261d1ed8933cfa25fa5 +DIST thunderbird-115.4.3-ja.xpi 777476 BLAKE2B 36717c83132fa902cc2c0f5416fb9e93ee1c3c43ba834885d3af348e3f4af42c9d122e0c25cda53f3caa3527a368a11ca4f5759bee4b7dca2ee36c1fa27bba00 SHA512 4236940b8334e8b611865f796c16533d0ff3a7e65aee243b50410957ea4452e50e7749b2193484adce3d871b81f85b3bf21f5434eee62ad4fe24f1ce58539677 +DIST thunderbird-115.4.3-ka.xpi 764456 BLAKE2B 06fd988358270c1f75ec9e7e8de20c439398e7c281d716ba6fde51cf87f5b19cdd8be3bbbd4c89304e080ac7a285e515c4caad2d4d3c900676d0fca29b0eaeea SHA512 4ffbe154ba9d389b3242e4aec9328a2bdcc5ac29199bd9d398ac64dab50675e9269ad3e412ad2d03e1a1d0d4c50b7366c5239f5944cfdc52fc0f25c6596c3281 +DIST thunderbird-115.4.3-kab.xpi 698915 BLAKE2B 4324c803a777babf6431983260fb9b4b5bf518cfcb079c54785865cf9aaa58e41ce520840664d987dc99d1e0280357aed62c83ec7832fda097648aa5827e5f28 SHA512 f3ddbc35cd0abdc36444ebd29ae7606c884d6690df4367eb0fa49047a040ed44b97d6a0e9c9abd1201322e8e361de4a49f5b2e82ea06b2e73b00871a290331a7 +DIST thunderbird-115.4.3-kk.xpi 804988 BLAKE2B ff181ed2476dfdda1cf0f8d6d8d39ea215ed34cdfa684e42f47432119a9d6aea3139a0448040606dba5023d93b82970a3dfa37e483065c93e46a79c8e0ba3896 SHA512 c295f5481053ed1ae1cabd4dd067d1193ac7e5cde22b89955fff3ca2147ea9a1dc29259aec1902df8b7407a08ccd820c540e7aeb7a4c8c753498f53bb03809b3 +DIST thunderbird-115.4.3-ko.xpi 712587 BLAKE2B b1c8032dbe83db93685c6d7404cd92a1ec959b9a784edacdfa4b8f43c1ae7f13d7282f7035d4b3a9801b5306308dbaa944dc0460bd4954f2d57edeaefa29c952 SHA512 70446a7274165cbd59e8d253056a45494692795d6ffcfb88cb2be913450aa8997cce01f03ff17aaf67bc0ea5708331f318bb38fedb89ebc8c6a6cabefcaad516 +DIST thunderbird-115.4.3-lt.xpi 680094 BLAKE2B caaa6f8c5242fb2fe3d1063aafbd34511a0b3d12f86e9885f03a1f34f9e3fcdce91b376d8f55ad7141dbe7368295ddecc641e70bcdb311827a1141a8c883961b SHA512 c122db86853a5c4af1f2522dd29e009d08ee7479f9825bfde91fec6932559850f43118894c9a5fb275640ab19acd21c74d2e309d6e1b01a8fc80ab0475635a23 +DIST thunderbird-115.4.3-lv.xpi 604647 BLAKE2B a5669fbaa136c03afc237bc660edf2924182ce259e3d28f0c9aebe6f4fdb7b95adbe24fd277273786b9dfc8bb9187f04e5a5b2aa3e24a8bd95ddb5db0b35945d SHA512 af303f8f0b5bd35e392596ae7e18c27af5ef9be455923fc925fc4412f1463207fd06a72b8790bd6999cdacf55427e2294796381b06924d6061448b3b5d2430a5 +DIST thunderbird-115.4.3-ms.xpi 565733 BLAKE2B a67842136a791279abce1adeb9b23299fe949ad082fece26f4d2732a14501bb40d062f198b279f741b51ac58a4fe3e9ca3a40c9aea6827bcde83ced685a8d723 SHA512 14878637ed2437ae53e39228f93225da0275de748c05cf70d22e76d7fa9971cf2e6765b8c2dc61247f5b9c90718db61984027e8b4c08cb64e0ac4098f87dc763 +DIST thunderbird-115.4.3-nb-NO.xpi 653835 BLAKE2B 63229920be75ac50ae0de507d540e6fe69b4babeb8f3f839ffa1748297c9dc0da341309cf9a3c9f8883cd023ebfdf59de85e77f7603533ed0388420d493c1197 SHA512 ccfd52b17520a1a39b46a29d7025c52312925670dbc95c2d8229337e2923146f6662772dcfd34afce0c964b3edbd85a21e37e5c91ed45205d2b2cba1dc1d1595 +DIST thunderbird-115.4.3-nl.xpi 699386 BLAKE2B 0462dd8d4a511d50e2dc05022414be923d8e37d688a023e38106d550a3cdaa477e0662af615f23251c58c2170a5d8a0f8977bb92149963174714848754d7d6fd SHA512 4a7fbd40863036deb174a86a6e5be1acb65e52abf71cc15f84dcba14bf4cf7c63426d7ee444a740ac85c934d6adb4ee948dca28b445eed9f2cda470bb886c687 +DIST thunderbird-115.4.3-nn-NO.xpi 672839 BLAKE2B f73664bc9c5e68de1768ae78d2859a330e0a8b7badf13691e8b0d930abdd498183e75168dd4c575ffd9ebfe4c9ea56a9d6a07bfdc50a1cea158463c0fdf3ef52 SHA512 3fe08fad6592c5816fda3af705088172d92ab75dedda92aa7e69438c21d11279b271c5152a18cfd4f87c92c3e9f2be186abc13bbe9def183e17e147f4107546f +DIST thunderbird-115.4.3-pa-IN.xpi 655775 BLAKE2B e2e6fec9dc8bd01db9bc8c2816370df39d39f942cd32d1ed652952b58d73d770c9372428390eb2c1dca0d4dde40cff30d7aa465be0ef0c6b30d1a01f6766fa37 SHA512 a1c7b6d07e7b9f2d7e526c900148161847a6ca77ebd9810e0b11126c8ee7f47b1e50ca178008975b781488b5d8fe53133212279ec2f767cccd707f0a2d2e5747 +DIST thunderbird-115.4.3-pl.xpi 716519 BLAKE2B 2be0105d109f99049fa318bfa29926cee62463c00f7744630cf2b041b6f590d511b609faeb598622939e02798867bc1f1d1f799fd0f2cbfefeecbc080c5991a9 SHA512 31155d1a11977a92e063cf638f1b8a24e93734ce083253ff774fc20ba0f24f2d1a0b22c99c63c3c268c323e4cbdbfe4ed7aa04a036f70a2987a4588490836adc +DIST thunderbird-115.4.3-pt-BR.xpi 707196 BLAKE2B 3b549d66482e2440575b61baa4de7328755b035b41bd571731de8e69c08e8406153f31737a62ee34692c808b3f9814c56b63db856042746f7dd23a61f0b37043 SHA512 d0814d66717127a61103a815bb143ef256a8b4a2893aba25625675e9ae1ea989f0a3c4c9f2d8453c5057da9d03d7988b935b3696e6aef7e7d74d0171606136de +DIST thunderbird-115.4.3-pt-PT.xpi 688986 BLAKE2B a74752bda5cb5917f57755683295e3ab5e85ff86b5b4214ea487d45dd405ba662ac069d362510c451b5e6e4d3ea3089fd79c297a5325e34467df7d866695534f SHA512 c8d0afd9d885f78f139052c9c25e1375de5d5823a5e9491c0914c6dab61a4399b4086f5160cc1baeb05fc67072dcdc29bf4b6a48b86e9ee47212aa705ae1caf9 +DIST thunderbird-115.4.3-rm.xpi 703910 BLAKE2B cc7537dc9f4664ceb1681aba4c33f1916ffe547e2130a0079f12b4042fd8d6ff59e38d23a43ccb2825811df040c677a6df6220434e8e875edbbdf267f727199d SHA512 568488fad26d3d4ea2488c155336ae78375a0b370a2783f3c08e406cce09d6384e5a274ac4205480af0f520087796fe60e1ccb028d3c7daa02e578510fcccdd6 +DIST thunderbird-115.4.3-ro.xpi 651297 BLAKE2B 495dd846238bbc49df0cfa8a4ebdd80cff8e11808555e4515fe3e2607bac3f728abc2021fda94ac36ecf22c0ce07f65a65b30576efad63e8f2557a4e19277681 SHA512 1a2205911f7b601d1ee9668ded140ea7867aa2b462e55875186a6d94aed11388bf1bd5b337c3c703ebc683988ac750624198a7317e7271ff60f80d34a557c051 +DIST thunderbird-115.4.3-ru.xpi 820779 BLAKE2B 76edfbc7d162f8352c0e034b4bca78de8bfb6a6d49c1deece8a6660042ac1b3f1477e8eda567538a8ad1525dbc90cc969e1d3fd6b25a8957abc59aa2cf133c53 SHA512 4dc3f628027bebae9d14b76a84e896469c761d34f2a160de02b9c82768757d2e0e989fa060721196972ae010206a0ebd9a668ce6bb31d9a85c688e49dce1fed4 +DIST thunderbird-115.4.3-sk.xpi 736587 BLAKE2B a09babe69498732d149426c1a7cbfe9cfda9c7f1c4eeb545fdd801a039930433d8b1e7e8998e35f193990de92c8017b11a887dbe986e50e9a27874335d687d08 SHA512 52db63972b2ee03f4311caa51e09cbd2f1b0ca2bc72e164bf4ad1a8f04028837af7e38a2ab43dc55eabe1a927f9ac84073f8749ed1372e34dc62bd6ca9d2549b +DIST thunderbird-115.4.3-sl.xpi 701668 BLAKE2B a129559dfa24542162cfc0a70633298d66403ea445735c758c9bd37d2f26541ee8b70edfb67523f7c2af9209320a6a4218427429557cec3b5f56ec80e14d538d SHA512 f2ec1eecf83086136da8c325ef956d5f9d77a7a4781c858f292e275bc69fbabfa2988bb5758d839dd0a51f3140dacad358288a71f870179ea1567556d14ed872 +DIST thunderbird-115.4.3-sq.xpi 717450 BLAKE2B 09eda4987ea2ea46ae5c731a9503f5ce069bedc320b37b6c6219db693370119bf29e88d506a0b071ba8da7d56091f2b73f30638a967c36a045f3041809c61c9a SHA512 707ea122b023cf9be2d8eca567189c074bd593996ba9cb965d31093689d59446ede43cdc5002fe1f832cb2f836d6c999626097491f26791e954d5ad0bc223667 +DIST thunderbird-115.4.3-sr.xpi 740171 BLAKE2B f3a838f2a10f3ca039eb1036167622842471c65de41c2bdb56e4575df5615e4e046021c9fc38191747ce099104a0bdb060d55868fd284c12fd7a2f7b596d22e8 SHA512 ff2c1a96fcdd7a3d302bd6c6117bcc89f1e2ec9c28698d7041f774de70db43debf2c9a2c1d36a54a22ed6c82cf14cd7646731df2cc50af2726e3654fbc309f31 +DIST thunderbird-115.4.3-sv-SE.xpi 702286 BLAKE2B e296d3a37a2c222af4ddc576b907fe0cb2871bc48ee481c9302a233f78dc646336a7a8d3c45671f639fb94be9677ac8d2dadce2f40a15e808b6a6a744206e6f5 SHA512 207722300bf9f9a6ed3437ebb5062e209905f96aca96bece10d008482a157ee6840ada0cd400b082e476f732e30b640b12f0acc4295e6f4bd6c2b90f6596807c +DIST thunderbird-115.4.3-th.xpi 761857 BLAKE2B 2197ca7a14f137d74eb39ed5f2040050ac6ffb229b4630fefddf1ca9cec0533155123a53e3cd8dfef4ec57384f12a06d3efadfe94d6b98ffa95fa6c2a05af589 SHA512 fb95ccc8ba3e9f3224061ffc121a10bd90a4aa2637a795e2b51fe40be5f98d656c6cb291a86ec655b7e94a26c5a0111464c7b2e03772c6376a2ad2ed96c476e4 +DIST thunderbird-115.4.3-tr.xpi 714657 BLAKE2B 0191bf909b5f68f017982749712697b67ebefa520dad2b0c4cd81f431f0acd5e5054c4f21cebf8e3f11db24b121241bbab04279e8e0f156de21509f0b6ba0e55 SHA512 eb23d5fcbca0263e4bdbfb13cbc537a0169714d1a1c21aa29ca8cb17c624972ed3eaa05a0b849b3da84ec68daa45555209a4669f5c91d045c4113196c010f254 +DIST thunderbird-115.4.3-uk.xpi 813300 BLAKE2B fa1b39b7a35be964b0d3c82380476e0047fbe25f4a63c1d55e19ca58d6b36aee00be0dbe45f8341e2d5113459953526f277b244ba7986cedccd04532d95ff7f0 SHA512 8a4eb77717f6465cea9c614c670b4c01dfa87d992939c3b9fff6419792f11e704d57b1009ea634916f3663ee62055521ba86b3abf8b392c5c5da383d36cfdfcf +DIST thunderbird-115.4.3-uz.xpi 579985 BLAKE2B 4e6a91fc4b582943c16a297cea58fe8d9693dc662921e8d14acb702905e4cfcbd28039b1b3f5f61c85c81654ba8349e8060c69011bceede11d340c3d02a8d7f6 SHA512 f6c93eb16a0f0614f948d017f80c58d9cec80ae2e50331a764d54e881a08e2f4e744265da2efffe659cf159d2afa41f61151359648f3c6bf4788da1644b9cbb0 +DIST thunderbird-115.4.3-vi.xpi 742633 BLAKE2B cbfece2f06f8506fecf474761c4075481bba4c00fa6c54011bcf7783f0973c724e0c1646a8c9b7c586bd63dbfb7ac3c376c4a82bf2fb576bc5669696ea49f1ac SHA512 1c285bd1e4affb7fd8d84047df5d6a03cf0fb4664b7d3ad8b74be7c9b9f07f14837faeab2fbc5b941eda11af26d5aeb5fba52419783d85afaf68af750c1151b3 +DIST thunderbird-115.4.3-zh-CN.xpi 740609 BLAKE2B 010ab30198297c556c5d7242720ed61453dafe6abe6028c0dee85d1f8cee04a6adac24c9fdc1b6ed8ad0ff717b58ced28d8ae930d29a16d504a17b89988447ae SHA512 244426aaa18953b92e1d4d40c4db0334deca4a45048f14db7fc71be3093890de4acf64d105a82967947910ca8240d036f852e66df69e10eac4ef21d3c4658141 +DIST thunderbird-115.4.3-zh-TW.xpi 743527 BLAKE2B 1b2cf68c73f612ddb8e318463f78b9f7ffe80b01bd3c778eab3af5d47d34110e57e2ff3872f225dead500062cb9d004d71a4db9bc6c73b5291da51af031f7246 SHA512 f6813ac6267bfe93b7bac36610d2c1de0ef6e37056386461ba129b847949d5d8f26282db10f247eb88079a7d0c63fe04d5073f0a91e6847ac03d3d4a05cfea68 +DIST thunderbird-115.4.3.source.tar.xz 533328212 BLAKE2B e05d07ca81ab762d12b8ac32ae6c3ca06b379a0a3243f2dd7da296e6111401b6a92e5cf1ba36a78a09b303b48f6fab61d508ec457fb73f991029b1af50e6dc43 SHA512 be72f3739a2c3b947031143e1e150cf42131170e7886d29688d4f1e4adc82443f1565f8ea1e95a02448773366c1df6cb198d0f890dfdd7fd7161981b45fbc509 EBUILD thunderbird-115.4.1.ebuild 38698 BLAKE2B 65f463e51e43d8d17bd3c62d9c5916b9f24013da6018acb82d375b3ef7e0e1b9b74f1a933c1d42eaced369d10f59a40669e6b9f9e773ed5d432ec5acbf1a5ea3 SHA512 0d759f2e4ddeb46adc3ff7883aa7dd624dc00a4caf423ff9eb122ad433b4e4a2b3a87ada9adc473a362a2fb6b42063a7b73ad64f78f3549cf4436045c6167054 EBUILD thunderbird-115.4.2.ebuild 38700 BLAKE2B d99ca5cd42e41c04491f42ab9c78b3e87806374b9454fe45dfba917ba832e2de6ded8f49c66eb5547f2f7e9a61ca1ec66891d402fda4edddfa3fc565474e92fe SHA512 055a7bb0447b7cc2bfe130ab4d60ff5a5219fe01ee830301cac0d1383e385b0ccde28ad131a716562bce6cb0596b8770aaf893c5bc2c4371d14d4bf4473b77ca +EBUILD thunderbird-115.4.3.ebuild 38700 BLAKE2B d99ca5cd42e41c04491f42ab9c78b3e87806374b9454fe45dfba917ba832e2de6ded8f49c66eb5547f2f7e9a61ca1ec66891d402fda4edddfa3fc565474e92fe SHA512 055a7bb0447b7cc2bfe130ab4d60ff5a5219fe01ee830301cac0d1383e385b0ccde28ad131a716562bce6cb0596b8770aaf893c5bc2c4371d14d4bf4473b77ca MISC metadata.xml 2448 BLAKE2B 3685d528d3211fb49b23b0fb05c67269f1b4466bef7dd6f2d890803961ddc1b1c0d8bc06b2d421c17384b8a3769bac35236f6af07059c0cbf9e694edec8b1dbe SHA512 d9a8983f34c9691ed1d0174cac3c7300995b9f7b877c09271210cc3f2a27dd20d9fbee0c99c1f6c987ab9566eee71a0624d2d68f97c84665c1c500ac8f3ecfb6 diff --git a/mail-client/thunderbird/thunderbird-115.4.3.ebuild b/mail-client/thunderbird/thunderbird-115.4.3.ebuild new file mode 100644 index 000000000000..1fb6c7dc8963 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-115.4.3.ebuild @@ -0,0 +1,1325 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-115esr-patches-07.tar.xz" + +LLVM_MAX_SLOT=17 + +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +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[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp" +IUSE+=" wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + || ( + ( + sys-devel/clang:17 + sys-devel/llvm:17 + clang? ( + sys-devel/lld:17 + virtual/rust:0/llvm-17 + pgo? ( =sys-libs/compiler-rt-sanitizers-17*[profile] ) + ) + ) + ( + sys-devel/clang:16 + sys-devel/llvm:16 + clang? ( + sys-devel/lld:16 + virtual/rust:0/llvm-16 + pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] ) + ) + ) + ( + sys-devel/clang:15 + sys-devel/llvm:15 + clang? ( + sys-devel/lld:15 + virtual/rust:0/llvm-15 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] ) + ) + ) + ) + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.65 ) + 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 + ) + wayland? ( + >=gui-libs/wlroots-0.15.1-r1[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.90 + >=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 + x11-libs/pango + x11-libs/pixman + dbus? ( + dev-libs/dbus-glib + 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-73.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] + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/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/libxkbcommon[X] + x11-libs/libXrandr + x11-libs/libXtst + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily +# placed here until toolchain-funcs.eclass gets an official support for mold linker. +# Please see: +# https://github.com/gentoo/gentoo/pull/28366 || +# https://github.com/gentoo/gentoo/pull/28355 +tc-ld-is-mold() { + local out + + # Ensure ld output is in English. + local -x LC_ALL=C + + # First check the linker directly. + out=$($(tc-getLD "$@") --version 2>&1) + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # Then see if they're selecting mold via compiler flags. + # Note: We're assuming they're using LDFLAGS to hold the + # options and not CFLAGS/CXXFLAGS. + local base="${T}/test-tc-linker" + cat <<-EOF > "${base}.c" + int main() { return 0; } + EOF + out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1) + rm -f "${base}"* + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # No mold here! + return 1 +} + +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' + + # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work + addpredict /dev/dri + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto && tc-ld-is-lld ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # May need a wider addpredict when using wayland+pgo. + addpredict /dev/dri + + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + if ! use ppc64; then + rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die + fi + + if use x86 && use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.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)" + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # 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 cargo checksums from crates we have patched + # moz_clear_vendor_checksums crate + moz_clear_vendor_checksums audio_thread_priority + + # 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" + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB 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-gpsd \ + --disable-install-strip \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-wmf \ + --enable-js-shell \ + --enable-legacy-profile-creation \ + --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 && [[ ${CHOST} != armv*h* ]] ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly + # Can be removed once upstream enable it by default in the future. + use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_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" + 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 + fi + + if use lto ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + 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 and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + # LTO flag was handled via configure + filter-lto + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + 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*' + + # Modifications to better support ARM, bug #553364 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \ + --with-thumb=yes \ + --with-thumb-interwork=no + fi + fi + + if [[ ${CHOST} == armv*h* ]] ; then + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard + + if ! use system-libvpx ; then + sed -i \ + -e "s|softfp|hard|" \ + "${S}"/media/libvpx/moz.build \ + || die + fi + fi + + if use clang ; then + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64') + local disable_elf_hack= + if use amd64 ; then + disable_elf_hack=yes + elif use x86 ; then + disable_elf_hack=yes + elif use arm ; then + disable_elf_hack=yes + fi + + if [[ -n ${disable_elf_hack} ]] ; then + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack + fi + fi + + if use elibc_musl && use arm64 ; then + mozconfig_add_options_ac 'elf-hack is broken when using musl/arm64' --disable-elf-hack + fi + + # Additional ARCH support + case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif use lto ; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + fi + ;; + esac + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # Allow elfhack to work in combination with unstripped binaries + # when they would normally be larger than 2GiB. + append-ldflags "-Wl,--compress-debug-sections=zlib" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + if use system-python-libs; then + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system" + else + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + fi + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if tc-ld-is-mold && use lto; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # 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 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 + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + local show_doh_information + local show_shortcut_information + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + show_shortcut_information=no + else + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 91.0 ; then + # Tell user that we no longer install a shortcut + # per supported display protocol + show_shortcut_information=yes + fi + done + fi + + if [[ -n "${show_doh_information}" ]] ; then + elog + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):" + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all" + elog "DNS traffic to Cloudflare by default is not a good idea and applications" + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5" + elog "(\"Off by choice\") by default." + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." + fi + + if [[ -n "${show_shortcut_information}" ]] ; then + elog + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for" + elog "each supported display protocol. Instead we will only install" + elog "one generic Mozilla ${PN^} shortcut." + elog "If you still want to be able to select between running Mozilla ${PN^}" + elog "on X11 or Wayland, you have to re-create these shortcuts on your own." + fi + + # bug 835078 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then + ewarn "You have nouveau drivers installed in your system and 'hwaccel' " + ewarn "enabled for Firefox. Nouveau / your GPU might not support the " + ewarn "required EGL, so either disable 'hwaccel' or try the workaround " + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes." + 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 +} |