diff options
author | Joonas Niilola <juippis@gentoo.org> | 2024-04-19 11:02:15 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-04-19 11:03:14 +0300 |
commit | 2c936e76d27d5692db308938c5fae5d09544d118 (patch) | |
tree | 62fbe3d19ec40deabc122b0fe3af6378e171c98a /mail-client | |
parent | x11-plugins/guifications: Stabilize 2.16-r1 x86, #930226 (diff) | |
download | gentoo-2c936e76d27d5692db308938c5fae5d09544d118.tar.gz gentoo-2c936e76d27d5692db308938c5fae5d09544d118.tar.bz2 gentoo-2c936e76d27d5692db308938c5fae5d09544d118.zip |
mail-client/thunderbird: add 115.10.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-115.10.1.ebuild | 1341 |
2 files changed, 1406 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 7b1d4eb200f7..45bdaf8ec82a 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -64,6 +64,71 @@ DIST thunderbird-115.10.0-vi.xpi 765459 BLAKE2B d29626701e1077b11bdde1dc09f9fedf DIST thunderbird-115.10.0-zh-CN.xpi 762149 BLAKE2B ab904359a06db5fcc63d986dad6270fb43dc6a530662121b7b4313a08bc9e9c2600188eb2c553976c2f7b90d7043181cebca65fb3b059a6d2d4888dd2855fb52 SHA512 1873535c281684c09c6b11a591d593a66d04861bc358c27fc6fd9fc9f47e2f789ca07ac0464fd0f1831e5ed747184e58b59fd37a4882af9f4ed01b719ff8997f DIST thunderbird-115.10.0-zh-TW.xpi 767911 BLAKE2B 4dc6b232d34af6c54f6b94d933570a3ababf12ac5afa37ec5601eb422ba45ce192e9092df7244bf6921ab5a58c957b12081f9701195b66baa069432de5eeaf12 SHA512 a60026790ebaca7525f378e6fe0225c352e88b796582b60722858458f95c86621059255d2d572f07d15e1d23ef057ea0a9ed54ea20dae601dd69bed23b0cf04d DIST thunderbird-115.10.0.source.tar.xz 529687584 BLAKE2B 87c570fc8bab59485a0d8bb7951c365be7cefe98d07a5bad6cd9d31771134176be0f31e8d2d39fa8dae2dbe54048cf894a110b1738320f910b7d50f4826f1d50 SHA512 35188cab32502ff2451834358f486a095ccef0a7330ee35d116c335555ebaf267e01f7084a6480b7af85436741c8591f08d6ed9a01c1be52d3f147f913c1b5a4 +DIST thunderbird-115.10.1-af.xpi 549703 BLAKE2B 5eedafcf19b9e46b76c2d5f8bcf155c386ff4f96bb662d6e3899d41a3c8d2dcad3f73fae899cde9e55a3907ea9520e0d9646b73580675f02faae2d15bc01106d SHA512 8c75c5851384552608ebd65986e04c1450ec74ea4b0c65032ab67ed6dfb718e9603249026b35c59d01a1531176f76a61be027de700dcd3739db60262ae6c8fb5 +DIST thunderbird-115.10.1-ar.xpi 666363 BLAKE2B c070e16763eee9c1e5d796dcbdddcb7088ae9d876cefe7d41fc73cb7d4ea3f6ff29c58bbd919083a96b90e61fdb0352b0f09f457040601f561d68d05ec8294fe SHA512 af8e216243d873de1320ce626c5af4c7cb43e32c35eedc9cd726349e6af25a695cd81e20595e5d3e8d28b64ff69467cc4a96b599364317f65d71259951afef9f +DIST thunderbird-115.10.1-ast.xpi 568313 BLAKE2B bddaead74c292977b8e471684d6d6a366c183b713c4013423afeb325b04f2f44e472b7874ad035c67c320cff973b74963cb0429f7b33a2f6d9f184f8a570dddb SHA512 d00471a2c9e33673c696164e62afff6af6b1acfdbaac8edfad544e836ca5f5f460e9b0a461a88eed97da61f74867d865319a72b92373efcc93164eecad5a843a +DIST thunderbird-115.10.1-be.xpi 724046 BLAKE2B 400869ccc37a648e753aeae8b4851af2032866455ed0e4f92322c62389e4cb5dbe246de2ce4d22bc3d0a3ff787da7be7b3c8017825bbf6654ca382d4029ccf5f SHA512 749f733da4ee23581e47cdf221430c3d8dfcaf4f2f344b72de8c3ff03c6d7037bfbccf4abf3ed3b7a7deda7d68aca68152aeaa8973d41eafb5206de3460b994f +DIST thunderbird-115.10.1-bg.xpi 780172 BLAKE2B 962f25d8677befb4e0d3bfffecb9217154d7c2dcffedd45ea42535a266ea5c3fe0be7a6d28604601b3b837832bb3c01432eefaada99c11025a2b4c4f25047cc6 SHA512 7d25be6dd72f2cb84111e69373ff8c983b0d9ac948f5d6549b780fa85c79a322a1408b4fb90cf64e310af91066d8416bb8afe2e190b8ef1fa9d29c53a0524fd8 +DIST thunderbird-115.10.1-br.xpi 642273 BLAKE2B 744aa7e265b1ca4952633a7ec11d955017f150fb4c19717cbba412bdfc167676c31fbe0d94a953bbc51a1e6a5eeaaed6473933e13fd34c4228b37a31111f499c SHA512 016a7f6ffc7fc5e935154a05b866a7f11c4fbf669a11100968630e4ec4737faeb9b835086539448c2ecfeef5b6af904f316a3a58e7de9f5fd6be588b303a2417 +DIST thunderbird-115.10.1-ca.xpi 685713 BLAKE2B 0bd5ac05c8603a15390434cb6bf5f6c65c31463bfb4c07a33854c023170343982b28634cb0de285980fc95d670ded423864bbd7cef39d35bc6188db2eaa99852 SHA512 ad32a51299ac1147a4f811fcb577413f6cb340f2b0bdbcac29c5681227ea1d31dea0a7bb199d3c75df9f540c9ff23d0da5fb748c705bc21d525a754f642921bb +DIST thunderbird-115.10.1-cak.xpi 667770 BLAKE2B 78149c4924a455070c35b208afbeb2ee0dd76ec3de9840ee17a65bdeee69b736e577eb3d4ec938c28ecef2c0747207e56f2b24bcc2cd8b086335850291090812 SHA512 b551441b1a4421cda5e381ed87e5ab933dbf796276beb225f6af3454ee844980f307ade7629ee826077cca8f3161c3840f7972fbf90e75cc927ee312c4586c77 +DIST thunderbird-115.10.1-cs.xpi 760405 BLAKE2B 4a59be9744f6613863ba762cbe1477ce484bd400f1da33105f742c7efe3575ecf04ee1f1e1c0d9faba666b15b2b557a21f6be754ec5077ebaf4864a8f07b72fb SHA512 9040a2b4e2d2c98643390ea10a0c51d9627ec68cf5a4e4affa456e814c8ce57372b349c2684434beb1f0766a244b1a57437bbc889587591f9f869ee5537779b0 +DIST thunderbird-115.10.1-cy.xpi 726866 BLAKE2B d8e2af52fe6b633a1ea72db105fe0fc7a276912c35bb7250eabf57e704a1b547f2347d6e96c8c77b49ff6a87db9f8043ad7dd86f822f01db7a555d68f2776a1e SHA512 244fed0e995352b3f775ca53ba5a3d024f12838f9d5c0857d5f28f2349c9759ad2f7fd2a92f63e919643b367796e65f5c3bf894ef90672b5101c09562ee9aabc +DIST thunderbird-115.10.1-da.xpi 712436 BLAKE2B 61e169c76bc8a5135f5a7c73b149a1a6762530e2c29164e07c791a4806b05735bab14808d913da651b26545169273054e1f2fd6f9254001650e37cb218e7b789 SHA512 1267fd96824e3eb1dbd5944b143c3847e21fa4d1a0f0239af177c433b7afb49213a6880c739b0be15687db2a581155e1dbfee8fa322b9121506965faf5b03a87 +DIST thunderbird-115.10.1-de.xpi 742717 BLAKE2B a422d35765cc634176e4877f139450c4d6f9b35f226a43efcab81f54d2ba91442cbc380781450a0ebd77fc7a76259d4dd82442e5dcbde3469f00aa74d7eaa430 SHA512 0921c1e1a4a1010a9341ab6f24b36b0d3acda6acb8bdd0a04c8d393deecfcced78fdc99f978765286fc03f836e0983fc001897376226b475ec6570c1370e2ff9 +DIST thunderbird-115.10.1-dsb.xpi 760923 BLAKE2B c16feac97485f27c0f5e752c5a3f34244c098fa34691b699a7f6c10e596d2c77b041a9493f892fcf7551a6b2a75e3426bb6a2c0c566f60ead6836cdf6969271a SHA512 9dfc1f9d3033590a59458c6dcf04d8ab5422e0be9338494324551d9d59e74f3aa6dddbc19b5371026cf3349a057c5f73511e0f471c666e3631a21d289212a50a +DIST thunderbird-115.10.1-el.xpi 864313 BLAKE2B 7c1c272df4d54c2322879cd9a80571bb26fa4000a1659ee8eef09ce68c5a0265de0c139306272b911d745faa221ae996ea1f928574f19007c072e0dbd0d1dbb4 SHA512 d67007973186c9913cdc2d6417289369e6d64116f8cd1e0f5ca1e1de1a577e356afbd0e7f813fe95e12732233c8e8a93a3d198bf98139ec42c4a80e21fd45da9 +DIST thunderbird-115.10.1-en-CA.xpi 673871 BLAKE2B 9ea5f8dc702ba42c0d89dfd7b8c4938b257120a62e3d8516a4502379b5da6e9ff939f628374fd87a7f345b0d79b0be0c45e0d1f01a6c0802e76309cad1d8e439 SHA512 a346bc41ffc5b5e458fde4868d0231adfb780baa0fdd2e2545134f819a1a00230a5de65b94413a8ea43449298ae0904e6aeeed3e7a84777af705edb36557a01d +DIST thunderbird-115.10.1-en-GB.xpi 682957 BLAKE2B bd1487865868a7e48974a0718320a093f7719569545df5dabcd3b9f0b123774b670381a32f840fa319edd1e8ba14210b2d3e72849001350fca894b25dabca6f7 SHA512 38ca13727b29712aa77c0ae1616fdbc296bfcfaea364a9f5f28743578cde3914bfb4e740903469fd0aed6db0e4dca81d65ce1eb2cca405aadf76046b85d47034 +DIST thunderbird-115.10.1-es-AR.xpi 736787 BLAKE2B 6cba2a49c702e20c4b016afb01dc0c532c7fc2688b85fc2b936bcb0c693aa5eaf8c37863c9b24c4473477bd8d8c50731f1f6e897010baddae48f87d49d55f740 SHA512 7982b3cdfdbab6a03c08a71ba5a3f787c87039f4bdfd577916a5b9904cf1f3fabdc7aecc6de7de299be4e7d1e224415277dabaf4d6a946d621ece9639625a5d9 +DIST thunderbird-115.10.1-es-ES.xpi 698386 BLAKE2B 268c259c49d9d5852bbe5004cd1c3171f1aa41a43d47151612e1b4299ea2c2e17cead07b628e4d6375fcc7f25f33b8bb2da876b244a791f6be2fb6b541134abc SHA512 b6bf2d4d437a25c0a607f97081646fa98b6f6ff1036097176125fe10354dfacd26dc0244d38406e2679df506a0bf976484b9f52b7fe397a6c08ee4cd2d98c384 +DIST thunderbird-115.10.1-es-MX.xpi 719673 BLAKE2B 86fd570d9eda45b67e01c7cd52d06135d38775fd8bc85871c593483d001adf3af4456dcb9105863c7dc89831ce48057b3ebf1b4978d63fafb2b08b543b1af6a4 SHA512 2ec01b7e3ed96d10f8b5f7f831a45ecc64152a5a0574797934edf5f04bfa5231c887b37582ecd99eb0beaf3be2b043a6e79cce198a4148da2fadab806e9783d4 +DIST thunderbird-115.10.1-et.xpi 679915 BLAKE2B f9035add35e6d3f535c76803766454dff23382c0c22e82e0d9160b1d9135de0cbe0f04c80501306b63883aefce0e987f80cf9383275cf552d8adb1307875ed88 SHA512 a09e54f6d024d319a164ff559344b2cd6cb357843db04bb7a8261b73445f9a1ec1bf020e23a13f6ad2120cd54e7af4697115775fe43c8bfad648cbbe4cad748e +DIST thunderbird-115.10.1-eu.xpi 708669 BLAKE2B f961cf47a2fdbb7c216a486450e391677c1dddd8b50c800ea8c316aef55c6c1ea377559d313252eb99264fb80ec1e849b9eb1b11438fd446f05496be9fb8e3c7 SHA512 57008efd6740f9f290d28fb833178e4511314af53303b417c8ca63a1470525523731dc79b52d7846b51e8988211479b55916c9d4996ccaf94d9367437d0b5be2 +DIST thunderbird-115.10.1-fi.xpi 713737 BLAKE2B bca1a40e8b664d20ffc797019771641b8503d6ebd1447aa523630a25db57b76e07976beba86fbb9b4a0fedae666c4fac65ed331dd14769b12faefc9a46e9ad4a SHA512 25b86c9d406c07c557a6e1aba7707fca08e23deb4e3f92e044f1be21389cf18c2aee814d36ee55885628fbb8504a1ff0d7de903db50799022b98b5b989679f70 +DIST thunderbird-115.10.1-fr.xpi 747641 BLAKE2B c25ad48a36238ca4874feeb78a67e6e8bd8b622f880245fdad09701c3a0a9c4c93a9c165bd0cd7d328fbbe374eb6e9ef9200473c419086e535bb0d36e9868029 SHA512 c867e1363132e0d43ecd851bfa60501e0df05b758d42056095371c0e3b6468212402428317279b8988b99b3daf9d3a66d8182da2e635466e4d05405ccbb34532 +DIST thunderbird-115.10.1-fy-NL.xpi 730432 BLAKE2B a34ce310bbd4f8adbfa731c8b5270302c9f9f6045d513720612afc6a76dcf96ad142056288f6b8707d7e31406562aab0653fa2f610d6dcc1caf4f3a89d5577c2 SHA512 8c78e2a472c92e84f8b65f4e0482e082373c370623a9e3c4525e28ac8bb6b265fffc4ec55759d73ecc23d314ffa2105da277da1ba4def6e0dc0ec315175a11a8 +DIST thunderbird-115.10.1-ga-IE.xpi 609796 BLAKE2B efbca94746dc323da19ce284559a580bb0e306b41fc3efc4a16208307501c697d1f2a727bb61d0366ab0e030815c821a45e037c187ea77c7b7f12a1dcc68e6ca SHA512 2eca71c898d8e741737bff03b31a5405b809e21fceb62eae26f2d3b30d08f29cf6d37a251656d00784dd5e1c6709d29af677584c86126aba9407c1f824db336b +DIST thunderbird-115.10.1-gd.xpi 712352 BLAKE2B 8121a08613a0cf16a2fa46703b899a9f98028d1db988d201ccc531ad0544ad58fcf3aa01cb648bc8c84d8352565e2b27194e1351c881051d0d42f5543a70a167 SHA512 681a736b4db7631cad39fc2d06f9c528b08e947abd634d8b83b82c150aa74f4266a8d7f6c5d6f72d5b9fab5c1fd4c1edb4eda6bc9c0f1b4102e657d350e40862 +DIST thunderbird-115.10.1-gl.xpi 719943 BLAKE2B c997a189f58c967b5ad3ee5b54dfe9e5986888c6c88ca5988b3fc9880a3689fc4ee889c19c2ceb4757ae2fd3a29202894abf5b3e9eb814458fb41b48fb38502b SHA512 09dfe926fa2b792003da1fd4e8c9c9294f7b9427e3277e2c53fa47309356472b9ec70ce9ee7784a4b763360533ea99004d057163b9c08076c672240e6c754a78 +DIST thunderbird-115.10.1-he.xpi 686151 BLAKE2B 8d0b48e0f8897d75f9791901e193a00084951bd537048b1528bcafca46c0b0a46aaacdffa1a9d76bea9c263738a149c35faaca6308a80f6ee06c780dce290377 SHA512 ba703ffeecbcf00bdde7083df6a7c3933e5d863bd51390d0b2293b6b7a5b382a3bfb73c73966b0c95d3c3fa50c52bc3c115cecda5da5e5297261aced2ecd202c +DIST thunderbird-115.10.1-hr.xpi 687323 BLAKE2B 2edb7fcaf5eb179e8fd11ce8e78e07a17a7723e1a5a8d429efc49fdb361e8c646d0ece287462bc7856a5f583d0dccc921f500d308eedb3463077d52407c13d14 SHA512 219e4a2daae6727f178417b39fd49d921d2199183b805be14f6045cf9871be48f054f6d9ad0ded1bb1ebd917e4f2d8e1554c8711114169b0a8c9dad9e5df2bbd +DIST thunderbird-115.10.1-hsb.xpi 758013 BLAKE2B c9971c4705853b0cfd34f553390f1dc384ba7cd190c0e0acdf0b05ae4b8b82fbf4ee7a770030281d06fb95688f4093e7946e681467e23fc636761fdbcf95006a SHA512 23f70f5c396acab885b25ebee9d4e3fdd873d9630467126fe480dd9bc4da32ea5163124638231a0301598584189657fe3862b2bfbb00ea3a6043a99a4625c839 +DIST thunderbird-115.10.1-hu.xpi 759403 BLAKE2B 359c5f229abaff87ee2ec268f8865cf0c235506d388eb26b06e0c47b6effd3b67327ea462ed586ea6a5a7fd2e22401c732abbabf19eaa10b939c68e0b0726e3b SHA512 0aa44c4cfe8f88daf9f9877a1a120f3b04ba4ccab7b13c687faa3b704c8dc7ca73f96676d17a4dc7824fe9d6a26d374f632266d8f56443869991518bd37967a1 +DIST thunderbird-115.10.1-id.xpi 651341 BLAKE2B 49da7ddb2d4968e27b8aebd5b02530f98d2b53b9a0bfa83deac240898355eb59af50c3c6760adea96365a55f4a1029963117cb0a4f3d390ac430e79fd8a70f98 SHA512 13d03fc229803df293f1a0ccf432471aa802f98cd758592e8529fb35580c2aa038d1e1bdb9f328c6f1b97562e19bf5a28f98eab3511a48dcff258c3e2b236d1c +DIST thunderbird-115.10.1-is.xpi 720710 BLAKE2B 0b0a8075735a4ec1475b21a3a5a078a6f103be229751e927d6e86a5df23d918667fe3015650f3f9352492442ff8e10577e9f28c96422f21e2d4a68ab56e90e56 SHA512 dff1cdb4d5340c4bd062bcbdaeec90bb693547252f3df9e3803233f484e19c03db0b565ae4e1aed3cca8471320ee3bf1058326ea258b48056d5691f04d0bc846 +DIST thunderbird-115.10.1-it.xpi 668947 BLAKE2B 2c1e34c9c10545a432fec3f9d51d208e0c7c61f2fdfc284987e8598b2f8998f5eaeec148907573794ac007213a326b2cf8c0e0647c03231d940535ae1fd530db SHA512 ff5f7ee0a72fb070d51451eb447fcc4ca2f1058233ee66924674c1da287d0d19de1192a0e8a1526ec627ab936f6f82306ef99d3a6df21978b12faa867581bed4 +DIST thunderbird-115.10.1-ja.xpi 795682 BLAKE2B f0dee6182ff92f81073b59014bb4b3e4027cc6127fd2b26306771ca6f356b8e16016669a8fde8eeb3200c811dd72ec4adaa5b8479423ab2509929fc5db8927dd SHA512 0f2be00dd4832b9f5aa1f8d956b857f64061b0e18fdfc1201fc8803c18d73aa47036bec458cb0d4a0289b6850ebe675a53731661221a2f4a4765bfbb250dbe8e +DIST thunderbird-115.10.1-ka.xpi 783168 BLAKE2B 09d1708278f12b2e2b80d944a4ea476e866fc9f11b23da4def2cbc972717959d72c1e5dc4a7bb74fc75f7474cf75452d8411c4bff9abb26b066bd855f8c2938f SHA512 90b8758121ad9067b71611531b605303316c44c1665586b57a2e4d2903aed960393051a591725a861bb1f49a0b3980102e9fc56eb22ef5a2256ae45251cfd382 +DIST thunderbird-115.10.1-kab.xpi 711299 BLAKE2B 26cefb5a203831b100e5eda6bb1bf994e690b25adc425401008f37a8a5a737b2aaad585cb9d038379a5be642e85b9703fa1df3c26bacd6b5f109e97777a27be1 SHA512 9958e8709294d7124dd82b4dac211765368227ee6b86e5073cc65de99e3393791551e23688774c6494b1fcd5d0b0fb6069a37141a13767247bcfb50e9446c6aa +DIST thunderbird-115.10.1-kk.xpi 833793 BLAKE2B c39b60f2c5678032fc4b1edcab464f91e520d64c4f8257e796ca74c890842a8738a280a0d7c29c121b2e2bfaee36b5401cccbcccf9a0bf278ffd6bb5c1c4df11 SHA512 eb44302b7f206725ca9cfd8f44095e767d22f10bb611bcbaeb5fc88b8464e2cc19abe131de63640a75aeeed4faa0d174565f354b132655cf15925577095a3745 +DIST thunderbird-115.10.1-ko.xpi 737552 BLAKE2B 820d1d55b962c506829a9a12baf4e493a5d71d58dc4cbaa0b6023c448de16656d7f22470ecea2e3031fa7d391505ce3869bea71a7658c9e5b16536ed2003ce04 SHA512 103c8ca18ecb86fe3ade41ecd7b452097226d81224f188d804c0e763d181393535a78e16eda0b4a867494dda3167efdc867040a58cf1a891c8f74f36b0cf36ef +DIST thunderbird-115.10.1-lt.xpi 688629 BLAKE2B 4d386c92b53e62dd216793afe963042c4f931e41bcf719cce74fe588c807500b9f23b458c94748e0714b31d9d47c424f00b9ceb69c30ed9f699e66ce363656b4 SHA512 9e7ccbdd60fda9c1cd68d2d5421a54f2b08f509049862fa9b5131852af964627ffb6104092a61034e3c188c1ba9096eca7ac151b2665a15b5275e8d0990f654b +DIST thunderbird-115.10.1-lv.xpi 613042 BLAKE2B 99e2d379669938058fc92986a6aa70f3dfcff65fa572e3600fd32991c5e5fca335fac7d12dba29b23816380cd716e8b3ec97a82c621cd79145342e680b073683 SHA512 df242862ad9dde5d60b47b19022d344e38e313d887a6f18207b0d33ea7833684a7d8df6e0eced84b67f76d27cf1243c1795cff0c7404e530ce50b30b7dd0f6b8 +DIST thunderbird-115.10.1-ms.xpi 573632 BLAKE2B b72190d5886c4a91bfeca2dbef82c723799b099c38dcbc0624e3f1f0308131d7bed827485e6526843302beb5bedc238a308f7097da4d62fb6ec669942291e2b4 SHA512 22e5d4a3b4de206f0ba65605b9ee61febfda9f66963054041492c01ed37fa6b396213e99b6babb10d42c9256aaf2eba2fcc6b8b329c6ebba2e4ba6a973cbd594 +DIST thunderbird-115.10.1-nb-NO.xpi 686240 BLAKE2B 84211b33936a5306869b997845002909e199deb9fa872a8be970020651d4135fdbc2019f78bea12889b662c0239a02e9816def5b816f59e61c67ff42c422cd87 SHA512 08ec5507c4cb9cb0c59b9a56f315f34405a3a3fcb214b2090953ea16ff932547887e8a5bea8e47b5cac458e435ff5382dd58cd9fa6f9cb33c3b09843d2a07e02 +DIST thunderbird-115.10.1-nl.xpi 721726 BLAKE2B 5c93b2784b2b594b4ddf16a8bb5a37ef1bc60beca645b1fcfa7fed6bd3f4aa6cd291ca735ac7fb339992628d38cba097f7eabe2bfa53aeabe43eb5cd4b28b18e SHA512 726b0508cf721db81fd705351d618cc1a3a15c9043f2257117839c812faeb543ad32512d5f1da94a50170afa9992a42556ba88c519b0ef61312adfb4d502e5e2 +DIST thunderbird-115.10.1-nn-NO.xpi 691749 BLAKE2B ca00efcdc45530a861c931bdb5fe7dc2436797f6b78129c085c10741bdfeb55cf0bad5f8fa5d29ebbb36f2e59bcc4394154d190d89bb8f6d934409c5e2272174 SHA512 618e1e559af3473d2470936f4dc4527d903a37dff62a6dc211bc4aeb730f53f3f3d3592151a03f71101e6e073582fa189b3aabcbeae35d1a068e1e080e900c12 +DIST thunderbird-115.10.1-pa-IN.xpi 678306 BLAKE2B 3e1e27128cb48b3d229a2aa9722122c32e7d64b251bd5ab46ae5aecbef5151f91be2facea1d8cecbd0fdc03826389ec4b123c3311aabeade0e55d023ea3ee5ab SHA512 ab676bb859abc34b64e2b83e55ce341923c5892d1b9d01d0bb4b14c19127ee6566a1aed46b0b5876ada53ffb0fccd1c227f8314a294b41fda6996a830fd06e68 +DIST thunderbird-115.10.1-pl.xpi 740536 BLAKE2B 41955431ac0bf88064dc3f728a4f039d9f455bf1f4773df582d088a156bd95fe98b92992dbc30598404168f4f6a69bb24ed53c3475e3b7ef1ae3c3c3799b0d9d SHA512 ebfc746d3d4becaddc7398199e09c59b1cce519d6c082464974ca513d32a4edf1f22db9e11c0d5eec8d31e7ba130cd34089caeb58bcd35800618352ea725b92e +DIST thunderbird-115.10.1-pt-BR.xpi 729747 BLAKE2B 762c51f22397d64e9a5aa9b714120c1ea153066570c489ab2f348e251d0d8a2b8d8d20f008ea61d90a3298e36219ba4d6bca152272b85e75568f340520b9c79a SHA512 c4957f3558262de1304af8efb8d237313cb5dee60f73ad420a91308e58de3aad63e89823b84d13fc7342693754d7181ef934504e391176422ac05547dc23b9db +DIST thunderbird-115.10.1-pt-PT.xpi 714399 BLAKE2B 2e64efd756df4d68326409d3ea5705e92fcd53881c2624b14930a0b6a834d81129b651edc151a0e22bec706ac7e12ac4011b2ab9df5bf1ca798b68fc602cefc6 SHA512 124d48fe7c9fcb335f42e3261547345d98f2ef792238d9584edaf1ab7c8da774d74704296e89fda3920d1f8295175680bf8f710f666e9d5597634e678cb01475 +DIST thunderbird-115.10.1-rm.xpi 725084 BLAKE2B dc633e5f181d5801ba805f157d557017a7171660e24ef75b5d09c41e1b310093ddc23061834cc9e55db5cb1f99316464c52d5624c525b17a7b14fc3e26cb6b98 SHA512 cf7c910513215212590e0ed9a832b8a95c3f60b36c30d8b4ba21d4b6004cbb6d1342764c7bd1e8e20930152b4bbe0920258af6e7c1fd1dfb1dd75eb57aa1760a +DIST thunderbird-115.10.1-ro.xpi 659864 BLAKE2B 4c72dc6479e233809e21dd12b5d1a2f362802ead1f94afe05c4ee1b8abf7d379090d71d19714e36a53f4c5915f9f136fa343059d152c3d696487fd42bfc2b762 SHA512 7154dc4703c92db049fa6210a94fc0ed5e6b9d1ffc5b77e5a0d2756a1b05515fc0715814a0da8d6cf4a40986c5d6c09ac4a49bfae33494fe082e4195b6733c13 +DIST thunderbird-115.10.1-ru.xpi 847865 BLAKE2B 559497472d55585ff6834979532b9e1dbb5c86311bb1996efb5a1c84a12dfeba2ed712980cb18f8b28751fac8ea419a9b2bd75c4fdd17ee516d2ddc848420b95 SHA512 50239f73b9d87be294d93c787a4ec1f24702c3499135fbe00b4cc4d0ead67f7e197de08964fe8484c18da30c705e26fa3d9bb44a672e37cf66070fdc10f902d0 +DIST thunderbird-115.10.1-sk.xpi 759889 BLAKE2B 258e6934c23c7d38f25998f2a9c6cdbbe2f1c73d2e012cee0149e1dd1a5eedb1ad51e0881bf0d625cfda45c13ee2adb23f43e96a074285c16c9c0895ae39b77c SHA512 23670d35b4513eb9bc7921c69217e1a18a41d33d42edfa7e49685f42d4dadfd9b96a52211ccd5764ca6d6dbcb8ac3d49c7db526c7f653d332d404cc3ffb1254b +DIST thunderbird-115.10.1-sl.xpi 722594 BLAKE2B 58aca70a2ed96db27222cdd3afed298944ec8c971313b737defaea3881c2ee8a1b73597fdebe45a9dc732043aa3ac83c949938b2a3fe64dc892f0fac89748c2c SHA512 34da7ae5873d8a42624e7799c9c0fe6de3c1431d9575b89d5a786d3fa57222c3d77f0821dfb5afd8d90ae839c96f19119742c35a19fa33f2391563e8d1ac3888 +DIST thunderbird-115.10.1-sq.xpi 743543 BLAKE2B 0a74a87cc47e6de42e5e237638eca0f9aa903f9e3058c6cc050b62146491cfc09e64b021fdf5b4dd8434411454a68ce8fef9cdffe61d0552465e6a532e42c2ee SHA512 f4b13b296ac1cf194d03de002a2a58c7dd42020c7fca10071104dbf57a3a04993d14742b7cadaf551dd06efec9fcebb75e887a484ea469d96a2a6d3e8c6dc176 +DIST thunderbird-115.10.1-sr.xpi 755433 BLAKE2B 35bd13d6eda8170998f76e45c4645a01981d1de7960720282c2594c2b8f631147190b1d28b37ce1376daa534edc3e2a0fde5d519c2d8fe9c3e29cafbd915cf49 SHA512 a666360bd476f7b525c1d53abd69879497fb01c5f5c43c76e6d4f1434c46f8e208ee431e809e1971f28705a208af7cc6cde15bbf9c78ef6d04d0a6da2addb7c6 +DIST thunderbird-115.10.1-sv-SE.xpi 725854 BLAKE2B d087880c77105f67c3e87548a7cf984953192178a0ba90adb972ee64ea555f398ccd0811e8f556ae41762b278315c1602e7e4573bccbf022122fba64e1534e5d SHA512 71066c816e2bf06df01b279c9bb855e639570bdd8a3b3ee50563dec447f9fc80bf4f2e4528cc22a108a0afcb1ed47a6d01909756d85026a3417ad675a29ff3a7 +DIST thunderbird-115.10.1-th.xpi 793888 BLAKE2B 39c96739ef4771f0de87bf85438d4ef744a5da86dd5f00068c90051136703c94b0a98bb80049cb68e88a697bd42e93a29f408eb0aeb6dac7f87817a5536333a2 SHA512 7eb34c25346235c389f47a576fa209388ed260525759b6b2eb9415c3d6ca9d4d60987ccb01edd554742eb4db197920346a80af1a948960f78d3b2819056b20de +DIST thunderbird-115.10.1-tr.xpi 735253 BLAKE2B bb9d71d23141286af5984256b0948f14fa24fd18c3f7cb5084c30b27d4994412dfdbd29b95d5f41decd3ac9f72a29d1ccf29e669985087896f80cbf3328f3ec5 SHA512 017dc0ae5886e68c0268f9f3e830facbd4e8d685b76f2e2b7525b1ad9d5369f64273c7fdc94cf37adb8a3509c9476d4f601f980ec71b6e175c97244f208924b8 +DIST thunderbird-115.10.1-uk.xpi 839177 BLAKE2B e1f385e719e11e66d1e87b2d0f8bc20100d95e9b2294b753561976799a52e64fdd762a0ffffeda9809a324f9434446599f3a0a8b85d86d9a109fc7aaf362acfe SHA512 e0e9df598e7692ece712fc5fd68d375e5d226ae84be2f43ebb7d8284c652f6aabcdf87e6732f6d8cef978d3c7a7482562c271d7d48ada9c82848d3adc25120a1 +DIST thunderbird-115.10.1-uz.xpi 587158 BLAKE2B 14d23806885e7c25210444148b159f988f6de47112d4437882c3fdfa20fe2439ce0606f3848707b21edd934820d835d08c9a65d64fe3652b543e4199d98ab4fd SHA512 dd6d9c0187c7b5aaecd6787b9b1db78fda535dcda75daef355397f9c1374d8be17f7f22adc2f6a96e31b66f15060b7f8ce1d0d6843c9b51da3b37d3d0664d514 +DIST thunderbird-115.10.1-vi.xpi 765461 BLAKE2B 2d05c46d0c57229dbdb0a3438824bee4d1604c861b5df6eed447ee73670eb9f695bd2f3129f2a43a60792aba0aef2fbe11a4a1d7c43a95f9fbadfc303b7a42d4 SHA512 49eb6941a967b350f61939b91017d7b1d9bcb07377ea09ad63347d9d94b35cf0eea5be76f1eb56780152e810f92f4f0dca5c79ae83df68443cd727e5ca375da3 +DIST thunderbird-115.10.1-zh-CN.xpi 762147 BLAKE2B 7429436950692d4c76f5e2c513a17d1192bb4abd77e9909e0142024874bf0b9050d516b19f08c47bd62e5ebcc41ba46496760bf294f3c9169f2dc1d81c4a35ea SHA512 10848d30e4740665863f9189f8ec5e96ec97310d1b7c360b83318e5f67ca537eb1b47699852884f387b58ba5127e7a95d0d77533f22b84860a207e4fd3f36038 +DIST thunderbird-115.10.1-zh-TW.xpi 767911 BLAKE2B 57085bd612d78c8a5c70a26f020734a976794bb3c18440c118edfa17d8acd122b8a0d7fe702b4680ad7cfcea38e25a93a63eee7222f1056a4f999819b4a8fbd3 SHA512 efdaace7414dcc761daf96790d564aaacf05643c9a22c4539bfe44d84a8af4cc255d68f34fef5296baa858b3df0e5d5c38baa63f7ddf7325c47db3846243fe90 +DIST thunderbird-115.10.1.source.tar.xz 532507896 BLAKE2B 8cb1a0ed5eeaa377ce3c4c15fa2339938e7de44f4b1e21f3d8e8cd8980dc311e579ed701362cf26f905c51ce8129690ce066f8c1912a9a316ea384441673f160 SHA512 0324811d3e7e6228bb45cbf01e8a4a08b8386e22d1b52eb79f9a9a3bda940eb9d534ec1230961e9a998a0162c299a1ad49d23c5fbfa8e287896bcc0fd1c398e0 DIST thunderbird-115.9.0-af.xpi 549702 BLAKE2B 9f94dd3e4989589cc205508d370c256c3c75c2071e0a701271afad6a93cc582785f209b41bb4dea11bfdb2ee390952b55e2b0e2d2262cf60ebe04e3b827ddb2d SHA512 39342e9dcd988abc03600bc6a52d9e5d42f7007069b48eb901fa1e12c124374cdc18535d8e6f8b0a74a6729dbc56497a73f923f8f188da6df51206ab6b9f4783 DIST thunderbird-115.9.0-ar.xpi 666362 BLAKE2B 0874f7eb9f313b5b0ff3f002efec12a39186f5d6d6d5fe98835f5c9c149f97efc82c4d51d3f59c96855e81d625a90f2616e3a88757ffd3b2342dfc6e5670aea1 SHA512 09d52a96edf92084029c60fc134b6b6240cfc8e7bc962b05fe8c8d55e3fb67ede84c6151b67704b3c95504e2bb9b0326a4b77e356977f68f02acfc5b6d7a8f38 DIST thunderbird-115.9.0-ast.xpi 568310 BLAKE2B 662ce2e70c1ca0eb444d9fd4849b5052e8aff603beb5949ecff6a22f6051f9451e52cf7e494286cc247763f631605ddb577a879715b4687caa7e408f4227a240 SHA512 acf20bad025d74d158e0a0b4fa16a6afacea89401a4a7ddcbc09247a275d85d6628955c7fc3b5f14e11f5f2f878901c706b0f0143e33d88bbcfef3953370c0a3 diff --git a/mail-client/thunderbird/thunderbird-115.10.1.ebuild b/mail-client/thunderbird/thunderbird-115.10.1.ebuild new file mode 100644 index 000000000000..91ba70d5c3a5 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-115.10.1.ebuild @@ -0,0 +1,1341 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-115esr-patches-09.tar.xz" + +LLVM_MAX_SLOT=17 + +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp" +IUSE+=" wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + || ( + ( + sys-devel/clang:17 + sys-devel/llvm:17 + clang? ( + sys-devel/lld:17 + virtual/rust:0/llvm-17 + pgo? ( =sys-libs/compiler-rt-sanitizers-17*[profile] ) + ) + ) + ( + sys-devel/clang:16 + sys-devel/llvm:16 + clang? ( + sys-devel/lld:16 + virtual/rust:0/llvm-16 + pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] ) + ) + ) + ( + sys-devel/clang:15 + sys-devel/llvm:15 + clang? ( + sys-devel/lld:15 + virtual/rust:0/llvm-15 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] ) + ) + ) + ) + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.65 ) + !elibc_glibc? ( + || ( + dev-lang/rust + <dev-lang/rust-bin-1.73 + ) + ) + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + wayland? ( + >=gui-libs/wlroots-0.15.1-r1[tinywl] + x11-misc/xkeyboard-config + ) + )" +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.90 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/pango + x11-libs/pixman + dbus? ( + dev-libs/dbus-glib + sys-apps/dbus + ) + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-74.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/networkmanager + sys-apps/dbus + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon[X] + x11-libs/libXrandr + x11-libs/libXtst + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily +# placed here until toolchain-funcs.eclass gets an official support for mold linker. +# Please see: +# https://github.com/gentoo/gentoo/pull/28366 || +# https://github.com/gentoo/gentoo/pull/28355 +tc-ld-is-mold() { + local out + + # Ensure ld output is in English. + local -x LC_ALL=C + + # First check the linker directly. + out=$($(tc-getLD "$@") --version 2>&1) + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # Then see if they're selecting mold via compiler flags. + # Note: We're assuming they're using LDFLAGS to hold the + # options and not CFLAGS/CXXFLAGS. + local base="${T}/test-tc-linker" + cat <<-EOF > "${base}.c" + int main() { return 0; } + EOF + out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1) + rm -f "${base}"* + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # No mold here! + return 1 +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work + addpredict /dev/dri + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto && tc-ld-is-lld ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # May need a wider addpredict when using wayland+pgo. + addpredict /dev/dri + + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + if ! use ppc64; then + rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die + fi + + if use x86 && use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.patch || die + fi + + # Workaround for bgo#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + else + die "Unknown musl chost, please post your rustc -vV along with emerge --info on Gentoo's bug #915651" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \ + || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py \ + || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear cargo checksums from crates we have patched + # moz_clear_vendor_checksums crate + moz_clear_vendor_checksums audio_thread_priority + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-gpsd \ + --disable-install-strip \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-wmf \ + --enable-js-shell \ + --enable-legacy-profile-creation \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --update-channel=${update_channel} + + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly + # Can be removed once upstream enable it by default in the future. + use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3 + fi + + if use lto ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + # LTO flag was handled via configure + filter-lto + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # Modifications to better support ARM, bug #553364 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \ + --with-thumb=yes \ + --with-thumb-interwork=no + fi + fi + + if [[ ${CHOST} == armv*h* ]] ; then + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard + + if ! use system-libvpx ; then + sed -i \ + -e "s|softfp|hard|" \ + "${S}"/media/libvpx/moz.build \ + || die + fi + fi + + # With profile 23.0 elf-hack=legacy is broken with gcc. + # With Firefox-115esr elf-hack=relr isn't available (only in rapid). + # Solution: Disable build system's elf-hack completely, and add "-z,pack-relative-relocs" + # manually with gcc. + mozconfig_add_options_ac 'elf-hack disabled' --disable-elf-hack + + if use amd64 || use x86 ; then + ! use clang && append-ldflags "-z,pack-relative-relocs" + fi + + # Additional ARCH support + case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif use lto ; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + fi + ;; + esac + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # Allow elfhack to work in combination with unstripped binaries + # when they would normally be larger than 2GiB. + append-ldflags "-Wl,--compress-debug-sections=zlib" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + if use system-python-libs; then + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system" + else + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + fi + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if tc-ld-is-mold && use lto; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + local show_doh_information + local show_shortcut_information + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + show_shortcut_information=no + else + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 91.0 ; then + # Tell user that we no longer install a shortcut + # per supported display protocol + show_shortcut_information=yes + fi + done + fi + + if [[ -n "${show_doh_information}" ]] ; then + elog + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):" + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all" + elog "DNS traffic to Cloudflare by default is not a good idea and applications" + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5" + elog "(\"Off by choice\") by default." + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." + fi + + if [[ -n "${show_shortcut_information}" ]] ; then + elog + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for" + elog "each supported display protocol. Instead we will only install" + elog "one generic Mozilla ${PN^} shortcut." + elog "If you still want to be able to select between running Mozilla ${PN^}" + elog "on X11 or Wayland, you have to re-create these shortcuts on your own." + fi + + # bug 835078 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then + ewarn "You have nouveau drivers installed in your system and 'hwaccel' " + ewarn "enabled for Firefox. Nouveau / your GPU might not support the " + ewarn "required EGL, so either disable 'hwaccel' or try the workaround " + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +} |