diff options
author | Joonas Niilola <juippis@gentoo.org> | 2023-11-28 10:04:00 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-11-28 10:09:25 +0200 |
commit | b9e72d723a9c177943cf215c584398b6741b19bf (patch) | |
tree | a63be634f65e9bdb002e97cbd0653f5a41500a25 /mail-client/thunderbird | |
parent | dev-python/cryptography: Stabilize 41.0.7 x86, #918684 (diff) | |
download | gentoo-b9e72d723a9c177943cf215c584398b6741b19bf.tar.gz gentoo-b9e72d723a9c177943cf215c584398b6741b19bf.tar.bz2 gentoo-b9e72d723a9c177943cf215c584398b6741b19bf.zip |
mail-client/thunderbird: add 115.5.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client/thunderbird')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-115.5.1.ebuild | 1331 |
2 files changed, 1396 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index d7f44074657c..dfd82f2c4121 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -260,3 +260,68 @@ DIST thunderbird-115.5.0-vi.xpi 744206 BLAKE2B 5e749c07e6f35b99be75857d9ec330708 DIST thunderbird-115.5.0-zh-CN.xpi 742324 BLAKE2B 9cb377a87547b5d1b5afe5bf14c6dcdc0d933037963f15a552ec72fa9fbff3474f7997b571fddba8b190ca5b1116f027e8ef282f1490435b4010d64a8d99a089 SHA512 4db470ae4acfb00d03606b4cd2074fe57bacb5f7e19e4f6d752d6c89f740e6610b9eddfbe231255263445f8ff5bd8bb52b6307a5326a54860c84b011183b5d49 DIST thunderbird-115.5.0-zh-TW.xpi 745169 BLAKE2B a037d7a002ae891179b84efb26d1be1ff45b7f9ee64df6b5a278ff1b1af0b477dc8b9c33e1114bb0ec2f1c0ac41e69fd724c13398cb1955958a43fcbc26253b9 SHA512 cf3945f4819b8a277eaab68b0206b93940fcdd7ae7763f01672a70c08c2ca8dcb92184c24ca78e2f5524bcbe3adfc2bdbf95baf74a49265e36340a21444985da DIST thunderbird-115.5.0.source.tar.xz 535406304 BLAKE2B 1a4a3b50f89eb52a70546fae618221e3223ac712ccec2715e07c01edc0fb3d9e241628b1e10429e28c48523fbeb026b6e92fe6c4461ed4a3191c2dc4483e1699 SHA512 3ada7ad6aeca07edd732e0beaaf765f2da8282e4d3bed967d68f42f4d612842f0e470bd43c24de0e92829eb137c1031999f50456165de0b7735502a83deb42e5 +DIST thunderbird-115.5.1-af.xpi 542214 BLAKE2B 3a8bc47cf1b30be284dfa0d871a0a2071492869c716cb3fcdea19bf971d78a57c099844e7fc62868b1db81f6502c3d570f251d607c63c034e60157507d7f5dc0 SHA512 17d382f6af075555d75aa2610300aa10c8ce224ea8f0aa7ef678623705b72f5661226e129bf78adb0fa2bfcd9071245395cd785759d18d3da5f44eece5e540fb +DIST thunderbird-115.5.1-ar.xpi 654793 BLAKE2B 1e903f5a1a2317b1aeed3762a33c7208de20bf24a19471f05bca14a4046fec3c7e7ea39c886af70719556d26f192f2d0aa2e1bd7237acdbd0341f3f3a5878f9f SHA512 1729e3ad0007d7ee5ce3caf9083039ff3d8f5a5d4fa3c379cb5b51d3cf2a22bc45ec672ce23ac2760f62d5f806493dfb3774060a6059d79ed7d8522df90a73e1 +DIST thunderbird-115.5.1-ast.xpi 561183 BLAKE2B 4d6363b7f3132e96eac2c5e45f43f94dd6e7c97f093371516f6d6070a41e79a8d6a5748cacaeb8aa4fc436734c8934dcb3e3606166c9879f230fd4b896713392 SHA512 80364f5d77336abf1ba21c5ab8df5acbf01199ccc35c70ec1d3e12d63adad87722c0bb352e16040b7172263866c381314c1a5a699f9c19c5a8fb64804a3a562e +DIST thunderbird-115.5.1-be.xpi 694157 BLAKE2B 19565bdd3661117d69d2d6591be393fb505aa7028e23b7173bddc0a5b64828da1806675d70d59ed62295a2583a1772801f6c0f3fb81b3380b586179647e015bc SHA512 5438bae2e480bd3b701c69f6afc07231d1acb41b33f0a2790efddd3e82a356c6c2f0465dd22b63ff12e3faf2d20a52cd9d52e15c7bcb45aac523718e41afa9f3 +DIST thunderbird-115.5.1-bg.xpi 681318 BLAKE2B 9236364a3e291149c13fc52f31c9cf7918e3ec23486b2184f412091f5089996ce58452ff2e2a4385fa14746568837505896a17137228743304b042252081f52a SHA512 93f5dd0e3167afa56da987f9018cc3b05dbe845e6485d5ccc13c8180dd0f091c4b6ef4b8ac3a31a45fb03946c9f3c0cf3bbab683f9d3536a7af1015e5fadc52c +DIST thunderbird-115.5.1-br.xpi 627003 BLAKE2B d286c791af99e29594caf75c2d56f5ed13311ba9a2efbbcb5a0ea5fc96ec502741ac42ebc81cc04feec60a41d1e6d88a4149a205e29c7eef074f1552f6e8aea7 SHA512 bdea443e9c270eac1696721817f1c57403eb10905d03cccd125700860021dea9c6575114bfd6d3b86e13637277dffae695cb76ecec45e6305f7f5b201c5ad869 +DIST thunderbird-115.5.1-ca.xpi 671492 BLAKE2B 19f13835c8a89420c62fa318e679a703b2d1f534dd70f6bdf1a4b3ebe11311239882da600b8bda990c653e4e9210f840cc309984e0f140931defeb9d2f2e2411 SHA512 13e6902cf0f9db10b6b8d21883e3c02c221e6bdd2edf8b58851a4d2f00a0bb8b86c459b6c7c48c714ce5490d254d9555d0c1da1e7224d6c3efc1f94996010450 +DIST thunderbird-115.5.1-cak.xpi 658685 BLAKE2B aa3192411be5700f9dd4d6e9fbcb01901d1802e864141de0d17612974e1d5191382539822e8521dab139f4b94bb5a0230728a31658994fd610a0014372e1f65c SHA512 f180a9ac2d38f17b04cd3c7281d81202629053c372a7cbf4b9f29b8595b94ed0af6b4b6db63998b10e2c1fbc78c1095f94102241ff11507b26d71620547cd43e +DIST thunderbird-115.5.1-cs.xpi 735545 BLAKE2B 022661b0a7e837cca3197e836d67ed0d56831b61dd4de3e1354b185fab7e31f1d8c2d4479f4b57d3c98698c9b086de7b4bcd6557f9936da0301a8cda4001c66e SHA512 b0e4d03ee969195753ff05a2033f4294c670549d8aed3081544d3c9d2e333b7be30dad46c7083b421c0773c78483edbc75f0c083eedc42aa0d08344bcb1d6153 +DIST thunderbird-115.5.1-cy.xpi 704931 BLAKE2B 30fa41cb73f0648db20e9a8091c5cb7a0be62189565fa64d275ba294b44ca56e4a47ba2a6624a79c3ab1fcd6e322eb04546bd68407b481c322eafdc42d041b7f SHA512 59299eb274246f7672d39612c0e4db5ee40ba8c7b72bdad04da844386c3e66f3e95e762f580b80a117392d679d5c71003ff90179426208af5cb86561a7dfc763 +DIST thunderbird-115.5.1-da.xpi 691758 BLAKE2B 3a67103627960bec4e86ff1f1469e9b3137fefb9231a84913c2c5889e4bfab90bdeed443856ed6dc9c5fa25d422dc728cc4900ad1ccb532c88e7a5b5106a16b3 SHA512 e06141dbb07b7cc3ce31ee4ae56cc2ac1360e00eabe96928d69bb8c199ed86b685b7fa457e71e87c12eca79f8e22e4aebffb8455aa4deef752d7969613a896ef +DIST thunderbird-115.5.1-de.xpi 721631 BLAKE2B 6a41b0e6c241ba6cb17a93d3059f7b8b99ee0393ce29ea1c65defae3e650680a1a8274f974c8142093a6318f684e84cec3f1e3f69f8a86a1b682df8519782128 SHA512 7fc29e63f93e765f8c1a16636808a22f054323b6e3504e3c34e4eba8b3402372edb817e7d92fc38b49f5c651ae643f6ca573c027aa6e984f1ea15247ca58b137 +DIST thunderbird-115.5.1-dsb.xpi 738952 BLAKE2B 4f2384ef57f1a354ba2c7cd262ca95e144dbf145a04ba980a4d11734f2115397013489c4f16b26a67574755ef8d2aa9448510c68bcccec8ecd198dee44485022 SHA512 566e9a7c0c1506058a778d1ed2f82e4fa1016dfa1872298c0df341d6074bce9bed855260166d46b229a8e2d0db4492c51e75d2415446d2145128c4def29417de +DIST thunderbird-115.5.1-el.xpi 838620 BLAKE2B 4d159a0de85ae72625959881d3ff4466fdfde6a2e12305ca2a477484b98da6f7f85a6452e7802a5d5fa8084dfc3395a5e46491415767d1c474c95cf4464a2e0e SHA512 b26dae7dd59c97c669fd81a890b852e2ba2e21b74dac515959ce57fb8b0d504c4429411304eca4f8b8f6a4d2ae92659cdb67e206e250afaf9e820543daf04849 +DIST thunderbird-115.5.1-en-CA.xpi 656951 BLAKE2B 051b3ae86f6f9ffff845bb8fb41fec563572358db3505952cfde59cffe7ae2fb08ff743f91d2f7f4a526ef2122bbe4981dca0cd529a34c89b9c8d7989f321af8 SHA512 8245eca31bd4759d6000b55691db80107d4e550aea909db189c3448b9724cc53a04be353d2379ed4632417044237fd572008231be04df38239aa6917cb1bfcd0 +DIST thunderbird-115.5.1-en-GB.xpi 662934 BLAKE2B 3ca7a796e5331969cf7a60f1545cb36adc5171cf309f4fbfe57c75a47a618f56e49d64a5f3e61c954e9260d25b129eaf53e7c3a19cb51e561863f97e969ac858 SHA512 a59873bdfc02323269f209f1fd90762ccf60c05e1a72a7669170f0afcaeb35ccf20be3ce32a63781c238be4df84776b76a34447116ff08819351bf7ed8872b85 +DIST thunderbird-115.5.1-es-AR.xpi 714676 BLAKE2B 18cec17d52e25d85206194679e6ffae8086cf58e111fc2dfd639c9e1df069750e13db8481fe3be769d5adc19eef72456ad3043effce691b6191bd83c2b9fec48 SHA512 fdf063b6bf2d76b7e51a8fca98591809fa096eb6994f363f8a8b4ea95223c5d95c2b5ac65fdb003a3d66ed8946ed7e528ec0c7dec4ac53691c3d4d574c008057 +DIST thunderbird-115.5.1-es-ES.xpi 677253 BLAKE2B 8049c2c481289539f782f767b0a5bfac8362795cbe6caeee20120e3f3e8d89a947b667ac23c1699267e1c44c05c258236f76112eeae72cec3f421bce12dd8561 SHA512 64e40d793b9c2c2942e4b3b35325ddb68ac02c92acd11bb2a61e8f0092442c87d6a689e44e3f51b5fd114035de5cdff82e9dc38ddb00f3f95cf14d1a4a6f2f77 +DIST thunderbird-115.5.1-es-MX.xpi 710988 BLAKE2B 92f820ea7226c911eaadedf6477ccef9db9f1f501216cebc8e520599e2d67bd07afe5dba9c17476919c0f5a2f42bf1558eaa22d897a489a0df1e270d5eb1fec1 SHA512 ead1e7e2c84e1b7f81aba21c71183cbf117b26fc28a3717c407ac1ca65170e101a312c6ae833470ef91d756d99ee94671e51e5ad887d70d1a04675188556ddfc +DIST thunderbird-115.5.1-et.xpi 671830 BLAKE2B be1d6818f5f5cdc6d99ebc4c7bb709a72906fa1a6e8241d6da1d17445cc63eca3acb2d931e8a3fb180d2e7ae06ba57a32b918872850d9566f515bcc479bc7bdb SHA512 2be594bb9b131969ab4b675ba42ebb2a60bd1c13b58610bad0790541b700a0d895d4f8fa599c4b4d9b32800f2801c51334e73f1cc2e87086d3cdbdefedec8ded +DIST thunderbird-115.5.1-eu.xpi 694693 BLAKE2B 3ed70ad0be0dcc1266f92164a366ec458ad45b1b3e8ac5ed43e8f527b430e311a25e80936ab4950f701ea98a6d74aad408119f6e34c2478e6eeb1d3a5f56fc0e SHA512 dda9c53a8e48dc90e470758ce0c7ac848cc1fd967c753ca315db5e73e642b1082f99afe5b74ead52926c1646537914fd4c2043e48befb4b40129cdeeee07f6d5 +DIST thunderbird-115.5.1-fi.xpi 693768 BLAKE2B 034f68ca90c49544d5d03e4e1ab94fcd72ee66b1cb33198868377ce9be00269cec9b8367384c9c7288b115d7c1e10d13ff4d4de5d8ae353e173435b743d0bd65 SHA512 bc4c0c93f978632ccc69effad03c36ac03fbd662f91a24dc14888a4047e6248c50c7d1d5850a44bd6925041ae93a3d391b5e06ee521abbcd512b80a2b241192d +DIST thunderbird-115.5.1-fr.xpi 726973 BLAKE2B 6d647e56d12b7ac5b6533bc9906db0334d2f0d5baf7098b0b9d146c9416e64585abd09a5dce469b7a405a0b7814f45950b9e0d577d17ab8eaea08dd85b0cfdbf SHA512 252a47a8b955440bc5fadbb4edc341765e169f41e3f6a8a26a6e315950294895f243010eae8e80c23fb230be8bc2e97d42dc0a6144f155e9033ca78cc8aafd07 +DIST thunderbird-115.5.1-fy-NL.xpi 709423 BLAKE2B 4f9410dc4895d7c63a932665d22d8d219e76d97cf4bdc49bae4fe3933aea95ab628e738eceb5e8a04a229f44c1bc6ed7925d87d245f667fb79d25b019047e494 SHA512 04a9dde4fb36fb13f34f9148a827eb8454b43d3ba865a0d89368a6c4c2c821b1f3e8113e0740d024a1bdc8eba44f8103b9aa550e05b221caff552969ec689b29 +DIST thunderbird-115.5.1-ga-IE.xpi 602217 BLAKE2B 8b3bd6b8f847bd3a32ed3a7d6f4834070a3ed246e25439b7dee91aab291f4c17047673fb71d67447cffc4b9dedc3180546ee7caa6229f5c6924a3c53c1d554e9 SHA512 6fe198097862aaa5ddbd99849a35353861aed30c46068e4354a1abd0662fcb76f8a38965b052b6fbec772440940d3a148bda11fbf373c7404b86bb396e179dc3 +DIST thunderbird-115.5.1-gd.xpi 703836 BLAKE2B 7b5f4000720f46f466a0bc129db43388dc33d05d729e3aa638d231aad66a29bd29b09c1e9dc5bca0d4580b08d1da19adf86d58cbfb88a1a395e6e28a67c13173 SHA512 2f6ea88af1595042926eb970e669d2fe457dcef986efde34817cb343873f6e68a058096f5eba69f0187d9a12cb67e90bf0c354f6cfe65a6aea0f8d280b7fa2d4 +DIST thunderbird-115.5.1-gl.xpi 707052 BLAKE2B a27a61681ce7eb08f73e2d9dd2b6863301fee366aac66f04ba222338116a9fb0a97850643ac19b15df772ed1d7e550055a419f7d312ca81c338cab750eb57b1f SHA512 7ea1ed8a3c0c2cc3c2968bb12bcb1a617759e08da9fe2f890b38f43a676e30118b2e5ac9e9b223701ca2b85142d0ef119db597ccee24b145dd79b7e6989acca0 +DIST thunderbird-115.5.1-he.xpi 667549 BLAKE2B 333d7db778d33b54468962bfd11c55a076dddde0112a7e643ddba1adb8a1711f2be953f71075c7760dce67f548f0b3d54bb38537e71bc8a708a1cec25dccd814 SHA512 bdd8acc8467a1f726e33720703b7892a5bb12fc7506df6dd434e1817f5386df81a161d83e49b8748b32fdf20acfc35c003b3e5efa9e5d250d569a9f5f4f795d6 +DIST thunderbird-115.5.1-hr.xpi 676510 BLAKE2B e326ab501043a720781cc7f0d4fd5f58821ccb6f001e1f96436aab2b5f538e994233f89d2b0acea16f44b8572ac02022db9f8233500b8d40f0fb6e3cce6ea62a SHA512 b7716a3edbd8a1835055210b2326576e23f2e39dde0b56e7b5c62ee941fb50d29484fe0fc5a869631695d50d87a88f6361c7c0f4ee2a4ee290d5e914d02cfc6b +DIST thunderbird-115.5.1-hsb.xpi 735318 BLAKE2B 90020b035809b172dc46b505ebcb71bb5ec901297f2de9840878aa6ec26932e8377784daa1b7a3bcba96f9eae4c462bb9ecb6c0a137cc53973e05f2155bac12e SHA512 bea5532e3770332e76e0dc58d7760101d7d804969c0580f873a3abc5a264dfbfbe7797e75ce05af14de92e83c1ff1a5e14686ddb6e9cfe40291491e2d76f0141 +DIST thunderbird-115.5.1-hu.xpi 738194 BLAKE2B 2798750fb36ca64ce98777151cfab9f0b3ca5e25794d41c0dcf6d87cd81f225dd1abcdb12e4c1cf8f736c889762ca81e5b724bc74d8f3d2c80a013fae2908124 SHA512 1efed62054a0b3e8750f7db1a20082403c03ada9b246da1b01b3536ca8546dd5414cd0fdb0a40446e9e817bb1d4fc96100b58782343e7f1534d706927a3edd09 +DIST thunderbird-115.5.1-id.xpi 642591 BLAKE2B 04c890bd83199d122e517975760301089642fc9c667a4a91537658d3c668660f69a3aac1ebe0ab50b34db8e48e4766bb60099bc0f78864e0668f46158b8171dd SHA512 07cffb5adb636bb536fecc1e9dd86fec2d88aa9208a870447f48f798e30661b8a6bee7f3a5cc09bcb4d9a78b64e253ca0b12f4fdcda65770daeb2076ddf7762d +DIST thunderbird-115.5.1-is.xpi 703413 BLAKE2B 66e850655c3476329cebc7d7b760019869ff043e3415472cc7f84ae725dce426dba3445f264f1969fa76652ee199e4a036d78ce7cd869616deaa3e0f3c46863c SHA512 8b4cde9fb11ddb221839a257a24406e5726291f50660164ee2dd8041da8760c0f149b0799b6a3478a608fce6b2cbc5afe8504a8109d82244eaadd918f7eef2b4 +DIST thunderbird-115.5.1-it.xpi 645040 BLAKE2B 8c4644bb37971986e6452a742c3ad15e1e1b271b7c3c50706424bcffc0367af923a63e6baa4827727a5e9ca861c8bb7e079f4311a4c71ec1d0c5928cd4026169 SHA512 49388fe03ed200bc615188957a4c38836f327a91ed51b0df8363f0a7cab2f24b64f61337deb56a938cb253619f8b64e13fb8de95388a3f3c7085030be879e1b4 +DIST thunderbird-115.5.1-ja.xpi 779365 BLAKE2B 80f265127181deaf6454ee0871e4b88942943cde237fccc0d1b0945b7f35813ee11b6c3e24e89374677d11b6a9c14199da71d97c261a96ebeb1c49b38dada951 SHA512 a75f48808fdba6821af293d685a2a342e5e27e6b64485cc712588360649117f2a3fe0e8e2f910893df8e3a9088374a6a95b3c23944d9e9f45ccf0e781f60f452 +DIST thunderbird-115.5.1-ka.xpi 765409 BLAKE2B 894960c4aabd5f20c090a763e3b2fba6ecac04a9a4993bfe39e58cbb68605b151a9acabc46a640e5ab05d6b99c9e97a30c2fd2281e56ca6cb3a3372ad63a337c SHA512 6934b0b41341ee6f211c82f3838b9b075f6ca217091fc36c172fdcbebc68c2fefa8e3cff0d49d84675f86252d52aae762508e288c049fced5cab0d944c8abf32 +DIST thunderbird-115.5.1-kab.xpi 699681 BLAKE2B 505af54a9446fea17f679a95943b08e26006866a536091b9977357f9edc083c6107e56ae27bbf538d2d47264b5a0108c60e9dc1adac2b2b658cab9363a4e2f9d SHA512 054e3aafdae272ffddab6d589a39f42fff6b0ae19e9773b75d037fa2fbe07d113c4b0279d35339dec145a3c6f3fcd011416d7325fc97c9786cf4d43d6b9a4e04 +DIST thunderbird-115.5.1-kk.xpi 806842 BLAKE2B f78657559bae1e59ab67a66c02abc86b888f7da368ed5b3f7222f2260c91adde5a06891780351364259d36454066d015d715207fea7b480a5b0d6c1eb5b6bb19 SHA512 9c7c79fb7807f4fa6df3d8ac296da670830b76f093de862158a5cfe4e595a3f42572837904ff4a8cecfcdf0b7b6b892eac02464c9d600aa563befdbfd6738abf +DIST thunderbird-115.5.1-ko.xpi 712621 BLAKE2B 8ee5b20215645159076c72f4a0f11b4b24b9c8603929baff993be1a3eb50e8deb9b81117b1ca853318012696abe30b649a7aa5980bcffd7bacb0b0389cd737da SHA512 19536f2542bb1746722bdd1b64392d7a669330005d94501b021dbf298b711360f3d4d7b52bf9b28ad3e634bb1292040bd4ee98fa024ac6a404efabb3d3c68057 +DIST thunderbird-115.5.1-lt.xpi 680152 BLAKE2B df95ec3b894d7e985a31e0845208bc190455dad053e4fcc2b1ae86818367072f0f3d832d2a26e2eb11de6c82ebdd100c94b37c3cba5b8187b927e4f1b98268c0 SHA512 cc838b420b4b43155aaaaa871ab0b7c07c56a589ca898b8a18164d60efaa4f8cf44328fa7d17b7c6d512115b9f0abe99d84c97f4c8e74bdf02ee7fa0234162d4 +DIST thunderbird-115.5.1-lv.xpi 605037 BLAKE2B d69cc7603b86470053d17405b49cf5a5590311ed1495bcf6ace848204872a53450a5512972e933d980cf8524a9665b05df62172dace8c7d968299d00c8c13596 SHA512 fa8387f624ba13882b4587a744bc392652dda7aa558588fb4a78a0c82c0e67ccb6ac0ecfd42c86a4ad11cc9c52f081c92da8c940f86822a92803dc6aae73e3b8 +DIST thunderbird-115.5.1-ms.xpi 565789 BLAKE2B c9235adc25375fee615413ec624ecb12dd1c87dcf28ce2c9b084d07813078e0aecd49257727c34167cb0c51e0450589cb7f0bbc32cf49ca7ea9f3117190cbe91 SHA512 78bc8f2ac79ec6b1bebcd2ea60230a47a219483616ff267695a5b5634fa36625fcb7ada4742e8131c36e7955a7eaebac95666fca8a76044f69e02e90fc3425b4 +DIST thunderbird-115.5.1-nb-NO.xpi 653887 BLAKE2B 507632cef1b81e5b8145dd475c5ba9384a9ea2abb78bfcd1bd86371a03cd81f65327018911dc20f2515354789120f5c1cc775fc586a4104d04d28039ed32aad7 SHA512 4eeb6bb01bb211defaee2ab7f79c352c1c789a09e61dfc91442ca19d8d4db2e43d5fe065c31d9b23f0ce2906b7b43294ac72f2464786536d060eef669cad0e92 +DIST thunderbird-115.5.1-nl.xpi 700942 BLAKE2B 2cc3f5b157d35d8eac5246a247d6c8c6a54cc9662458901f550a0c60781947b632ffab6cd1821d22c84c5608b886146bea94abda75634b013d55e006ecaa11f7 SHA512 4853c25963d43a4cf5bc1ef112190c5030bf4cf5408fe2fea27066dafa388473d7fcecfd262d4955b695c8cbdc86e5a41d5b07db0e44471b61d0b456d59dd7aa +DIST thunderbird-115.5.1-nn-NO.xpi 673550 BLAKE2B 1d836cf1740534e5d1085e377d95fb2c077234bbf9c36150d6d2a2a83fcfc2028a72ec840e3317a711e3dad0d846269d6c9001906295e433813712b645f3b5ca SHA512 f004f1e309b590646362a1e3debc5514e01ea77fe7aa10a4b61bb5e79970d0e52255fe4261b259c6a5edffd0af28d0bdc325f7a54f15bb49340434ef9324bf57 +DIST thunderbird-115.5.1-pa-IN.xpi 658298 BLAKE2B c44fefc4c67e81a2143321a1cc645e444243fcbe1c24226c1d343c98a17164b4ab9c8528211c3ac913eed11848f137e605e6d18cf31df0285dd5999a67da13a9 SHA512 42f0a8616e2bd06df0cacd22d6d74f0f2585c195138d58f25f7a103e2afdad862d5d48f308788010249987fe5724d93b491cdc0177df617a36ead754c33b78fe +DIST thunderbird-115.5.1-pl.xpi 718183 BLAKE2B 75a639c93523b8d24b81a94ccfa0bdcfba890d0a9b1b94b35a3a7e626334b7f4cd61623ac0a405d7a5e69c60f52a904c3dbbc1eaf44cfde67e7f58a39969f34d SHA512 0958e9d93257521c875838ef24e4fc180d378336de265a6b302eada0c6ea1d64336437ff4ef8f582bc47e7d74991ae6d7c6500a32fa257971531d52fa5d644e7 +DIST thunderbird-115.5.1-pt-BR.xpi 708792 BLAKE2B b000a9da0749759ea43e3e2868adf0b97e2a5ed9c0ecbcbf3eec9596c8bde520920a2199e34984e92ad4709ff570e714f5d020d228302a2f3426deb220c5751b SHA512 d1e5941e9d913368088c683fb9ac35fbb325230e0e52dcc732bff7fb546f9f6baefa37ee0c813e5aa4db75c47548633ec0a056f491a77ed20e0778766882572f +DIST thunderbird-115.5.1-pt-PT.xpi 690113 BLAKE2B 47dbcb20d1700c0c2e8f8cb244537b9694373179ac85ee85615fc7175251c6d42b3c452bab41b86c456fe3d82d328d20ec2959258770b4536b966b9d2c9782c6 SHA512 44bc0d612ae0f7b99733f6c68c2be82cc2cd97187e234d1a8f4dbc11b259b02152ac5a86ccae0696e8b57dd9fde5ba1b0fb7ad1f106ee4bc72889d1ccd1457f4 +DIST thunderbird-115.5.1-rm.xpi 705573 BLAKE2B f2af9a98401fb3026551912784d40e23041cb5b4617692acad1cf96b96aac04e516aa63b2623d533d7327aa488f51630b8c79d3180e26f9f8fa085fcfb7e4cce SHA512 d0aa2ee8c69a48cf4dbbd3f97f11889bf129c180b8f3567cfd54a6f029286688fa83227ee71a775ac942e2fae9d5ca4d75ab0325f2d0703996555485f52b8165 +DIST thunderbird-115.5.1-ro.xpi 651342 BLAKE2B 6b073a77b811a3ad89f894fcac36081744b1802a17d9afff105ceb2756d961da03c6184dfdeec863811f602a36179c8701c574b3d8dda1a47e84b0a10303ae3e SHA512 a98bfdce7f476e229b74f82225206a66317f2b8a109fbed326d461accb9ef8930bd87c141ce55cc15ed0de14b6c83315d59d9ce48fb614546f4bdb454a11fe05 +DIST thunderbird-115.5.1-ru.xpi 822402 BLAKE2B 68c9b02552d601d420b386804f2d65a846e27ff8424cf572c2c525e771da4e5dd461760a8cc25b11db0abdb86d8a08a7f67ff8cf017a21be743455afd8c884ac SHA512 58004ee5f828371871971e95ee3e3b40804d231d3075695fc5b417cd3a8d4279c2572d25bbf38aaa3ce986f4a50e70c7a033698a1359bba40d9230bfe5d46505 +DIST thunderbird-115.5.1-sk.xpi 737277 BLAKE2B 3fcd88d5db343fefa8b338ec83fb5aa7e851d8c5bf2b34f3a1e57980dbef51007a271b140d7f04f54429fa1e16ede5119771cedc5b5f43787098651f812b9b00 SHA512 6c9b5741730fae988b87a482d4780ee39a551e29762b86b82b1e3266624ee1b82a49b19d550c8453d716ecac6e6132373cef4f75d2b0c0d336265422971d40d2 +DIST thunderbird-115.5.1-sl.xpi 703395 BLAKE2B babd5f36cf5991df9746e0e644f9e2656b20941cfdbfa47f05f27cbe8ac008a6f0a43e5b32245ce3ecab16c699e45c934aba0a20016259baa87c433f902116a5 SHA512 8f8d4f6fde752c7eb83b18e7077c4912bbb3a0e070077d5eaf2f7f4c873a3cada67daea5330ba8f1c62fe0a6c2a12f1ef59147ca5a71cb122c31ef046e994726 +DIST thunderbird-115.5.1-sq.xpi 720878 BLAKE2B 537b86d41f2d749628f9126b47df1355a273c65181affa557e503dbda516fc265c8317ddc86a1806403b20aef5f7aa50c1b2b8e3734f9dfe58f04f07d84ae157 SHA512 04ecbaf4fcf5d10540ea0bb69f6bf5485bb6de129deef3849601a70f6525ea178142c228c1fba5e7d3609a485c045ca8f2e6a4fdbe0fb023566aefb08471b17e +DIST thunderbird-115.5.1-sr.xpi 745159 BLAKE2B 1d6829d6de81ea6cf578c237be3491deb2c8570c97a3083216de92096f223281d5d9bcf743fe3afa94bfbe803a48e03a87ac14988c4ce58c730f02fa09ffddfe SHA512 39c9837ba81d967b5d9a36100c5c03e4e16c7c720a0f75fea68484ff1fc02f3d4d4d74d412cf537354f22b86d13d6dc3a59feda9303aec48eedcc2b8334858e2 +DIST thunderbird-115.5.1-sv-SE.xpi 703858 BLAKE2B 299c12a79aba9259b525e895f70aba49f54633bdc83e2988717e817ee59e17fa12cf430928319802c61b91555eb017e9d13f5cada893f37e939e064dc378200a SHA512 c4bae8ef983234d757324a0c38a17e94861ba2a952eb2df99b34d08fa57d27acd6b254592c3ee7cb80fd201fcfcd096aceb877a2080e163d7414c09487e675d0 +DIST thunderbird-115.5.1-th.xpi 761880 BLAKE2B 6fe786d000aa64e07671d99d34c09b377856ddcc094875bacaad8a7a296766b2f73c659e16fa406694c7ac1c259a0c1b6261fde494ad811d9b018eba8ccad13b SHA512 9e0f9919c03af141fc10e6caeab916bf537c02bf36fb229cbb506bd1efd3063f8b1e5cd4d64e39c2705c89dffb6ab20b7b16e5261d6a9329d8ceb921cb2c1206 +DIST thunderbird-115.5.1-tr.xpi 716829 BLAKE2B 99dfd4b6803c61769a65a536fe70a1235720aaec70ab2b68ec3495d95ae8645f4840ccabdb6c17d087c62711013a38057fac35ec031b0def1a362764a0398cd9 SHA512 addf03a7cb62dd8eae58276fedb8d6e9a153b6a2f906a3bdbf7b1aecd66bd7ce3fb7cdd040c8765104ce3641dd1d7c35e906ed972a7b07eb6ea7b5e8fddbcc8b +DIST thunderbird-115.5.1-uk.xpi 815087 BLAKE2B 6ed106755b8b49a8a7310b995581249a08c180a2a69ef889739560403617719904e497eba12b40b72464428713cc44d8f44744154070d7c53733262fcfaad93b SHA512 676b2be7075fb4d898baff593c404f1da9219a94899997f3206ab1aa8976a08aa83cffe8679b0a3daa09c6e3c1a59e1ae61358360f960034432d75d2fb969b77 +DIST thunderbird-115.5.1-uz.xpi 580053 BLAKE2B 92bc59f6bdf68b2899ff4e5bc70105a760dd0fbf7764cd17a45617243f139019d1c0720e90fabad4424a4f28372619a269b91c10e9f6c3ff88918783b8c43f18 SHA512 0776dac8b5772547f8282401f85b0bd6f04080246603b87efe2cd2f394cb9a88c3f82d93b4837f839345242c8fa5756cb9f6a7c7070491e9d9d78b5304999f5e +DIST thunderbird-115.5.1-vi.xpi 744210 BLAKE2B d9b109633fcc532686d6711963aa3b475d486f7010e1c1f82de0a4207b3b1786734f5d8080fa8e83c67d4515644ca087b421c3cae6ec5eb0c0501e46f19e7a2a SHA512 d3933ecea757ea665c9797911f76ca0a130e368a88de176ad237facc16d098aee51ae66cd03cd2839ca0ac754905214cee5d666888efb7faae8c0f7fcaf97dc0 +DIST thunderbird-115.5.1-zh-CN.xpi 742326 BLAKE2B 7e830097a23369e5ca651d2170492bfbed63b4910014bf6cb26bccf84a12707c234c403a2549bfa9343560efc8c858a710e51388054126527f6f561591408bb3 SHA512 0597954c4d11647c212459c47c95fa5834710445e7072de77bc0b055559e51c04a2c1d3ce76114a1bf362203133f4ed979397088a146d22830c6c19764c70679 +DIST thunderbird-115.5.1-zh-TW.xpi 745169 BLAKE2B 59f8ed80cf5de4431984e6486277d35c36a5cc8a3cc28253fa2af1bf715141f83a849704aad3007db43bf4a86af8ea4301eccbf8c8e84f037dc25a3e6f373896 SHA512 5ec1868b9a09ed2f32237b62a59a9233fd668f117ed485d308bc4711f28b1b7b608ce92ae8c5b91299e16dcf1a5ebefff42d97df297e101dda7be8220fd938ce +DIST thunderbird-115.5.1.source.tar.xz 532760764 BLAKE2B 1ce9c2b6397cea9a0f1a670c668e142c1fa69275bbc8640d0bb8b8560f027c6c126b90cbb6f6f8b6aa9b0feddd1a79b1b92f49ed879e27d4cafcd35218db7a96 SHA512 5ddc39b3591427d283c5497f68a1d722409aba54d53342a36a259daa219d8135ecf88868b12235eb9536f46f825722cf6da2781b71a2e10b816281231394b4f9 diff --git a/mail-client/thunderbird/thunderbird-115.5.1.ebuild b/mail-client/thunderbird/thunderbird-115.5.1.ebuild new file mode 100644 index 000000000000..17e0f8878c88 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-115.5.1.ebuild @@ -0,0 +1,1331 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-115esr-patches-08.tar.xz" + +LLVM_MAX_SLOT=17 + +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp" +IUSE+=" wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + || ( + ( + sys-devel/clang:17 + sys-devel/llvm:17 + clang? ( + sys-devel/lld:17 + virtual/rust:0/llvm-17 + pgo? ( =sys-libs/compiler-rt-sanitizers-17*[profile] ) + ) + ) + ( + sys-devel/clang:16 + sys-devel/llvm:16 + clang? ( + sys-devel/lld:16 + virtual/rust:0/llvm-16 + pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] ) + ) + ) + ( + sys-devel/clang:15 + sys-devel/llvm:15 + clang? ( + sys-devel/lld:15 + virtual/rust:0/llvm-15 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] ) + ) + ) + ) + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.65 ) + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + wayland? ( + >=gui-libs/wlroots-0.15.1-r1[tinywl] + x11-misc/xkeyboard-config + ) + )" +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.90 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/pango + x11-libs/pixman + dbus? ( + dev-libs/dbus-glib + sys-apps/dbus + ) + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-73.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/networkmanager + sys-apps/dbus + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon[X] + x11-libs/libXrandr + x11-libs/libXtst + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily +# placed here until toolchain-funcs.eclass gets an official support for mold linker. +# Please see: +# https://github.com/gentoo/gentoo/pull/28366 || +# https://github.com/gentoo/gentoo/pull/28355 +tc-ld-is-mold() { + local out + + # Ensure ld output is in English. + local -x LC_ALL=C + + # First check the linker directly. + out=$($(tc-getLD "$@") --version 2>&1) + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # Then see if they're selecting mold via compiler flags. + # Note: We're assuming they're using LDFLAGS to hold the + # options and not CFLAGS/CXXFLAGS. + local base="${T}/test-tc-linker" + cat <<-EOF > "${base}.c" + int main() { return 0; } + EOF + out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1) + rm -f "${base}"* + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # No mold here! + return 1 +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work + addpredict /dev/dri + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto && tc-ld-is-lld ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # May need a wider addpredict when using wayland+pgo. + addpredict /dev/dri + + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + if ! use ppc64; then + rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die + fi + + if use x86 && use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.patch || die + fi + + # 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 + + 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 +} |