From 2000f81da4dc9971f6e1e5d00b315816d4188f4c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Oct 2023 14:40:37 +0100 Subject: gentoo auto-resync : 25:10:2023 - 14:40:37 --- mail-client/Manifest.gz | Bin 3377 -> 3378 bytes mail-client/thunderbird/Manifest | 67 + mail-client/thunderbird/thunderbird-115.4.0.ebuild | 1321 ++++++++++++++++++++ 3 files changed, 1388 insertions(+) create mode 100644 mail-client/thunderbird/thunderbird-115.4.0.ebuild (limited to 'mail-client') diff --git a/mail-client/Manifest.gz b/mail-client/Manifest.gz index 99f1ed116e4b..58d351eda2ae 100644 Binary files a/mail-client/Manifest.gz and b/mail-client/Manifest.gz differ diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 290b0539105d..492afc02cb62 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -6,6 +6,7 @@ AUX icon/thunderbird-r2.desktop 882 BLAKE2B eb9c2e381b67319d9cd53f26e9b406f55de8 AUX thunderbird-r1.sh 2896 BLAKE2B 140047417b24e959fe6388c4913457f8e3e786158b7394abf7442b0d2e83de21238e58983845a23b855e1aab60c9289e1a12af430eac9a8b2d9929da97de2852 SHA512 f9b989152a8a3ac274033722c77ec19374085654ad6c85ea4db6f8af8f4b2066d6d9f82b610be2db341c8ac867547f54f806ca6571258ed98dd9e2527d21b357 DIST firefox-115esr-patches-05.tar.xz 15000 BLAKE2B e6e6918d182100616095119f1da7fd6ddc8fa3dae236d075292451f2b2ab1be7b16620eb17f01e5c10fc81324c81b25c596b9e99e7d7745a7ac0b22a27ae3e97 SHA512 ccda6860d885837c59e7ee4612bdd72dedcbc0dc5d6cf7d40dc6524591b67a2d165a251a13662bf1dd3995ffe392861a73bc08bc606a2320de5a5d8880086314 DIST firefox-115esr-patches-06.tar.xz 14944 BLAKE2B e60a8a32f8c5e6d897e8c3e13d291ffab651937505ce258f031e7e75560c9eb89fce4a22c61872d639e6e1d40244e94761baa1660c2d3d02584ad4cc4778946f SHA512 d9ea1a063df287fa651042c90529b1a1b5ebd5a28735c44b5527cc7dd29678c2f8a9204f007db328371ed6af9613ca7215464c00df5e685c3af4296a22139257 +DIST firefox-115esr-patches-07.tar.xz 15204 BLAKE2B d5c33ab66a3cab0f1d7b520b5cedd17a8d41260f560eb7624f19f9e7126810e5888e5e1af584661561e82c2dfb818d2c6c7906062f9ac7ad117cb09052163594 SHA512 c948c32766daed22c77d20e0ef3f499163e03adf2a6329b04a60ae9f0b377ad6c85fde3d3bee8c5b11ce7cb19b9e03836a60699af3ed074c4ee8530b63c390f2 DIST thunderbird-115.3.1-af.xpi 542155 BLAKE2B ac2276dc78095475fcd6bbde7b762d9c5926ceeaff6f30f29e0d384a2aa96302e785aa40c279861db2ae9e4f4518214e5d8c4b95b2f050d2aad3334619982fc0 SHA512 d44bc133e333f1c85e2928196b65de3491ab9fa23a44a783ec2192a49c778cfdec71cad0c1c08e5339528a53da4f60f585cdc6c8fa920d1957dbd98d1aa681d4 DIST thunderbird-115.3.1-ar.xpi 654727 BLAKE2B 417c2d1ca3e109235588fe241a01dc19208b00b436032a21eca4541548d144cbce9c04882f4a2471a7748287044d62b94e390fff422d529f8e2174ae2e11722e SHA512 f9790ff5ae7a27b9d0a83ca9d2f1c1d204670a724c35fcdfb8df480a753794831278956822b4604f72358f66dbb8cecb71e0bc7fcb36021994f2ea6a477fffad DIST thunderbird-115.3.1-ast.xpi 561119 BLAKE2B cdfe76d451621fe2e508b80b01045b8bf8147fd6cf96a4c74950eb3d8eee368353683b11a9e9bf6421215ef09fcf7093cb748f51f58b2ca046db8d7f85213f3b SHA512 663c4cba6f27649c91b42e0fae44e98be4d515a218194f8e8edcb794386457f64002af1266b687213842139ab5c54d1d6fc2a7e2a6fb98eba9d4cef646e622ab @@ -201,7 +202,73 @@ DIST thunderbird-115.3.3-vi.xpi 742633 BLAKE2B 85374540864f79e06f5822ae3299ee0ac DIST thunderbird-115.3.3-zh-CN.xpi 740610 BLAKE2B 698aa0a22bf859f84467f3430481400a46c4bf6d6ff1418d3a07e3bc2e6bb10181c07121a2380bf7a4dbff37f5961ecfa286ab2f2b32a839fb428c58880bfdda SHA512 dd28bdbc8d68abd8d8007e1f3f74e3724b710e372e8f28d4cfe3029e45c4cb42dd4d8aa3a10465a8f7c8e25d66f1256402e49c5ba2ba7fc82cceee51fd639de1 DIST thunderbird-115.3.3-zh-TW.xpi 743525 BLAKE2B 55a96f38f35ae017018f7af0e83b963b5909310cb89566cb8a917b0cf365411df62f36fc370bda2c378df08c31b4120d1ea03ca0c1f625ffdc6358c38694bc24 SHA512 8ecc806bdd8e8fdaf5fc35050401066f27946a9af47cff17b960eaa55b27a7736cfeeeac48fb65db7c83782d65effecc7b6a3592cffd10c75b4f4bcf40d1390e DIST thunderbird-115.3.3.source.tar.xz 540032900 BLAKE2B 873eaa28daf89b12c5f1112042a19c33e40e6f2c72707ce21874371cb5ace1b48deb5679a625bb370c0bfe233cb9d730998539442df335c4693d3071e7ee59b5 SHA512 631042a3cdbcbae91d93eb71c0d4f6a1122e8bc7000d75fcc7d3cbdd0e82a4b31abac590c75771e77ab08d5700582b6dedacf62ce8e21a91e9ea81aedf1bbeaa +DIST thunderbird-115.4.0-af.xpi 542153 BLAKE2B cc0e645471cae5d61f644c708003e9fd6c5882faa4ca98567184cbc3d0187ad5562a2a6c1e4b2e752558757cf35e3bb1aaeb136a14c3ae6130803e36d514619f SHA512 0caf8829a240d94daf1cd80c9efdbf252a65b64d14a6edc2161297fab7ad9ac7c296dd30d3321d8ed34a491db0992f3dca89f7bc629732b2827db503f941d3e1 +DIST thunderbird-115.4.0-ar.xpi 654726 BLAKE2B 0b5fcaf5ee58e30a44122afaabdd54597b03d989a4418361fb879cd4b59d756ffe9718a4924f05bf50d808a6971045b8a64443c8182f4f7dad4a1fe859d9fbc9 SHA512 27647710d1d9fe049d539cb8151bda39bb63fe598b34eaa85d93c89e39cc192ce3ea7675a39311eb6b0828fac4edbc24b3d21197be779c42fdc6a7959b6ed3b7 +DIST thunderbird-115.4.0-ast.xpi 561116 BLAKE2B 0336738be472097d279fee169daefafdd83be79694e75928132fc4b5d7edbf642f605e78c508be351b79c21226fb7502426b7141b633fd7fb29c134fa99ab339 SHA512 f41568f8a2a1a8e88e15464e799f690a35b604edd68df8eac2d2a8a280107cfbbd6cc1ba0c46c75f00c3b508cb57b1bc649340f87cd4ffad602a839e014b3123 +DIST thunderbird-115.4.0-be.xpi 694083 BLAKE2B 54b2dc1ccdd33ae4a99c9642c08bf321920c2f74f0ede24d88b8402faf5968443559d0cbba65401cc8bdc78cd6697152395c94daede0924922f6772178116f44 SHA512 6cfdfa256cf0e18b638b1726d133eb9f3558d38db20d59742dc78d3ced00a5bde15c67c6668048efaa86e1642acf48f1ef357c121eaf26be5b0ba0a1564c0b91 +DIST thunderbird-115.4.0-bg.xpi 681248 BLAKE2B 26a7fb80500dd94bd0fe09a8a761ec81327b771bfa6c1fe7ba2faf05a878cdeb8e544844d8ce06027cc4cf08bd76614a998fb9f15d2f51d91a3fc91d3ed35274 SHA512 89e3e47d8d5356f9a0b9d077441fb7981f583ddddccf8f0df3c60a4543874109830222f703c2a38d0127b1b3286fd643e7e4434cef2da7045a34f8afaf73934d +DIST thunderbird-115.4.0-br.xpi 626934 BLAKE2B e7fe524e4f25adc1535a7f4f5b3395583643630cbc9566b64f0442e768d245fd9c657bc0ecd1970b321dcfcbe4d6a615f5d3508b6cc630b1955ce7ab092eea8c SHA512 c1b441a94ff5293f9e9fcc0e9bccf86978776c85d09d974550814705785c3b83901415155efa9b0fc7c96afca9e5f346784d472e3604813b9efbd78d4872ba09 +DIST thunderbird-115.4.0-ca.xpi 670649 BLAKE2B 93a1fb79f3946a0b388dac6b8efac6adeda3acc631d04f3f82c9954925b20fe9852dd391a895063dc91c948aa57a82f732b169372767697ed78b84b64e072d33 SHA512 1055b820a688af45f01faf2abe66bbad91db56a5445b10880442fa4bf7115cdd4100770b6f6221bc2097f12ad67cc7f091ef2d2bf7de0d63def0378bc9d70797 +DIST thunderbird-115.4.0-cak.xpi 657814 BLAKE2B 0842bdd95813124d9e96cfcf4d68e80590b808c44333fd20abb6a72c4752de76e275c5521ff1a6adf9346112b8cd64af3f86a83d8bccd456326fd97dee090451 SHA512 0c2ae541e37b60f1d69b120dd3dc4c8731b7a31198a7ed5fab0ca0d7ed93aa4cb4ff965f9d8ceeccd0a94943a6d9d202ba8fde9541c2a2e4dfbd8f81e24832bf +DIST thunderbird-115.4.0-cs.xpi 733799 BLAKE2B 5959d53dcd680bc427aea3d844568a8967ff79fd4830abe17edb9d08aa76bfb593064b3c05a464a45e61f78df2cd187ef93b9971d94d6c2b79daf0787451eb6b SHA512 5db8f334ce06bd6f1991b44354173d10885c29f3b72c5532f80b8da78c62227a5e15c39d8433329f2c2fd8056017e8e18cda69b7cf768cbf1408ddf35694e019 +DIST thunderbird-115.4.0-cy.xpi 703265 BLAKE2B 296065285233abf713fa3897f73dff85af9b93ecdad7888214dc3f78adb91f840901afa20d4bd9bf9b67d507f3241d962d6387fc85a8c26528922e1f66768892 SHA512 9a62e99f03a65adac36a669ed68a4cbdca4cb04147000c8c6042d2880a357ddd33750c5b444bfeaf3fc8ed23c49057e6a6e45603cc6aed64de1489afd090567d +DIST thunderbird-115.4.0-da.xpi 690751 BLAKE2B 2873f67e6d2ef207a439883732a859c5b8ed8e05235fe9560ee81b950db8e59e57192f073c20d1f065da72abfc65ea51ff275256c51fa5682772435db5fc6ce9 SHA512 3c2c7d8f3c95cff2a6c2947550c0256fdbae48ffcca47a1526dce85eae68cd6733bc3e30198699190d10fc94af1d957a0925f48e60814ec5a39f93badb3a2483 +DIST thunderbird-115.4.0-de.xpi 720202 BLAKE2B 40c74a5ba200d1c81bc437fe97346fe2fd866154b696baaf20d46cd2031f7bc33f92d7562d161935a3072b83228c6b7944dfa7c22d520408abeb615651fba157 SHA512 6e3b1540bd362d8c509544512426236e6726686ea313b764ace4c7d181c67e1f2b9e112bc6b3fa4a243e49a120f8a38964b3c0aab2516e25dcd1a0edec268a59 +DIST thunderbird-115.4.0-dsb.xpi 737295 BLAKE2B be5a2000a45966d9410d8e0ecba34271c6904c541d264a81fa7e82c8d78a0801300470eaf127c76268b39b1ee625bc21af1db58eb7aa668005bde989a7d321bc SHA512 478bfb50ccafa296732278da7891a90709a0888bfab7d67dc559458075f4ff6cdf7af3617ab989e421d125578dc18285b99ee4dd255ada16aa89c429532a4482 +DIST thunderbird-115.4.0-el.xpi 836690 BLAKE2B 57c9b29ce54bd53d1aa6b9ae36dc9a303a2cc9e4522434c10011484d011e53ce16bda4308d13bc8cb60162650c72b49b6281d85e7b6f01c154a0f06176d761e5 SHA512 00908aab56afa44ffefe436bec3b7f27bf9069c2ce2d5b0c8bc9caa7e037ac7baef0f5756740d6e6422abfe68a8e8f51e948e76c91f1c6a1bcd811438a9d8fe7 +DIST thunderbird-115.4.0-en-CA.xpi 656171 BLAKE2B 1f34fac269dceb9c50a93fa8be0d022742df9c9ca37a128f06ba0783f366c9f9eb94def8fadcc33e27d5f8878bb7c7e07c7ae60235f06418498a83a19bea6af0 SHA512 31050dd68876c741c7d420f420369e0a43efa26768f01af51d3af88958bfb7249dc48aa1937165e337ac5a0e0383b0c4edab6aa3b15385ddcc6295fa443489c2 +DIST thunderbird-115.4.0-en-GB.xpi 661449 BLAKE2B 3e871800082d361a146b48ad15ef30fd205466530047577f5f7d519fc78b3f844c69d64f59bb4f822536a6ed96e7be9064f37717c8d8c4b3b9f1e893f63d1684 SHA512 ccdf8d1575117664bf6296e6c77ea197cead665cfca39f698637bd9a3ae58f8ef02c80491faeaf05e184ed5d261773262a51708ea364e509de5b90bf0c16a398 +DIST thunderbird-115.4.0-es-AR.xpi 713033 BLAKE2B 1c9dc6ed7ae9b4e7983d0289224ba88a07f5545f31f49d0972f398f999f7c94943072a16be4280c40ece54f18b199dfbc0f8d1b0466942dfb0a3662eff65f991 SHA512 06784db904d9e132214df47816f5e5b81d98d16636cfad303836d93b79908f61ebb4750d3f8e4c1d9a1a62dd1243366d1e04487d7bc308241241ad0da0ca29a8 +DIST thunderbird-115.4.0-es-ES.xpi 675615 BLAKE2B 62a8b40957aa8b18faee4304b0fda11b5d2e6f9f663cc3b5ff06bd58ef15a77b2e243584c74c0220a945ac15806bd589893fcba03d1ea143a1cdbadfae81676a SHA512 c329bff47950b057abc3ba2c0041c96b3375f73ac1054c42d270a8f215cbfbcf3992f362fcfbc292e29ca4efc8b4671015934280df131588c9cd51841b102285 +DIST thunderbird-115.4.0-es-MX.xpi 710139 BLAKE2B fbfc777a6a54751fe03b7cc95b0ce907cd634cc82e86fc3bb2e658f6f21db6c8bb329d49baf87fe520e7f79dae3a42b3a3f297fb84e608e1d4c619e33da22053 SHA512 81366b602475022964e41651fbfbc4efb9423c225fa7aec71244f823f0c66f14be13231dc59283262fd44cc96336fc3730cbbea7c2cded1cc62c7b7d8fca7920 +DIST thunderbird-115.4.0-et.xpi 671819 BLAKE2B dbe75858b5c91c7564aaffc5546438b0ac1d73d6ea383c000bd275d82b38994e51449c15a94b78896a7711fb77ab04c19408db709888d7147338e8200ef0c7ec SHA512 b2bc6835751e2b5efcb168d32ba5bc8a15a13217de8ce5bc19b9b959096fba4109f295b6cdac6d3a1e785e12dfc7e0f2fb07923e138fe53be521e37f26ae92c5 +DIST thunderbird-115.4.0-eu.xpi 692548 BLAKE2B 6275bddab49afe9c1171a41e43650a1b889c5cbca53b7825be3fdf8bd8eabbc417f9194acb53408f71189fc28d131ba6c31943823eb7952fab8211903ea8154a SHA512 507d70dd24365aff0a92c28e7508593cdabca019748ae81cd08573d12dde295b6ae85387398ce92da00a78997208308516d6593fcb3745101ae0f194f896d77d +DIST thunderbird-115.4.0-fi.xpi 690414 BLAKE2B 1ac2bed35c396af4ebf55545d7da16cf4842e34ef573ff00f8c7277adc55aecdb14613af839016fde46efe1020102fc0a6971457389b6a4a566493efd8ec2cc5 SHA512 c618431111b6244e12be042b72955512580fb23f63c89c99ef82c998d74afe40b4822df60821c5263a1ec7b94934d42f3be8855d1eb1d038f579532a3c426ab0 +DIST thunderbird-115.4.0-fr.xpi 725266 BLAKE2B 506b9d24636278cba3a59caae945b73b97beabc5cbe08c12e7e8cb059661c522be5bf0658e5965377e9bfc0b6e2e9706d492aadb363f62a4536e738fb94c4d22 SHA512 a1db0ecc6bb609101e96aa2add48409a5f8adc8b20f7d3c09e678f7333dfc9ceb24f4e8c49ebb3aa4e763dc52f709cc61a7e7d28991b9b3cb3767c4ec80667ac +DIST thunderbird-115.4.0-fy-NL.xpi 707838 BLAKE2B b2c6bf8ba4cae9aac3f64e83c44c4633cc30606b9726622798c94a05e0736d55d2c3e43d2d912f705060b7f1766ef7c296053e6c6b770d596bbb83958f281839 SHA512 7739110d6691bc0315e7c17ddc6023f92e0cbe2c4b2b55aaf63ea124a85d2b8a0b426e8b722dc31279504c6c85d681cb8ae8e579fd722159b9da945c03d18e66 +DIST thunderbird-115.4.0-ga-IE.xpi 602152 BLAKE2B 57c46490a1e38ddceb10a5492383d33f5c466274119436069c97799e43a828d65df881f27252e7e2245c1da24d173c5920d4d300ba631cfdcea680aa6fd7e3b9 SHA512 15b2db1ac95390e217442fb2d91eae1f1ed30c552872c8d29b9607a08e5cad7f0fd4b97ba54f9e5dbb53872a807b8f5eb4f4a3065735ad69641cb5e185edb320 +DIST thunderbird-115.4.0-gd.xpi 702992 BLAKE2B 4718e3798009b4dc7e4f54835065a8da34c67fdadfc453235cd9679827033da28cf4c75d1245d161e80998131466b97b4180a5ea6dc1a9e197680d8314a8d3bb SHA512 5689206f5757ae641d71d5438b27ed7646f34b7359e4b98c76e1ec9215f4f420d816eae59224c8d406de6287d4c162f89219f92760a3482b627147b395f58d63 +DIST thunderbird-115.4.0-gl.xpi 705370 BLAKE2B cfb331409c01ca22fb69e270b4b61b1f6de37077fd6c8dded6c09aeb48fc567547ea457735d61ca5b6a0bc0bb96b1e40773aa213fcc1729c43396c50eabcf8bd SHA512 f2afcb8f522f644e10a6ebd2cceb30da199918ffe4d0962c32a8c697256f86072e15226c003adb090d6d835e0f767945884a1043973e8e3d9256a104c5ebe880 +DIST thunderbird-115.4.0-he.xpi 667476 BLAKE2B 7000d8308d18f1107d7dde39076b25b0aa47ebafe6e38a6057079175702864b4ba59be514963b56860e6ba51f92a74045ee0ae3c6b0be0fc22105d4fd51f2270 SHA512 46105486cbdf13a0ae7f08841f4565450e912a453cd2ac388d6ada7751f5308bfd8948684776653df0391b854273767844524205d6773df08bde09113550ec49 +DIST thunderbird-115.4.0-hr.xpi 674802 BLAKE2B 69ac7906ade258556ab5724d98743726399d858bbddb77654cec02919793044296ab074089276c1f8a79d84e9c2d3671cb402bb8f26340b40d6cb25f75edccbc SHA512 83e1543b0df9a4f75ffbdb032c19d337bf621ae90d842fd6bb762d95d6884a91472b563b57cf08275eaaeca41a4484d17dbf98994eec769915359ed11e099170 +DIST thunderbird-115.4.0-hsb.xpi 733830 BLAKE2B 8599d7e42ab9cdf0b20f455e14219310167cfb9fc40c0ec5adccd2530a3bccd909bcdc348d77465bf7552b321d6c532bd198cd1ccba12a6393ffd128b66f1f2b SHA512 4b914cd7b07d250673681ea467f17ae02bda783626e4600797372652380681c9a4012377c7bfc8b72c6d22a7878752fa07d98525364eff1b38442ae1c216ac63 +DIST thunderbird-115.4.0-hu.xpi 736573 BLAKE2B 2741baff48d4b01500ed6a4554453f5d9e22e10c84296c19fc6c0e0ad46d39ec62fb81e90dbab323f7156c8faaed9f153f8fd175d23614b8866b1a401ff97a97 SHA512 2f5cd28bf6adc4e43d0d640cea8de01e0b8b4cc84f03ec64e84c99c19bfb756b0a026f577e066c9c1efd475142e839d974ef5808c5f012dcfebcf3ed0378d0ba +DIST thunderbird-115.4.0-id.xpi 642536 BLAKE2B 522076aec747c85604871af38c02860aa14ca21738a0ff35a7e822bfe0dffae18d6570552d2bda6f4a63d418f53819bc5c41c1040a4135c330ce295168053d02 SHA512 84be514f2b315849d59870059df4e134ff228219307c483b946345dbc09e4cc8c994e637018622a27212d3c72f04fd45b560df3022601897efc21ac280736aa8 +DIST thunderbird-115.4.0-is.xpi 701957 BLAKE2B 50d72b860a00ea68a102c42cfb88608b2b42166d0a06a639006e7be0cbc53f20c41828cdf7b45de45e68eab1ce9a25b2b7e6a8af018fbab705fdc1e0ac533259 SHA512 a0fc4cca53628c196cd6d13498fab8fc04d6b9f283004a1486ac9ba00f8b7c3ee10060ee2b0099185534a08fe6857f8ad546920bae99f3b2cea4e04311b1d348 +DIST thunderbird-115.4.0-it.xpi 643458 BLAKE2B 82294726d1382a8262fc3ef7ab95278267fb7615f07523d8a62dd8221f64b4615fecb6ce28a940c96d4de8ce3c02b5aeddf55ee7c5cf448029da4354aeed7fc4 SHA512 bbdd3a7cd8a0fdeec5a32a9ad92833cd05b0b69e8c52552609a28e9075aa34a3ebea7f83ec75d8356d991e059c46abccad36e7acaf8e9ee6d1d2bf9ab5012fe0 +DIST thunderbird-115.4.0-ja.xpi 777476 BLAKE2B b2a65678aa20277b0d7e9a1a5d526f1033251536cc092ca435d1340f7970ac75ca64fd17ab87e616612260d75d34fd7f6b9b69042b32eb82f360e63801becba5 SHA512 60ea207d220d8abf508d3aa7ea9bcec38aefc35a8daf6591d6d1a4c0f3033bd6f9a0d95de39415612b69153bd807dc978a1ed45f0ac9fb7f43733a3d6cdeb708 +DIST thunderbird-115.4.0-ka.xpi 764454 BLAKE2B 4974876175beee4bbe9d2d5fd933b29c2ffcb1d5a384d7675e12fc5069f64f6339a7f43ee494ea246072c1c5c39fda8b1268b158f8fc6e6f5ab85fc3d2227e21 SHA512 ff6298414a7e9e5b5b1d1f1b57b8d9ebdda5374de05567d4fa1388ceed78153350ae80340435c379487f775a5b819e8950677476e16538bc33d90f7ecdcaba4b +DIST thunderbird-115.4.0-kab.xpi 698917 BLAKE2B 1ddf9c3f4ce03d5169b6e7d0b87701e09e3dc01095d6fecfa7690a7f38c7707e5de0409500dc541cc28fdbeee3d88348042158e342bf1f9ef585a270f2edafef SHA512 a73b6d6331002f1a4f1fe0592bdbefc3be704e960afa1fe99edc3b485ac79a4a2cc40f159c9e0c0ec7286694d3c8e6e844fee570caf3f09f2b55ae923b05ab4f +DIST thunderbird-115.4.0-kk.xpi 804986 BLAKE2B 7f5ed3b773ccbbb42326966903738e02a33787606d93e02d8267dce46c18ce07599f843f3de108577e1b9440c4f62c57b19bf5c65a01dc935759ebbf3dccdb02 SHA512 2f024835e566e134fb383d0ad5dfdcd7eb8aa3c369367d2811ec6b00a9fadfb82d4a7ec9c2cc0ed23070a22afb4ac3b8cbec7ef7aaa538e76faa09462aeb42ef +DIST thunderbird-115.4.0-ko.xpi 712587 BLAKE2B 5920904126bd80eea7f7ad949d6662fbba9a2dd401d42d08b2159758a33f2f6227a25efd923b1710cd0b2ef6da186b6f8a595e3812bdf51fab6fa349dd7ae870 SHA512 530597c742289c2c2e7030e39fe445938372f6c21700e9c55f2a7a34395a5ee4d8c1033f7d1ddeb7fce426111b299314f9522b155aa5df56dd6eda5ea5b4c279 +DIST thunderbird-115.4.0-lt.xpi 680094 BLAKE2B 1ad701592ef8fc1f30b9526e938a3c944071f948821e57778f45559a2ca21e52f56b313f683b3f364bde80ce5f48e858f6bad4089e2f3e03369aafbd01e8ec7a SHA512 d647fc9463e4e8da7b39f3dd44aee2c5c20ed3997ad1d3da61c7a938443cf18767af0ca21dddefa887a0f4d5442f6a7608abb40d56a0768d704368c1e527aa32 +DIST thunderbird-115.4.0-lv.xpi 604646 BLAKE2B d6c740d7a478749fa4b0e87db35ef7ada7e82f430f807e7245014b33f9ca80ce2a35fb9a0029593ea68baedb67dce150ac24a17faafc241547b04df6f1f97bb0 SHA512 53918fc69a7a3512b8bd2caa5012472e736054125171fe00d5a44225a7d628bfe62894b86d87e3fe7cb2fa2ee5be1f803800969133a86f91797d5d13b8b73677 +DIST thunderbird-115.4.0-ms.xpi 565732 BLAKE2B 6c66b1ce1f5abe5a40060a0d8008552c106e158235d2b8ca4fa457f88b1092e94b5581658fffbd141fe66a9840df7a1cf85a97fe1cb119d426472590283dc2bf SHA512 6b2f330d0596d9bebb3f3b83ed3ddbc728a6e77e06ff1033ffbc0f898db95e14c34a9ee61d67e0b25eb2b9455e6f5c098924ac9c56e63bdad1f890a4b8f3a0e9 +DIST thunderbird-115.4.0-nb-NO.xpi 653833 BLAKE2B d4b9443ef529ca806e38bfc910bf29f36e5ca896870f281c08eb2c4c25a0b5551625208dbdb8408524ed2490ca07da45a1105212ac2d73201f1b47b37c540c0b SHA512 ab45f279041c6619724797f6150ddc46930afc8d9251989da9dc825f7d09b322365909a12ef142ae419e1c352025d9045e09dafd4ad44cbab87de8e757e224ad +DIST thunderbird-115.4.0-nl.xpi 699386 BLAKE2B 837581e3706f6ed3aeb34235d2e3ad4b76cb3e3ec804dc9b04af89c2dd57683aae9e90c1b7f881f03c920129aab68d06e16debdffa999a697285250e057d2776 SHA512 7684da5c1c32e9b09a6541239fd045a944a24ce2befe40579b1bf1b49f57448c8ad9f4d176956d6b06ee61128af34106d6b29f16828af025e796227af5c3a3b6 +DIST thunderbird-115.4.0-nn-NO.xpi 672836 BLAKE2B 7b8fc7b4b33ad71fc447cdc81031ae2dcd318ea8071ede82c3f9852d450f9fd4536c78ae058b34db4575d53f90e7659b219cab70dd16d899b3657459e08855cd SHA512 e77d27d445f9bec6ea4ff95bca779c42b58322a86535b059a93d793c3152d249708e01be55a462d3ef6ab05cee87ec7852c7e831a4b41e90ebd13675300492c5 +DIST thunderbird-115.4.0-pa-IN.xpi 655776 BLAKE2B dbaf5fa5aa5a64f7c80d14ce5fe8a68915f9920ebc0e55f77451aacedbd9e32d68b7c9e56ce23c1bbba9b91a2668f51c189c2c07e1df6c83a72fd1307b83cf91 SHA512 1911d23c8b7d9217864dd94b296eac5ed4a869065ee0a8e5f34dc1e4ec30384bfe42d9b884f877a1690f45f19f05d9d3dfe2ab4bc7589ffa114a4eddbb06b804 +DIST thunderbird-115.4.0-pl.xpi 716520 BLAKE2B 821b1076b1c6b7c14718b4e9c67e6ab228dbe94c1b1a021f1d6ec15f6258811d77b0f23ec4e6e124b0419d80133191be3715c7eb32466b81517a3a8454af972d SHA512 59005204677fffb04001eb4624ffd1af465b7b5269558fe74256563fc47ee3c2762e51b88609cea9057cc9973b4db03281fa9afcce56fef1ccf4d462d0b757e7 +DIST thunderbird-115.4.0-pt-BR.xpi 707195 BLAKE2B 26745be8b361492cc68812f52a3a6c6c043c19e134300a669c5a3e6706d5ca83b8b07623b12b4aec7cb9f5225d4a1fc27ff8b0a18b1f715d6c8ae82e9de568fc SHA512 2a334ee4e5c93a9a1da134ca0dbc8316bc02a0df477a4fee1a95596d50ac548fee7a619630733d23e2197dbe1c7ecc515fa2ed873695886b80fb1e4b20c6204f +DIST thunderbird-115.4.0-pt-PT.xpi 688985 BLAKE2B d71d632829e4cf1b9617d40adb7fd54d4ec7de16affaf825befd49314e4f4cb587445cc27bb9b79e8b3b0229c5051b70175156b8a4542cb1926901697e86460e SHA512 0baa1b9d9ae5f7c4b9e1b0ff723c81bb940f41aa9de9d26aefec4f622e432f20bd0d1cf36836637b6bd45c392b6d0e4aa12e345119e9c07f189e5d68b7c1421a +DIST thunderbird-115.4.0-rm.xpi 703910 BLAKE2B 0987414d2470ab9d35b8e390a1dd2355f7fcdb2e2001180d2fa5f48f215a8289c0d1961d145be6e820b341f70bba972cabed3c48d582b0b1453ef2087d170d7f SHA512 1e8e006383b50a6006898a6575614d662ecce2d2722f5776c61909b73ec2d96d459d99ce47c1e832deb12f14ba8a666f51aa4bac4192147fa4fc3de8176805cc +DIST thunderbird-115.4.0-ro.xpi 651296 BLAKE2B 2f95686d5ef2635d15388c9aa1cf9206bd08080107f24c9622eff513570c5f1fe293e9e61022666c3ecdbe1ba86478f0ba0d63c397499fad4ca81f1834d0a597 SHA512 34302db7d276200dc3bb5020aaca57e5473ae783bbfdcc5ab584ebaa2a9c4df526a79936a2e5e47f488400f7cf9a5643b0200a71980aa55da13d7ccaa252b900 +DIST thunderbird-115.4.0-ru.xpi 820779 BLAKE2B 3ad78ce456889f09ad9e6306fbf9b964325d7b605d622f676c12080127d8a84a8b95ca2aad69d1adc73dbf03d549661e58a9db478f8d17e21f5d28b91d57e256 SHA512 3113c5f9b42ed7380b7c7a1893d6ec5d18af701f1b97b922949cb91547d5ad7b9341c788588d9dfc084fc19bc7f4e04bbb2add768751ab661e8601ca93174b3a +DIST thunderbird-115.4.0-sk.xpi 736586 BLAKE2B 54efdad71f0cb8f6842e3d33eec8fc2990ac237a08589134bf22142ec43993f133b3ea60e520897e63e2ce73c4364551c7bb77a8d0ed6c5fd6122816bb3acfa1 SHA512 95faf2b748175f8fed484bf9d358a7d2ec038a6a990ce251c5ac1d78635f1149d3f88dbe1d458bfc8a36b26bba2fd615d4273403aa893c10d810c9e0a702c7dc +DIST thunderbird-115.4.0-sl.xpi 701666 BLAKE2B 3b459bc1a160bb8e4e10903637d5b82d98c9b8624ab496c64aca983f2ba80a0e4f9ff0d6caa191009644db54ac76cfb4d3eb6ba5af7fd8e4bcbc9bb6f19d9f99 SHA512 ab46788dff7aace8ca11be8f217fc26ff3f32d59004566a4a269bd0c398c909911e5e4a7bfb1f47c4c41cf0ee35b3feb59b331b41cf1e3895af762fafb04aee3 +DIST thunderbird-115.4.0-sq.xpi 717450 BLAKE2B 0510839dd8eec89fef727de5092a2ac0e8c747c938fd8accf9d7a1ede37f8dc6ad9227aebef9b823f2ffe58ba0c41339a73cbe8ce60a5220dc1e34de1eefda96 SHA512 eb6108974e0986bb21a55e8d12b3c0a3c2840ca7a13c5f776032ba44e4c663307952558cbdef90d1acb454995c75893bd1b50f5a226af396d44e9d50b37eb067 +DIST thunderbird-115.4.0-sr.xpi 740172 BLAKE2B c38ff4941eb656318a1839034d3b92bcb27d7e276536c71276d4f7b5158bd2eccc399f5e77f131f0d009aaeb072d8cc2c691cd192ffd375f3d65f613af2110e6 SHA512 2e8e79debf2a512eb722bc46da7aa728d23ecaf358600d38cb6ddeca7071fccbd7a00b2af278e171f4f2698d9c009ad47d6fe8ba6209ccfc03ddb496aec83212 +DIST thunderbird-115.4.0-sv-SE.xpi 702284 BLAKE2B d64b2591a37269475e0f5a29a169770a3e26774a07f80824318da69c3f4a6f7bfee8f87020bed7505a9ea43e2e730353a84c26a212bddc51b18a8bb606abe7ac SHA512 5d2cfd9ee5396f577acab14f45db88c769126f388f4f25951a35834f4a8b293bfae56072b6f5c71818b10cf422a1f6865fb1bd6c3ec95e6aee70f34734506c60 +DIST thunderbird-115.4.0-th.xpi 761857 BLAKE2B 58dc2c41c69563694820a8fa15f06d9c39846c535ae3030d74327e81cb1e9f348e18b3ddba2181da501a4353fc23ca20fe010c2a101f0f246e3d4737c84aa524 SHA512 fa2443f29a3d816048df83d972ded3b1f08c16993bc1eb44bb38076d20b7e6d45e7e12e2618b8debcf103a85e2cf255afea96e8947d7ef4295984d53c5ee14df +DIST thunderbird-115.4.0-tr.xpi 714657 BLAKE2B f5d70a30b214a8b68904148fa098c3a02c2b47b806344cd62d88020237abc19ed46ed24e9ad46d9565e4d12aa943a7dade9b85551fd39ec75ce765167cac4e28 SHA512 04f0235b8a868d3a527033055625dc44db1729b26f25b9693cf95ed5e025d53ac65c852722fd1e190392ab6dc06c68d0ccbbcfad7b4ac359012a285e68eebb54 +DIST thunderbird-115.4.0-uk.xpi 813296 BLAKE2B 287556e4826f94de232a6569073af0a9e13ec73fc1317046aa50f2c80985345f8be5356e7b795f5685fe0845a5eb8a4ac40b31c14cf03e3922519166c879ffad SHA512 80dbef08b4aee438049a006b544e9bf779f2164518dec097d9fe6672849b2f8b521132863119929645d87f17f5d93c24de36086e416e6238fd637e6f57bf2321 +DIST thunderbird-115.4.0-uz.xpi 579985 BLAKE2B 401fb2bcb3f24e989d251cac766439e22b02aa06eefa182c0a0ee7d5c128789bf10e3f45b9f766c097cc038159171965a55f403bc5d72d68958bdfa5d1cf4c63 SHA512 101dd21c59acfadf058c28db8653a9e3bb4151ccac34df9001c522ec525042e6d4db9df75773acd54cc2ad5179bb9f67fef04dd0d7d37fb2982816ae7aceffa4 +DIST thunderbird-115.4.0-vi.xpi 742628 BLAKE2B f6960d87e637f9106830cb91e2ae0cb25c7ba60828e3614dd873d739c02bc02437a08843e9daa96e6224f991d825e21e07a3b3b8c052a894ceefe15eaf862403 SHA512 807bf457437af9c6f89f686c65b4618fb6dce553f5a400e660cfb5f881fab36941434da74e50748df5e13d63b48231313bee7337712c45fb4f0313746b2eaf75 +DIST thunderbird-115.4.0-zh-CN.xpi 740608 BLAKE2B a03975cd8b2c2965871c45d83eccf3cce64bc260fd130e264da482829ad80ed00f221e531ce70e4ac95bd5c5cfbf238012b71ba38ed4040c7813cb3284bac9ae SHA512 347a2b689a13c24dbb82957bfcb49f4a9dfde0ee0ab6eed30de4c010c2b0a887f736b4b66feefba7794659ff026466222ba74c00b8e4d39b97b03a32e5849c05 +DIST thunderbird-115.4.0-zh-TW.xpi 743524 BLAKE2B b8d3ae08c618426ecd5cefe82e60469449ee0adb3f58279bdde98ecb90a9d6440000e9762dc20bd10ba1c6d13762aae8c16b41195641a19162e5696bdabece98 SHA512 653692eb97cc91c4b5e2f6f875b41046e44dc4b14fa51c97563a3e6d820b037d08ed2843050adc5753e51aca3fecc640bf29aba9bde0cdb2ea8447e38785521e +DIST thunderbird-115.4.0.source.tar.xz 531269876 BLAKE2B c4a033cd04434907479e25f849ae586a2e7de71094b51d3347859fa9734d3eeeb209d8c9e8411fc28d7149f19513357bd9db7faf0398906bd42c9b658bfa2846 SHA512 d4ee356943fd580b3c3f70e6977b4418a93f41abcea65b9255cbfb6689eb2b4dd71f7723b6873c03f43a857925218ebf32ef1ff54437964c4f4e4d0db911663f EBUILD thunderbird-115.3.1.ebuild 38443 BLAKE2B f6450b28ee1a84a7158d07da095309d032685c22dfa004887999c757f9039a385ddf131a23cbbd12ce3bad7ea3cf1e4907c0a6a950c4629e9a30fc0add4b6fae SHA512 4d27d14771deb4b4aa7f8d3bf11d9d5642b95b628ac889ae92b3f4e9089fbf1ecf6bfab5e92dc43f267ed274756d0c2c0df9b420aecc55157c6607c86afbbb58 EBUILD thunderbird-115.3.2.ebuild 38620 BLAKE2B e825056d1ebb1c92b053f778cfb21c3cc86fcf0d3e52577c817dd27f6aeeb2f685bdae2d3185afcb5e62a203d2ad8a6e03db77b0a782a32075a37076352b7687 SHA512 7b32167bfb6bee829c77bed84b865fd4babf3188d9cd8565d2ebf7737644dc05df45088572eb63d543e9e7aa9ad869979d56150a7744509fd088fe8afa808577 EBUILD thunderbird-115.3.3.ebuild 38620 BLAKE2B e825056d1ebb1c92b053f778cfb21c3cc86fcf0d3e52577c817dd27f6aeeb2f685bdae2d3185afcb5e62a203d2ad8a6e03db77b0a782a32075a37076352b7687 SHA512 7b32167bfb6bee829c77bed84b865fd4babf3188d9cd8565d2ebf7737644dc05df45088572eb63d543e9e7aa9ad869979d56150a7744509fd088fe8afa808577 +EBUILD thunderbird-115.4.0.ebuild 38555 BLAKE2B 034d2a1cf1c4ec671d3742a0f21576686da4a73882f4d27939f9873951ad1dd6d4f8955a06457f666d0eb5f2ad47fcbb8566bd2582d5a9d438fd200163deb5db SHA512 dd9cb97fa6b7036e5c8ea1ecfac18cdae1484987e3b5921a6d2aa1b31aad5f8ef4178e894629c58e839c3b350fcf87986826d6a8a69ae8f5b92ee45799fa564d MISC metadata.xml 2448 BLAKE2B 3685d528d3211fb49b23b0fb05c67269f1b4466bef7dd6f2d890803961ddc1b1c0d8bc06b2d421c17384b8a3769bac35236f6af07059c0cbf9e694edec8b1dbe SHA512 d9a8983f34c9691ed1d0174cac3c7300995b9f7b877c09271210cc3f2a27dd20d9fbee0c99c1f6c987ab9566eee71a0624d2d68f97c84665c1c500ac8f3ecfb6 diff --git a/mail-client/thunderbird/thunderbird-115.4.0.ebuild b/mail-client/thunderbird/thunderbird-115.4.0.ebuild new file mode 100644 index 000000000000..e4f3e9cdd119 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-115.4.0.ebuild @@ -0,0 +1,1321 @@ +# 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="!&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 + + # 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 +} -- cgit v1.2.3