diff options
author | Joonas Niilola <juippis@gentoo.org> | 2024-03-07 10:03:54 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-03-07 10:03:54 +0200 |
commit | 980545bd9390f69804a18ea80c97791d322742f3 (patch) | |
tree | d78c097e843618e774952e4837b71de4717d1b23 /mail-client | |
parent | mail-client/thunderbird-bin: drop 115.7.0, 115.8.0 (diff) | |
download | gentoo-980545bd9390f69804a18ea80c97791d322742f3.tar.gz gentoo-980545bd9390f69804a18ea80c97791d322742f3.tar.bz2 gentoo-980545bd9390f69804a18ea80c97791d322742f3.zip |
mail-client/thunderbird: add 115.8.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-115.8.1.ebuild | 1353 |
2 files changed, 1418 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 0cc87b43657b..e87cf32871b6 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -130,3 +130,68 @@ DIST thunderbird-115.8.0-vi.xpi 764702 BLAKE2B fa24b9009a2fcb2a8da2dbccad74a5416 DIST thunderbird-115.8.0-zh-CN.xpi 761851 BLAKE2B 00ccc2d1626f90c873e4297fb9e61e6883ebaa3b43bc9f7a7473da64e8552b5475cdc9660fae5851f8d72ef16bb53b78f8ddd22dd5155b65ab0837b7e501113d SHA512 bf6c7d9f917edffbed95d1087f97b5d65f6fd108b56ab9c0343c8fe97d10bfcd0fa8d783cffaab2be695714bc62a4417451857aa732c80d6549e6df917e9204f DIST thunderbird-115.8.0-zh-TW.xpi 766758 BLAKE2B 074db005f906118ba0bf6d69768c554c6da0f2e07d502738093aec58ccd4da58769100b401fa429ab51049552432c860a04c850f34510724171512a54eae69d3 SHA512 150ce952c2330d18f9c3e596432d11e1ed792f82700aef3ef299fe9dc9479c6b458ea74ff4aa74f0a5117facfde113c958712cb8afa77e52082cf06398796d7e DIST thunderbird-115.8.0.source.tar.xz 540914844 BLAKE2B 21dcb4772466e6496aa1deb6e2aadbb1917f69846d50e60b9ab884c982241e75da4b26c5ea512dc32228d6c8858bd6e91064e0ce3ee5df1cd434234c2b7ff5d9 SHA512 a0bdd34bebda4973f714422293f10a5a96c2b12f097c68d76fa37c48943fdbfb32dd2e504faa0b88fd699118b1903e18c3bb54cb32cd5e2ff60c09966b23e79c +DIST thunderbird-115.8.1-af.xpi 549702 BLAKE2B 375ada8965158f1647ee3ad8d5475533a006bc74e199deaf13544b68f1dcb2b03c1ac033b737ed2b42db7ab9bbb406f9b48e9760575f50b0f0f959bf4f735309 SHA512 7d191c7bf2db6ac4b046745fa8c7025cea5a80f55d6b95a0af5acf41ec411119419c1b324ec20c103b2259b90c9f12deb179fba596fe7fc788d9fd72e19e058d +DIST thunderbird-115.8.1-ar.xpi 666363 BLAKE2B 83e9dcb71e228ee00998cf6fbb9e47ee28f2d5440bf62bb0f1796ab1b593f7100dce063e3364de511835d354571d33d25e955de6333cc6e547115dfefd541b1a SHA512 030beb03da8f444179af9fa47c267719e6a47b8b62ab3461ce3ae7df644a520f634ad7b7669e59bdcf8762112609d3b1915bb65dbd58f703050909f18dbc8c90 +DIST thunderbird-115.8.1-ast.xpi 568312 BLAKE2B 8fb59efda2f774e7611c2827438c665e3d34cc9f408503c86fcbc88b476fa30c5c222d34f0dc35725a6c4b18078e2f214b0e624c61d577fd8a293b88dff22821 SHA512 6788009d0c9ad5be834811996d13c4dff8f1ffe22d750cd5839bb1745ff5db39f71caf017f3ecb6a1bd33199617572acbbb91cd4f4f07e99db524acd01c1de19 +DIST thunderbird-115.8.1-be.xpi 717162 BLAKE2B 9c56e4fc3b3cd6ade13309d73ab829eeb758eaaee323dce2c8af81b2d27f362d392200b599bea2c241ddaffb3c0b4c50fd45561b9f0503282a49d6c3b0337adb SHA512 86e4f6808699d27328e6fdecfc995ef5ee5dbd31fc57342e2591c37705eee3d67aec006b0007eea6a7333b50270d5681d4f492406e731b8a75bcbc79a3e6fc91 +DIST thunderbird-115.8.1-bg.xpi 778866 BLAKE2B 0e7a9b609cca0ec279c68a934c76a182dd652dbd4dfe3ae80d6792a0b64c321948ff93ed15f8366018f158dcc080fff204e38998da8bbfc78836cdc5fc425457 SHA512 d115947679129e211d734782c4beaec6e7468acd3f5faeb07b8fca85220f7dfedb3273addd64befa0059fc47abd43a4185547af1e59892df3fb8d129fa21e129 +DIST thunderbird-115.8.1-br.xpi 642273 BLAKE2B ce31dcc6acd015310d3f6d01a64cfb93a40b17af247b554f2922a2d7aa33921116fc1f85180bf585b0afa3abb457a61ec07bdaf42842ff7a0653d72aa74ab39e SHA512 fda914b7506a8a68f508a937699cafa71dae3e70f3e13ad5c7a3dfec68716f07416547c7da96638d04efdc9cdcd59c950427f0a8bce25ceb5254c72bd232303b +DIST thunderbird-115.8.1-ca.xpi 685488 BLAKE2B 26e70a3bedb1b4faf777b526d44b91f843d47d8996ac94fa9a5d43c2b0ed524cd0a736312f259339064de343ac1175d0331aacee724c2966609764b15669a902 SHA512 5b0da2baaedf0492b33735482e1c3a2ea7801d82d05390939f3ade63953390d970647ffbf4e19b7deb0afca820b07422acf0183f41b773680d6529f3a7415fdc +DIST thunderbird-115.8.1-cak.xpi 667769 BLAKE2B 21e32526052bcc8262094a5cb8c8b60a14696be2cd78c65022b1328bc6faf88d460616fbd6dcf39a42ed1bba299d6b7f2d5870edd85928b62430b6ff543a71bc SHA512 9e641a93c525de4193f2ed583517877132308e0ebaf2dcb8a4c31dd0bf0508f08b69aec351160edffbca19d3ccefd04b3cbd338cafb3ac50a1e9d58db7dc7e81 +DIST thunderbird-115.8.1-cs.xpi 759534 BLAKE2B 9bb58cf1cb555f493271d8492eb672760fa6d34d046439ec2e849682097bea209d29b43e54db75b501e55e10e6487adbfd2e8bf70b546095c898f70e61f8a543 SHA512 19580187ccd622fdb457f23d9987abbe1bcb86993db3bcebb6f8214c5f344f81969f46974d260faf7e47fcfbdcf28b8e43e0d291a3e8bd6425471fe78ccf1b33 +DIST thunderbird-115.8.1-cy.xpi 725349 BLAKE2B 1a6c33b0404e43974ae4dfb5868462ff2ea30a0b1065fc3ae3de50cc902c5e9c060bd7ce879ea1334ddbf03dacb9ade20382e55c8333e387f47cb857af893f90 SHA512 3b86d434a996a3b2ebfc5b9161a8b96ad249fc55b2e8a30f11e663f356ebef9eab5a7e1b0c1a93707134e82a96e8ca3f6c9db639cd7b1b18e23e4c6bc1f74de8 +DIST thunderbird-115.8.1-da.xpi 710495 BLAKE2B acc174460cc0072cde9675ef106e052cf0e402219f338c06db9cdd233f1969fd4ab2280b467ca1aedd0dd88fd43abda697f24150ad7c5af066a0bbefbff2c839 SHA512 94c3d8a035094d210e68a333e2590ff3ca393b0d9b45994bcb55337e4293a81382482f3b3d54f4e90d66a2de9aa93428ece14930b0122658ee05aa5d9dc75cce +DIST thunderbird-115.8.1-de.xpi 741447 BLAKE2B 7587ab2ba2bd81828099e753065d5dc57fabc3a0dd289c6674b6d7f94fdb42dd4a155ba70f628a095fb428454e6880718f0d3f5401004d5ab52c1748a9e7189f SHA512 c733818a1406bb64d57ebdebeaae1a6d3e558d387eab760e971405bf06be2811cb9b8d22d977e7c97130c53f43cffb939c463f969c61100eaac461fde68219f9 +DIST thunderbird-115.8.1-dsb.xpi 759681 BLAKE2B 2bcaaeacf5f684fdd4fd818b253c2f1d9759ee95b3c4b4f36acf9251b8e8afbc58bcd574dac6d20c0c1f1e890976111ffdffbd140e5d8183a48da56e0a2339ec SHA512 c6043708770e16910f2b6b6a61c0cafc421150a0ee6e83dea83d8f598dd544e2759d41fe3b6281d6e5c84a0509d608a0a1604d48dcdebc86b094f249066ba380 +DIST thunderbird-115.8.1-el.xpi 862803 BLAKE2B 2cc0adef710a9781290f5f8c43bb2eebb7990111e5f5e25d61f417636dd07e10a423c3d1daadf3113b01f4537de3a425ec029859034726edbeb0b9e1354142ec SHA512 940c64a967349c40817becacf57e75cf59c673ee060cac588bc774564b1dac0283a116587ed1cc1099fc4d44c2d36105ba6fdf8219dc23c1671712b6b738e7a4 +DIST thunderbird-115.8.1-en-CA.xpi 671009 BLAKE2B d400d992645791ac3d3751a8f3b99f3a03493122e6377ae0f1d8ee72fec39b4572090bcbf4b4793fda59766a84cf7caa228e666bbe6aca9b26e377f8fc3b15ce SHA512 74ec1b8be87ad2a033cd63615434688e2622a5bbf80fcafea1bb1156e8b1610eedf3b81ee54d528dc179d92acd5b48c70ec0872cc3624e99b5dca4c9b38eded4 +DIST thunderbird-115.8.1-en-GB.xpi 681892 BLAKE2B 818754f8b9037a6f37d0d4c60c09b14098aedd3007a14908747d1e6f428aeee4d9d4313a2dccd0543f7897ad02457dcb372b9275dc4614983bf8f6a8eef983bd SHA512 f15db6ae760f63c62ed59774b5fb298d121d5713b148e010df160689e9fa450fecef10877409d06a3174d7cc8a315ae47bfb62c2db3939bde4071373de1d93b6 +DIST thunderbird-115.8.1-es-AR.xpi 735671 BLAKE2B 013d55d83336deca37f0f9fad5d139e419b0c0e346e91e4c5d30f3c98d8d71312cddb16302b7204420e937557dbf8e7a98536ad0af2de762bfadbf626522c6f9 SHA512 144d4dd89595e4479791ac219948f425e2e0558b9351b6088b8432b9da2c0159f5aa2d17741431e1f3a09d744b4d2dbe56076e600da1433ab9c8c8973a632dd5 +DIST thunderbird-115.8.1-es-ES.xpi 697505 BLAKE2B 06b813bafa07d7922082b24190219261e7ae3930d3f64e1d026c5aee6da5a43f9da9e85db6da69b6885843469e7c66070d98d6ace3dfb817711805ad36d4c61e SHA512 ed043d2618127e58569ce992b9f6343e8b1a27a3fd2ab11eaa1db84c787526032c6187cdcc07f560baa5e17fce7e0347198e3b2a732a95842d87051052697fe3 +DIST thunderbird-115.8.1-es-MX.xpi 719673 BLAKE2B 324dc8cda9b8043dbc4a79f8d210f91d43c2c4d0d6b976824287b01f89a4b38b4a830edcebe1ce4a34cd224a903e5d834f216c0fe7cfd05dde4198da0c23a70a SHA512 dbb2a460acbd2ed037c44e53f5afc2ff4a268de0f54bde31b4ad6498ec0e754d1ca72f11d7904fc8af07b933683e67b9b53da7461b6d61d4a2a34e37094be339 +DIST thunderbird-115.8.1-et.xpi 679915 BLAKE2B 10b7f83a27b04bbe9f58dff6e745f59c5691e52ab96983d429c9f24f80afa19cb7932eae0c5895ace58406877321dbff599c9e013d7d22b1f1a58d7a9ce5fd5a SHA512 02d2b8a589f1bc006640f973b8b1fd0fdb7a87879a08dd66ba22010536083c0bf18ea258fc32acefb6090b211fb90078de9962cdd07661154c4a0afb586ba1dc +DIST thunderbird-115.8.1-eu.xpi 708427 BLAKE2B c8bdcb41cd9a8e88e40255e21ed2d9ffec1335581c3a97c5c16e1dca4a90e9ac2f26c8b8378886968122ea44fa75ec97dba7e9043da1884ade772b134e37e631 SHA512 8d110ad5d9abb7123595d4c1fed8ed3f92e628659e78628e6ee27dde967dfde28c889609d24f581820f98b8ae7cf752272ceb4676966053a3e9b294268329ae0 +DIST thunderbird-115.8.1-fi.xpi 713343 BLAKE2B b18ce7ce8489bee6345d24f6b7439b812f4eac6090a0d6fb2126d8e252ead10899b205c85a09863de85cdcb09f897ce56f14d8a8954d2d4597c8dedfd96df70b SHA512 945c4e5b5061f0d7c8bf6c1df3c455e497dfdeae26631487c4d39ff5ce1c9f7f00cfc57587c2400dc30626e54b09a1b18f520a8e5d39a306f6cd9b70f68077f8 +DIST thunderbird-115.8.1-fr.xpi 746569 BLAKE2B 59da3681b46230554cd1c43ddce2df2faa8fe54ee3336969825ae17c2870e3f18b0719c9a9d9fa657be315db03be12bf81a158f291a33db06a0dd1103a4a7f3e SHA512 15b6adecf2a6acd5d4d756b4a188da1478e0ca2559a697a2bfb583d7ae82d431f3efde9ed9679903157203182a45d5a8f9e7b4dca8ed1ef953786f31d7db8d08 +DIST thunderbird-115.8.1-fy-NL.xpi 729277 BLAKE2B 086ffbad93c7b00dc8bc6b97010a8b09698b0c220ac0456834679cea4993278b9c7e1bda1be6fb46a791cf13b6782bb6fd42ee5683b07dfee6199408d7cbc38f SHA512 30a6cebfa939b4a584b484b4a8e1e35fe4acf3edf7dbd8f4a2e2814b9f34b2d1e672da08ee58eae8669a88be726070eb64bfe115d7da14a3c34c43136269474c +DIST thunderbird-115.8.1-ga-IE.xpi 609799 BLAKE2B 0ec66fa32cdd51e7467acd13d15984f9d621a7ee43c2f3e55db34b5b92d8a5b9e61d660d87e7d0343a91fc7634b86bfb9641e228c4f9540b074001c4e1a6da6e SHA512 d3bcbc08c893aafba9d898246b475c30a552329601e5941df677a0238df612ce11a863308d9573cfcc6cd55c2e4f2024906086066565bc43f6e3637e07b10c45 +DIST thunderbird-115.8.1-gd.xpi 712353 BLAKE2B 8d5fa9818b5cbd9f9d9167317381471e01d9001ab3425badf4c51b338adb4e1ecc30d5448c56ff2b8a913d9122a7a6cb0420622cdc7b22ede6a9a08f5eea6767 SHA512 3bcd5e4716baf6c5ab1b649c7e1cd65007fd8c8370f50b9b6eafa14517804da81db031f1fcc15ba86314554f0327ec6f5bcb62919a4e404332aeed977b4c7071 +DIST thunderbird-115.8.1-gl.xpi 719544 BLAKE2B 5e932bfd27f64c04f60be21121f4ca26ce5697061594e6129e45c3b3a4b01668d7621c62e3667249a23f026d3eb60f195e6fe626a1ff4557de2bbad69f94514b SHA512 b8cca480bb236ad7d946a5f84ec77cf62781936871c84413e001a0796b88214df87e261aa5bd6de860948e9c81f94b0b8581d018bffe5c7ced8a2f158c96587a +DIST thunderbird-115.8.1-he.xpi 686344 BLAKE2B ddd340873c814b8dea00c17bca1ed1b78d68da6df6fec114bb2155b3b300456f5d995653c8bfa973aed6a927b683592e57ab8b5281b7bacb6b4ef49e8704a635 SHA512 c4687eb382c5085614a7df11e2aa15d486ede5867a6939d1646120bf80c9c7761be0766b79667d8f3b25cb79faf86818d9fb4a4d7eb1d06d20b79f90c4a4a568 +DIST thunderbird-115.8.1-hr.xpi 687076 BLAKE2B 0f3f6fbbd0c2849268e3a6f56410e016ac1eb5e2748eccf993293efb511020598b1816549927f50b9af94adf090705aed9d1ad9067a0ff58fff41b0f46d0a766 SHA512 5c5d98a77c2ba98b60835faca7f4bf2096cc9ee0edf9e65539b49bec82f44b3401bd200e340c8bc5b7c670f1b5a064993f3de97d612acd7e4011150cfbcb5975 +DIST thunderbird-115.8.1-hsb.xpi 756722 BLAKE2B f3f424b914774af25feb840c42dc6dd1dc50d09e9b1fbb1fe13527ce8df1a445737330f9b51ec6be0c36361d9a6783c8710d8454a6963fdce5a927215cb7466f SHA512 360a809a18d9b11297267bff0ce0f5a46feebfe5481fad6b05c75bfefc2d4b183c8c4750aa1ecda0fa6967d3eb98a9dad52ccb05a688310cc3453971ef0a2fde +DIST thunderbird-115.8.1-hu.xpi 758282 BLAKE2B bb57c0dc46bb678b16a527f40487b3bbcf7e714b9c728601b96ba3b5fbcb2a6bc1accafb2f03dac6fa3cc0f5f3673115aa8dbb5c0709ad884a06d78b150df943 SHA512 0fee60ec1b7f3dd26ff7736569c9a62d5319b4decacf131c49280d9dbdd0f58bed0643b5debab24e5c43a14514967f31aaf4466d873e787057c5e3620d876790 +DIST thunderbird-115.8.1-id.xpi 651341 BLAKE2B 7be4bfe8b33707107078fcd703f244fa6c5f081288d21636df9eb8d8ffb66ad3b87cc958ff3be97ca476c7be2318d2552df5f6837b1d1acba9ff453774c54ff4 SHA512 f91e23e7c174d85a9d900aa850e152ea23264d52249f4d942268ba7d2aec634848e3cd57d22fc1fb17fa35607fad9d6ca2376d478c2867712cc69631bb02e0e2 +DIST thunderbird-115.8.1-is.xpi 719341 BLAKE2B 824f0cc22b7d3a8ad1b8a098cfa5b50c5422a59a07c161cfa225ab69df576d041c7d8396b4564171f5494742cbd4a0e1f5a05de12d93efb56033486bf44da950 SHA512 1ec47fba24e13053409042cd8ab936fdda3ab4332ab056a7469c8d12ce1dac98706e41e6b164db4c431e3e80657a28bd6afbb04f2a89c6b32e37528909a3c9e3 +DIST thunderbird-115.8.1-it.xpi 668018 BLAKE2B aacfb392740470f3b617c971e69aa51aac400f087b14a031c035145b76102e881d3d3092779e5e12f45649d97a8651929dc00bf1fa54f9a305c22a8379f7f9ee SHA512 d1a01bc32a2770bc310d31bb46448ad00bbd66b4ca26819b6fe75060bed34ce5e6edbcbca4f1ec4930c4c24f20cd5bc4484bd85a7e32370f9c40d74718319cd2 +DIST thunderbird-115.8.1-ja.xpi 795400 BLAKE2B ab643d012ad1525979cb02dbf3465dc34c812974b6aa87d9ecf3d811ec6594529ff4c609ed1b24686fa62c21963d43c40c8c93e1a89d6bb20cddcffc8619d864 SHA512 39e2c526eef8a4a95532cb9227b8ac5b91dc5684595ae4bd4495e9c4b4bf93a59819a5ec4843e2788b27513ed75f175e8bc50e03a2682c52786c94cc2ba60428 +DIST thunderbird-115.8.1-ka.xpi 783168 BLAKE2B 4b76d37c334b36709c325df61c3d50d9b772bfc7a67c0485486d9deb81d56d67e250dd8b26800b45ee659e089387ae1f79e98d1fc8f69cc6452eb1ff075b455f SHA512 9b7a94259972aab5842f2e79f7d99d1bc5045ee7d84e970e2bf96331e020685f3fc8aa52af02421026b7c277379b592fe73e77d1138522816bfd4c1eb6001043 +DIST thunderbird-115.8.1-kab.xpi 711122 BLAKE2B 439c81e9756aa2b3480b8579c3a83e42d7f5893bfaa36ebd24d34cb7e9307a3dcb1e50a617a8e75e277bfb9ce20115a8a09a1f0c151433c8ada685a05a45647b SHA512 39ca026e13fab9155ca3362f98cb6e7035bc6e404a22fab770adf233cfdcf4254eb1f4a7461c83ee26b17ba02c686801c4650b532823c833800742fddaec01e7 +DIST thunderbird-115.8.1-kk.xpi 832554 BLAKE2B 34e502cded2baa0c53190304ac80cbfc11aa53f27f353080667413e954690e7ae7add271411b89911fab217c12928a491decf5ec0a1ddd04f001eddb66600ca6 SHA512 d0d43d80521493d84fe835199fdbc8b97a85130ce87b37185fd70e13342f5282a7d53d9e80745061f973dcc53c120d1f6b23691fc964537a6707a6184cc5efbf +DIST thunderbird-115.8.1-ko.xpi 737247 BLAKE2B 554702b2a2a55c4f4058b0238dac6cb006c972aac70a2f1b1723fae19ae79a86254b9697bf862de796de03ff733b4248adcb98a0bf35d1dcf66c1304889171d6 SHA512 7e0087047337a09b6112a01c057685b48f5d82e827bfd5dffd001f4b367da16eda4181327e9571fb196de2c8a36827451a4b0a528f3e96ccd0ff51319425da91 +DIST thunderbird-115.8.1-lt.xpi 688629 BLAKE2B 3ced5453d1a6b6aa24789cb3c1903c48859fe647f3e1806287821f9255d56c418443c56e8a19f9e14a9046c26ac5d19e5a1f31677b257714216ab3572691a58a SHA512 3faef9f455306768e6c08426df9b0cd57710b99af92a50a09d761268b5666f73838fc25bbe141a2e125adceaa7d73efcc972e1afb28286ae57cc8b2b8e098e9e +DIST thunderbird-115.8.1-lv.xpi 613042 BLAKE2B a4c89f3d97407b175c3767badd5a7845d088faabb55368396b9d88dbc9393b121e5a6dc5c97e6be2e5df7bca01ead50558b0aef169298e6f2364ce8c955ead14 SHA512 db192341c0bb3b64a3020726541982b7427d25f5b2aa2194915455bda6f795abbd19c60312228669014140bc910a1eef36f88d4a8cf0e457621b59ccec39f248 +DIST thunderbird-115.8.1-ms.xpi 573632 BLAKE2B 54c6a1b2a80c423fa298931dcd093445aa204e861bfe5260cb7099309943fe1a454383f58b7caccd9b598be1fac6be282a810aea362c4cefafcbec939259a756 SHA512 7225f98244b5fb8133322e108b1a9581abe62bc42ae9f2f819c46c156d5fbf88b6a1942410c7239752ca7be25f042410ef5762d095fa120331ffa4eee7b1000b +DIST thunderbird-115.8.1-nb-NO.xpi 674708 BLAKE2B 4e63395edc63c2aacbb3e0d90f0c283c3381501df6d64ebfa4018439f29412184e292fe4696e0c458b4be89c3be2c198d6c16dfa3a7e8cccd09c14a2a2c106c7 SHA512 da544958bbabb90881007e09fd649798be8d3b802fa490e321dd7ecbac0f1a3153b10b3501bf8ad8b391b7b493a61a84144fb9987449b0f3ff5a2faf856d6418 +DIST thunderbird-115.8.1-nl.xpi 720591 BLAKE2B 174c3ecc80a45af3f5160952462debde383640531f8e8062565b6417dad24a303d34a62ad2ea526822e80446617d43ce1b4c16cdea6d5abcb78219212a2e0fbb SHA512 55d0a20dbb850fda2adcb441bf14db6c6fbf538f7f34bc32fe5a9ea2cc4694fa6eb57aac60daabe71680ac3035e330e6415936696a6ae88cf35d157565bfa66e +DIST thunderbird-115.8.1-nn-NO.xpi 690675 BLAKE2B 37b52bfddf78dbd22824342b954d00a035db83763c318b9b7c16ae16f2f5875868cd1b250f391e94381197f3dd1b27fc42d9e02bbcd6fe4472a71319cc39f080 SHA512 85595cd52e7e92a9c25b8874d96cd0e083031cbe8756369240196e8c77fc8b6884c4e8dba2c6d592849b0fc2121810ca6726109beacdfb5ad6a13a6c0e4cd760 +DIST thunderbird-115.8.1-pa-IN.xpi 678306 BLAKE2B e7ea27fa61faec2acd4efd191ae6f313f362428deb2b4ba90be0335c412c20d63f858e256b9a40ebf54d0800f2bb4b13b56b7b87d951312cd6b526fde09903b6 SHA512 fea045be695547307be989e79e7af26b5b52912cd738c7967aed7e230069fa4e87d4176c671a1b91ad695f8668a65693e7be1f4f5b895efdc29f3821a00c7801 +DIST thunderbird-115.8.1-pl.xpi 739287 BLAKE2B c6dcb3d264f02f65e7982fcba3485c76b17cbc2bc0b25a935242b1d6b5b84dfa38b0279651dc4c3b398699240dceed46aefbbb640bd6c08dc386d60523bb5798 SHA512 781470b3eeac8fda791a53cf25819802af33f4901a6ec7a26cf0a9049eef17804dbbf319f3df25fdf16439f86600cc4ac155efa6934af79162b40500f5372e98 +DIST thunderbird-115.8.1-pt-BR.xpi 728571 BLAKE2B b8f489db689f373289de7136b334417080a2ff98e374bcfb9a7f3a0cf6a208b87d1f0c7655144703b83dc7074b0fba2d1d48de9dea2d8b586317db1dc05fb468 SHA512 4946e108ff597973c01719dc5e3785cf447c003ea17f580638eb9ded71c8704466255c5f37262373b8ff8bd21b843f35ad58de9f298ab69976dba613e084a05f +DIST thunderbird-115.8.1-pt-PT.xpi 704335 BLAKE2B db50ce8a3cc6856d49bf6aff3cf14f026a7436992e7cf1e2aa6eee2cb92924a3a64335ef3d246f64665ccac69a92ae9099d4fed211565e22f8a1eda42a66d0ae SHA512 bc8497dd92c67efb876c250d141fab97911c3d3bc1a97530b9384a5ae2a24c8571e5e5a76b26b4a7f30df46b1b7043d46fb3b07ee9c38a2d05df3a263ac0a304 +DIST thunderbird-115.8.1-rm.xpi 724360 BLAKE2B 451bc6a37c96287d04bc872a3a9d6fade25d0953e619f67a347ac74fb37d19748b67468067d97df65cee7bfda2367a55ce7aad45b41e6b5db2a9277e54f2d739 SHA512 95e92911dc519df8f736456c07ddb990e92abde414609141fbb9fe1d08c137f418d606c721ad24c71d27638eb1592f455664faf3b48dbad3b055306c907b1661 +DIST thunderbird-115.8.1-ro.xpi 659829 BLAKE2B 4d57adbbf5779d12fd2e45a3635f5c5be9e7bf34101c3384570d92b1a8fb5a51ab4dc241bda0f3ee5e4ac469b0c4b954b7bf9e4ba1d01aed912e7ba2a82db843 SHA512 abff088aadebb87b8e95ed2c9b48d4b9ad1d556bfbfe0ab97f66bfa1e0d7a847b2cb0eb60d37327d8749143cf4932a6e80b0699710f5b23becd2e10d320f6a3b +DIST thunderbird-115.8.1-ru.xpi 846508 BLAKE2B 099ccf3772dfced3f6a1e9cd71b3d36d8561844ae5f6f7eb7e61e754a7ff27fb1e2307442f1f69ba58fd575a63cdca62c50a6bcd806b999aee73c3e0da934d13 SHA512 0575cf0603d6c7de77f03f056d6af33aa14be8f4e010841e0a5440185b65b835959a24e1e7988cce0620a2b8642b35ddc583c32723b834ecd90f016068e69c55 +DIST thunderbird-115.8.1-sk.xpi 758459 BLAKE2B ae8f98220ecd1ffc8e4b28d1463832bb4db8a65a7b54e33ee941a4c829d08e621c7fc74d0d12a7f7322476064bc4c2e6cc357f41d25d508279bc4d3a412b5665 SHA512 f8705b6ba4992c8bb1d4b0744954ca8bfb77c8308f4c66164517b081e9737d8f499cf841fcbd0b144ef875ec1d976c6b9a0429db6efa5d0c17102f8fe0a1dd0e +DIST thunderbird-115.8.1-sl.xpi 721616 BLAKE2B d58b5081212116e21ffc8c2313083c00a900b11c89faa9b8942f39209538cbd3125879478dab552fc20deed96db20a327a592c6dd988c1861c1662e86141469f SHA512 5e924144b157e11b18a04b1b2dd5d53f3dcb0dd95d66234d1fa62addaa8124c2baa2e49f9fd94c96a72d56046953feabe6e1f0432a5ed1fb93e98f8c9c1b3b71 +DIST thunderbird-115.8.1-sq.xpi 742870 BLAKE2B f20fcb64ffa98d2855970ea4fff8b7589b828efcbfa3ec94d95fad9138c7631c737284c45bc45e669cc43b27ca823be62b48c4135008517ed2f743a3c3e859a9 SHA512 e32c636c4945e8425cf7d016343e64cf344de571abbf3fc8457c3a187e5018cfee8604cb9eeec623076df15d3bb655bc1d91b51a123fb1abfe3167d85ae06eb9 +DIST thunderbird-115.8.1-sr.xpi 755183 BLAKE2B ea93c3d2a8ae7331161dc292f96d207871c3ca2c0357d8ba91ef81084b1351f7c5f8e739c4a1ce553e604b63ed5fc0e958863c78a4ddf7b11424b6085233b40a SHA512 a61f7be3e9264534533c002f4220db9d4bb2031aa56b0ac06c25e1270d7d5076403e9a934aa9a5c9ff6ee3050fd4bfc53a766e3137f04f165d1934bf3fc22535 +DIST thunderbird-115.8.1-sv-SE.xpi 724750 BLAKE2B 9756ed812d9f8cb10de034bb323c69b415f87f5e1504964594c725bedf1fdc8935c0fdab8ebf74336c4f1b21f4c6e87553be85b986fb4a7069171c7e999d9bb7 SHA512 e0c1f1820e569d35dcb2c55829fe1d0cfb010f12703263deacea160820c0f53b5996f988a1d16f0413c22bd5b2aebd608f65a2ca13f87c8ee0ed312449a048d6 +DIST thunderbird-115.8.1-th.xpi 788243 BLAKE2B 98423e46e88e8e3a183c113721411b5f55acb81a0e355a9c67e28bce5d38529e26f2ddb5e1ccae795ad32ed7d3c1c3544ccde1f031d3eb103f9bd25b5548dcb4 SHA512 33e4d7a550ac55f3b25ea2ccc56d89d413c1305ae6a55d7a44f875b3c6185a37ccaab87ab23cc514a660c3fdf08d0392359524520514e9d638262132e481e24c +DIST thunderbird-115.8.1-tr.xpi 736598 BLAKE2B dd020b1b1e2b72521b7cd1b4d90b4e978b2087bb93e1fca5d6aaf1f019b8b49e695686af72bb566d75b7e154d1fb528d381142c8a13afe52a3c4ca9e1032a5f5 SHA512 de3371f875601cec265d6e9cf6924ef4fd2935f9536c900469b27fab8ef1a69da52d0f43de8ed3c45ebf24b104b28d91fd4a8ec279031ae1542f805632909c6d +DIST thunderbird-115.8.1-uk.xpi 839052 BLAKE2B c2293b9a1285b97e3ef922bb1323290e2e044bc4770be96c04947c51e79f2375bb42c5a8986438e6c01bf61ef29d23d75fbf772d3d4f7892c0c0a0001069993d SHA512 c360ea01c8da9c7d49bf96af9ac6a093ebbd4686e9e0d4bb9d6b4279198a5190e805abe7dd0c8def8738696cf335c00d46d540f5e2280797878efcd44f9723fa +DIST thunderbird-115.8.1-uz.xpi 587158 BLAKE2B 4a417c927c727b2b07e54619b57dc69271a7abc3537a5f469b10ce2b95cc7489e069c0ecc91c9491aca21de31f37d8d6c10b1f52675f82f136cd3885ac7479d3 SHA512 61f3467dc2e471e595e856a86d893289edc95b851ee29d90f9d6e5df5bfa5dd8fafc9afbf9b2c920466dc489c1a6084d74665c69233cb33e69561653f0cadc42 +DIST thunderbird-115.8.1-vi.xpi 764703 BLAKE2B ff6df6c8dbc01553d20e81dcf8a11569e4edf91287fd697176b724596578468e301622be1884e1d5c93c8f49a19d3ae62d8d77e381b7d0e72168aaec42593f8b SHA512 eab5a7fdb7f1ef19d7e36b34d181631f19031e889092da965979a71ed94680105f5d01785980ea22997ab5f68fbb5db6749c6891bdb5438f1c29bd60f3b767f3 +DIST thunderbird-115.8.1-zh-CN.xpi 761850 BLAKE2B 2358dd820ff4818a71530fa54bc70696437c671882014d425915291ec028968de9842a180190887f6ad7eeea79f7afde0c33b1d339add55e818ea1b0cf0b0fae SHA512 d1bf4e8212ed5b70559554d0286d62dbf625fcd21b840f73c27bf5ea86f66bf94cd50b822517bdde9eb30a4aaac7657d9c61bece935fcbe84c1feee8e007321b +DIST thunderbird-115.8.1-zh-TW.xpi 766759 BLAKE2B fa4e3deed43b9c0a032151c4830a21e152b671b57c366b1c9fb348af7fa25decfec5ff53ec1d0233b7975058f84044bd462e6b5e02024681b187eb879033e2b8 SHA512 aa1b6aedcdede4ce8cced59f583a0327c96f7e92428412d0c40d2f8d50d843b435fe950775951c8b7109cbb39bf64c17e63b0935b0fac1f6e20380ac3b034596 +DIST thunderbird-115.8.1.source.tar.xz 541062996 BLAKE2B eb3bcadc1e35079ebc58c952c3534907d85073ee452fac4fa34c975081c1428e9a91b46ef61d1bd2cdcc776c257cc1f7b132149d6f6f9e207329721519fb9909 SHA512 4d28f865f482a0d4c91f26ef26709a00f78955699b4ca191f960bcdb8d2c0c95c2a8e8782129d5660e192c605cba021fac553b13868861086a608f0c50aa5da7 diff --git a/mail-client/thunderbird/thunderbird-115.8.1.ebuild b/mail-client/thunderbird/thunderbird-115.8.1.ebuild new file mode 100644 index 000000000000..1b865bde1892 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-115.8.1.ebuild @@ -0,0 +1,1353 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-115esr-patches-09.tar.xz" + +LLVM_MAX_SLOT=17 + +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp" +IUSE+=" wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + || ( + ( + sys-devel/clang:17 + sys-devel/llvm:17 + clang? ( + sys-devel/lld:17 + virtual/rust:0/llvm-17 + pgo? ( =sys-libs/compiler-rt-sanitizers-17*[profile] ) + ) + ) + ( + sys-devel/clang:16 + sys-devel/llvm:16 + clang? ( + sys-devel/lld:16 + virtual/rust:0/llvm-16 + pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] ) + ) + ) + ( + sys-devel/clang:15 + sys-devel/llvm:15 + clang? ( + sys-devel/lld:15 + virtual/rust:0/llvm-15 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] ) + ) + ) + ) + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.65 ) + !elibc_glibc? ( + || ( + dev-lang/rust + <dev-lang/rust-bin-1.73 + ) + ) + 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-74.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/networkmanager + sys-apps/dbus + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon[X] + x11-libs/libXrandr + x11-libs/libXtst + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily +# placed here until toolchain-funcs.eclass gets an official support for mold linker. +# Please see: +# https://github.com/gentoo/gentoo/pull/28366 || +# https://github.com/gentoo/gentoo/pull/28355 +tc-ld-is-mold() { + local out + + # Ensure ld output is in English. + local -x LC_ALL=C + + # First check the linker directly. + out=$($(tc-getLD "$@") --version 2>&1) + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # Then see if they're selecting mold via compiler flags. + # Note: We're assuming they're using LDFLAGS to hold the + # options and not CFLAGS/CXXFLAGS. + local base="${T}/test-tc-linker" + cat <<-EOF > "${base}.c" + int main() { return 0; } + EOF + out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1) + rm -f "${base}"* + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # No mold here! + return 1 +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work + addpredict /dev/dri + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto && tc-ld-is-lld ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # May need a wider addpredict when using wayland+pgo. + addpredict /dev/dri + + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + if ! use ppc64; then + rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die + fi + + if use x86 && use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.patch || die + fi + + # Workaround for bgo#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + else + die "Unknown musl chost, please post your rustc -vV along with emerge --info on Gentoo's bug #915651" + fi + fi + + # 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 +} |