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