diff options
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-115.3.0.ebuild | 1313 |
2 files changed, 1378 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 62d75d64501b..a93f1bb79722 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -195,3 +195,68 @@ DIST thunderbird-115.2.3-vi.xpi 742716 BLAKE2B 75eff177732f0c004c8e30a60aea19008 DIST thunderbird-115.2.3-zh-CN.xpi 740787 BLAKE2B b601731c6713f4b184ce0c496c13887ebc87e6ab4b3ab6a6aa39cda6e0b9f8017e9b55198f7811a67e0233a039e65eb2aeb3bf4ad5403ce824acab0d6f992409 SHA512 54b055e0714e58b50b749ccbd3c8feb36bb6d33547a87d4e9db7c510b3a223fb7123a706de5747d81b282c84b6b1f456a79461e8615f9d38c659af95ea7f7ea8 DIST thunderbird-115.2.3-zh-TW.xpi 744414 BLAKE2B 7f000ef1c8eb2022285e0326eb0e4303cc5fe43bc8b67d7e1942c1d5e8f2016f33dd68ce034a2f40b107ce8d1d13e373202cca84f2638e2230cfa8e18bc994e0 SHA512 26db18ed305d8007aa02f0b4e408ba259c0eb7b2c2ceced9f6bf40d41576a84ed6edb532178b8e4e17d8e98c186281a8b9b2ab51c807212bd6d822785baf31f6 DIST thunderbird-115.2.3.source.tar.xz 532512216 BLAKE2B 14e8c23e4ab2fdd381e5bdcf87ca9344945af075eefce54e41d74cebd339a1ee452a94b0efb2c16750756ec9bda9da8c66c2b1ab6ae0a747892936b82a005190 SHA512 983547b2be67ffbe7727efa50bd925f576ec19bcfcf940d5d36def19aebea27494b3af0a37756a441b544ebbca0cf546fcaf8737e76a859b4d860c8294bba1dc +DIST thunderbird-115.3.0-af.xpi 542154 BLAKE2B fec7ec5f4bd61b2e9f646f87d7d33e0f67d3de40e38440c054e6dc469199801d9a52dd5f6538e84994b41864c99fcead67c8a1e061e818482bd4e68d1990b244 SHA512 4a8482b33c476594fd50818c95db3f2fc0b0cd90ac9902104e2ff02c82b2ba48a2847a633ffb0ede479be15b8ad3f2eedb64c82241ae6cd9915e6d1d9c99619d +DIST thunderbird-115.3.0-ar.xpi 654726 BLAKE2B e55b3cfc46eef2fb7d11c0b3427ca03931fe630945a71261e3950d2273e7135f8353e93dcb3a51ec4ad74f4df5084defe5d79a7da854f06750010f7ee329316b SHA512 6f4d4699203c0a6ce03c776b16956b3f7a568db1230267e83d233b456f96cd592567b016ac206050a5221c102f1f9fd679282c05c3878ea7d50370cb9d6ed9f2 +DIST thunderbird-115.3.0-ast.xpi 561120 BLAKE2B 393f7cebfddc3bfa42ac8cde4ab518f792533bbcd7b98b23edc2cc5e2428ef3f1f562ba6d7671b97c8db082bd83b78337614d5af752001910c6bd6b827bb7969 SHA512 a0de2959c56f0f26d25240bfa399561b4494edd90fc2ad4238e5e19bfd0ba4dbe1d979ca7c59219646572cd340ec8b7c51d061feb846f1cb5bd3ca842eb0b8bd +DIST thunderbird-115.3.0-be.xpi 694083 BLAKE2B b5d4ec3ab8a10c6d6848d9aa97e7fa7399e3e9ac870c103a85a36809e3cd875e8302f9611d67683cdfba3ddd2b37748253bfa817ff13afee767cca98342df52f SHA512 f0e4a45f6e3435439ac596b3c2d7a831eecfda8fe91830a55f7901abaab2cdc7bc49e36aa7045a2aed6a86f2ac84dadaea54b22ff0badf72b76b5f5a24d76fd0 +DIST thunderbird-115.3.0-bg.xpi 681249 BLAKE2B 66d4846257d4205a70b057f8e5fa652f3d9adeefd0249f61c4d94da8e6ac74b5c4f80fbe77de396ca60a6421e511da77b27f0cc5a56037b522625abba1e0760e SHA512 54a7bd74e98a0100c846288fa109f73a5c4a10de2b8daf09facf397118e8bd30b81a4a0f4de020ae894a79f391b4036d5c640ea4422547bc3f4a8ded5cf4d81a +DIST thunderbird-115.3.0-br.xpi 626489 BLAKE2B 945d4cd6d16ffb9185f65019ed5f3b8c4fccff989fcc41ce3401ef2da47c74b62d0817ab496fc9af728f3643697bdd5b469a898b44d3100e3b5bbff5259851fa SHA512 8a89b9537ea315d4f795e8cf97bcc32532c22ceba5497642767d9bb3af4906e8101a103d3cecb460eb310d2e19f326150c337325ee82178e5a5e7c23f6cf1615 +DIST thunderbird-115.3.0-ca.xpi 664393 BLAKE2B d11560514fb8885ef03e30dbdd77eca9fe3b2af276755f57878811e8140296b2eefeaf77c647622d43c7c2f0c16d7d0e08f30e69aa67e282d98715cdfc7cb339 SHA512 52819f3b8e35c4d190140cd35cc650e03f59c013628542a80561c8ca68fc9808affea8cdae027a812f5cf533bf472801923dcf18fd13018d480e23af18c181e0 +DIST thunderbird-115.3.0-cak.xpi 657815 BLAKE2B c8157f9d1392995acbd36d4fe87fce425d491a1c5ee07febcd2fa5c328052d8e1b4fd06d6a3e8a71abb3ddef09331c272c8db0b7aa3fca19cfa2a55ce4789bea SHA512 dba0795e6de3ec685cff08f7c0b3830b2da2d4c217b1b454948674e89793d22bcec0e6256b8c3c09a866687776b532055606e1d48e9f46a8ee6ea1e939690488 +DIST thunderbird-115.3.0-cs.xpi 733925 BLAKE2B 4892f664be32ac172c2a76bce0794e4e5a666c5f944073edfee8e14ecf104f298d63dbab7939f435927f5de4516313a5839890f328097674b9fc257dc66f4891 SHA512 740b05aeede740d35d27e0f497ba0c69f500e4f1d430a4e7a15052b7dad26f0fe9c1d253eb7ff72082c5f12f5eaed6e6888c758452bb45eeeedafe4a2c6d0d17 +DIST thunderbird-115.3.0-cy.xpi 703325 BLAKE2B e4c4cb465d44bf8d493512d099b279d89e3d916813c4eb0267fb7852a437972a517af16b27a06debf67eae128d40d174e190289555615acb6881fe8191e4fa54 SHA512 777b8b2a16c26ef480f035f18f497f6882024c3bb63ff3a562707e7e0875e82f878c59665fc73a491e5063c05b84bd47c0a131aa29f131152ec9fd4654492cf2 +DIST thunderbird-115.3.0-da.xpi 690779 BLAKE2B b6f9b0640c36fca31eff734b94fb0d5fd79fc0e194c6dd86dd9a3a5bb42793e56f864fd2d59409c6df6910f636d1168bc6563b69ad7341eea766629bcf80acbe SHA512 4f3bc6be50b68dc683cfda2c356461536a0d6844d7236d67dffa9a28d737c51dc383ed60c4922a5c94b72c524342941ed1d78985fee20c44382f78938f12f971 +DIST thunderbird-115.3.0-de.xpi 720271 BLAKE2B 4b5a82781b67ef9c414c62f3ba299bd33af552480fa5a141f1a27d0b7ada20422f3f6945bf89997a7b5d249d2a6a9d8da5ffb5934e42ac00342463e4b56ecd96 SHA512 b41fbf8add9c12c661fbd870fc4de394f0bf140496b4159e20c682dabcab5a7f58393d741b7640422915b039416edcde6a3962b98c7449f257b6a1bf98e96d97 +DIST thunderbird-115.3.0-dsb.xpi 738024 BLAKE2B 89d7ec0336b0196c8e43c61ea6e344a4048d6ceb165c23f716c9c46eb9e386758e188e9c65322d4cd27d9a64e454b806e4d9282b3d9f0132106241b4d3b8e4c7 SHA512 4c113fa4f00f73a9383d6c8efca1b650db11a67f7ae2b94369d7ae379659f55f33ec60d12c60701eeb9946dff11c87d3d70934606c40c54f7f6e180cb8966249 +DIST thunderbird-115.3.0-el.xpi 837360 BLAKE2B 4703510d7c90398f5d3c5854edcfe9d58db6402cfe0fa1f93b855eb91f95a77d36103af428bca4ac5d8286c4a8ba23c468a467e05a6e305740c795f15855ea5d SHA512 0dd0ab7ef9ffa2e2c87fcc475ec6221b8c5d5fdfd347fb142ce9caa2ac349aefaeb27915dc4fa3fd89f2ea46ead7c108052c961d86d6322f0cd62618ed026b1d +DIST thunderbird-115.3.0-en-CA.xpi 648449 BLAKE2B 5a1500fffdcc393cb418af95f6b0c27f6bcbe48219ed3b15738185c99d5b3754215511953b8884743063ad597a61824203d087a0824998da31c95fe4d8fe87c4 SHA512 08fc04ec6d2312a98b22c467f879d29995c6ad5c88e737827dbbca092cf53691c5f1bea6685c31f6c73ab6eb964a904351cf8cfbd367869390e8586fd5dbfa0d +DIST thunderbird-115.3.0-en-GB.xpi 661514 BLAKE2B 6399775de7b16047ef400d2b7251898ead7081bf8bb8042eee3457b962dcb4ff50f907758f1cd9c4f10bc00820df97bcad9b20ad6237e4f5cce1dd2eb8110cba SHA512 65d0cea8ab73fae8c2ae956e3552c97b97985b94950ae301b8ac61dcee9a030ccb58b9871025adae8da33a069d0fd24df008cfc47d82b6c394a52eecdbf5bd77 +DIST thunderbird-115.3.0-es-AR.xpi 713107 BLAKE2B 003b1f543461acbe92ff07be04abd9ec61952533176d4734111e32ac1ebb6ade8eb87495e06580c6a8a2064c9cd024f07de97cc668ec6bd3a31c03f9fb915f42 SHA512 34afdc976ef37607484ea6d8b36ab9f181c65d0583c3069910b2d83d1dc2685e67b59d3732a090384d4813f1a93dc46a2f9b198ca6bcf94a6929163819a695bb +DIST thunderbird-115.3.0-es-ES.xpi 675704 BLAKE2B a3d13c9f2cf8400a7d47fa9cc49fa0c416a328fa46fc304afcad81cf0e13240c98fc134cfee5b16385ec58e13a4c5ddc603ae5a9e9843dec9f11653c3db264a9 SHA512 a40b2cf3801a5ca9ead95d8c65e6fd25f8a75fedaf4c68b01363bbfbd8e64b7595dd178e02745d4ce304c4a0e696f6c4533a3c8b7470cefcd22337a5610ac392 +DIST thunderbird-115.3.0-es-MX.xpi 710140 BLAKE2B d6b6d68f2000bad29c7e39ba3c1530097f2eb4ab90f0710bc9106338df8712e9861417a8981a46940b220314bd2128df0724a4e432667c49f09ff3f62ec8ca5b SHA512 d2775aab8d5f613d462e7e2cf695a8d28fe3830f1f5b2f1663f847cb8afdd25543ac3711caeb379e728f5bed1e97f237c26610f86518579dc49cdcb13565cba6 +DIST thunderbird-115.3.0-et.xpi 671819 BLAKE2B 9a7bc6a110c6e903794032718792aaacb07fc63b375d329254a5a64a4e5140c88a00905d8b10bccd135779954e506be7490b86e108b72b81ecd31d63605e7c63 SHA512 a37287f1a53ea64ca2eb17246b05727f3310481df75ee19c7ea7dd6b0407d37a2cc13984797d7bad29a8ed0c88dbd0528134cbfc17630ca2ac18c4529859959c +DIST thunderbird-115.3.0-eu.xpi 692540 BLAKE2B acf82c80cfcaf9d8a3ae4b9b2fff93582eef03070ce551c3efd1d67250f43b94b58b6c26f8e0d567c5154c604413faf257c4d857491b97e706832ee06bfcf846 SHA512 e453b9c5f75733255a427cdb18f349a99de581abcb75a13911ce5bcad2daa700284a76c38cc7b10b6e90ab278487a27a281e7f4552a8a2308ea938880d0f8359 +DIST thunderbird-115.3.0-fi.xpi 689877 BLAKE2B 0b9b8ec3049e8b62f192820204bc9457b1264921b58a1054690f5280bd43d379b5c4d9a6d12649c41e4df9d0780784598076a0330ad4243828284596a822158b SHA512 1b7cd13177e408da94e5657b3d1c1e120d3164434f04dbfbb77c630c6ce71fb6059fc3904689cf49901253e0da964bc3a883bce6b472db49b8f4735a0e926e98 +DIST thunderbird-115.3.0-fr.xpi 725335 BLAKE2B ce1cc57fd6b3556cc85ef7e38370e3341046110a423928bd0ce1e65a7ab050db46450c26a67fed54b13b8df6c2f669dc0c4d327634d2a42cd3c3ae573c40ce34 SHA512 9e503d72fdb54ed53424d815d9793d46a3973f8c644e9b863b803ba6c844c2023670aea304c9279b01f909e55830c6bbba75495c4b2bd2b3d08c8af0414a37ef +DIST thunderbird-115.3.0-fy-NL.xpi 707904 BLAKE2B 9b87f6ebf6d019ea82b2ee5b1a07adaa6386a3f0179559cfded3219be120eba848dbaad8ddd04e8fa4243f9075e22ed06a793a1428e22a1393c325ce3c5cbdda SHA512 1a3df7812a6162319ea8d11343ba4efba81ee6bb94caae7d6c2f470860168735ba864db25be12a6c5951ab2371e0d48c61ffae2a2af9ccb643748da3f04f2747 +DIST thunderbird-115.3.0-ga-IE.xpi 601816 BLAKE2B a669c814c8a01f3678a3d6f2d549e1043299e6b440af5a859728973953304808a2dbb5908c1022238e9870abde99d4b67f355320b4eb9e36d8822aa481f1fbbe SHA512 50bfaf4a537ead804982523529cc85a88eb5061df72dc06e348d013e2dfd7a03d2a52a7db84698319b014f8a53c63fb4ba550690e027e03b4fdc81e59dbc091a +DIST thunderbird-115.3.0-gd.xpi 702991 BLAKE2B 149081aefca264ebc8fa64b018e846a204160e210db948ef279365ab90caa9d1fb0354a44283abf43cac8e87933fb586cf4329122b2c191e52b77edc67af1809 SHA512 3fc8318ff3edcc4fc2cf7214446a6b59be3bf6e69680c15d11646ba3868e58c4a4b347892e965cca16d09cf688a32c98fc846b5cf3ac5ad3a290d3e1a112fd82 +DIST thunderbird-115.3.0-gl.xpi 705420 BLAKE2B 5340db082d4b5f037c0dd515a96baeac4cd1cec3bc552cd23369a927c8e9a2bcc1f5fb7cd2da32dc8f4e321babf55a7297c3818fd1318cea8cd60d5e957b7bc5 SHA512 153b544ddeac7db415f54de40c87dcd83dbf85bbe6ae1fd78b97946e55c875a307dd7fa8d67ffb6f2c24cb1e669fd1b650d0f1913c1d3e4c1dc80caec9e4e82a +DIST thunderbird-115.3.0-he.xpi 667476 BLAKE2B c20905b1e25887ef12c991ebb2a9505ddc54c949bd3f6b137b097408d1a1ccb9fba8ffbcec39f13a76f48d775b7da8bd6d7dc7c70274247d8002bc08b66aa73d SHA512 ba9925f6aba832a271e336f0d56f24ed008ddc10e18ef51c18fa6e1d292d42c211d24204c29f17dfa9c325391e05e45b7e341bad516f5fa75eea872f81c8d365 +DIST thunderbird-115.3.0-hr.xpi 674901 BLAKE2B e218ec3271f64c0b970302152412810c9f23f63e26ae3e6b9f0bdeb68fa0db973cf8e4b5632d127935c4d76d2e972587ca218504874a2f356e0c66bacd6a8f6d SHA512 85e1359ee081d27771665040152d849714905cb4bbe6471791d032b0c74089d068beb9ec24a68720d2fb5e3025122c0c96eb55b5dec682aaae1e1d31f0a548a8 +DIST thunderbird-115.3.0-hsb.xpi 734546 BLAKE2B fba58099daf793a2e662599490aaf4cf054df7a23760b592c3e7eea50aba6e8081280f085f7e197693ed22dec685734d930d337632d3c7c236946fc0c755d3cc SHA512 3c1dfab10219c1a0963645744eeb8ce51097e0de7009ba6f055419c2a91f06b8831e57b0259419fe05c6401564d959450d048a2e3f3c52edc4f32b519fe9641f +DIST thunderbird-115.3.0-hu.xpi 737467 BLAKE2B 137aeef8244485605129265b413f3e4c2f05590eeb2d180456ed2d67573bafe5e58220ec82e3e0439dab6e2c7fec5fefe1db1366c44ea61eb18a9aef9282dd9c SHA512 08cf70acd86d7a26d152c1247a114642c2adeab9b39ed7b4c6c2671df028f61394e7e04214cceb3442b4328657a6936791ad9192938017b6a91ee00933e6440a +DIST thunderbird-115.3.0-id.xpi 642538 BLAKE2B 12effba284bf090d2f29f48ddbbf3657f03f85fd8551223491580e3376549afe64878a3c34ad1637a96d7c4467d200c41967468217135654471343e07732eb87 SHA512 8e8e4cc38f6a4e4ab8f550bd99a5392a751fd6188dd26cdca3162548750e19f4d0819588ae425f2993424ace0c7a767bde7d58d4c3cddd5eb945da51f80f3981 +DIST thunderbird-115.3.0-is.xpi 702209 BLAKE2B 82c1b7b1ef28d701b2bf750db9bc7540bf9fe839fcc2ceea83fb2e2a6912a494a92e8dc5747319e811b0d59477628a46ac42ebf3db5f12da457eb3b2f1062376 SHA512 7aafd936603c93fcdfbb20526accb62b091370b96840eda6d6966f93cccac337de1e1d66ba6cbadd369c5283d1133f6166b1f244622862b164c1deacd964d2e0 +DIST thunderbird-115.3.0-it.xpi 643537 BLAKE2B ea9c106975738251467fac26f892bee3bdbea3f42594c97f9f29ff11e3bff10f9afedfe353cc3da7aa2abe7e3d75c87737e4d72a575a78f1b4a43eaf10fad16c SHA512 8becc7e7a05e4078d4b7720e22e4b65813202b6766296cf73ca6072d5bf1be409363735e8922d7e9ca3fb98e0281ab07d127af68a74829baa19859650abaee73 +DIST thunderbird-115.3.0-ja.xpi 781687 BLAKE2B 7e21d132ac7de16f30e1ea246853cd9c0ae6687b73508547304adfc7cbef5d4c4731023abe72c3bb2d2d13a2b64ebd9466bd777ca7d247fa0c922f74bbc3c221 SHA512 20ac111957c53dbf23eda1023ac893539790cf50fe2282b042ed55717dd9e83b038c818390b53e9159600b46e65bc75dec5c89c6860f95a63ddea418c7f9ad7b +DIST thunderbird-115.3.0-ka.xpi 764449 BLAKE2B 6f7cb6d13b0509ca35c85f56a054b62c983d51dae2fe1db057f3d73cdd62c5ba3fbd9656bd43ae12db6d8401acec8776f13efb69b2836fc72e4c6b5d72e2412b SHA512 c0ca640dac6323c220007f80635e8b848b14732e6c9a2e260f59cee5a03521774845cb596be610ac657f6c7eb7f63d59c6965418ad956ce1fed377ef0b367d13 +DIST thunderbird-115.3.0-kab.xpi 698918 BLAKE2B f8623c63a0a8454241d6399c80ac49d4aa633df54a9d4d648e17304c6b8fcfbf8d5f4b447c0c2d22d569e83bb48fb48795685a24930c738ef0c44bd61f9fbc8b SHA512 e1136b2d5f1c4cce31995e78dc7d5b9db98ade7dece1207db18e2e69e95d2b5834e5067109dfdf3c488c0075ae6cf6f59818a5d59ff4569aa6e57b609bb4eda8 +DIST thunderbird-115.3.0-kk.xpi 805071 BLAKE2B 2bc85cc2f21695f05e47d663ce06cb860038b4088cc7941cb440e4a37baf9cdad795483f015c20efbf07068f94e224253a7ede1ba2608306812f2b80da9ab6b4 SHA512 2c2e32aa2ebcb0bf50577bea113d4f23e2b66c237fd5ed68dcf244777bae458ebada4820e182277f2abe1a19e3677c20c80ed3672f110890a422555fa8277349 +DIST thunderbird-115.3.0-ko.xpi 712207 BLAKE2B bf06fefb12cc9b6e931b263fa578f9bbff7867c9c8871f6c9b7186d3995f2508d0bef140ef3653728e8da984201e3c6be8b057c75bc4cea13bc34ae9ffca7ec5 SHA512 49ec61dc48af4b6793d16b913d342a198e958725bd621b535bc259f465aba3e3263a0e0af69a8bf8f21a6bccc554415d506d9ce4d4fb65c526ac8f1e5bacde2e +DIST thunderbird-115.3.0-lt.xpi 680094 BLAKE2B 0f01c42e80589823e117fddf828e02eda3345e530e24da5f002e63ced18954842cd68544c6abc8e2a006c582d5191c2436232c5b89badd1fd09e619d51a14e7f SHA512 9cfd0e928041e871798da4a1f9b99a98310238e88628f5cf9393757c3daa61b49a1692343ce0fe312171bde3f5908e5bb9aa6e73bfc84c91fc6abc6425e45c0b +DIST thunderbird-115.3.0-lv.xpi 604647 BLAKE2B 660ca350375888cce6b5ae0c86e359c6fef77b4c785f5c79f8008c62340b054fd176fe12dce713cdf6ffd2380918ec9c287fa743a55487d69c95425615a09d5c SHA512 1e2063ae49bda4055579ca1ec8869e6325712f5ee2fc0a19c5d02be9b24390b050acd896a9b3190a6d0e6a7877e789f74ca8f7f6ed221fbec3a4ba3b1a3a6e92 +DIST thunderbird-115.3.0-ms.xpi 565732 BLAKE2B a43efbcfd9bf2b83d56642658fb9718a8a3bbca3d3b950964a96e617c7b05f820fee8bbf4dc1dbb0d8dd8e29c755b0285956a9d2415c3950ca2a500b59cae621 SHA512 6438bcf04382b54e3be5c4ddaf9c2555f3d65829e8ec347aa7adf3e4edfaf9ac9e7c58f0ad0a4c3c167cd9d7e0b3a5626a4413ba060a2bb0b3b10781d13108ef +DIST thunderbird-115.3.0-nb-NO.xpi 653865 BLAKE2B 108deacf3b35b4007a0294a853bf13db31525a9b8efe59ef9623b206d4cf8447622913b515dbd0ad63a9ace78776fac89bc6683c61d79f1366f3ee4dfa706f7c SHA512 880383e3e9b5e9c4288b2a43e8cc8068878501c09a56164552f6a6203cb340f2fa4fc8f1fa1b6cdf7d5be58c4974e0c75459747b62712197460555436b0f319c +DIST thunderbird-115.3.0-nl.xpi 699497 BLAKE2B 533d86cf366f63b667b85a412961be57f128fe58eb8ecb87be13cf705f8d72fb43a7256da03569d5f4473d0efdc5ead6f6e8373468cb5526024f94b3a4751f4d SHA512 4ea9c06d4ce0b0f9f3424013980ed56b057beed552cca12a1075250b900bd25108d92cdb58a8428e7493973151b0f4846e153e82da3fb4e2b4ac6a768bf6ce1b +DIST thunderbird-115.3.0-nn-NO.xpi 673377 BLAKE2B 1a9f47580b81d44d579fa23c7f6745dcf507efa5e234cd2b173c32cabac5993f35c7579204b1e83e1b2c95aa37288018292fbf97d703e9c4bd69ae3c50ea0960 SHA512 81a92888ad777a5f263e97c1a6ff063adae1544645c13d429eac68bf0d829872964abaa2af36c812696a9488829febd90816d2ce7d5e7589f90b236369d21d2d +DIST thunderbird-115.3.0-pa-IN.xpi 655776 BLAKE2B 74372dc9c9b0110d4e3c4e6e7c61d2f18d339e7392083bb28b621857c53f8eda5423e70c4033c3be52d731f342d12251b25cb8a29dcf6d9f74e88bce0c0d2b78 SHA512 3db143d77962d46e31b397b7072e3e759f01fda099812ccd383364a8ffd120c0104aff1999ad0658bfc9e75823e218e76dda7f3beb292089eaf5e9038948cd62 +DIST thunderbird-115.3.0-pl.xpi 716599 BLAKE2B 519b36822928c90864e49cf8d43b78ed830372dd6cbac057cfa6fe0a26634d6af8375b787bf754925a45f0461cedd9722534adf37baf5b1c4ed53296ef6b4477 SHA512 b991caae146ea2e607325c2dcc734e08c421c2fc67ac0e59c7672ea884b7570a862dd34685431bbddafcabf819ded95d30152de967da818d05509d7a136d57bc +DIST thunderbird-115.3.0-pt-BR.xpi 707262 BLAKE2B 83991dbf5797f1d8adfce65e368c72abecf93b58fabc3fa38f41bd945815ceb0e34c925fe968e3925efe6796fc4f6b6c2f95a3bce5609418128d45562e7fbe3d SHA512 5b23685772fe14c1c774e1f992397f9f7d6ae34166521562657f4ebcb52e80e43ca3ca8f72e00088fd6537829354c6ecc17351f83fafe0b693c39ccaf3f5d6f2 +DIST thunderbird-115.3.0-pt-PT.xpi 687833 BLAKE2B ac1894ccffeae396e09da424999492cb5313e81e677ea13d6ee01cf560315735c17eb53cc744f6e02b1560c7aa0118c7d04dcc8eac7688f63e17c700f888a9a0 SHA512 e999edc39ca76350961a95af246eaa3123206c6731b44f4f06d87d7b6de55c858e2e6915b227de99110a3f560b77489a62be43c78dd2a4c86fe1faad46610df0 +DIST thunderbird-115.3.0-rm.xpi 704043 BLAKE2B 8c02dfeffd6f8dbfb4da227c02e711f49e25069e09fff3b1a7e3122cc73909c8607b3b5f0be818e1e33e61bd82b39e74b833d066227f1b36ae465d85aefae0fa SHA512 17f68fcb56337cf4bdaf3cf27c14812bd6c29cc2f8cbe307a0cd50d80b392c980f02c72c878fb14eb938f29dbf562ad52a4d5ace7cb1626a8c7ecb63772dfb97 +DIST thunderbird-115.3.0-ro.xpi 651297 BLAKE2B 4d1ed4c153daf634f080cfffd1a287102108b8f5a06992580d18f2061a9204d96f94cc497ade5af6cf7b95ff7bc2e5da62c957ac7d55d0994ae9e82d2ec67d64 SHA512 fb63879f90e4504165fdcc2f54bf657979ee3e57fb9fa4b6994cfebd5f4bc4e6884fee7704e98815b9d01ab6101d3ff242f37d8bc66e0c2de8c407078dcf9f04 +DIST thunderbird-115.3.0-ru.xpi 820865 BLAKE2B fe25b2d2c283e2fbc334a19c3dc381ad54a621f6ee8e2e1e7eaca34b9ba33261c298c9dbd7591031f069927503db9556c114cbcfa7c55b5a87dfe17db7256301 SHA512 cf6dcecbcb87d851608c396623c866bd127938d553459981103b9f82c485317b17f198cc270602a8cad204726a93d9da33ae716b34576887a697a3461919c6f1 +DIST thunderbird-115.3.0-sk.xpi 736657 BLAKE2B 71d09c05a79ac460959b5829cbdb47374cf446f3489afa421a9fd8a45e87ab2a23764f141a1b11c7dbf1dba39295964054da8fd985e1abfc7f70c064f8b695bc SHA512 08a0a67efa3d01fd4bbcb7112221cc1ec77bb149f5aced91b2021bc1c34b46763a209213f9b3a6aa7b7ed5f69c8c12c6ad0d249ea730387ecdf4f4b80d19aed5 +DIST thunderbird-115.3.0-sl.xpi 701216 BLAKE2B c05697f9c42516b97d5c75d21692196f12ac47381461477cb65079a09cde105070ea017e78498ee097c2c46564a793f1081ce86e700f5b079a9befa8cb845be1 SHA512 2960ca7a6131ec978da299732e2e1865a04ad87a18e167d31459b1ebacd10bea0105b7fbf014cecf7d8cea5032cb108fad265f120717675fb4534a10d9eda65d +DIST thunderbird-115.3.0-sq.xpi 717450 BLAKE2B 3b053b5a6f3bb30ce37c72d5c3e7caafbb50c58304e462ed29f7ed1ef872f67e6127d8ae146f6e69d1ce502628c54ac76988d532ecd36c6d17379f5582ee0154 SHA512 166230b60fdea71c1ecf4a8bc708e2a099d1da2969350d2ea406793c347233d7401ae71cfd83f197073a8aa8e828c9df4bebaffb7bd14750009ada8c25358227 +DIST thunderbird-115.3.0-sr.xpi 740171 BLAKE2B 12ecde70b24026543a9a0068c491c10dad3e5a8ecd3c9cc9ebe0f8c42013e05840cfd9637499faa3933ce339e1c5bc54081a429fa443cae154fc3692e56c7ce7 SHA512 1cb2312a0fe790b7af3fc8cfd2ff37007823cd7a01bb99cbbe0aec32edc5b43786ad6c170c404eb6f0191868289c7694b2e1b1553694e34dca6e31496673396a +DIST thunderbird-115.3.0-sv-SE.xpi 702346 BLAKE2B 91bf87b0d443483f5376994ec3b992e60f7b87bea271cb95ec4198447e2e8fa82e3c08aa7efce54787286e54b384ae7032615029aeddab5bd8aafe1f67b9f2c4 SHA512 8a170d105a87ddcc8fa4b1d495793b620f8f5db0e084c16b9d79a1f51934fe0a69c9d26a5ed8b7db4bca997d307638530799e92920bae11304dbcb0601526db2 +DIST thunderbird-115.3.0-th.xpi 761856 BLAKE2B 2c693eaeec019f5a313502ce5964dbb71f2f85e0c17eebb4f96ee7d3a6d0bea0222849aa138080c70791cfe95f494d8a2a79d4ce865638d9901e28a19b9e7f37 SHA512 afe769838ad45721c9925fdcf7259c17854690ee57c3252aebf646d302a01aebb6199b1e2fddc75f229843b40d101685de72148751a1380df75419c0d56cf7a4 +DIST thunderbird-115.3.0-tr.xpi 715002 BLAKE2B 5c6dc9696f6aa3f7540261e8f94ab05645441144fa771472fb31ba68c22a71d51b78a368aa617a8a57171b28272c628e9f1398f856db27910f682693e1c60146 SHA512 0c018f7af36ae237b08c309e3f62b4b934ade877ce2623ba7950facda03e3fa2137d0ab273351edb54451ccc64cf52e5a0ff8ffb4e43e4c065395c6f301fc902 +DIST thunderbird-115.3.0-uk.xpi 813757 BLAKE2B ff50e7b0618a30e8e817a25adeb46976da1184357b543281d21f5404233eea8f524755aab1f7e333fa370902645bd187cfe4ecc6af75e173045e358676bd64a5 SHA512 744ce2a074f956bf2287bc286ad7e501b1ffa431a527ea7f6d36dd68f8776072df9365cf1aac9fb44acec99b45ff08848f3f8e5dfcee7ba0e7f7d0fe1ff3e80d +DIST thunderbird-115.3.0-uz.xpi 579985 BLAKE2B 2310a774180e08b2ab02fc73b08c087fb75f6ba53cbb62dc63ff244851663bfc76194a24a1da9747ca62ff067b2fa2aafb0cb333c492a19508e0e43be372e733 SHA512 5137990eb0b1ce7edb0ed7a7bb09ddd676933c05517a20359e319d88175e2dbe991be877f73618e9e7f64966f1f53f9eb2f62edebe02ea29170fab5dd027a160 +DIST thunderbird-115.3.0-vi.xpi 742715 BLAKE2B e298c99cd96165f9acc0732dc45028aceb4b8028d31d58a4381aa040c6a38a2809fcb22689f5e423ffe828402fb2c192609039a0072aac29a088798bf8d51f35 SHA512 a5c677015cddbd4799c0fe11b972f909760c4b1f3973f52e6fc04c5a170b3cf4483abe71454f7f209535d98f6f8685a14741df6462410306de87e73fa255030d +DIST thunderbird-115.3.0-zh-CN.xpi 740787 BLAKE2B f548142441c4c70d55d131cb61e756d8544cd22f1599f8944c517a7184a1a2582bd6a98489b9dd30db22768163e015bb5d3e862af32733bffc8622a01ceeb3be SHA512 c9ab7f78e471d48ca287721bc96da4ccc2709473e4bcee0000cc3a5236e59bd0687540d3a2e1e13b78df61c0db5ecb6aa8d12032c3fcc625f85ad818aab2ab5f +DIST thunderbird-115.3.0-zh-TW.xpi 744414 BLAKE2B 6abc1552410f0497462319161b67cabc88a41c01ae9db6f12d7563715a264477eb7eef8d1a89d7bd84546eaae879440dec0faa6824e0e1053415e331f9b0e466 SHA512 372475654794c3d8835482213fc8d76d7989c2e12474351ed988397cc555249c8e2f607e1036ec5520fe4e32dbe8f40cee57b6fc6cfed16c8ef65ed7b66d6e7a +DIST thunderbird-115.3.0.source.tar.xz 533553340 BLAKE2B 120d809f90fac55f4a96b0ecc9027ec9dcb5177d980f93456a294c9ac514285bb6bbcb2a26553112bab8f5bd8464c0697a5a48d9487a701a5065c0fed6e74161 SHA512 a6fd99f9eccea5cfc8a6236a1651444fae9db99efd0ae667366638f664513e70529c63e2947b53433c1013517b23f3561cffada81d1181bd9359a02d3e059503 diff --git a/mail-client/thunderbird/thunderbird-115.3.0.ebuild b/mail-client/thunderbird/thunderbird-115.3.0.ebuild new file mode 100644 index 000000000000..e7a18ed43a3c --- /dev/null +++ b/mail-client/thunderbird/thunderbird-115.3.0.ebuild @@ -0,0 +1,1313 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-115esr-patches-05.tar.xz" + +LLVM_MAX_SLOT=16 + +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: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 + + 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 + + # 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 + elif tc-is-gcc ; then + if ver_test $(gcc-fullversion) -ge 10 ; then + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..." + append-cxxflags -fno-tree-loop-vectorize + 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 +} |