Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/
Date: Wed, 01 Feb 2023 05:53:06
Message-Id: 1675230776.7cabad7ea19c41d685ac6857d24f0cd63ff6f881.juippis@gentoo
1 commit: 7cabad7ea19c41d685ac6857d24f0cd63ff6f881
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 05:50:58 2023 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 05:52:56 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cabad7e
7
8 mail-client/thunderbird: add 102.7.1
9
10 Bug: https://bugs.gentoo.org/891217
11 Closes: https://bugs.gentoo.org/892465
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 mail-client/thunderbird/Manifest | 66 ++
15 mail-client/thunderbird/thunderbird-102.7.1.ebuild | 1172 ++++++++++++++++++++
16 2 files changed, 1238 insertions(+)
17
18 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
19 index 25233a540a9c..6da068ab65ae 100644
20 --- a/mail-client/thunderbird/Manifest
21 +++ b/mail-client/thunderbird/Manifest
22 @@ -1,4 +1,5 @@
23 DIST firefox-102esr-patches-07j.tar.xz 23012 BLAKE2B 41b706f5ae8695ddd33e971cf1aa99317382a57618cf19163c5bca09ed5d430dba672ac51b7ab3072360452cc89ac50397bb7992882a61a3adda37022239e654 SHA512 7048353ea5504e34d9d3950e3e5e3125f631f95269d5c9e422ca052173a316718fdd4b57ea7980a452139b1192805cb598f47f398fb148a426a85a5e979c6cdd
24 +DIST firefox-102esr-patches-08j.tar.xz 23268 BLAKE2B c98448da56fe9c2cbaa0c1bee355189ab4604db3d2e2597a2897142c08d44998968fb7f37ce42e9f2be22ccb77b581965bcf1f7cfb68813afd5af6650514713c SHA512 3592c820ae339d4331c0d39966bab0f9ff1144edfcaaed717566254931e9362f740325f1727103efaa1e2dbc3508b8bcf2d2d44cdfcfb2904011267423381fb0
25 DIST thunderbird-102.6.1-af.xpi 551371 BLAKE2B 1663fbb2cd90e6638cb96922e515e0b5762cf55bb6fe3c366c83508a01c49e27656a89e0c6ba0a7079bcbbca02f702f967d3858ba7fb7931b6653f92b7ba6496 SHA512 730306d74c3ef95f5e3a2b90e868d6c963687b436ef7310b01f48d23b3a0c9f0370e21506d946d8b3e2930d563c2a9bfc3ab115be5d28f0d2f61237b276824e5
26 DIST thunderbird-102.6.1-ar.xpi 656150 BLAKE2B 33f2ff4e97b206b5b7c27b661f863fde2e83ac066f136e0c1c8ad2e7779b0aa70d3460868b3fe3a25037e9adfc84cb1617fdc1136e165c3309560dd282be2821 SHA512 6c045f1cb0f4a1d67598f3149500b32d9a36a6549eb116e4901c640091b604b8cc106a1e5ca38e4786ef894b7c7ee3230e94ff44b29e013bc07ca7c1e8cf8f38
27 DIST thunderbird-102.6.1-ast.xpi 564287 BLAKE2B 8355c98444ad184b37b00a64dcd270c33ccf98a17349c726ba41d6d138959372c48af3f654c34305958bc5198b51af75dfd3253e8d85c5b1043d76cc19d496cb SHA512 9739b6850b543f674805189bac97eb2b1c5ff7d756f6f7cb5b748aaeb72f80a1b2bddcfc98f55bb14a55d716302d039fccaf4d85879c3a7d28fc1c97c699432c
28 @@ -129,3 +130,68 @@ DIST thunderbird-102.7.0-vi.xpi 738571 BLAKE2B 1cfe3857ad7cac4845ceb0ee7db857426
29 DIST thunderbird-102.7.0-zh-CN.xpi 731621 BLAKE2B 166f88792d3cfbb5787d370c20ed5720319f0ef460d1ab7d27e28e50e0264628d883e210e3b6508dccbcde8d3db4908e8e9aa3b2ec286109ef1e419ec30c8318 SHA512 66d2500a4d232d04156feff0fb14c7b4b04dd6339dd0f8ad1adfd14c729c3604b20eb64494ff219df8dc502b4f7a0856438e58940e947bc237c727e431f7c30a
30 DIST thunderbird-102.7.0-zh-TW.xpi 740181 BLAKE2B 1a623754bebadcfc97c5342598dd6d315e2faefea0953ef3ecd41e33882a458e30ef014b3e63eef17f7b1ba40e766a07fa148f9166738fb8debd9a1806301ad3 SHA512 950aebebeec15dd60afbb4f42406d12653bd3eeaf9eb1a635622d118c1f7de9e785919ce3b0f7beff176bc8f4ec0d38aabe82ba73e168bffec62d1c3bf1bd980
31 DIST thunderbird-102.7.0.source.tar.xz 500620784 BLAKE2B 957f76932fae379d7536bad9ac7779bb64abafc9af348171f34be88629a5b450bc8dfc33d38326f684b7f1d45ca9704cb63bef67f38de74120bcc455da248c68 SHA512 3d01fd859491489321279daa687bfa583e86842e055bf7cd77a99307ddd3256132dba6d8eb6da28b061cd8f908ad347ec25abf98fd763de2071cc01171435f35
32 +DIST thunderbird-102.7.1-af.xpi 554407 BLAKE2B 5264855f67b8f0c3dd9d1f0675c90805ab0b8e14779b728c49feb611ca9fafc82a45412881ae3fd18f454d251583f632bec735f34e3c7b64ba0845346cf8f558 SHA512 9a0b9f9fb6098e9e0051213009ddd6c05f4608e8b8778111089b366db27c304cc77172595ea37c6a6530948b4fe7018c4adec0670b96c12f05ea18653b868709
33 +DIST thunderbird-102.7.1-ar.xpi 660886 BLAKE2B 497b93d5b1693e147df10960ff5172a0767d04fe0b9bb0f4dc8f5e6f7f576382f7e3a3a8a3a994527dc91bcfc12d1116026568999906eff15cb1819105977690 SHA512 83e2933417fb44d68b219d70fc41b1333ba295bcdf5792d4396dbe042465dcac7352c2affc37b36a2fb7bdc1448489488963fe47dcb97babe10f332e7a257968
34 +DIST thunderbird-102.7.1-ast.xpi 568531 BLAKE2B 4dafe8093356d7971674b1739fdfda5bb311597de9afedab934ccfdc64469869741163be8bd8e68cdd11d960ce9fe9121114834b70e44aed61bdb5f09e6991fe SHA512 738423b909333807d64e2660c671317a64bca22b351aad58d46a3dde93eaab9476fc8025b5c428aa6ee961cb2d58a8870ee4e046f50c64081402703d22edaaba
35 +DIST thunderbird-102.7.1-be.xpi 696400 BLAKE2B cd9ad087d613cb33075ebdd9ef7485ab65241fd091439b3ada30c5de4eae23c3d437fc2bab78b8e10d8fceebcb54bf3e34f91241d7f736d789c8138681dbc242 SHA512 a8e8a01454fbc87b8d3b5ced6845fb1b1c0c8be3bd5cce45ae271767ceae60abe1e6413f09f61159be4a67b41eef81145e77a678b54c3cdf0034174684c3602e
36 +DIST thunderbird-102.7.1-bg.xpi 687110 BLAKE2B ed1c893a835142fc18e07cc1c447ca23985d63ec5a3a6c89608d46987f32143b8de4ba0fa83fe23df38bc15a81593f51770a7976e1ec508487f336ca70e7ff80 SHA512 932475c25f350609f20a77ae71c7d8e3ab7c30c6a6e5298cecc9bf8954a4850296983a908bd17f1ae0786dcebfde1f3d78527289e44696490101b71bd0ee6e83
37 +DIST thunderbird-102.7.1-br.xpi 620960 BLAKE2B 3b5d7433d70518ec3611a626ac42ded3d383b3bdeb250058be778f32c57ca5cd32ffe4d76f09471b5da09c337bebb7f1801b7ff5311bc43fa0f5ecb6096606cc SHA512 60e4703b6e49ad584693da2f204d4f6a97dfe7326ec0b3c43b8622fc745caae79f63ebabcc0fdacb184fcc42dd02505ef297b5fdb0fcdb8f798660c578a6efb0
38 +DIST thunderbird-102.7.1-ca.xpi 641073 BLAKE2B dfbcff0a547b33af1003204a82a5b2c8409f7028688aded628353ed97053ab1d85aec7e590af80fe74318197410d6aaa1aefa325461d9d87bd862733ac659810 SHA512 d75d9867903d2d14d42812c0a0c33c8a58dfc616d7e25c71d5005ee7856e482613341dd8cf85f5e98d97eff9ad001e79808926d298197cd776a02a407dbee061
39 +DIST thunderbird-102.7.1-cak.xpi 646410 BLAKE2B c9f0b985175d987e803674d9a4bd8db7ec3fc68f62a8b3721f1cbbefaea2a8efe6a22f2086fc8876ed80265faba5e7e0d8d535ab71cba3e418652856e42105bd SHA512 6a9c603fd50a05aa3eff38275d1a2a3ffebad003cdcaef76265fcd54b384cfcf28fc9bc522ff939cfecc009a3a119d70a5de4b5ba4284a6d08f46ba8ca2a0f3f
40 +DIST thunderbird-102.7.1-cs.xpi 712845 BLAKE2B 2e05988a5a62d9ab52f6f695365180de7a5e7527083bfa401f47f52c24dc48f594ce94ce3d17994e73874138ad17098e69f1c1eafaf406d71bfc4c82f1990ca7 SHA512 7d5e588b88d2ea11423c809f369b85e870df6a12f3d21c13afe77eeaff9c9283a855b34339da0ec3dfd0853817e33ebcb78c637af25bb72178e456123d1b1310
41 +DIST thunderbird-102.7.1-cy.xpi 699460 BLAKE2B 38bdead949ecf0a7bd319e436148f01ccc548ef4ca60be5731cbee75106e300006950607d9b148d0ec7ee4406e5bc100f2011480645237df1c0777064d9dc5fa SHA512 602238caa848bed36650c90bc6c7204c15baa8952302d3c5751d3a27c19d236065d0df0946d764fe7f98a260de9852d5aa796ee469f5b36f29a4bbbcd117fe31
42 +DIST thunderbird-102.7.1-da.xpi 679837 BLAKE2B 7bec277edf7cd40404d6caeb973b8a808b307b471b99ee3ba5b97465d6abb85496ad2049d85f8436058b05e81f8bfb2f42ed138f4163b3c77a7b4d4e8c38ae06 SHA512 4c78fc216f4090b36923f2049be43f7fdeba637a5fd454dbedd5deb66d0ba00ef0e6765fa86f49198e4dad3f6e17513d29dbdceea1b5c5d4ab456ba3e2a95afd
43 +DIST thunderbird-102.7.1-de.xpi 712339 BLAKE2B 7eddf5ea4f6efc61c6039debdb4935c279bd169593c50d80ab3ac903ff333a0e8109c5e2c1327232f2f5e3b671cc1689bdd9485f421700c8c6527611b0fe92df SHA512 5b3886e7619000283c874372615b3e2b63af56f6c7c252e99c61658d1c6a75885eea14804042f54ae789a56ba9d8ae443538c666661762d586c1331b798ab650
44 +DIST thunderbird-102.7.1-dsb.xpi 728066 BLAKE2B 9b2c6c4a31d0240185462abf126fd2e01b8fff03769347029087d0e3d6acc306375865ecf02eaac9ce7c9e08167ca6c7330042c6d660d78ee4562c1f1a4c1e55 SHA512 483a2dedcea8c2e4f58e7c2ceb5d6d39ebea5cdec7d2f608bfe53e47d51314fb0e7a572d47610d62a878f7d1df51285661fe2f2202daf0b61a524e71bfd9499c
45 +DIST thunderbird-102.7.1-el.xpi 830585 BLAKE2B 9fd21d683eaa17714390676fd71216b8d4d68180dddc281de1d23d201bb1d37fc71953324569ab9e9e6391b354512142fb0ef313b19799cc4fde71bf7369bc5c SHA512 49320cc6832421ddffe9ef52adbcd97c2ab98807257aa914c6588b9b41a5105545c754fcb867d97d4704eb28adb3a7c1d6f71d8e1e0694edb819f63709bc748b
46 +DIST thunderbird-102.7.1-en-CA.xpi 653884 BLAKE2B 00b57e67fbb9cfaa51807bb6852361aa25e8c3001229a33362752dcca3324ecbf262bff004baab53fb809ac9a13575fcf8122c5db1a68bce20eeeb0a417a50ea SHA512 7b8474f83fe7cd3d688748ec962ee3af492c4e104e2e1954c022e2a1fe503a2233181a027789a7fb87b7bfd64a0e303ad46c55cf6131097a2c581fe33d485a77
47 +DIST thunderbird-102.7.1-en-GB.xpi 658145 BLAKE2B ef3100f472f909026576f8e5ef6953071f4f194c1636cc913bfed7d7e0188efb59cb88f92644f71d2af668e2674fcb89a31610c3ea13ed98f45b0c4e7b3db072 SHA512 d663645c64de389cef61773f42d2569a5aa99ce726d40c1a87c81bce5bb67d026ee80e0f2ac585cfbdef251adcaff9bf0eaf604c3563d979e6528fdc6b23af1b
48 +DIST thunderbird-102.7.1-es-AR.xpi 709826 BLAKE2B b26b32c68ca4d0ea4a90b447e3665e61b1577a066d4d37ce8b6f651aef7187a6549e008405f0b254f1fa3a3a1ed2cb42b6fea400e55da9b1cef1ce0c248bb100 SHA512 2058c3e3b692120e2f1d80e0306c94005af1058d5539312a63fd0ed094fcd07fa2f20e5a43d40e34cce60aebdcf2c602612a613485fc6b05ecaf6d1fa2460131
49 +DIST thunderbird-102.7.1-es-ES.xpi 665686 BLAKE2B dcaa97f0f2dc53cc806aa597e68397147d816058a34eea9b9135cf8753def5662b2337cb24e990e79db7789ed7a2824ff3ff8bed41a90154c91f75cd524bce96 SHA512 e4a58ccc2677dd6be9eb837a28df5526e144367fc5888fca40c32a414403f88128d0aa4776cde06a2f39215d8d1b8eeee6ff46091cf6b13e86eefdd226f08bfc
50 +DIST thunderbird-102.7.1-es-MX.xpi 713125 BLAKE2B af3a4c406859473b603634201e75833cea3677873c9b5a503300cd560439202817d4c8d342b2ee8e75b391c938be1097e17db0b133a11c2c61b1bb82ac6c901a SHA512 fee661f03bc42a74952ecaeb6c3ba41ff0feaacc92ce63e5413578efb77dcb61ce0246b5fd4e8a3cb86013f82debf47d8dff3893b6f12bd429709135cf6a5de2
51 +DIST thunderbird-102.7.1-et.xpi 671203 BLAKE2B 4685f0cafc3b3c1c7bb755d8d3a6e8379b35874dd5d3d5705564714fca8b654e4c34dbab7292f1bb1867e31910318cf2a7045b0142b6e82911ec94de414bf16d SHA512 61e44874fc3a21c82736a77d4bd5a21ede0d110ed3caf16eda267642aac680cb51d6c68de639da44c5ca1dfda5d5969ab0dc75636d5a1d53ebf92309d5c6196d
52 +DIST thunderbird-102.7.1-eu.xpi 690434 BLAKE2B 68b8e4b1d250d755fba328392550297454c611d34919c901747d81775da6af25a2ca82af3d9f9d3580b89c8197d3938fc1074acec61086fad510325630e74e80 SHA512 b3651e0f7ec6c873a837c95661f6103fa0a62452bd6530aa4f2defe77c4cf3092537f364f331f8dc5c74260031b3933f533b4c6bed755dd1ea7eaea8f2d3928e
53 +DIST thunderbird-102.7.1-fi.xpi 686665 BLAKE2B 9cf7e9a4efb336f213af9718589a48fbc64ddcac7c06e6878ec464885e9a437697f890661821de0ee48d51fd963be0412704abec1484569a57320a5eaf44c408 SHA512 00a51c971a62a404804dd370892d518eee42fac04c7431cf3576f21572a3b913ddebdf11bd191462c07ce802ca575afbc9806d40a7b77513d4bb582d5e5b3570
54 +DIST thunderbird-102.7.1-fr.xpi 722447 BLAKE2B 65c0cb06d1e82693a903ce923f8f2d78163d8135534a4ef175acec263b6932f471c8655bb5c963bce28acbc674bef7c094e3fcc8f68275c7b0eb7a8d4760a396 SHA512 238668c1a76dc61a1afafc841a50c4428275c4be2c6565de5b44e633062f282c364b9a4bb97be4ae5bb27ef213defc320516810e2fa51f435a88ee444667031f
55 +DIST thunderbird-102.7.1-fy-NL.xpi 704490 BLAKE2B 1f3669300faec5c4604a883888f5ba89883af379754865321c405e859980c2c4c9e132dcfe1e6ec840e2ff46799efc1b8b15d4b9b6111312ee979204fe0c72d4 SHA512 bf128f3402cf0b43dff2bfe2c978bf79173ad8309068f1fb48f4fed343235ad32d4e3179d96e45184e6a9f7df50474368aec3ffad2a6bea00e43bed644830873
56 +DIST thunderbird-102.7.1-ga-IE.xpi 609075 BLAKE2B 3a42bd5d1eb195bb1476aae4e9554fa86afcdf4e09969c481a4581461bc092d5840bb364fd43965c4e061274363cf12bfdfde68290d19c82b346dd6e139df9da SHA512 610bf3ada084ade74b98d4c3b80a9e3741ebd5fff28212ff9a37c1715fc41a578b3ba719b3fd25277a36308286c51a7086edde34505e3504cb1f47d9785f42d1
57 +DIST thunderbird-102.7.1-gd.xpi 637862 BLAKE2B 804f7ab159af5a46e2bf7196f8ecc02dde0e3e46dbf4ff96d2bad5dfe59e535febf4a08446f058d6404e61407cbdea5ee1ed900eea7e19f45bd0884efddd232c SHA512 69b85f47bd937b6f6a0b506cc313e6641fac2bdd02754246dc5e596c9e14969642a9148896850be6db03a529abea1f51e8db2128d970b34fd04ddd759ec0beda
58 +DIST thunderbird-102.7.1-gl.xpi 667567 BLAKE2B af06e4749e7cfc996fd75618117d0dc7e048922364052a39a6ff0b8f650508a68157d150b7d9a4b96cd265ad2257682dcfa08aff29ab26b1f97a1048c4571e1a SHA512 c32a5701386cb7ddb18e8ac3716d40fecdfbe9795c4e61520784cdbe8905571115c5728cde151ea7f5cf3092056e2660cb765a802ed96020c00a58916901c82f
59 +DIST thunderbird-102.7.1-he.xpi 670891 BLAKE2B 1980bd66979d1f91b7f1f6164984424928e0b41e240fcae041977974fb4921459fad5553e93ab60a35fb78207e1cfcabd51e6165283e8128b973b9a71cbca6a5 SHA512 9f75042f9ffbbabc7172ad81e5fc6299e2946b1c3ac37729b63a18ae046bfb8a6e7a32d86c421735cd91e5fd6552ba26caa44ea42c0a93c7d5d0b7cf7c0e32c2
60 +DIST thunderbird-102.7.1-hr.xpi 672487 BLAKE2B 5366ab9a1b0370115c57c347cc53ba54ad46cae3481c74465ca1fdf17b29ef33f1a29c15ecbc038f9ef2ff29b310bf9a0b6cb0dcdd0c338202a4fd62e5767cf8 SHA512 8bc1ef00426817a1fe48a5d0526d2afd22aab83af8c1381ddb94673bfbd07b0a3b1cb0edfeb3863fc66886481f8407a48d103ebff91c402732ac5445118ecc79
61 +DIST thunderbird-102.7.1-hsb.xpi 726137 BLAKE2B 14aebcbf03cd35dfcf0d75e742faa0e29f00ee92732a896a95a5f75a1e7b4f2461b5d8d8596de20bd4ca9610906630ec04739d4fde9d0d3752443936e4113cc8 SHA512 81df5fa672d97a3fa21356b08d4adc8ef33f34fcbe0d6b5dd25bfc65d7eaff91d92b94acb271ab8c4ad5635388129183634a7fab6dac599dca584b0be6fb6520
62 +DIST thunderbird-102.7.1-hu.xpi 733393 BLAKE2B 8754ae56864a3441512d7611fd0a34caa0b3f6eac4107529d1d82ef6cc88f81d6170489441373258c32bf628e89e5b1a46780dd4b184db2989273d226685d08d SHA512 d81741c82e327d8d8ffdc78fa2e332f75b7960d58df872aa230a42eef25ec79749cc9e4d0679d545b0bee86f261d82b627c1adc5acbba6ff812e65b1421d8075
63 +DIST thunderbird-102.7.1-id.xpi 647990 BLAKE2B 51430a869723cb3818f47cd6001a171eedf000ad1b89846c696896b0fc9d61f05a006af1df86f4c06113ea65bb641659f3d8a9c19a50bed0704ab475c099051d SHA512 731b114f85b8ed43c9abcc3628a81010a65b25beaedb1ef33f07d7b2e2b65163a5e44ac8d6f02ab447868edef2eae313f88de6ae84ce6f44612bac2d216eb32b
64 +DIST thunderbird-102.7.1-is.xpi 697730 BLAKE2B 4dc0add254309e208a34b5cca912ef1cb60a83da5fefa50ecf701863f4172ef21ee53c8bc85eaf673141ea2c28b739b3ba155bccc521242d646f75688ff86915 SHA512 33a95bd83d8724d47a6561ed618ded2e48fea7a0772b21962640f2d1547db46ffafb5214d2a1cd817469522a78b5edd6900fe6798dc302aa83577378257b23d4
65 +DIST thunderbird-102.7.1-it.xpi 630600 BLAKE2B 0e345b04ba3ab8823243d7a62f8a5f029587df44ed18adbf2a26b0f9f12ab07dfbdc2e39f63dddc034a844d5682458a1ae3879b0e1810a32402eb3910be67f12 SHA512 a3f820db547bffc03d711c09227600d368d6879b61297138cb7221a99db52f106f8fc8bb90d1a9b109af3355018563aa143fbf64257bceec23c7cf4bd602eb48
66 +DIST thunderbird-102.7.1-ja.xpi 772279 BLAKE2B e43e7eb4681ae2be3af0424581595757dba57d387b8c01b2267fe3f1295899dbe3a2a93b6b7ba519f8bfc4627798227678406a512490eaf5e5714f890c9dc701 SHA512 b65ebae477513d5518f99f60ad62939f43a2633965183b9ddbf05a6a6dfa4145bd1468b001a844f5e766a2c42b095e1e7b8badafd8f4016cc587da43f3b1d40d
67 +DIST thunderbird-102.7.1-ka.xpi 762401 BLAKE2B f7c2555661ea489e754397c9413dd20532d27fd5a3e14f964521ccd377b093dc9e7ba7582356df99bdc760cfd05b4c304c2812ceb90ba1502a9091740601a224 SHA512 7f096b90ffb95dd5991f2f1e8cc3223db492a29b18f52fe043391ceb41166ad9ff744735a9005c9738d15e42e22bfba4c78833508a084bb86812b676fae1a652
68 +DIST thunderbird-102.7.1-kab.xpi 697003 BLAKE2B 5739042ca1470f983098110f4f24f407a2810ca4f2985db9dfc6a2bb4786a80d85669b4ec786bb65d263ff35599abcabb971b2eda3c9d477e70fd2954e6d2136 SHA512 e98e731098ed3c5b0745b8a7e67d623d184a90d77d92ee24cfd4a7c5dec32a43a627393ed6cbcc30aff344fcebc44d6f96b4ee2c3fd9aa152a12ba3e650b004e
69 +DIST thunderbird-102.7.1-kk.xpi 803290 BLAKE2B b1af2f555ae4692ea5c679d2ab487ffdce4c49df6dd336a8d009287e1a42f960e7271e87af9662c4d0a90265a442b7d5b4cb0d6d62a78cf997daa5d507174823 SHA512 7a2311d748a9db46ae20d2837ea6bdfc3976908b2944d5f95944bb869b8c4fb959cb3ed3618ee704761dc93f525b3f59a8f3898f5e1732a45c45a8e64c55030e
70 +DIST thunderbird-102.7.1-ko.xpi 711251 BLAKE2B 95fd28e802818283c0160e5ec1c967f0bde153560fa9f8e918a898167bac07c128fa8dc26fdb58cbb5794f671264a73677fea40a995281da31193d9dc6bbbdd1 SHA512 f8e11b6aa8e247af4071eec77e7ddf1edd15b3d91d965a7e33f9151e985942b23f445c062aa6970f099fa1a10b5ed8673a291ddc9b83d889882c3c9d74285fd7
71 +DIST thunderbird-102.7.1-lt.xpi 685286 BLAKE2B 93f5a60883d1f6325741a9f8243c9b76bcdce3703caeead1cfced572b03d5716ff9d8efcfe42556deee6f939314515359104cdfaa0b51c872c89d2c9ee3009b9 SHA512 405d20a22e2f913a81dc2ab40baf13e659163ad8f03046b2ead93efddfad37c43bdbd2ba5978783f4d5c0c244e688d00833246b674ec1228bbeefbe81ab809ea
72 +DIST thunderbird-102.7.1-lv.xpi 613063 BLAKE2B 13a15e9b25fe60505dc839d4626d66d3b01609390614c3a9919e4ed9c6284478b434fe28febab58cfd239e68cc4f8e198606da514463e6544b1866ca201fd3ca SHA512 91d54bf1987a85b9df27d59e0e7f2d2cdef1fb94df5fb6c9e9bc16377554ef3918825b3ee7d09c30d6fcc775b4bde34b69faced2a5c7c1e8bd13bc68ab70e94c
73 +DIST thunderbird-102.7.1-ms.xpi 572473 BLAKE2B 51b040d1cd91957381b2da82554dd49c445b81ce48cc7d30f8c4d4ab0f18ab5cd39bd400e8dcd8dbda9f8c8ee49cb88c21a77397ab0032d388cc9f713f619f5d SHA512 7bc34283408e7ad0eb1aa4e6f4c749fd0e0795d4465fa9514e4dc88d9a7328e58a54151f49850e3142008e8218dabdf838e1324db450833b8713e564e38eb018
74 +DIST thunderbird-102.7.1-nb-NO.xpi 657394 BLAKE2B e5398fabc9381e9f165237de055d2bf965525e5b9153e337bc186a94fdaa74a1e9aed5379d28f4781cb1dd819896e03d8b04f7b496e39032ae87751ef81f0b41 SHA512 46a02b74365120366c868efa5533b248df860964496c6099640b888da45294400e6f8fb42676744d1a003bfc1099327b35fc7f2e5a9abd58f9a258201ca8f06b
75 +DIST thunderbird-102.7.1-nl.xpi 695941 BLAKE2B e1536bd55092cde5f7a7b180910c8840a060b088bb66815b040d2def94791cef5f43d362ba4010f8089a1d25e2bc312c95a2b837dfd9a49baece360fafaa2606 SHA512 8c7ac419a4c759f984105a0c48049f50c9c01c32b2b3efaff0e986804a7ac016c4676db26ef7ea3df6add57d1256bbef8cf0621933485153562fa7b7a2defd87
76 +DIST thunderbird-102.7.1-nn-NO.xpi 666409 BLAKE2B dd889ca6c7becde41e6c3de7dee1e3a1d19210516d2af5586bb732b7b380ace26963af9609ea7f8c07bd689042325be777d1e04c060f307f88991d60ab79cef1 SHA512 fbc94e960ef3fab0779c5a22d33cf09fd8d7e358acbdae1d1e78df355899bd657b3b9b6a6981b3b7aaa07c5e57e8c84d0c88982440aa25067a217e2d4e5c7165
77 +DIST thunderbird-102.7.1-pa-IN.xpi 663855 BLAKE2B 6e6c084ca4802c46aefeba794d3ba17b2f7d99dafe3b66d39821097c81ce1b427f96e6099992e7d2b6fea92adab7c927971ca436c68b8abb1715d32ac704e35a SHA512 166c409b077b92a956a8b0e6d55fc479501d8439913dc4fd53db43f6bdce6732b6ac3dff009192e3366b792cd3401896107e0a050631bd367e2bdb70b3beb734
78 +DIST thunderbird-102.7.1-pl.xpi 710774 BLAKE2B 9015ca7b05344d0cf9794977dd3eab7fcde71c0599ec41022c67b580f1b2ff42a0d0501f618403c14dc43f1b64f031a71aadf54e7fa13a567ee16c4e59e4334a SHA512 a7805529eedb2783cf3d9f43b6a50e573446be027a8077a6e22e4dc37715442275baa4d959da3504fe8704e371d3ae80a1fd68b1e357bd0a68a4e18ac7205e27
79 +DIST thunderbird-102.7.1-pt-BR.xpi 703703 BLAKE2B 8005768a5fa080db03629f388395d5397b07d1ec1f9ca5c4e58660ee777bb2d783594f3327f2e3577a444c4dede543c27130532a38c860167bb466b7ef44d2e1 SHA512 4b6c316dc0e5f2084ee353c5355565b766e06f2c624fe6f4ddd2cf03f4a06aa3170a8727652cbc09eb759f4a80eb67abc6468502e53644a13bf7e92ab9225be2
80 +DIST thunderbird-102.7.1-pt-PT.xpi 681585 BLAKE2B 2fe100f613a885cc500b0dd7edb0b26e2e158e30e6bb54c2789f1dd4923db83496f279619334a33243f7d056f3a30214e27de95eb58a587f1187a8e08012a506 SHA512 f1c589111a85a037faf10a40938e2d2462ac356adf59808fc9032f00cf90d330119ce94dc3a2d55d8bd9da704748728a8c5a78fa384a037332a13f3dbb7be5bc
81 +DIST thunderbird-102.7.1-rm.xpi 696294 BLAKE2B 6fa8e6c5e12834f6edd981630866a3fa04f97adad65d17544458c3730fcd9631f22e3d8acf8452974f1d6fa84d7491e1e782df448d1a8f1b3c38ada112aa7411 SHA512 2a06149f323f06919f5c5604e0b48aa893cb493b8eb2759f5c1ee09c66b5a1bd1f2cf01e8979bb5637faf51a554a392ae22a55bb0f1ce542fa3ee19e373a23a9
82 +DIST thunderbird-102.7.1-ro.xpi 655840 BLAKE2B ae1f05bf201dbd2adeacc70bf113d6a823d90f8786c9c4b0e8d65a441210c24dc36620247af73e3c6b0412810720944deae9c51f6dd03895aed008e1e8c9b1b5 SHA512 3b63648f788d9b2cc24b9880e7e5696ab8412a5082486d066396803d12abc4faec9c9362eae73d2af7e5e7999f0e22997cbe201095899b5bdd73e0b2d12cfa98
83 +DIST thunderbird-102.7.1-ru.xpi 817610 BLAKE2B cbce37a606c00a910a9c6abd44c70698e230bf8f732cffbcb07dc4f5fb6861cd044561e4ac29e7142a7291da731f9ef311f643aa1b550c41f42b6f6f68ab8f82 SHA512 3a32e0790de457d42b84a4685229daed81a39b207dfc568df0d036a82c56bcaf17eb7385d76a298783e3fcc198bc92f5b1c401c5e1e04a6678250c3a54032285
84 +DIST thunderbird-102.7.1-sk.xpi 733054 BLAKE2B 805815f51e50570c061fca7eff34ddc39601f5708950a25a3c442e74f5bfb3196c3e51452c2a1a7eb2ef1bda2ee6f8484815816ad9ab3b1619962db39353e0d3 SHA512 5d8c60c70a1572fc80d19696df8263c00a931c6387205a4cd661db73c3c7e0628ac77ce3bc90cf95ec1caf24a20f5db0d781336bf314b7e8952036fb210902e3
85 +DIST thunderbird-102.7.1-sl.xpi 696584 BLAKE2B 1170ad940deee6ba67a112c28fefc195a23f6d39994f7b5a81d31945bf83a15b54fe343916831b7f75a5ad226c3621c236c08cdd3e0c7e106e040b80b846c9a1 SHA512 0add968d754bca6ce2e0611641c558f8d975521db15dc38e948620633d7521c40209dee4e3f41ab023f50bc6724790497cc13d00e2b2704d0692969df63b2805
86 +DIST thunderbird-102.7.1-sq.xpi 719058 BLAKE2B 27ee0ad6bac6cfcf838b576b05e776e999e18c2bee8c7d4f0078ea41b2bd6cf3a573038ce54a322dd1d46d28affd6833fa80c088286a0a9c866dcb731e40e256 SHA512 d5f1659d9abc243bdc45882e54b63bed06d2d4e30db3765b1b6423539d9aea8715a3ddd81be9c41a1ca9a1d29e31a6c64dd570176c5a2a4770cb3cf6c53ff5ac
87 +DIST thunderbird-102.7.1-sr.xpi 714371 BLAKE2B 4a29ddc1348ad08633a1f77ca4f25a5fd5ae62e51d0a2c5d6505ce3ef15965d19a2c26bb60d2fb7a3104a1c0b9b020a8c58371b9871b19b327c9db441230b2b1 SHA512 181d639e56671e65e48ebacfe238a0af5a9fad6fb52559342a066f06e4415d3d185e8d7fde1f5b0adda6c1ae4683d15ac7612f4ea93a00bb28af13772991f53b
88 +DIST thunderbird-102.7.1-sv-SE.xpi 699491 BLAKE2B 840825e7f4f5bb7b5026197a2e6e7a87678f413a061509a304809a9c781860814c474ffea81efd734d34824f5529cbc7b0b34044672538a7ffbc15d50c402a25 SHA512 63e0125d0f9e42414b19fb6785c915a1e3b14f8f191218dd7670db524a584181c95160287fb0496c2ff2274851912674f70260dd997f88463dba7974468961a3
89 +DIST thunderbird-102.7.1-th.xpi 747757 BLAKE2B 96bd431c9cdf9f52b6fe754976b3a609515cb08394d481dbb4e8b118f57793dfb12f7b9ac7794edf0863e53bc5943b24d0ad8d0df88623ab0a79cb5ce42c4ab6 SHA512 2fba6ffcf8998455eda8dedccceccd2fc927d40e7ceb30526342dabce98f0400631d98bc5fcc9c825e0593ce6f09a012f64a118b9a8c89cd765ece50fd474125
90 +DIST thunderbird-102.7.1-tr.xpi 711569 BLAKE2B 655d4e5f90290a08c57281544be75cbee4564bfafc3f1e04962ae5045ae66a2758bc32be979b61dd8f50e496a44002369dafcc47e0e722a80d3ba7265be3f345 SHA512 a78e978db04bdf4355393ff9dd9261944d819664955f8e95c012dfc90e6c2a65d5988666abd56b6c5ef966949593e5d4ebfca537485cf903b92ed34c8d72b69e
91 +DIST thunderbird-102.7.1-uk.xpi 810003 BLAKE2B 5fa2b7c711909c0a589aac42ec739c968f15d13724d48df87be7db091ffbd3cead77963bce01ddd0d4e5dbef608420807ac6c7da5f677d5ba05eca7f5c1cf8bc SHA512 f29b04676731182b73ddf83340d07cb7407f0cc7c224077f202ca3844c0c1a7c569f655853949f41ee564ae104f4bac849111c97c734830fc892e0d57b00cd29
92 +DIST thunderbird-102.7.1-uz.xpi 588363 BLAKE2B 36881958d82170d4e182655941156372bb43b367d59418710f8213d487bcffc0a21184125416e313ac5fa32da763448c7429d222315b824c7f5a1d86496bb46e SHA512 6093cd2bb8821dc90881fcd1913c2910e9a559665cab0970ec85010b4b0e3cd9ffa8509d77099599debdca65d050713a91a1e6b85e0323b88293bd431105192b
93 +DIST thunderbird-102.7.1-vi.xpi 738978 BLAKE2B c44f193336b691d73caceafc366442d2cedfc590bc540c7221cf8fd9564b46fceca6476e226fb4d040249f3a3b51b26cb5bc9ac21129518bd3f7fab7120bf43e SHA512 e524549754df3ea4a8052430bba789f2b9fefff72bbfd4f735cda474e75fdfcab2a3a0e35cb409cd19db0b1e49fdf05d872ca9c6a16247948d07eb05b7da9ef7
94 +DIST thunderbird-102.7.1-zh-CN.xpi 732012 BLAKE2B 39e00232d686f96c86d0ac1103be28f9205c2b73528a433467d6501ccea1a6cb2a7a87e12ff5abaeabb38d8311b6d4d5186e427fb64077e79404d41332ee0d14 SHA512 15a088bbc69186223870889b9333d286868d492f1b3efbe06eeba8f7b15e20ddfe77188a9efa85423497a1de4df22ebe9065a4315cfbe1b1b179e27687885747
95 +DIST thunderbird-102.7.1-zh-TW.xpi 740543 BLAKE2B 90b2bd25e42646b9e1de30ee72702237dc56901faf40cb20713519f4a01f614341545df80b873e7d565f53b1385b5c6e77bfbb546d3cdfce5dcfb5919ddf2234 SHA512 b1983f73590fbd4313ac8499dd3fb418a35e6080e6199dcc254baeb4aef97c3a98904337959b05bf8bcb5732ba9a7f14066f6da69aafdc9777210341c20315ae
96 +DIST thunderbird-102.7.1.source.tar.xz 510875912 BLAKE2B f28db27f7262f33862fd15622ff6e66599d9cab393d88952c25d4d81533cb2e7c6fdc4c9567f1c6304d98359b0cd732201587c2f6c8ae5b7599ef5d15cfb4f32 SHA512 6310f3f122a1a61917ec2d0efe3a031b199ac13681e9fb4035abc0f4de0dbafb12accffbd63facb23f2cebf0124a13f7538a33176a2a513d1f685bee40db50ba
97
98 diff --git a/mail-client/thunderbird/thunderbird-102.7.1.ebuild b/mail-client/thunderbird/thunderbird-102.7.1.ebuild
99 new file mode 100644
100 index 000000000000..6118b6e06023
101 --- /dev/null
102 +++ b/mail-client/thunderbird/thunderbird-102.7.1.ebuild
103 @@ -0,0 +1,1172 @@
104 +# Copyright 1999-2023 Gentoo Authors
105 +# Distributed under the terms of the GNU General Public License v2
106 +
107 +EAPI=8
108 +
109 +FIREFOX_PATCHSET="firefox-102esr-patches-08j.tar.xz"
110 +
111 +LLVM_MAX_SLOT=15
112 +
113 +PYTHON_COMPAT=( python3_{9..11} )
114 +PYTHON_REQ_USE="ncurses,sqlite,ssl"
115 +
116 +WANT_AUTOCONF="2.1"
117 +
118 +VIRTUALX_REQUIRED="pgo"
119 +
120 +MOZ_ESR=
121 +
122 +MOZ_PV=${PV}
123 +MOZ_PV_SUFFIX=
124 +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
125 + MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
126 +
127 + # Convert the ebuild version to the upstream Mozilla version
128 + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
129 + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
130 + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
131 +fi
132 +
133 +if [[ -n ${MOZ_ESR} ]] ; then
134 + # ESR releases have slightly different version numbers
135 + MOZ_PV="${MOZ_PV}esr"
136 +fi
137 +
138 +MOZ_PN="${PN%-bin}"
139 +MOZ_P="${MOZ_PN}-${MOZ_PV}"
140 +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
141 +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
142 +
143 +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
144 + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
145 + virtualx xdg
146 +
147 +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
148 +
149 +if [[ ${PV} == *_rc* ]] ; then
150 + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
151 +fi
152 +
153 +PATCH_URIS=(
154 + https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET}
155 +)
156 +
157 +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
158 + ${PATCH_URIS[@]}"
159 +
160 +DESCRIPTION="Thunderbird Mail Client"
161 +HOMEPAGE="https://www.thunderbird.net/"
162 +
163 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
164 +
165 +SLOT="0"
166 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
167 +
168 +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
169 +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
170 +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
171 +IUSE+=" wayland wifi"
172 +
173 +# Thunderbird-only USE flags.
174 +IUSE+=" +system-librnp"
175 +
176 +REQUIRED_USE="debug? ( !system-av1 )
177 + pgo? ( lto )
178 + wayland? ( dbus )
179 + wifi? ( dbus )"
180 +
181 +# Thunderbird-only dependencies.
182 +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
183 + selinux? ( sec-policy/selinux-thunderbird )
184 + !system-librnp? ( dev-libs/jsoncpp )
185 + system-librnp? ( dev-util/librnp )"
186 +BDEPEND="${PYTHON_DEPS}
187 + || (
188 + (
189 + sys-devel/clang:15
190 + sys-devel/llvm:15
191 + clang? (
192 + sys-devel/lld:15
193 + virtual/rust:0/llvm-15
194 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] )
195 + )
196 + )
197 + (
198 + sys-devel/clang:14
199 + sys-devel/llvm:14
200 + clang? (
201 + sys-devel/lld:14
202 + virtual/rust:0/llvm-14
203 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
204 + )
205 + )
206 + )
207 + !clang? ( virtual/rust )
208 + app-arch/unzip
209 + app-arch/zip
210 + >=dev-util/cbindgen-0.24.3
211 + net-libs/nodejs
212 + virtual/pkgconfig
213 + amd64? ( >=dev-lang/nasm-2.14 )
214 + x86? ( >=dev-lang/nasm-2.14 )"
215 +
216 +COMMON_DEPEND="${TB_ONLY_DEPEND}
217 + >=app-accessibility/at-spi2-core-2.46.0:2
218 + dev-libs/expat
219 + dev-libs/glib:2
220 + dev-libs/libffi:=
221 + >=dev-libs/nss-3.79.2
222 + >=dev-libs/nspr-4.34
223 + media-libs/alsa-lib
224 + media-libs/fontconfig
225 + media-libs/freetype
226 + media-libs/mesa
227 + media-video/ffmpeg
228 + sys-libs/zlib
229 + virtual/freedesktop-icon-theme
230 + virtual/opengl
231 + x11-libs/cairo[X]
232 + x11-libs/gdk-pixbuf
233 + x11-libs/gtk+:3[X]
234 + x11-libs/libX11
235 + x11-libs/libXcomposite
236 + x11-libs/libXdamage
237 + x11-libs/libXext
238 + x11-libs/libXfixes
239 + x11-libs/libXrandr
240 + x11-libs/libXtst
241 + x11-libs/libxcb:=
242 + x11-libs/libxkbcommon[X]
243 + x11-libs/pango
244 + x11-libs/pixman
245 + dbus? (
246 + dev-libs/dbus-glib
247 + sys-apps/dbus
248 + )
249 + jack? ( virtual/jack )
250 + libproxy? ( net-libs/libproxy )
251 + pulseaudio? (
252 + || (
253 + media-libs/libpulse
254 + >=media-sound/apulse-0.1.12-r4[sdk]
255 + )
256 + )
257 + sndio? ( >=media-sound/sndio-1.8.0-r1 )
258 + system-av1? (
259 + >=media-libs/dav1d-1.0.0:=
260 + >=media-libs/libaom-1.0.0:=
261 + )
262 + system-harfbuzz? (
263 + >=media-gfx/graphite2-1.3.13
264 + >=media-libs/harfbuzz-2.8.1:0=
265 + )
266 + system-icu? ( >=dev-libs/icu-71.1:= )
267 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
268 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
269 + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
270 + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
271 + system-webp? ( >=media-libs/libwebp-1.1.0:0= )
272 + wayland? (
273 + x11-libs/gtk+:3[wayland]
274 + x11-libs/libdrm
275 + x11-libs/libxkbcommon[wayland]
276 + )
277 + wifi? (
278 + kernel_linux? (
279 + dev-libs/dbus-glib
280 + net-misc/networkmanager
281 + sys-apps/dbus
282 + )
283 + )"
284 +
285 +RDEPEND="${COMMON_DEPEND}
286 + jack? ( virtual/jack )
287 + openh264? ( media-libs/openh264:*[plugin] )"
288 +
289 +DEPEND="${COMMON_DEPEND}
290 + x11-base/xorg-proto
291 + x11-libs/libICE
292 + x11-libs/libSM"
293 +
294 +S="${WORKDIR}/${PN}-${PV%_*}"
295 +
296 +llvm_check_deps() {
297 + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
298 + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
299 + return 1
300 + fi
301 +
302 + if use clang ; then
303 + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
304 + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
305 + return 1
306 + fi
307 +
308 + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
309 + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
310 + return 1
311 + fi
312 +
313 + if use pgo ; then
314 + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
315 + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
316 + return 1
317 + fi
318 + fi
319 + fi
320 +
321 + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
322 +}
323 +
324 +MOZ_LANGS=(
325 + af ar ast be bg br ca cak cs cy da de dsb
326 + el en-CA en-GB en-US es-AR es-ES es-MX et eu
327 + fi fr fy-NL ga-IE gd gl he hr hsb hu
328 + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
329 + pa-IN pl pt-BR pt-PT rm ro ru
330 + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
331 +)
332 +
333 +mozilla_set_globals() {
334 + # https://bugs.gentoo.org/587334
335 + local MOZ_TOO_REGIONALIZED_FOR_L10N=(
336 + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
337 + )
338 +
339 + local lang xflag
340 + for lang in "${MOZ_LANGS[@]}" ; do
341 + # en and en_US are handled internally
342 + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
343 + continue
344 + fi
345 +
346 + # strip region subtag if $lang is in the list
347 + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
348 + xflag=${lang%%-*}
349 + else
350 + xflag=${lang}
351 + fi
352 +
353 + SRC_URI+=" l10n_${xflag/[_@]/-}? ("
354 + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
355 + SRC_URI+=" )"
356 + IUSE+=" l10n_${xflag/[_@]/-}"
357 + done
358 +}
359 +mozilla_set_globals
360 +
361 +moz_clear_vendor_checksums() {
362 + debug-print-function ${FUNCNAME} "$@"
363 +
364 + if [[ ${#} -ne 1 ]] ; then
365 + die "${FUNCNAME} requires exact one argument"
366 + fi
367 +
368 + einfo "Clearing cargo checksums for ${1} ..."
369 +
370 + sed -i \
371 + -e 's/\("files":{\)[^}]*/\1/' \
372 + "${S}"/third_party/rust/${1}/.cargo-checksum.json \
373 + || die
374 +}
375 +
376 +moz_install_xpi() {
377 + debug-print-function ${FUNCNAME} "$@"
378 +
379 + if [[ ${#} -lt 2 ]] ; then
380 + die "${FUNCNAME} requires at least two arguments"
381 + fi
382 +
383 + local DESTDIR=${1}
384 + shift
385 +
386 + insinto "${DESTDIR}"
387 +
388 + local emid xpi_file xpi_tmp_dir
389 + for xpi_file in "${@}" ; do
390 + emid=
391 + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
392 +
393 + # Unpack XPI
394 + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
395 +
396 + # Determine extension ID
397 + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
398 + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
399 + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
400 + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
401 + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
402 + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
403 + else
404 + die "failed to determine extension id"
405 + fi
406 +
407 + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
408 + newins "${xpi_file}" "${emid}.xpi"
409 + done
410 +}
411 +
412 +mozconfig_add_options_ac() {
413 + debug-print-function ${FUNCNAME} "$@"
414 +
415 + if [[ ${#} -lt 2 ]] ; then
416 + die "${FUNCNAME} requires at least two arguments"
417 + fi
418 +
419 + local reason=${1}
420 + shift
421 +
422 + local option
423 + for option in ${@} ; do
424 + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
425 + done
426 +}
427 +
428 +mozconfig_add_options_mk() {
429 + debug-print-function ${FUNCNAME} "$@"
430 +
431 + if [[ ${#} -lt 2 ]] ; then
432 + die "${FUNCNAME} requires at least two arguments"
433 + fi
434 +
435 + local reason=${1}
436 + shift
437 +
438 + local option
439 + for option in ${@} ; do
440 + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
441 + done
442 +}
443 +
444 +mozconfig_use_enable() {
445 + debug-print-function ${FUNCNAME} "$@"
446 +
447 + if [[ ${#} -lt 1 ]] ; then
448 + die "${FUNCNAME} requires at least one arguments"
449 + fi
450 +
451 + local flag=$(use_enable "${@}")
452 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
453 +}
454 +
455 +mozconfig_use_with() {
456 + debug-print-function ${FUNCNAME} "$@"
457 +
458 + if [[ ${#} -lt 1 ]] ; then
459 + die "${FUNCNAME} requires at least one arguments"
460 + fi
461 +
462 + local flag=$(use_with "${@}")
463 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
464 +}
465 +
466 +pkg_pretend() {
467 + if [[ ${MERGE_TYPE} != binary ]] ; then
468 + if use pgo ; then
469 + if ! has usersandbox $FEATURES ; then
470 + die "You must enable usersandbox as X server can not run as root!"
471 + fi
472 + fi
473 +
474 + # Ensure we have enough disk space to compile
475 + if use pgo || use lto || use debug ; then
476 + CHECKREQS_DISK_BUILD="13500M"
477 + else
478 + CHECKREQS_DISK_BUILD="6600M"
479 + fi
480 +
481 + check-reqs_pkg_pretend
482 + fi
483 +}
484 +
485 +pkg_setup() {
486 + if [[ ${MERGE_TYPE} != binary ]] ; then
487 + if use pgo ; then
488 + if ! has userpriv ${FEATURES} ; then
489 + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
490 + fi
491 + fi
492 +
493 + # Ensure we have enough disk space to compile
494 + if use pgo || use lto || use debug ; then
495 + CHECKREQS_DISK_BUILD="13500M"
496 + else
497 + CHECKREQS_DISK_BUILD="6400M"
498 + fi
499 +
500 + check-reqs_pkg_setup
501 +
502 + llvm_pkg_setup
503 +
504 + if use clang && use lto ; then
505 + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
506 + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
507 + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
508 +
509 + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
510 + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
511 + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
512 +
513 + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
514 + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
515 + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
516 + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
517 + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
518 + eerror " - Build ${CATEGORY}/${PN} without USE=lto"
519 + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
520 + eerror " llvm/clang/lld/rust chain depending on your @world updates)"
521 + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
522 + fi
523 + fi
524 +
525 + python-any-r1_pkg_setup
526 +
527 + # Avoid PGO profiling problems due to enviroment leakage
528 + # These should *always* be cleaned up anyway
529 + unset \
530 + DBUS_SESSION_BUS_ADDRESS \
531 + DISPLAY \
532 + ORBIT_SOCKETDIR \
533 + SESSION_MANAGER \
534 + XAUTHORITY \
535 + XDG_CACHE_HOME \
536 + XDG_SESSION_COOKIE
537 +
538 + # Build system is using /proc/self/oom_score_adj, bug #604394
539 + addpredict /proc/self/oom_score_adj
540 +
541 + if use pgo ; then
542 + # Allow access to GPU during PGO run
543 + local ati_cards mesa_cards nvidia_cards render_cards
544 + shopt -s nullglob
545 +
546 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
547 + if [[ -n "${ati_cards}" ]] ; then
548 + addpredict "${ati_cards}"
549 + fi
550 +
551 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
552 + if [[ -n "${mesa_cards}" ]] ; then
553 + addpredict "${mesa_cards}"
554 + fi
555 +
556 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
557 + if [[ -n "${nvidia_cards}" ]] ; then
558 + addpredict "${nvidia_cards}"
559 + fi
560 +
561 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
562 + if [[ -n "${render_cards}" ]] ; then
563 + addpredict "${render_cards}"
564 + fi
565 +
566 + shopt -u nullglob
567 + fi
568 +
569 + if ! mountpoint -q /dev/shm ; then
570 + # If /dev/shm is not available, configure is known to fail with
571 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
572 + ewarn "/dev/shm is not mounted -- expect build failures!"
573 + fi
574 +
575 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
576 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
577 + # get your own set of keys.
578 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
579 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
580 + fi
581 +
582 + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
583 + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
584 + fi
585 +
586 + # Mozilla API keys (see https://location.services.mozilla.com/api)
587 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
588 + # get your own set of keys.
589 + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
590 + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
591 + fi
592 +
593 + # Ensure we use C locale when building, bug #746215
594 + export LC_ALL=C
595 + fi
596 +}
597 +
598 +src_unpack() {
599 + local _lp_dir="${WORKDIR}/language_packs"
600 + local _src_file
601 +
602 + if [[ ! -d "${_lp_dir}" ]] ; then
603 + mkdir "${_lp_dir}" || die
604 + fi
605 +
606 + for _src_file in ${A} ; do
607 + if [[ ${_src_file} == *.xpi ]]; then
608 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
609 + else
610 + unpack ${_src_file}
611 + fi
612 + done
613 +}
614 +
615 +src_prepare() {
616 + if use lto; then
617 + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
618 + fi
619 +
620 + eapply "${WORKDIR}/firefox-patches"
621 +
622 + # Allow user to apply any additional patches without modifing ebuild
623 + eapply_user
624 +
625 + # Make cargo respect MAKEOPTS
626 + export CARGO_BUILD_JOBS="$(makeopts_jobs)"
627 +
628 + # Make LTO respect MAKEOPTS
629 + sed -i \
630 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
631 + "${S}"/build/moz.configure/lto-pgo.configure \
632 + || die "sed failed to set num_cores"
633 +
634 + # Make ICU respect MAKEOPTS
635 + sed -i \
636 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
637 + "${S}"/intl/icu_sources_data.py \
638 + || die "sed failed to set num_cores"
639 +
640 + # sed-in toolchain prefix
641 + sed -i \
642 + -e "s/objdump/${CHOST}-objdump/" \
643 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
644 + || die "sed failed to set toolchain prefix"
645 +
646 + sed -i \
647 + -e 's/ccache_stats = None/return None/' \
648 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
649 + || die "sed failed to disable ccache stats call"
650 +
651 + einfo "Removing pre-built binaries ..."
652 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
653 +
654 + # Clearing crate checksums where we have applied patches
655 + moz_clear_vendor_checksums bindgen
656 +
657 + # Create build dir
658 + BUILD_DIR="${WORKDIR}/${PN}_build"
659 + mkdir -p "${BUILD_DIR}" || die
660 +
661 + # Write API keys to disk
662 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
663 + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
664 + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
665 +
666 + xdg_environment_reset
667 +}
668 +
669 +src_configure() {
670 + # Show flags set at the beginning
671 + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
672 + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
673 + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
674 + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
675 + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
676 +
677 + local have_switched_compiler=
678 + if use clang; then
679 + # Force clang
680 + einfo "Enforcing the use of clang due to USE=clang ..."
681 + if tc-is-gcc; then
682 + have_switched_compiler=yes
683 + fi
684 + AR=llvm-ar
685 + CC=${CHOST}-clang
686 + CXX=${CHOST}-clang++
687 + NM=llvm-nm
688 + RANLIB=llvm-ranlib
689 + elif ! use clang && ! tc-is-gcc ; then
690 + # Force gcc
691 + have_switched_compiler=yes
692 + einfo "Enforcing the use of gcc due to USE=-clang ..."
693 + AR=gcc-ar
694 + CC=${CHOST}-gcc
695 + CXX=${CHOST}-g++
696 + NM=gcc-nm
697 + RANLIB=gcc-ranlib
698 + fi
699 +
700 + if [[ -n "${have_switched_compiler}" ]] ; then
701 + # Because we switched active compiler we have to ensure
702 + # that no unsupported flags are set
703 + strip-unsupported-flags
704 + fi
705 +
706 + # Ensure we use correct toolchain
707 + export HOST_CC="$(tc-getBUILD_CC)"
708 + export HOST_CXX="$(tc-getBUILD_CXX)"
709 + export AS="$(tc-getCC) -c"
710 + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
711 +
712 + # Pass the correct toolchain paths through cbindgen
713 + if tc-is-cross-compiler ; then
714 + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
715 + fi
716 +
717 + # Set MOZILLA_FIVE_HOME
718 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
719 +
720 + # python/mach/mach/mixin/process.py fails to detect SHELL
721 + export SHELL="${EPREFIX}/bin/bash"
722 +
723 + # Set state path
724 + export MOZBUILD_STATE_PATH="${BUILD_DIR}"
725 +
726 + # Set MOZCONFIG
727 + export MOZCONFIG="${S}/.mozconfig"
728 +
729 + # Initialize MOZCONFIG
730 + mozconfig_add_options_ac '' --enable-application=comm/mail
731 +
732 + # Set Gentoo defaults
733 + export MOZILLA_OFFICIAL=1
734 +
735 + mozconfig_add_options_ac 'Gentoo default' \
736 + --allow-addon-sideload \
737 + --disable-cargo-incremental \
738 + --disable-crashreporter \
739 + --disable-gpsd \
740 + --disable-install-strip \
741 + --disable-parental-controls \
742 + --disable-strip \
743 + --disable-updater \
744 + --enable-js-shell \
745 + --enable-negotiateauth \
746 + --enable-new-pass-manager \
747 + --enable-official-branding \
748 + --enable-release \
749 + --enable-system-ffi \
750 + --enable-system-pixman \
751 + --host="${CBUILD:-${CHOST}}" \
752 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
753 + --prefix="${EPREFIX}/usr" \
754 + --target="${CHOST}" \
755 + --without-ccache \
756 + --without-wasm-sandboxed-libraries \
757 + --with-intl-api \
758 + --with-libclang-path="$(llvm-config --libdir)" \
759 + --with-system-nspr \
760 + --with-system-nss \
761 + --with-system-zlib \
762 + --with-toolchain-prefix="${CHOST}-" \
763 + --with-unsigned-addon-scopes=app,system \
764 + --x-includes="${ESYSROOT}/usr/include" \
765 + --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
766 +
767 + # Set update channel
768 + local update_channel=release
769 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
770 + mozconfig_add_options_ac '' --update-channel=${update_channel}
771 +
772 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
773 + mozconfig_add_options_ac '' --enable-rust-simd
774 + fi
775 +
776 + # For future keywording: This is currently (97.0) only supported on:
777 + # amd64, arm, arm64 & x86.
778 + # Might want to flip the logic around if Firefox is to support more arches.
779 + if use ppc64; then
780 + mozconfig_add_options_ac '' --disable-sandbox
781 + else
782 + mozconfig_add_options_ac '' --enable-sandbox
783 + fi
784 +
785 + if [[ -s "${S}/api-google.key" ]] ; then
786 + local key_origin="Gentoo default"
787 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
788 + key_origin="User value"
789 + fi
790 +
791 + mozconfig_add_options_ac "${key_origin}" \
792 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
793 + else
794 + einfo "Building without Google API key ..."
795 + fi
796 +
797 + if [[ -s "${S}/api-location.key" ]] ; then
798 + local key_origin="Gentoo default"
799 + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
800 + key_origin="User value"
801 + fi
802 +
803 + mozconfig_add_options_ac "${key_origin}" \
804 + --with-google-location-service-api-keyfile="${S}/api-location.key"
805 + else
806 + einfo "Building without Location API key ..."
807 + fi
808 +
809 + if [[ -s "${S}/api-mozilla.key" ]] ; then
810 + local key_origin="Gentoo default"
811 + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
812 + key_origin="User value"
813 + fi
814 +
815 + mozconfig_add_options_ac "${key_origin}" \
816 + --with-mozilla-api-keyfile="${S}/api-mozilla.key"
817 + else
818 + einfo "Building without Mozilla API key ..."
819 + fi
820 +
821 + mozconfig_use_with system-av1
822 + mozconfig_use_with system-harfbuzz
823 + mozconfig_use_with system-harfbuzz system-graphite2
824 + mozconfig_use_with system-icu
825 + mozconfig_use_with system-jpeg
826 + mozconfig_use_with system-libevent
827 + mozconfig_use_with system-libvpx
828 + mozconfig_use_with system-png
829 + mozconfig_use_with system-webp
830 +
831 + if use system-librnp; then
832 + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
833 + mozconfig_use_with system-librnp
834 + fi
835 +
836 + mozconfig_use_enable dbus
837 + mozconfig_use_enable libproxy
838 +
839 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
840 +
841 + if use hardened ; then
842 + mozconfig_add_options_ac "+hardened" --enable-hardening
843 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
844 + fi
845 +
846 + local myaudiobackends=""
847 + use jack && myaudiobackends+="jack,"
848 + use sndio && myaudiobackends+="sndio,"
849 + use pulseaudio && myaudiobackends+="pulseaudio,"
850 + ! use pulseaudio && myaudiobackends+="alsa,"
851 +
852 + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
853 +
854 + mozconfig_use_enable wifi necko-wifi
855 +
856 + if use wayland ; then
857 + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
858 + else
859 + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
860 + fi
861 +
862 + if use lto ; then
863 + if use clang ; then
864 + # Upstream only supports lld when using clang
865 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
866 +
867 + mozconfig_add_options_ac '+lto' --enable-lto=cross
868 +
869 + else
870 + # ThinLTO is currently broken, see bmo#1644409
871 + mozconfig_add_options_ac '+lto' --enable-lto=full
872 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
873 + fi
874 +
875 + if use pgo ; then
876 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
877 +
878 + if use clang ; then
879 + # Used in build/pgo/profileserver.py
880 + export LLVM_PROFDATA="llvm-profdata"
881 + fi
882 + fi
883 + else
884 + # Avoid auto-magic on linker
885 + if use clang ; then
886 + # This is upstream's default
887 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
888 + else
889 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
890 + fi
891 + fi
892 +
893 + # LTO flag was handled via configure
894 + filter-flags '-flto*'
895 +
896 + mozconfig_use_enable debug
897 + if use debug ; then
898 + mozconfig_add_options_ac '+debug' --disable-optimize
899 + else
900 + if is-flag '-g*' ; then
901 + if use clang ; then
902 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
903 + else
904 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
905 + fi
906 + else
907 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
908 + fi
909 +
910 + if is-flag '-O0' ; then
911 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
912 + elif is-flag '-O4' ; then
913 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
914 + elif is-flag '-O3' ; then
915 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
916 + elif is-flag '-O1' ; then
917 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
918 + elif is-flag '-Os' ; then
919 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
920 + else
921 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
922 + fi
923 + fi
924 +
925 + # Debug flag was handled via configure
926 + filter-flags '-g*'
927 +
928 + # Optimization flag was handled via configure
929 + filter-flags '-O*'
930 +
931 + # Modifications to better support ARM, bug #553364
932 + if use cpu_flags_arm_neon ; then
933 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
934 +
935 + if ! tc-is-clang ; then
936 + # thumb options aren't supported when using clang, bug 666966
937 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
938 + --with-thumb=yes \
939 + --with-thumb-interwork=no
940 + fi
941 + fi
942 +
943 + if [[ ${CHOST} == armv*h* ]] ; then
944 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
945 +
946 + if ! use system-libvpx ; then
947 + sed -i \
948 + -e "s|softfp|hard|" \
949 + "${S}"/media/libvpx/moz.build \
950 + || die
951 + fi
952 + fi
953 +
954 + if use clang ; then
955 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
956 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
957 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
958 + local disable_elf_hack=
959 + if use amd64 ; then
960 + disable_elf_hack=yes
961 + elif use x86 ; then
962 + disable_elf_hack=yes
963 + elif use arm ; then
964 + disable_elf_hack=yes
965 + fi
966 +
967 + if [[ -n ${disable_elf_hack} ]] ; then
968 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
969 + fi
970 + elif tc-is-gcc ; then
971 + if ver_test $(gcc-fullversion) -ge 10 ; then
972 + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
973 + append-cxxflags -fno-tree-loop-vectorize
974 + fi
975 + fi
976 +
977 + # Additional ARCH support
978 + case "${ARCH}" in
979 + arm)
980 + # Reduce the memory requirements for linking
981 + if use clang ; then
982 + # Nothing to do
983 + :;
984 + elif use lto ; then
985 + append-ldflags -Wl,--no-keep-memory
986 + else
987 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
988 + fi
989 + ;;
990 + esac
991 +
992 + if ! use elibc_glibc ; then
993 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
994 + fi
995 +
996 + # Allow elfhack to work in combination with unstripped binaries
997 + # when they would normally be larger than 2GiB.
998 + append-ldflags "-Wl,--compress-debug-sections=zlib"
999 +
1000 + # Make revdep-rebuild.sh happy; Also required for musl
1001 + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
1002 +
1003 + # Pass $MAKEOPTS to build system
1004 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
1005 +
1006 + # Use system's Python environment
1007 + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
1008 +
1009 + if use system-python-libs; then
1010 + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
1011 + else
1012 + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
1013 + fi
1014 +
1015 + # Disable notification when build system has finished
1016 + export MOZ_NOSPAM=1
1017 +
1018 + # Portage sets XARGS environment variable to "xargs -r" by default which
1019 + # breaks build system's check_prog() function which doesn't support arguments
1020 + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
1021 +
1022 + # Set build dir
1023 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
1024 +
1025 + # Show flags we will use
1026 + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
1027 + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
1028 + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
1029 + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
1030 + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
1031 +
1032 + # Handle EXTRA_CONF and show summary
1033 + local ac opt hash reason
1034 +
1035 + # Apply EXTRA_ECONF entries to $MOZCONFIG
1036 + if [[ -n ${EXTRA_ECONF} ]] ; then
1037 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1038 + for opt in "${ac[@]}"; do
1039 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1040 + done
1041 + fi
1042 +
1043 + echo
1044 + echo "=========================================================="
1045 + echo "Building ${PF} with the following configuration"
1046 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1047 + [[ -z ${hash} || ${hash} == \# ]] \
1048 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1049 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1050 + done
1051 + echo "=========================================================="
1052 + echo
1053 +
1054 + ./mach configure || die
1055 +}
1056 +
1057 +src_compile() {
1058 + local virtx_cmd=
1059 +
1060 + if use pgo ; then
1061 + virtx_cmd=virtx
1062 +
1063 + # Reset and cleanup environment variables used by GNOME/XDG
1064 + gnome2_environment_reset
1065 +
1066 + addpredict /root
1067 + fi
1068 +
1069 + local -x GDK_BACKEND=x11
1070 +
1071 + ${virtx_cmd} ./mach build --verbose \
1072 + || die
1073 +}
1074 +
1075 +src_install() {
1076 + # xpcshell is getting called during install
1077 + pax-mark m \
1078 + "${BUILD_DIR}"/dist/bin/xpcshell \
1079 + "${BUILD_DIR}"/dist/bin/${PN} \
1080 + "${BUILD_DIR}"/dist/bin/plugin-container
1081 +
1082 + DESTDIR="${D}" ./mach install || die
1083 +
1084 + # Upstream cannot ship symlink but we can (bmo#658850)
1085 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1086 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1087 +
1088 + # Don't install llvm-symbolizer from sys-devel/llvm package
1089 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1090 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1091 + fi
1092 +
1093 + # Install policy (currently only used to disable application updates)
1094 + insinto "${MOZILLA_FIVE_HOME}/distribution"
1095 + newins "${FILESDIR}"/distribution.ini distribution.ini
1096 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1097 +
1098 + # Install system-wide preferences
1099 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1100 + insinto "${PREFS_DIR}"
1101 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1102 +
1103 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1104 +
1105 + # Set dictionary path to use system hunspell
1106 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1107 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1108 + EOF
1109 +
1110 + # Force hwaccel prefs if USE=hwaccel is enabled
1111 + if use hwaccel ; then
1112 + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1113 + >>"${GENTOO_PREFS}" \
1114 + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1115 +
1116 + if use wayland; then
1117 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
1118 + pref("gfx.x11-egl.force-enabled", false);
1119 + EOF
1120 + else
1121 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
1122 + pref("gfx.x11-egl.force-enabled", true);
1123 + EOF
1124 + fi
1125 + fi
1126 +
1127 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1128 + if use system-harfbuzz ; then
1129 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1130 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
1131 + EOF
1132 + fi
1133 +
1134 + # Install language packs
1135 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1136 + if [[ -n "${langpacks}" ]] ; then
1137 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1138 + fi
1139 +
1140 + # Install icons
1141 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1142 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1143 +
1144 + insinto /usr/share/icons/hicolor/symbolic/apps
1145 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1146 +
1147 + local icon size
1148 + for icon in "${icon_srcdir}"/default*.png ; do
1149 + size=${icon%.png}
1150 + size=${size##*/default}
1151 +
1152 + if [[ ${size} -eq 48 ]] ; then
1153 + newicon "${icon}" ${PN}.png
1154 + fi
1155 +
1156 + newicon -s ${size} "${icon}" ${PN}.png
1157 + done
1158 +
1159 + # Install menu
1160 + local app_name="Mozilla ${MOZ_PN^}"
1161 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1162 + local desktop_filename="${PN}.desktop"
1163 + local exec_command="${PN}"
1164 + local icon="${PN}"
1165 + local use_wayland="false"
1166 +
1167 + if use wayland ; then
1168 + use_wayland="true"
1169 + fi
1170 +
1171 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1172 +
1173 + sed -i \
1174 + -e "s:@NAME@:${app_name}:" \
1175 + -e "s:@EXEC@:${exec_command}:" \
1176 + -e "s:@ICON@:${icon}:" \
1177 + "${WORKDIR}/${PN}.desktop-template" \
1178 + || die
1179 +
1180 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1181 +
1182 + rm "${WORKDIR}/${PN}.desktop-template" || die
1183 +
1184 + # Install wrapper script
1185 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1186 + newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1187 +
1188 + # Update wrapper
1189 + sed -i \
1190 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1191 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1192 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1193 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1194 + "${ED}/usr/bin/${PN}" \
1195 + || die
1196 +}
1197 +
1198 +pkg_preinst() {
1199 + xdg_pkg_preinst
1200 +
1201 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1202 + # does not need to be forced into the LD_LIBRARY_PATH
1203 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1204 + einfo "APULSE found; Generating library symlinks for sound support ..."
1205 + local lib
1206 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1207 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1208 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1209 + # so we need to avoid creating them if they already exist.
1210 + if [[ ! -L ${lib##*/} ]] ; then
1211 + ln -s "${lib}" ${lib##*/} || die
1212 + fi
1213 + done
1214 + popd &>/dev/null || die
1215 + fi
1216 +}
1217 +
1218 +pkg_postinst() {
1219 + xdg_pkg_postinst
1220 +
1221 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1222 + elog "Apulse was detected at merge time on this system and so it will always be"
1223 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1224 + elog "media-sound/apulse."
1225 + elog
1226 + fi
1227 +
1228 + local show_doh_information
1229 + local show_shortcut_information
1230 +
1231 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1232 + # New install; Tell user that DoH is disabled by default
1233 + show_doh_information=yes
1234 + show_shortcut_information=no
1235 + else
1236 + local replacing_version
1237 + for replacing_version in ${REPLACING_VERSIONS} ; do
1238 + if ver_test "${replacing_version}" -lt 91.0 ; then
1239 + # Tell user that we no longer install a shortcut
1240 + # per supported display protocol
1241 + show_shortcut_information=yes
1242 + fi
1243 + done
1244 + fi
1245 +
1246 + if [[ -n "${show_doh_information}" ]] ; then
1247 + elog
1248 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1249 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1250 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1251 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1252 + elog "(\"Off by choice\") by default."
1253 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1254 + fi
1255 +
1256 + if [[ -n "${show_shortcut_information}" ]] ; then
1257 + elog
1258 + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1259 + elog "each supported display protocol. Instead we will only install"
1260 + elog "one generic Mozilla ${PN^} shortcut."
1261 + elog "If you still want to be able to select between running Mozilla ${PN^}"
1262 + elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1263 + fi
1264 +
1265 + # bug 835078
1266 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
1267 + ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
1268 + ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
1269 + ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
1270 + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
1271 + fi
1272 +
1273 + optfeature_header "Optional runtime features:"
1274 + optfeature "encrypted chat support" net-libs/libotr
1275 +}