From cee3eb80fb9f425eeabbb779949714a1e06effd0 Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Wed, 14 May 2025 17:15:40 +0300 Subject: [PATCH] mail-client/thunderbird: add 138.0.1 Signed-off-by: Joonas Niilola --- mail-client/thunderbird/Manifest | 66 + .../thunderbird/thunderbird-138.0.1.ebuild | 1159 +++++++++++++++++ 2 files changed, 1225 insertions(+) create mode 100644 mail-client/thunderbird/thunderbird-138.0.1.ebuild diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index fe59349c5650b..c401a77bb8aab 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -5,6 +5,7 @@ DIST firefox-137-patches-01.tar.xz 13584 BLAKE2B f22ee7977e738bb782014dda53ac20c DIST firefox-137-patches-02.tar.xz 16008 BLAKE2B 6b1e4f0c7eba462abcc2bc26a463cf194e51023e2a2b91ac88b42cf817cc95bcc61472983a10ab8b959734d7c57fcf21e34e54f17bbf0f674589969e8bda6d15 SHA512 a573048d25cf0ec6bef8afdfc8a845488f910ad4437a2a87ac16131c258ec36fcea985487e415af00aee91072ef8cc924b395143587c3971d42a120de39c36d3 DIST firefox-138-loong-patches-01.tar.xz 2948 BLAKE2B a88a68418b747206a50b3c7d90c447aaa2a3ae762d7d5d32bd03f3af59d0b9051c278de8b293275758844560f1f275461afbc07e40f449fe5060d47ccd5b0938 SHA512 cd80714cc7142edb1a3dd83a7ddcb11e65f6b3ae2c44c299a6ad6a7636514cbb0ba8bf95446553c028b3a80713825110438727c3308c810358b2483af3340a24 DIST firefox-138-patches-01.tar.xz 13492 BLAKE2B d88f9e457e549e2fa1e14dbc2d226affe723008bab29627e09b82e84262f468995f9e5821a76dedffa53eaf5c77b4dd18ef0ff3ea48e73dc752f12bed2fba890 SHA512 dc99145fefa8d4bc08627098cd068a6f4a4fa9023abe256f6cf8f60de8f9d88c9d6f981c5a87f688ec2c190015e5d06148ae49a78a0326de8d747e2309e781dd +DIST firefox-138-patches-02.tar.xz 13236 BLAKE2B cda86ec5a89d591e7a294cea611ecf84483e28ddca9ea7087f4161ac7589d2e26255a7a1e78e3690dbe97adc5a2d07eefa3b2d2e032eea82f6722f9a6089dabb SHA512 0211e40595a59db168ee6ebdcde398cd9cde6200306ad08633235d8a85bbe367c6a5cb758fc4a9a646af7c33f6bb9a6cf403c47c62be954bc35949356d1e9f6f DIST thunderbird-128.10.0esr-af.xpi 534913 BLAKE2B 7ec16dff76e7264606969bd00f385c4c66fa8c9065f3271643fe7c160b708245abf533ec47004dead0c024333b8bb8b6dd405fe8276619f42c298fc83600f403 SHA512 df4856278b12f99d79b013261d0a4bf992ab8bfc92e557ef743039a08f84a91f711813c5c6e13bcba850f7168d9a0736a97cbe1a30526ee2755d4ecf57ae0063 DIST thunderbird-128.10.0esr-ar.xpi 686462 BLAKE2B f87e099bd9ac8eeada52d4348c44cf3c203ac6851617b9a07345ff55db63e7095d924c60a3178e6672d374f9f1fa0487363d8d13b88faba03eac1de04be5803a SHA512 52bd11c86d87bb09ae7157cebd5c021e6422e5e346bc0458f74e94a969100ced373c9a8c475e4929a6683a51960ef361eb5deb94299cd76fdef9660cf5a1af51 DIST thunderbird-128.10.0esr-ast.xpi 574777 BLAKE2B 927919218ea97ed63d4c2254d7d38107cea9c4c532630f0be93e59233435266f23833d6578397efb5bd9bc711f8a94490382340cf78a0f324c495d65e7912273 SHA512 a5db9ecf7243aecefb4692b529375568dd681183a54c9ce84692e90f33c9c9fe5dc015e601fb18df90e858295575a5e910b69b882b5ead5d43ec66804901ff37 @@ -459,4 +460,69 @@ DIST thunderbird-138.0-uz.xpi 355027 BLAKE2B b2b327824baa717e1e1266d37dbf0e1abdc DIST thunderbird-138.0-vi.xpi 514979 BLAKE2B 36570e18ee95a3a3636f4a5972cdbd373dc8774fdf69a4b6b798fa3c048cd895a7a9d0bbb9bf8fb45ead32f374a30c0163b827381bdd4c8eb9586360ef450797 SHA512 d680e1a13a130a5b355961c7308edfe72df0e67bc9de0491b968efbab260f5c0ab20bb06602308216b9cc221d4bfa08c36291cc6415409982538dde32c31500f DIST thunderbird-138.0-zh-CN.xpi 504314 BLAKE2B 8b6f9ed9fc6373b5b09db9db9c2156374f47b0b48d3b6f991a313f47ba723857769db63eae8978e09a435624aeaa9dbbeef403ad7554e9921518b28729f0312d SHA512 97e98892189b795f35efc54213c07803d12bb3fd60e8e94d39432d0eaa2cc291a0cb77ea7029c45b8d607e05bb8ce60f7fb6ef842fa6c513e4fd319c74685aa0 DIST thunderbird-138.0-zh-TW.xpi 507439 BLAKE2B c769b1a876281667938575949d92c84cb9cabd3d84dee9d6d6bdf20cbfdec69618e0cd6f712051d6ac13796cfe73f9707d27dd090315a13d11af9c883d5b9680 SHA512 dc05052c9726bcda8940ca8add21b87e3e46efb1f8f86a31b4213197c389eba42f6ced8164d0f8f7f1ff6caa9315d006b82a5c1316db0f3dd238e83a0755629c +DIST thunderbird-138.0.1-af.xpi 315687 BLAKE2B 7e46f99a8662119f8df95a3662adb7ff574e4541a4a26d5c0c705a4616ae83a096a76e8bd530967b456345b2c3f4b069c9dbc28cdbabf601e92381ff07f53527 SHA512 0cfa72fb6ec27db137f020941da2eb5e444ed7cb3ae0c5060b32a7b456476d60d4864a2f0f564ac8cdad31cc753b5f62b5a443f48854302b9b0b4602059412a0 +DIST thunderbird-138.0.1-ar.xpi 432652 BLAKE2B 094ea38d277f6731427f1e572fbebac6df7a7fc1518a1bde7aef0a2b25e51f0192f5c301b479888ba577854a2e6b000350219dc2ab3f52fca086eacd04783625 SHA512 c9f5fe598968c6246f9ed0442c42a9f140e4aa7eeb8849d13f313f5c6f953467442c63f4edffdb5fcdf02ebfbfd1d8667e98be8515d0189c6e3d3f9d8bcd29d6 +DIST thunderbird-138.0.1-ast.xpi 341394 BLAKE2B 5d54b5793efe1ca83a477d55b4c1a8aabed37d757fe973fe52b6101cde1662aaed20604cc22cb0fa7abd8b94b7da9d3bf047f9315f5d0c2f605d4ebaba0577f4 SHA512 a5884ac3164c3bbd2c6a95899f5e7fdf5171661c0d65fd04e899d29ccd24e97e46a899373104bd9e19a47617be494be716dee699782161ec42a9ca482ea1af98 +DIST thunderbird-138.0.1-be.xpi 516620 BLAKE2B f4102e4b45456ecf6dfdf88ca03dfc1906fb0b3c1c6a7414ed12b78b0978f9b08e6e10d28abc66100f68eb12ff7c6a675cbbab69b310cbeb1d5773e386a51635 SHA512 3becd2e75df03e5d8c8a501958f2ab4d7985284b0956fab9b48f1c06a6748fdc0222b19e7f8bb573c557025d77d6b911118b396447679d7dc291eeafe5682b28 +DIST thunderbird-138.0.1-bg.xpi 533874 BLAKE2B 88ee45b2fc94aa13853d4b4ee8897c19c424167a5f98c90848e8c87c081142cde3a2bf43ab9d31d63ce7544ca55ea85f91c43556338bb26ebb8dcef1a66e3f10 SHA512 25bb45db8398df274b5d0c88e2bf1815c61c27d40f78fcd85f3cd8ecd090e1a787178c3f3e9979953eb5d08366ad5ff082f9c40bf802211cf73d2e7d3ea841d3 +DIST thunderbird-138.0.1-br.xpi 402264 BLAKE2B 20638ef7f98d7bfc8bf5ea7e2e773ca72c86bee93a84fdf459fea7e4899530dd00c9ce346314148fa88c1b9eaee7cb87c1b10cd8a3447af003dab9c02fa1103c SHA512 5c1f643da662688ee6a8d73a27a7405d40094c94ae3983855e510a1097e96d574530107c36646ce0066871756a2b0482bb86172c5d3c197d91c0dc5714c08cd5 +DIST thunderbird-138.0.1-ca.xpi 440425 BLAKE2B 1f058928fa86eb4bdf7a6065e1c18e2b9e5116747e6c381ba531b26930f6285c626f77bcd2710151f49e9e92647f42a677d37813c683ffc4053c3b1449cf2b5f SHA512 e5ffa3057af2a91dab152f4ad1d453bfc6e9f879a9ad06b9b700f9345a51bc45a5ab2ed13730f4a6d35659663c2a3005c63cc3221e1cdc5b16323df2a90b3849 +DIST thunderbird-138.0.1-cak.xpi 418139 BLAKE2B 1d9259a44a2ea5bde508bf5e477de77d147a153ea7754dfe7f1c2400a01b093037757ef156db601c8e59aebb0d57480ed83d512b4761dc6f38fe48f5101b3d3f SHA512 74646edba48489b90389bc2897bb037d352c96665dc13c93f5d05a71dbe709913fdf4a66361d8d676ec8b90a2cfc0ee2a75f26311797b277d5a743cb43209e29 +DIST thunderbird-138.0.1-cs.xpi 515255 BLAKE2B 371174739ed1e6d89bf62d69f2a7e17fadebf092fcbebed1f86636ce46204327faabec39e7f02d8d1cb35bb408503b75839ebba56ebf1a275f51cc14040de3a9 SHA512 e54b979b990b6bb85228487bd09d28418bfa54b3cd17114b8ee52b292861afc2c77ec62977383de35ba04f87b3a7c7cf39ec33a61096e7dcd6943f9bc03ecfc7 +DIST thunderbird-138.0.1-cy.xpi 483839 BLAKE2B c2e3d62cf19a5a3148f080ef8094ec33a6a2dfafb11ba7653ee713c2a8dbd9d521443d77a2fe8b264bfc0a5f94390b38c87447a9414e56a4c1381ce86a6cbab6 SHA512 c2cc5ed6c6ebda96ba5ec5c462b9c8f853db7d910aff46f11aabddff3c71ea374f464c7fddd5ce50e9c6041ea398a32abd630834ac9ad54e0e0f153922dc28d1 +DIST thunderbird-138.0.1-da.xpi 471376 BLAKE2B e50f2e468d1e2b608f543551034d966ea8f86522a8671cc26d9bec2570b22bad9066d73f1151b174ab79256938725a06eb1fcf116349a73d6eb8470d386960bf SHA512 44dae831bd7afee2ad4c96106dec6298bf5a3e7c3d8b6aec77e9bca6f2d947d50e4c513ad8f2556043e72192d3c7ee0133d8117d78c5d55d38b101e2675ba0c3 +DIST thunderbird-138.0.1-de.xpi 501141 BLAKE2B 16f3a61c163c8ee1883939c6b7a851c205becf818694037ffb28ddbf6657a315d36494ba3ebe9f390cef9843ce559fa8c156a6b56e7328b862e79af1e2d0b47a SHA512 f5f2006845e0ddf155351fab15c4a386536620733b79bb90c33f4c4eefe1f17ad272d2ca23f4a6d3bc0bfb693a2ebd3bd6f406992ed696ba228aed00f58958ca +DIST thunderbird-138.0.1-dsb.xpi 513828 BLAKE2B 53598ef256c4bfec1c0f6b36f7565b4c8467e4fb451645a80162bf93e51f655ede8b1de57a176b6782ce6aa4db8b888b68c4b66678e6a532921d6ae76d52fa48 SHA512 c8114307a9e487516ae71ecd3f9d6128a1196c7a5668878e9c7281214187863d9fccd7f4b735beca9aa92a10d280ea6eb3aeccbe7825fe92cac72157fdae671a +DIST thunderbird-138.0.1-el.xpi 604267 BLAKE2B 9563acccd1aeea1772e42a0c87a88f39382a6386f60ad886f2015da24bcaeaf118b3abd1e922b9eb8d8469775d7f3a37d2ad269c47504a516686bda33893c3f3 SHA512 bf68a440ff724c31a821ba13746ed8e1ebf9d73ecf62a49f1674dd18fe0e72f1386be9a052b101d886004dda505839efa3c86fce1d0d52230594dd01aa72a779 +DIST thunderbird-138.0.1-en-CA.xpi 448563 BLAKE2B b267952c00006358f2bee96efe9e429bc53289fc6c509c4cc721695255bfc00a2a02b820f92a83717802f2e68e9d21b344d199cec12c75f9f7fb6cb6641410f1 SHA512 35ae6ea891087912b2723c7a55522e3d17db710d4f36e5ba03d5297666db2107ad84a236cacf1b1737e3f2f4f26b23639994ecee747d567e12678ff06286657f +DIST thunderbird-138.0.1-en-GB.xpi 448928 BLAKE2B d6a780e38ca73bd49d4ac784a6c4fde0ac74a2a9c16b4075a1ae0c4c05d57f9c7580f33f5e800d28ea6bb102621044ba5862f69f22d976298821460555229331 SHA512 7974fb28130c28a57b5c69a71a17f014e437b27b91e6f045513db2d06568ff055c3f656767a2c7da4e45c5daaf55895aa23cf5d8a71ae76eaf74bb921d78e7ac +DIST thunderbird-138.0.1-es-AR.xpi 491742 BLAKE2B 218768d6573596ecf937d48e99d0169ec7cb37393f4aad7771bcc700ec8704f0802497f9f79b3bed2d62c865145ce0efc61f06fa73d38721c8de9a64c25d2a53 SHA512 c66c1395466686693a15d4869ff5cadcc13e6e0b4142a698d9cba8e9845dc4c10bda5ea661b6ad7f6387cb54ac1d5dcc3910758c3de6491460774234b2c92ce4 +DIST thunderbird-138.0.1-es-ES.xpi 493687 BLAKE2B f24e7f338e53cf2b7de8d66bfb7f0168c158d7dd1ba2a4e1b864eff5143f0c4fe75dfc59b1feb7139d169c980e3c705748b9d023123ed814a265b45b137f8119 SHA512 a4e1313d9116fc80501d0b11b5e9e60f376ec0cd015bded2040637ae787dc5b7c56d5434c00ec33e7a39c561f8a9a7ef37ba093635e6a813f0b4ba5503ef2921 +DIST thunderbird-138.0.1-es-MX.xpi 488410 BLAKE2B 5094d1ec01c56b54a4bcd70017acbaa1fc507a14cba67650f146d60a4f36ed1b231cc83029c9fb158ce40dfcbc919c2a06429aa9230fad4da547cb86b912a397 SHA512 c382e35d0972dc87c6b245f6eb4dc22bf5793788cdfbf70d7626d1c73158a2225c3cea68600fbec6384d7c850638050435784eeecfc514c40da903086251e4c9 +DIST thunderbird-138.0.1-et.xpi 438747 BLAKE2B 79860de5cb146db9cc90b8c21d659d4315a8d4da9af78d76c9e5246ad84c82b0a707ff2e6ad35f719e18065916ecb021413ff403ccdd9d6bc069f1a824862bbe SHA512 f0e8860abbd98344b6cb85e7884fdddaa7caf3d576176c5daabf4fb1b0bf1c036410fdbec46ccc9afe4ef7812b4e7f2a4101646c61e971834e141dfad0441d33 +DIST thunderbird-138.0.1-eu.xpi 469450 BLAKE2B 566dcd8c338a0a7e9aec208a47f70ebf115c41142d13ce21efe74d2b6c1955062e372a42dbf83abcdc859bf6b7735b273cda90fd5b27c59f931ecad8dcd6f212 SHA512 9efeda29ae8eacbc0d22731b191b35d345dc9c2b35f54eda36b81ecf86f151671ff59bc47551c53f7d158f4fd6baa7cdd3f044fe2a6bcab1273cbea6f45f5076 +DIST thunderbird-138.0.1-fi.xpi 470781 BLAKE2B 85023c2725a1618eb0a16e07aea85b642588d26cda82476083d55d2166e3f937b20c28b6993adeccf427665a7654c25ca504c3a9ca6d68b838e39f989a680ff3 SHA512 be28fed92d590a2353db36d89701f5e2e877807423f7b9da837685ec5a946c6dfeef4faf9b80d4083cbcdc846985097a03ec345d5ad249991c83244a402b444c +DIST thunderbird-138.0.1-fr.xpi 504512 BLAKE2B f6c91c2eebbd3849140a2aebffb1f0ccb785f4497c6d29904d0a4586bd2f9b69b2e613317f511ce4d59b7a10a439fa19b5b766ddfd1330ef7a2dc87b76e554ae SHA512 e10875ef87512ea1ab8a48cda9f8a289fd871a39e8a66d0fba438f4ae750b551092bdf67761ae8061e6cb3458a3b58ce73b71fe21d14957ce945c158d1d34ecd +DIST thunderbird-138.0.1-fy-NL.xpi 487019 BLAKE2B 73b10799ed7bc5e9aa84ce20e00970a9b11a1de108424e1c69bdc4f7de4ac7023e4f0f93d564f8f6ee6c7675cdc41ac85aea12aa4dfb6970c196ac5844ce1d42 SHA512 7cf31c90940c4a2094805420ac68a1e44383a9c2c7dcad0fff5bc7350232f6844f6dfae767758ac2f15720f58a455a9e765b2f7e39d72bbf7aff8830e195799d +DIST thunderbird-138.0.1-ga-IE.xpi 376470 BLAKE2B 9fce1b3d3b73f2cd3233370f11185d5c13f450c56b3f131b1fa9f3b0237f160d1ab90a4c862c3c3e83cc7f4c0af81b7a9bb86802e53c261c84c909461fbdd077 SHA512 368e1a38c0180a7848e5157b89d6e92ec05a789e9878cccaf9eb53d54bafeba9c6396ea10516a6674157aee5ddf270f1b198b7fef4ad0f0bc65028ed7b6b1272 +DIST thunderbird-138.0.1-gd.xpi 462106 BLAKE2B 4558aa988de9773d1c9b9e0c922ceff2b40609aa2474ab4326d99a24aea46b94928a46d32b6e0b9ff91b1ab42c2e17bcaa19d7e9f5c141fff268c786bf3d1bd6 SHA512 7d805d3c820d456599169835c73459f6e1cf719969feb58f32e8a1f3815179c62d2fe9cd37554d3703231649d735cdc9fb15971d90855483410281c2975b53d8 +DIST thunderbird-138.0.1-gl.xpi 470881 BLAKE2B 0497c41680aea23b9d3af35e903c959767358c111fd5e4b4e406858d8fdbc5fca3f332010d7be0c49c104368d34c15acacad7e4026751ac2cbd6b6da31c13731 SHA512 054e48264378427de9529c038c22c84eaad293333ca9ce967e4e3ade928bef0343aa5d665679ae0b3844c9be958db69370c24afe2b793c60c41a4f7210245eb5 +DIST thunderbird-138.0.1-he.xpi 438480 BLAKE2B 736f5591a12d0a3fab6b55074256e164fb28b8280a1bb59a88ef59fab640bc98107ed7371e96832a5cc8dfa9035e0609564d80c0d3b0b6eece74b7ad1cc85efd SHA512 75b890355c41aa64cbf044f6f50de3d41d812493c1a686466c799bacdee6c02b707949de60875b3bbe2abb3b323dc83c98e8f5b3b5fe8028aa24ea5ecc16aa9f +DIST thunderbird-138.0.1-hr.xpi 458122 BLAKE2B 1fe34e71ee12132a7eedc37253bc52693a39c19a72526f16652bbbd18a292068bbff346163c9a1c02374b1fb1306f0b7f169a90a10b1774666f570c428748422 SHA512 0a31b9ff7270cfb0256eee6123cd140e840253bfb5ac8877ea71b55588a8dcc994bd5f7f94ae2905cf4a61bb21ad0b2a2fd32c0ecc2516cbb4494fefbedfe93f +DIST thunderbird-138.0.1-hsb.xpi 510912 BLAKE2B 1f9ff15e5a2feb28278de8355d7a1bef8da3188027c522204965177fa7e0bca1d88040b90d8434a28919e04cb5bd2b7c37454899844d4bfae81d936c6160eb88 SHA512 c38e96ec94aa23c6f968e8975039b9c0d6f9722b041fa8912f48c998bcc659bac7a1d45f8aaf7d86a6cbc1101102e91f989371b8c09486b8c0642446267e97b5 +DIST thunderbird-138.0.1-hu.xpi 513726 BLAKE2B effe19bc92f7f523217dd58d09439edec8dd4acf8235aefa4fe1bf9f6868a8614539f8466dc8a870dd0c49d97d2e0d69935bf06efb478f5472c94459aa0654b9 SHA512 5be8ef7fcd462b45d0844a1c65b1aef3c336a30e987211827a00bc1b68270358db3c933a29586ed9db328f899f7fbaff035899ad37f6d369a3692e857aa7d47a +DIST thunderbird-138.0.1-id.xpi 463634 BLAKE2B 771601d5a80d653a2dd4645b8fdb2ed0b3ba243d6b3015f7b226434a768959d467e203be7eb889f3f3010f8de70fc5e8dd0b6dd467e0efd353658e22238c969e SHA512 831fb3d921e6a52a1d802830975ce91173a30061d71a3b4c8c0cdc8c3b5dafe97c31b12577efe2280848dd4d3331592f110c1e9dc619bf186f685f1c3c1a3949 +DIST thunderbird-138.0.1-is.xpi 480772 BLAKE2B ebabb25c47fcf36688aa62c7ae239936b7341767b89eb3f6891044a46e96b8556dcb990eb79e267571b5f28b57e1376e4e0c466aba8567d5116904f9ca441b6c SHA512 07037e3c3fb0f52fd1fd6df70b9cecdd26f8e9c6957268e71fe2869d0744f349a37701dc5f8258af596a0f532781e4bed72c99f633d4d768098f814e70de152d +DIST thunderbird-138.0.1-it.xpi 484895 BLAKE2B 7e681de06d40843ec5c9af63938c1a4d0e507d2c92f7e0119195e4172ef22aca857076e6398a4830cc937ff21ec063e91d0bc6994c45fea39d6c19b4e4a93b11 SHA512 985b59da6f79e52c3003c6fa56e3284899964d6f3a6dc9451df6df8a12fd1f80465f889b9e787576111362711c98d4ecb56693c3f84579cd26e3526c9cfdd543 +DIST thunderbird-138.0.1-ja.xpi 535302 BLAKE2B 9f89fb8f2d6323e2bb9c0f1d29603096455f4eb2e092258a8f4f790b56d10d534d4d62abe56587669b6dc2a49bef03b247c4bbc5638aabe124b1b85b90842943 SHA512 80299a8aa4f47b61ad1331cc65d994c764c9987c0b316a43c421db5892185b3d0e5fcb3d19703419fee0b2a7fc0b48cb85f9ac86223af3ee77c1303744c68560 +DIST thunderbird-138.0.1-ka.xpi 540337 BLAKE2B 98f6412d97a3240accef45f14d55103edae7a9380b3e02de7cf6af3bd7547704caac5de6c9c29b256510ad56c9199c11c317d86d7ac42423e9d9035bdb169c76 SHA512 301f97042c5df92bbcdb838456a56e13aaa809505c00270b6e407f0ee74a015fb87d2b84d6aab5c35d030a29fe58c950b41e956191354dad40bdd0c5cabe5181 +DIST thunderbird-138.0.1-kab.xpi 463061 BLAKE2B 97efc72636040e782ce6558d5a1b4316480160ef79ae6894668191f9bcbc8729bddbf0b42a583e4646fa3d41a0625fa67ccde5d37a90cb239d341f628122c1c0 SHA512 79cf19304138006f86922ee6118995e0f3ad428ba6750e91c858c090e92ac12da453d0de44ba67ac5142cc9f38aca5cb1f4c66dcbfbade1020348ab914060020 +DIST thunderbird-138.0.1-kk.xpi 569094 BLAKE2B 6d17a1a6ef39f1999514cd90fb793fd28562a4ffcbf1ff5a69a2ea712f065b73af5d11abb60daf16fed7f09a51e79e27a2510ffe1fc49428c0c8f3664789be89 SHA512 30db39d92e9ef9ce64af19e7c8ed3b56193c61f93daeca3a79361e9c7a3a9be2c0a1ea5109c6f602e0c91bc3db673a7160dc4eaecdb28b6d1e731bc494565e19 +DIST thunderbird-138.0.1-ko.xpi 509786 BLAKE2B dcbc639600968a98da5203af4a06accc217bec5b1395bd161aadde806b56ee926d4571d9c7992db83fcf3c6a28d3a31725a86999f9e7b59befc54368496eaf8a SHA512 922cd66f7e66f2ff79082700eedf2d94ea9937bc123ea91bd83939a65d81918a3fe6cd25ba76fb7098a2d7a3686065fed8a0f4b99e985a4e0a8ae9cc8279d86c +DIST thunderbird-138.0.1-lt.xpi 441910 BLAKE2B f46c1a61a0f4972168079a143bb8119ca8c6bae5569ec5f16f07669131a1068fbf77c4ce7a809830a4931a5b33873e4992dddfe3eb8123f81be9f6bb68b7da9b SHA512 1b7852a826661b3494e566c9109c4d63bbfbc10279b8f22c0b610741685d69a5c4371ed43993daff5e16f1fa6c184d2e941949630195edc3f3f929f3abbe42ca +DIST thunderbird-138.0.1-lv.xpi 391655 BLAKE2B 436609220c6a712a36b2b8cc9bfabdbacfbac7114a1d1f99a3148f51dd03999cd2c59364ce1b1f667cb179457b241b3bb4b842cf0b5066732895a70f4661e614 SHA512 ab7e6f76d4deab344c5ad45f31cd774005e0b2be4fc54e130498ac18b5c33e489ec7b66e6f3e5f5195c022b11c1e53161fe6470da8f4035b147ebf2a2b0ce036 +DIST thunderbird-138.0.1-ms.xpi 351834 BLAKE2B 11127391bcbad11d859b5326bbc6eac2b83011cadd3a795e3ccb61af3a8430caa9ea34ff337ff7f7da41330f671477d6dfa1c6f24e155fc584ce0ee54c7ec415 SHA512 7437b5e5fbda122e0bd7fc488cb7ff309a8ccd6cbed7b0976dedead238959685347a2cd6fe69803f42e4541e075310dc37301972925c081b392fa6266c012be1 +DIST thunderbird-138.0.1-nb-NO.xpi 443701 BLAKE2B d8600d71f95c7c0c6dd4d340d826c37fbeebfa0e1e3d9ce708c84b4ce410f871d6117c13564fad91439bece6f4b8e2bc88c1e6b6ac49ab82fb60a8b837d71d2e SHA512 f8578119687eef2220b41506e6eba1a13142670843c36168484435d5bb59f34077d97cc3316b0d845517841a70bacc02d718d687bebd9043da5e1d386009a974 +DIST thunderbird-138.0.1-nl.xpi 478549 BLAKE2B 0db813966b6b0eb84991e3d6aae1e2ab065f365452cd618e1ede9832815b92038c5f4a33f56f33c0681810186472675a7a734ef03c53bff9b3791de326ad938f SHA512 99becedc60240ce58fcfed1083a938c2ac5ca58b7e4e3eb1381b296ae7db4905bf6f2cba3471c61c21c8aa31799ea3376d24283556f6c608c157b4339b5681bc +DIST thunderbird-138.0.1-nn-NO.xpi 464540 BLAKE2B d3b75c52ad064975ab46217dc98283cd9d422f18d5953f1e0e02c56a13d2f34ae706b6648ed66e86d76ed0c120b15a3f82618607940c4c4b7b135a83083785d7 SHA512 e7d7979928be8100fb5b11e6e8a28ac119eda04c43673d3105836d945a349e151da750099ffc9dbe92a97d6c95cce4d635c08a315d1bb76215bb5ace135b4e9a +DIST thunderbird-138.0.1-pa-IN.xpi 432789 BLAKE2B c75b5736b5912ab84dda173c936bd0543a5fd10bb1cf7b335955dd29250658ba67801dfcf2a50202fe139817c965a6edd35840cc3c3a695247ca1c9c9f9e4eb2 SHA512 d3a0d49b3d1a7fa93945b003f7d1a7be66a0e2a73ee4f6f7655cedeaeacaac14b1411a990de28aa21ace6c7e5adcc043786cc94f2e0f747b4f0e3347a82afeb0 +DIST thunderbird-138.0.1-pl.xpi 511052 BLAKE2B 2d40c2bebf4eb568ba105dc0f718bb3ad9e75324b22e6b181084f66b431a32968271b7dc37bf3303736c25f00750ef264d550470e09bde08f9d4e15195298138 SHA512 3c5a4e8859f5c83ea5eea39462a1c18aada3464dab6449c4829662e919fd0dd647e68a65fd181a7649272c1f5c15bc65736fb1252a73464575a01c2930466020 +DIST thunderbird-138.0.1-pt-BR.xpi 486095 BLAKE2B d47699574b018cad0e0271d8273e8cb9b2733f6d705a6250643c97af3c4effc61ce4af984950719e988dea31b5c8079795e1a48234452f1cab702eae7f3f58d7 SHA512 cb7933c9e4f11fb66047b8bb34639c7b6d72757297922ba237f8093f0d71af769a41cc0f84a88bd705e6cba8fe598a8399b3e540231ddc8bd9f22f05c06281db +DIST thunderbird-138.0.1-pt-PT.xpi 481030 BLAKE2B 256b89797811b8bcba15e05a1af5fbacd0b85a45152dafb5dc8c4f6af9db29b76aa4d284fc66cfd5828e9438792f675215da3230d21f901b8927a6e78bdafe6d SHA512 f029cbe86f29587709ffd42fcb5b0df71494e7e72a164f34547fbeb1aeec3756d4b4a4440118d27d3a2d2db98251aed42a8a2e7bb18ce52510fc5ccb6ff13f40 +DIST thunderbird-138.0.1-rm.xpi 486826 BLAKE2B b1aff6b209b94d71318da669d3d51b5ab448900f06d12a9772fdfd0b6bf977df8ee9b01199effa0d722ff469ca7d087f458a0be6f8383dddc3500be356dea6bb SHA512 dcbedebf71dcaf3e50ccb522a4612831c2cea0ccf5ebd41a7d354f1bdab08e592928767bc92240fb3092c5070019b723e8c702c9cff90c5ebaef780dbc39ed4e +DIST thunderbird-138.0.1-ro.xpi 417511 BLAKE2B 3f0343b8e87687189be73cc5ad5ac93cc3ba22b5d555169c387d7c691d4c1e4ab26aa211da07e020fcf626e0a8a0a88fa8620821ed4f9f81f763bbdc16d84b74 SHA512 b3cfc2208f87a53d650a9303d98173e69f279a0021e80ed2311facbb472814a457dfa5191cbb6dfe60fd6592a5974982480f199bb2e00ad0d17a3a0199060556 +DIST thunderbird-138.0.1-ru.xpi 588299 BLAKE2B c38900fc5cf8cce9fc5c1ec88a4a8c8b096546d5b7693f55c72fda92c7926aba29f5e1e595d6a8da371973641ae56167248fb6838dbe18a662d14cc0c51f129f SHA512 784b250169d1144f553735c34822401bd3734f841d21d8f5167cb4adb581b7fd5381533115566c516db701d7380236bad08a6fc13ed03368f89fdd15b72d35a4 +DIST thunderbird-138.0.1-sk.xpi 515102 BLAKE2B 55cd1f70445ea40c223ef0d9a4f624ac7f5d7507f807846e50c90b5f03d948f8c431ec9edc96cac44a46bbd690dfdd5325ab51eaf2e5a31379c54238212465a9 SHA512 8e6999f77d915cb6651381c897548d9851c4e766e4101cffdafc7d371b2f006b96409dd4f42ca5bb8cdfd6ccdebfeaf2fa2589e13145a6c94eacfc58874028c2 +DIST thunderbird-138.0.1-sl.xpi 481929 BLAKE2B 21f273ad5faef153280c5bad868a678646e75907bc4aa4f1a5e4756eb532958000ce627fa33f41656e23189e50c2e0448f962fa61fb73aa253a1f9d398cd4e18 SHA512 d923313805c1763d689aa1295210b09a2eb779faf2ca2cd7aaeb7179d3ab82c51d9ffaeae62b80f8a51920b44dd691f0a48ff66abc078736bc9b1424695812fc +DIST thunderbird-138.0.1-sq.xpi 501796 BLAKE2B 4176e52b9bba4e53cb0c24d9e1d1dc8584d29005b571b54a328be22d6769675e2db1a2fd4e77ba7d7cc15a9eb0c7ed509e89d15c1e8151d44270aa1c3e4855c7 SHA512 762a30d0239007fd31b78883975da4919433389c220940cccc43c181e452da5eb8daeac40a487a62fc3cff26afe3d2ef07706f6c1136d1df069120d060e7d5b5 +DIST thunderbird-138.0.1-sr.xpi 495832 BLAKE2B 3760d27c55f3cb5868bd48885b5d94dfc257f74a6b56acff10f298e3cacd5e6a78261a5cbd26680a517619efe8912e09fc0ac83ec51fff287e5c4fd9e7c26fc2 SHA512 5159389cf649641b74cbbe318b9c5ae89d74c5a5ddb431a24971ab1f83f365c0ecf75f05dae36e529ef106c4951948acd75cc05c249caa1f9fdc200e0af828f9 +DIST thunderbird-138.0.1-sv-SE.xpi 480918 BLAKE2B d638e7c64e0836963ffaa47fc4b1ca360c88d6c8c13f9effd16651c9bf2465df3e3b6c84ac8eb9c2216aff8a903942f9f9317ee924bbcc3857e9cec67ff26872 SHA512 5950748a7c02d0ce2aa3f2ae7f72ba87acaa7e730ed89e20119cd39498eb081817b1ef727ed1e5660028acea7128c662efeaf2aebb803fd89a8ce453d43b1c64 +DIST thunderbird-138.0.1-th.xpi 561778 BLAKE2B 681a5934959896973e930d3f2b5e8a9d428e8f5e2175e4bd8330df02e70e6ae645976a0ed5ef4bab9056761127c977342a4bf47e0ac4ec08f4c525b5ed381e22 SHA512 cdce9907e54f0a2d801071ce9ee2387814ca1e777801a0f9d2b8becd9ee13ac6f97a96779a0579ba9fe02a5d5509d85895c10e40f3a3c53272e3da44023ec86f +DIST thunderbird-138.0.1-tr.xpi 491036 BLAKE2B c5a4d94232d6c503708c7b6c3c39349f9079b15fc9c07e3105c8f33c78b456507f796986c40f46d93ca1131ad216bda8f227774c5fb0782a58dfdb1006c03655 SHA512 7b6b11652f4cf6c76149a967328367f8083f0ccc9e2c6333c686c106c642bb01754a3e4c65c092f7316ef51092414e45e24d27baf7f9300c039f0202df0aba3c +DIST thunderbird-138.0.1-uk.xpi 577315 BLAKE2B 63c058f912dff84ba4f3bf742bb0fdcf398e8cac7274df088ebb8dde0ae8eee21787d04c08f2a815c90933815724d275419e0132dba0a78c1444a663cf27f776 SHA512 1b989eeb55cb0ed622b4b2009d8750fe1a9b9165065e74da8c32391635a17e0787c9e31045a80ab2826d4d8c0d1182bb2fb53f953e3c19c38d70a888621782f8 +DIST thunderbird-138.0.1-uz.xpi 355027 BLAKE2B 25bd6e12500620e159f7a8d7398ffa100b0181dd2dd760182a627d10e11edd87155f8c57a3aaddb52954d8bd4cb021af9f16952b1154fed45241a49a4bc040fd SHA512 7037e62f2604e1487ffdab2132198437582e10e452450c06a9900ed293ec49d472d4f4ac1470ac9dd420f320da7c189fa0fe4f6a568c52e8532ec72174637f1a +DIST thunderbird-138.0.1-vi.xpi 514978 BLAKE2B 2489c67f3a67f587698173b11ec1784ee9e6a61a8a196b85c33a5fa692f04a348025536e0705b9a7d710e2e4508db7338fd0e6c0f99612874ed4d86cccceea78 SHA512 18c44b898ff5be2915a917f1d42b89097d94fd5b7774fa2861f6c6074c501e782e1e46319983a1962f6b3a07c0f6cf4730c1001aa239402505f01b441e1fcb3d +DIST thunderbird-138.0.1-zh-CN.xpi 504310 BLAKE2B 0e730bbfd844196dcf3e574e59bc274db302e3cd69610fdeca83e2973fc746b204ccc043559fd6595af7171356f7f5660b53a66f6da531ff1ddd143ec5fde921 SHA512 90e6bd4fc7aae932254d81f031ac4731d45d439d9858154a4c1fcc0439db9e369a7bd2f458a1bb4624ea15fb8e2fbfa64047b7ef57db6d825fa0876fc9138dcc +DIST thunderbird-138.0.1-zh-TW.xpi 507440 BLAKE2B 1a8bc27f94071ef10b55170b0110e11e5e8edb51f74b8f450e939e89a7a3b794799071651df296ffe7dbe75abe56eb305ed5b5ac2f077ece3f0d30583f5e3aa1 SHA512 9cef9db818799611a66b493212845b803358d1c1ff02b7259fa013c403c72f74e8de3b223681138e4a5a4352fdd7eac21a4f85b07d82c247065d09c7ff4a258d +DIST thunderbird-138.0.1.source.tar.xz 758760604 BLAKE2B 8c1e6d4e834ce3128c97211c8b73c0af695d722509a292b06c08848408863177d51adbf0779029595010c515e46014d00a7391bd3b5456cf2e406c773cdfd353 SHA512 2e71ee537292ec1a49237e93c43ed4c1a9eae58becfc7fa9ca0daf1e982c38704cb6d44e92b1bf7b45c5b8c27b23eb3aa7f48b375580f49ee60884dadc5d85b5 DIST thunderbird-138.0.source.tar.xz 749291604 BLAKE2B 3c3985cc69e00884693ee12ac414dc2ed12e4c2d4b4b4534bc216744e4d006b1df8ea68667e35a6e597abf4abc7eb8657fa298effcce29e203355a37030d8c45 SHA512 923d76cf0a14f29146e5dcfc75dd9522d465512f6c604de6e0acc0812d4240331c170913a821fc0aa03d5945019577f996053498c9a7c691b21a2678a622ac02 diff --git a/mail-client/thunderbird/thunderbird-138.0.1.ebuild b/mail-client/thunderbird/thunderbird-138.0.1.ebuild new file mode 100644 index 0000000000000..1d778d4224e85 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-138.0.1.ebuild @@ -0,0 +1,1159 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-138-patches-02.tar.xz" +FIREFOX_LOONG_PATCHSET="firefox-138-loong-patches-01.tar.xz" + +LLVM_COMPAT=( 19 ) + +PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.82.0" +RUST_NEEDS_LLVM=1 + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +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 eapi9-ver flag-o-matic gnome2-utils linux-info llvm-r1 \ + multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +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[@]} + loong? ( + https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET} + )" +S="${WORKDIR}/${PN}-${PV%_*}" + +if [[ -n ${MOZ_ESR} ]] ; then + SLOT="0/esr" +else + SLOT="0/stable" +fi + +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86" + +IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + clang? ( + llvm-core/lld:${LLVM_SLOT} + pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.28.0 + net-libs/nodejs + virtual/pkgconfig + 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 + ) + !X? ( + || ( + gui-wm/tinywl + &2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then + einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + if use pgo ; then + if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + 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}" +} + +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' + + 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 + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + + # Get LTO from environment; export after this phase for use in src_configure (etc) + use_lto=no + + if [[ ${MERGE_TYPE} != binary ]] ; then + + if tc-is-lto; then + use_lto=yes + # LTO is handled via configure + filter-lto + fi + + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + if [[ ${use_lto} = yes ]] ; then + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-flags -Werror=lto-type-mismatch -Werror=odr + fi + + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif [[ ${use_lto} == "yes" ]] ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_setup + llvm-r1_pkg_setup + rust_pkg_setup + 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 + + # Clear tons of conditions, since PGO is hardware-dependant. + addpredict /dev + 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 + + export use_lto +} + +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} == "yes" ]]; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + # Enable jpeg-xl only in Firefox. + rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die + + eapply "${WORKDIR}/firefox-patches" + use loong && eapply "${WORKDIR}/firefox-loong-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" + elif use arm64 ; then + export RUST_TARGET="aarch64-unknown-linux-musl" + elif use loong; then + # Only the LP64D ABI of LoongArch64 is actively supported among + # the wider Linux ecosystem, so the assumption is safe. + export RUST_TARGET="loongarch64-unknown-linux-musl" + elif use ppc64 ; then + export RUST_TARGET="powerpc64le-unknown-linux-musl" + elif use riscv ; then + # We can pretty safely rule out any 32-bit riscvs, but 64-bit riscvs also have tons of + # different ABIs available. riscv64gc-unknown-linux-musl seems to be the best working + # guess right now though. + elog "riscv detected, forcing a riscv64 target for now." + export RUST_TARGET="riscv64gc-unknown-linux-musl" + else + die "Unknown musl chost, please post a new bug with your rustc -vV along with emerge --info" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + # 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 checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # 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" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF 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-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-dbus \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --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-ffi \ + --with-system-nspr \ + --with-system-nss \ + --with-system-pixman \ + --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 '' --enable-update-channel=${update_channel} + + # Whitelist to allow unkeyworded arches to build with "--disable-rust-simd" by default. + if use amd64 || use arm64 || use loong ; 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 loong || use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # riscv-related options, bgo#947337, bgo#947338 + if use riscv ; then + mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + mozconfig_add_options_ac 'Disable webrtc for RISC-V' --disable-webrtc + fi + + 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 + use system-av1 && append-ldflags "-laom" + 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 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" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + 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-x11-only + fi + + if [[ ${use_lto} == "yes" ]] ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + # mold expects the -flto line from *FLAGS configuration, bgo#923119 + append-ldflags "-flto=thin" + 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 + + 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 + + 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 + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + 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*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # 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 + + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + + # 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 [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; 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 llvm-core/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-r1.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # 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 + + # 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 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 exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if [[ -n ${MOZ_ESR} ]] ; then + local desktop_filename="${PN}-esr.desktop" + else + local desktop_filename="${PN}.desktop" + fi + + 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:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_postinst() { + xdg_pkg_postinst + + if ver_replacing -lt 136.0 ; then + elog "In this version of Thunderbird, upstream introduced an in-app notification" + elog "system. Setting pref 'mail.inappnotifications.enabled' to false and nullifying" + elog "'mail.inappnotifications.url' may help you avoid these messages, if you don't" + elog "wish to receive them." + 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 +}