From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3024115827B for ; Wed, 20 Aug 2025 07:11:42 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 146263424B6 for ; Wed, 20 Aug 2025 07:11:42 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 518A911055F; Wed, 20 Aug 2025 07:11:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 476EA11055F for ; Wed, 20 Aug 2025 07:11:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ACEBC342495 for ; Wed, 20 Aug 2025 07:11:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE954306E for ; Wed, 20 Aug 2025 07:11:35 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1755673788.4870a6f865a54ff99523dec562eeb14966c03798.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-client/thunderbird/Manifest mail-client/thunderbird/thunderbird-142.0.ebuild X-VCS-Directories: mail-client/thunderbird/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 4870a6f865a54ff99523dec562eeb14966c03798 X-VCS-Branch: master Date: Wed, 20 Aug 2025 07:11:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9eecbca9-9e2f-42ea-b260-4b6aa187644a X-Archives-Hash: 6c8b5a2dfc5ea7b510e7dac9c64af98d commit: 4870a6f865a54ff99523dec562eeb14966c03798 Author: Joonas Niilola gentoo org> AuthorDate: Wed Aug 20 07:09:48 2025 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Aug 20 07:09:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4870a6f8 mail-client/thunderbird: add 142.0 Signed-off-by: Joonas Niilola gentoo.org> mail-client/thunderbird/Manifest | 65 ++ mail-client/thunderbird/thunderbird-142.0.ebuild | 1159 ++++++++++++++++++++++ 2 files changed, 1224 insertions(+) diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 0acb72827dec..a625b9ae6258 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -263,3 +263,68 @@ DIST thunderbird-141.0-vi.xpi 519920 BLAKE2B 6d2d2764289592c7ec0632b4383a67d0397 DIST thunderbird-141.0-zh-CN.xpi 509122 BLAKE2B 17056ad0f44344d83c451ec33f56cb533eade4f958b793c298afc51ef675c95e7822d3b9b2effdb3c41a0115a4dcc684ec14e613e0c9990c31d6118e1b88158b SHA512 626d0da2b56ed56605c2d346f955f55adc65f980e57709fdf9efc0eb0c053065b50f20521917de6a5c5ffc9d6b31449739b0d34c4da4c3d2bd8d8b2441735c63 DIST thunderbird-141.0-zh-TW.xpi 512430 BLAKE2B ea0d41d04bcf6b08ccff1dfc2fd2ae8b7ff9e61c0edbbd8983ffee73ec948524a799a1d5586a2792e2a59ab4d9a3fd53b0d6dc84a75472cadb7a668263a2605a SHA512 98146122cd0fb324ae32db470384c7109db6f6888a66b343535f39e5822a1ed601c574e3547550e806c6cf0af00c275be563f3d478c685fa853b6c9abff80734 DIST thunderbird-141.0.source.tar.xz 756973792 BLAKE2B 0d34424aa897cf9c5047a90384aa3b9bbf64bda6f73d188df0fcbb33e121b2c13f662015d11f62e0a8564ad6ed5705c6bd0f9cd87575bd3184e81ad81398d271 SHA512 cd747c0831532f90685975567102d1bdb90a780e21209fe4b7bddf2d84ac88576766706e95e22043a30a8a89b6d3daffb56a68c3ccc4a300b8236b20d4fca675 +DIST thunderbird-142.0-af.xpi 316582 BLAKE2B 6036dfec46ff865711e8a07fb9ed8c7593bebf09a2d0d0055ce8fceb9a5c483b9c257a83d7ba8af2b56ef21200df9b714e9be603b39af2a50feef50a366fdced SHA512 dca154063ab5feb2018187f14386146d25bbc52293b1a90e9d2454a378f9f2a32dc43fd0e08ebdb5e564f6c3ffba6dcbe488512a57fae1a993256990ec2bbff6 +DIST thunderbird-142.0-ar.xpi 435773 BLAKE2B fb9f9d9c33bdd5092c90be5f4f12726e2c3f7848f77e34eb12fc9b9fcbd204ccbf4dbcdccaa0caacc057b369202da8d844c9cc04a4620ae8d4919af40f4762e7 SHA512 63e08103bfec7e8bceed9e857c3aacbc5b6e6341cfb05c69ba7e0840a5bd26fef66918eb93ae4d7037f930460c5146ce36cabb291592df862fd669e73cd98a1b +DIST thunderbird-142.0-ast.xpi 340759 BLAKE2B d4de6b078cbf50cd8fa99c6f46a6021ea49c4276eba0a77138649b54b56ccf0e79c45955db0bb2b9f1095c12ba65fbbc09dc55fb78a001933c063005c42b3929 SHA512 2762983f30129ef2ba50a2e70e0b282dd61b5c95b1801fcc10456b6497104bbc1160392bbbdd0cab71c48a1f81ce3ccaa29d679f66b88e9acf374c99c5d4e94d +DIST thunderbird-142.0-be.xpi 522208 BLAKE2B 61675305c6e9478fe16f8beb646801c2cf20a804840f420a9c5e331e318c161f6401c05ee03e51baf1d7859148758866d94f781aa2ffe323603c07647bbf3655 SHA512 895c5fd9c0bb27d333aa5d901a1f379c19391c35dcb21d082bced5a8f69e27589f3603b7c61b8e65e36ee72d5cfb216e5330ba77b30da450fc90ce79ec69b53d +DIST thunderbird-142.0-bg.xpi 540630 BLAKE2B 9b7cb0491355af3b68f0c5fdf22f3955ce6d4d23f24b7075cc2be4009fd1f85c47dc6acaf9c561b865fed2ae3257f03b7db78b600112138cbbeb0105f57b8e24 SHA512 3e985d9a664e65b07d6e6921b2dcecf63e75e2a2bb9a4feb794915a877ddb57019f72ab916b9bfd5527e2f8966251e813310a4fce6b1e7dba0910e5ac79d7fc8 +DIST thunderbird-142.0-br.xpi 402895 BLAKE2B 410d6f9b98723701925b74b0d2129e55e6873a4f35a3b9a93d174911dd265037fb3b7229f6eec193786d29f7a515773336987502f9cf56eec93b711fb754e524 SHA512 d7693f660d1fc44e5afdf02f12e9606863dfeb49f75eae2f9fff020c5257aee0f68d87a4962b952adb48d1f5df199508b71d198dbd37764ff9a94898bed61715 +DIST thunderbird-142.0-ca.xpi 440394 BLAKE2B 2cfd44de4f4afc0027305224c86511a35772680039d27fa78417adc1b7eea84de4426e4f8026b9dee166092c4318ac35649b84b83d75287fb3a893e7469b3481 SHA512 6c59c8afca0dee0bd2cca52fcfaa953d4d326c932baa204bb52ca62d2fe67f8cda4e45020c58b8feed6d13a7f2c2a4328dde8dc0446066c9ae6e6d98fdd44813 +DIST thunderbird-142.0-cak.xpi 418154 BLAKE2B 0c048506bdac51bed2512c06f1b861be1613ef45809b44d96e864a856194af783b4131f0fcb9ab768e62977e4972e36f0a91d260e19c1fdef30fcbfd185788bf SHA512 5b122b14dd7782cc659cf431d0c57dc4b62a67117d2c2813debdc9730b8107918e4ec9355c36c8a2fd9f3bfa7bb187ad1861b1515ef719029eef3e83107db06c +DIST thunderbird-142.0-cs.xpi 521519 BLAKE2B 0686169c47179e57a3f6cdf8dab15c697a15e216ff611865c1e51cb832952f7c5e0927ec1bbd36ca868ec6ffa3ccb3263a33854e040089efb6f23377d8650f9b SHA512 2d2dec308d460cf56bb04e3b45f8b01440ab3c03cf9d869125e098ac1ce417327088b5b509fbe60ede3892736f78144ef2e9db7cfba6df0dac2b45aa825f9e10 +DIST thunderbird-142.0-cy.xpi 489369 BLAKE2B 073007bc8c063da814ed08fb034f869c1b224555242743666fe7c278e918f847ab10d12744f633732c0ec7ca06f3b91ff3b56971c5fbd993885ee7967670a014 SHA512 c702dc7d5e370ea475bc684ca4d75076815efab685d51d97527d74c534cbb8441f9de884cff65bfa7224d7450655aeaa09b6ac78835af60193682b644b9877f2 +DIST thunderbird-142.0-da.xpi 478311 BLAKE2B 5fdb9fe070959d85948931d3b29b34f777bcfacedda9e05bf1d9863ec068ad56810114c797566055ee5761214f72a53a41ede975c7e1133e52b5bb6d006b49fd SHA512 834bd66846f4075577d2955da6b932b09b8300a9ce298e3b64ae72440f85297ba172784ee7add44baa0a8f05e8f23538a6ad2d4febddaf24b5d2a023c97ec08e +DIST thunderbird-142.0-de.xpi 506906 BLAKE2B 29b297ffc1b333cd87a216618918c46893ebfb80121324d985b50c033b61e69767f68396bc2a1c72e38809a392ea2ad50f9a914b4a05549cbf23dc9662d93e7f SHA512 b92b325bda40b1d5c4b584789731b57d89a94ce6fd74fb3c6f38dc2f79602a76949d637268491e6b6420a37daa851b9bd3d5dfc98f7c25911bb1ec03b611d04a +DIST thunderbird-142.0-dsb.xpi 519809 BLAKE2B b2485ee2dbe31c7e6e8cba732a506f791d30435828a9fd22faf56507b332d4978180a30af16f57b4049f3e74de93f6020fc4a20c81bd60caebe67133ed36e988 SHA512 99f501ee94631fbd82fa7d4e078f40d4c7ef85489c67b2e41706ea8d38ac94d1b18eb299f844d4c20ae9708b0c5110f13c7eaefc3199d5f4c1bae50030176aa6 +DIST thunderbird-142.0-el.xpi 610853 BLAKE2B a427be1c44c68b8efe3fcaea8667f18b3cbbde72ab8ce60fcc027ce72bb7827dbd8b8c8e859c76e312f13ce69249a2415009958c2054263ecbbb1f18f886a168 SHA512 4f9c12ea4d45dd76c1e96fdbf533fb0dadd9615255db82dbde2ba06669f58fe3adffc6b6f40db7a1c31b5ade557a6caa8a49b1e7360697b87e7b49f62fb504a8 +DIST thunderbird-142.0-en-CA.xpi 453898 BLAKE2B 0d6e520a538bc0651a849d61981ad8a4fb23116f82b1fdacf07e4e4560ad64329cab1820c2b3afc8919ce2b71f9e6784d22f05da5db18a260cac5694d801b814 SHA512 b2167a8f2458c9c244a373649713797d1fd0429d78ebbb826687cd746f55c1f18114667c3ed1a7093896b1b1c9c2b293734ed7a0f72cd005a347e532e4bfb2af +DIST thunderbird-142.0-en-GB.xpi 453732 BLAKE2B 75ec6ff03b0c5c3c9fce86503f2c3d3523512bbfabbcb919dfaef6df8552171d9a1f133bd25343d22fc9da3345ec51c597d60aa9607f2f134cc2c3c4b75b94c9 SHA512 fc5d10483ed333a3ed49b3e0567c93ec25e72db0fdac6ab72e737cb825becfce06a7dd8b8de883ecb359535cd51fe55b3ca9b5779f47f3cd67655b5fe7d8bcb1 +DIST thunderbird-142.0-es-AR.xpi 497136 BLAKE2B ed9d7b6b80f65905501060bfcaa31a0dc0fbebe3ddf27338f4288e01fb996154d5d5e9975940401c57d2ef4116f83b6d0cfd6e2e9c6463f09c9bd2d8b9e87b55 SHA512 23af1faf30d1167cb1c7b54a3cc0aa05b7791dee9312de12b5e2f8461d6ba6fc9b33f630fe302150a4aa3309d7376c52423a5522eeb562aeaa86136cd82208b5 +DIST thunderbird-142.0-es-ES.xpi 498402 BLAKE2B 150a1eef79ea7cc4a02c1f36862568d18221441cd1e77c3b3572d7ac8d947973e2b176e5db840a1ba693f898422d31bd8fb421de7da6dbe13cad082a4eb56dec SHA512 88ced388e86e62a13f98f7cde33595b64c1c17637a9a8d06fbe79a055f1232c2638f0f7f5954bd4cfb6886db5147a943e85c0c097afb0b33ad497bd8e306e354 +DIST thunderbird-142.0-es-MX.xpi 488360 BLAKE2B 17aa24dc9172a595b58bd7db07a3c8a071cb3fadaade013b36af81298dd6979f9777d11b6fdeb659054ed44035146724c8fdf158e2df2844460b542a171a6800 SHA512 f9f4fa287c3604ac7d180d42ab5653208523ab11e1f8f83aa59fb1e858e722c743772e47fe501f791651a367f585f1332f72aa1ffb05b446bbd524a88e379d8a +DIST thunderbird-142.0-et.xpi 443659 BLAKE2B 0f066bbd8a9e7b12ec0a3236181266f48d6678c96e5c5c5e7cc5e5b950e07b2a46b21589a78f99a90c2a457f45f69ccadeb43703092c916c016b1626b741ca84 SHA512 aac510a0226746c1f167416eb3f4db243b7d8e226fe95d6bc8f02a8f4b9f2b89982c370e32815d5d6af0d8ebaaea77800c6b2253e1f725261540fd6d9f3f55d5 +DIST thunderbird-142.0-eu.xpi 473157 BLAKE2B 74883249acdff28424345ddc4e799dd849368ea76e177e428c6e5e0410dcc7a989e193dccefa23a81f7060450995b16668b1fd5435c91cb37955968b2c06b96b SHA512 e5da78d23f3d8e2df0eabc338b746d0957900adfd25943b038c52e09f72ef018569bd825283903810c003c36641ede10a2c396c1b1fe93a26f80de8e11e4bdc4 +DIST thunderbird-142.0-fi.xpi 476661 BLAKE2B bb95bb4fed3474f2eec7c01b3c5c5410a425f587a9635eb29bc2420bbc2138f5c6b9b79855b8591f23dd3ee476f53db13771a9075bbfa64466c4dcae91673313 SHA512 bf3ac3d80859e867a6848e3a0f72d57c25e52a35df11f5bb40cd9fb80a87a5595036d0a245a4d646a51d9f40f9201ccc5408591449266d62bdec75c81ecf2c7d +DIST thunderbird-142.0-fr.xpi 510249 BLAKE2B dc8a53acac5af8b2d7fa0be73a17e3c463ea9eed2823667880c21424383a613556ee521753b98197b9e4b57c8f7f564abbcce3a2802bf53839c6419a7e4da08a SHA512 d832da9bfca0fb1e0354af7c65bb2bb59403f5abe531258853385626bec605caedfe417b675f36feb92542a7ca8675e8befe73461e0e24d88f072b14dcee100a +DIST thunderbird-142.0-fy-NL.xpi 492462 BLAKE2B f0738e240c1669695c35ebe42844d5fe85dde40ae5b578230358b639498cd09ca410b93116b211a139b5210b8fd92e8137cec2d1169a1b930b7ca34518ce3c5e SHA512 5682d6e09467cf6c2289aa95c0b95e6b76843fb1fd50a7b919b88df90d1b8da5fe3c34944564a092e43ef048a8b354a399e39249531a548fafc1540d7c070fd0 +DIST thunderbird-142.0-ga-IE.xpi 377031 BLAKE2B 9a70a9f496e41f477a5729ef8df206656a7c2886d127629ce02cddeb86f6870973ab5fe5c56ee3ca1d79336f42c0dde335b30900e1f3f6aedcc832e06dbcef7e SHA512 a3ac79ffd9f5986ec70366304241354110d38159bbfa4087cd3bbf1058c8f1bd2496e44ff99601c6df063cbcbc6dfe7edb019411fa375b4a5ea59963a2559154 +DIST thunderbird-142.0-gd.xpi 462059 BLAKE2B d504a82cf5b46b84e8a0ef48a667c19d2f3b74c8bb3b9dca1cac39a218085614943c289ee5f4d517872200be3582c966f6c8d88f410c7dd6f3f17e813b2cf9d3 SHA512 7cd3646d2dd4192d215197462972e427c74bcd38bb8a888ab50ea2006048623885fa981a4b6d2175bcdcf564e3f290f10986a695e0af5b23aebf743ec8d91c3d +DIST thunderbird-142.0-gl.xpi 491009 BLAKE2B 165ea88985562c710d5121f2f6af393a56cdc2f9f51f7805c5e4597daf48829efc48c7fd3bc3f0132e7c53f08e3d23f0025c800c32d0b9036d64f79c2c721541 SHA512 cc48913e660531d3f080fe01c97db6b23f1231e4dff3dc11e6ec4228e435fe49d1c1625aafd9b4661017ed1fd150cfa81d39c20c68b492ba2f791b8aa7f87c87 +DIST thunderbird-142.0-he.xpi 442225 BLAKE2B b45cc3314b4dde2d87b9af8bc8132e09d2b6193a59b220b822b8f77a42e72d459f3eb36667ec0734bee49330f45b957a3ab437dc7b695c66ceb83c27c6bb045b SHA512 78c4a9375b2b81c7e72d95b6dba96f3d4b77b145192bfcede95bae42dde6800eb601650f6ba429584002b30897596c18123a60d6b6af4b3203cdd283106aba72 +DIST thunderbird-142.0-hr.xpi 469592 BLAKE2B 3b0f9141beb754168cd6fea3443044d096e7ed538c0f8b65a4a0f280bb34f0396d94b8a488570d81ede4f6a7c10edfa90b746bb9967d080f5aabc239b9be749c SHA512 cec31096d6d2d0dec33a6f8260a5d3d6bab7674592e025cf61d9c81a5a4b3219d41582ab6c0393fb20513bfc95f2df5b606bab2ba68e424c55f564871d85e206 +DIST thunderbird-142.0-hsb.xpi 516854 BLAKE2B 817d1dbcec79c2a37b25b931a9bc19916ce63450536a436877bc4f36eee0b932250ad34a05de7af14dfed4fe9de344e4923d03b16ae7ba10b174aba79c3fff45 SHA512 04c00cbff9ca88d281d8ff09c9b3b67cfff5cd9b0228a54cdb097a3717ab10a76070cc217182ac2d54b299ec07c41dd1c3978ef6a131efeebd9e816e77bb1c59 +DIST thunderbird-142.0-hu.xpi 519314 BLAKE2B fcee707e01119c98e77bf45622a80fecc0b45d27552046b64e9bae42420ba8533d0d9e92c443496cd17657f7af2889af4a4dea2b8c7375f2e0b8cb467bbdf7f4 SHA512 3d078d0f40ba11fd7d13ccffa39511bcb3988a558165edc84743bba67c1963007da2a5394ec078a7b320607a32f2bc05f47a8ec7f602f5709da6fbdae2224b89 +DIST thunderbird-142.0-id.xpi 464322 BLAKE2B 6d2e4a8f1c724b2ca655818330902099922f9fc5eb77264242ec76dd4eab9263a750c87647d51fb359585d3943e25dfaa3038da757324e13613d96c1e0340c35 SHA512 528d8cd2dfe149188bbebf14d9d22c1c60ddc2a2d38a8794793069eb400ecc1dae3e3d24cd9c746d6e14439a7c3c8ffcbbc441bc7da2912418a514998204b7a7 +DIST thunderbird-142.0-is.xpi 482662 BLAKE2B d353195a01d0f28b3e66fd9f3c8808dd7a77e1e275a4fab0fa88808d8a74a0bc1ad70fafe48310d2ecb5291dca287b375f712acad982338ddb2102ee87545817 SHA512 d78937f91c72f99b4e8d1c511aa2978f72bac70d70869147ac8ed41fb2dc035e899de0700a3ddc80da693ccc707cef6b46540dbc56b03d21f3f56f8824afe575 +DIST thunderbird-142.0-it.xpi 490208 BLAKE2B 1c0dae68392d07f4225283792a42950256f11226bf58e1b30f6b701031d3e1364727ac1c68baa4af348fb513440225b05420271be6cac002adf7e865480c5d57 SHA512 0d3d598d8c5ce706d92c04f7acbad52bcf9cf64cb5bf0e4c65f789139a4369ccf41c48847f9df799be849c5dd0cfa6fecfd5fc8aa28793e38298e1b4cc2dc1f9 +DIST thunderbird-142.0-ja.xpi 541063 BLAKE2B b141bae881bfdb036583b441c446dc9655239268297909cec5c63eb22d1e04a7f9b275ac373d8b281623d1d0ecfd439d6bb346604558d45c0f76ddccb1f9fc9c SHA512 b297335c24d372ea9c11fc73afc7c1353da55a688329549b2982134b2c8094c7f3513bb7441d98e6fb932644355d92a698d6b33ef115e39915f1b24a2278ff6d +DIST thunderbird-142.0-ka.xpi 556825 BLAKE2B 54fcd5fcf3e577a49f0c67695b15fc294781eda9bf34ffa0a1abc0333a308f3d8adf4a3119d24b991b1145204e6064141e292543220fd76316feb2ebf87a4ab0 SHA512 2d3d38d08a442244e3b4e6952e7a94742d3bbe7d5a6201d255bdda5b322b2049ee523b7c465e5eaa7d4f345c17ec9e856a0964fc881c893eb75514a4da6755ae +DIST thunderbird-142.0-kab.xpi 469960 BLAKE2B 6f7f8205f27e421b38b28ac16923d40f25f1db74a316f4ff76a76ce4eab4f34c65416223dc1c9832b49a7445fee7d8758f99b4e308fbcd0144e279b56b2f0181 SHA512 d80ffd733c4cc5c4cd858bc1370517698a18467dff5287fe16bce8753202c24c685c829fd008fd500a515fc5622277a6462cfbc9adca28b3c08bacc65db514de +DIST thunderbird-142.0-kk.xpi 575158 BLAKE2B 66759bc96d920c73ad6421bd28ddae374f64077734a19f284d206ae3a3a7ff8d6b776bd86c69b1631990c0967cddfa76963c8066750d8ee0f00aca9ad4d8a4de SHA512 ae7991e5768a88bb0eb20fc2a6ebe08dffca742c12adb3c501ba8f2e37ce339ab02b36c4f0bcd521b88a4fb3a73db3253307fabb9e11ce2c9a2fd74306b0d88d +DIST thunderbird-142.0-ko.xpi 515238 BLAKE2B 2d7bdb10b821374bcf9f7942035c8ccb23845947989e85f9646fba96c96590e0c082b9b34427b42eaaf8e22b1078bd9839197d20826e821fa3cfe46b6e70ca8f SHA512 01f2434957583df604866815e55632a9bd4b0cd03fb68ebb22e19627270a90e405899ed29e16e7644878bd40ba2d0cabaefe255e4b98d971d8a04de9d0128abb +DIST thunderbird-142.0-lt.xpi 453654 BLAKE2B 8cbbd1f35d118bf0540ed786d9fcf8513eb30fd3673952e9717f442fd6e973322be71969b54604337b431d0d30bd5cb3939ea6f62384f6ffdd8261ac36f492a3 SHA512 8419dae73ebfd34792a3b79678a3157cb047debf7411086263dc300e90bd3c873a9af5e10e01541d3e097cc0a5664c47c333ebf8060950c198975ab64144b7d1 +DIST thunderbird-142.0-lv.xpi 391979 BLAKE2B 463879268986b4a45b27c39cf50798f8481ce6a9711b8fccd351dc95dfc41518587f032f3e680b6d186e533204f6209294d123e357460bd4331024641353a426 SHA512 114f960f98bd36f8a4c4ba9a0f8f00ab38beff5fb4f789c469e6a44ee4dc394b8c79752e5c24bafe62f6be067fe6ef8908b338f7117977a4dc5c42d3b9bb9db7 +DIST thunderbird-142.0-ms.xpi 352391 BLAKE2B 24f2ab2eb9d88261186ca4ffe39a159cf37f8bba3d4a87c1d8ccc6e052ba393602920a69996478f07b1faf2b89c649f709fe1995c57030b097e979e513451144 SHA512 2505857dac0798f23b0cb09ad4118cd82b77110b24fa16ebe392239aa18ae00b77f82497e46e9670d732cb3601a86bfb2149720788113f53527259ab3896db3a +DIST thunderbird-142.0-nb-NO.xpi 477920 BLAKE2B bd8ad18ed2e5865d62982afe80a0154e741d412ef16ec4f6f5e8bf50bb696ca578e98fa7370b5d7099d380e3dbad39bbfca1f25e0a3ab29b6fd00ad27862a013 SHA512 d2f7b771852a35bfc81930fe56f6d5d94cf5c0c5eadb4eb314bcd3a1a8f19b139be9be3f8678d321878a776c10963d9407ab1c05548f019b217092ad1a628c75 +DIST thunderbird-142.0-nl.xpi 483882 BLAKE2B ac5dcfab1bb6abeb58b456e7b96ddef99a3ee9184da7e582cc9031a31a1632e1a30362b4ba8266d22d3fdb189a0c222e62ef9753db40a235a83241e06a4138e9 SHA512 a915ee49e7dc83b730fccf2fef94c458b96cae287082aebb551168f6ef2c442091a64be9f34636441ca66f619803d2479470f8bec7075f17a4b21ab61e940488 +DIST thunderbird-142.0-nn-NO.xpi 481744 BLAKE2B e40266c22acd248c69f62d44b46e310fc20cb4e7fa78a85e0d4f5a5e5dc53525c2c2174a8edd4ba1d1f580c06e1da2585c33935ac9b2668acfa9d736842957a3 SHA512 7145da256eebf68e48b15049a0b74addcdbe6163f7f11cafe6bd699ecb9c2da0fd1aa1535fdf4884058420d22c26bf53578fff5a94f9079ce741b40757c76871 +DIST thunderbird-142.0-pa-IN.xpi 435374 BLAKE2B 088a899bf1f49829b9c6bf14ee0a5933d92b2cf1280dced0fa6bbdd9d25f4194d25f3c5f4796a3389a07f3099b326641d506042f2abb2538e5c33fecfb303186 SHA512 01546c2e39178909d9683d3d72e03cc34b28e69cdf6a0934ff7fbe7ca6ca1fc7994a481d3ea66dc6a002449dbef23cb626b8e16bd8d8d3e1846057e31fdf89da +DIST thunderbird-142.0-pl.xpi 517487 BLAKE2B 793b6b2e09ed80a286bcf5c38849e9f1d30f51a1330556b6316455f65b07ef76fe9aaee814d2be392fd22c34a0cf1262aa37c5063cf2412b93291b7af218d27f SHA512 176965bfeac3966c3aa5ddd6d77dd1b7c8fa0d00c872de609a53aef9d6ce34755f090430dbb708f485328310426fe4db471103033a16dfb58faef9b2c3534d3e +DIST thunderbird-142.0-pt-BR.xpi 491915 BLAKE2B 0c65879d980c35f1aeca6aa4c6448243f493359802673bf6f106ea35fb9484ddc667578a0207eb927d7405a89f69d528c298437a986fbaf6d60d85968e2bb66a SHA512 58d81ced36216d758c5a962258a5f300052eb205d954b83f9a8cb0504e3b65601618976a78f8e10c59459eded23be1715d6c6c203defafd198dd29e95272fad7 +DIST thunderbird-142.0-pt-PT.xpi 486886 BLAKE2B a913f52b18a2c0955e1d020cd61759b5c5b119f8a8496b7ff2bb3230320ad679038f2ac32515c4039eb232cef8cb8a5d3b7d1cdbb41721cd37a4b9004cde19f9 SHA512 e018e4fa88f8b8b8598ec4cfd777e06d45074cf2c3f3930bba05141ebde163baf481c80ccaf40888b1990aea2afc42f945ebe863f0ad8d9d7df19032e21ff865 +DIST thunderbird-142.0-rm.xpi 487268 BLAKE2B 6b9bc2247d2ce58797877bc5c1204ac15c3f0f3ac42edecaad9414cca937ef89e9e47ad82ec6c111ccf7b3db2d151666e44a02ab2049a3df745a45a7a1f893ba SHA512 f18ce0f0d80ced981094bc591b101ac68d5eac54f2b2cc25b80f347e79d8fb1a5e252ae5f7ff4ced89b562c8cd24780463b50523fa2671537567271e4b2efdf0 +DIST thunderbird-142.0-ro.xpi 453137 BLAKE2B c6a9fde7616c297f00059153ea263a1209e4c78b6dee3dbdfaf4e2da3ada79bc40783a369d4f2aafeee3db6eb2b6ab039fe81a08af8359a854c8120c29066a5e SHA512 09b6587324fb3ced72fe650d3a48e993281eda0e2e0223fd6c7bb37f212ce0628f29782da464d446eabca69fc0170d42992d0e80f41ad1d2d36238ab2be824e1 +DIST thunderbird-142.0-ru.xpi 595306 BLAKE2B 4b17ca6773f4ca8176ffd1f9f55a65724e208403df76172bf8b47cff5abf64cb2424287704c473b99e129309884a55caf9eeacb84d1b9e316b467bb651f93121 SHA512 7955b35e2b50d9a9857dda0fbc48afd5eb3a08e0e98d7f7f5065c703ffcaaecca1f0eb7e6557bd852de3a5c0a2b493f6d8480f444c6f87fbbb3c915db3b1821e +DIST thunderbird-142.0-sk.xpi 521214 BLAKE2B 4eb27fba95b0b98d6cbdeace794e619249fdc181c924450661a0de94a501007c73b56343aee768e4e794ff94ced96f7901959451096c310f9e0abe64a916e3b1 SHA512 43260c5e381f1d26eabce83f0bc950cfc9bcebc8b2251a509e5dabd47e46135cd83e75ed9332af54979bd23af2e44a73beb8226a058175626a76a28966ffa3dc +DIST thunderbird-142.0-sl.xpi 487600 BLAKE2B f2020398956298d84e5be378c39e77377dc3bc5481081433953b6b295cd975d88c69e05c69f98079fe4c9494b43dd31541015839fa0fb2a56bf8fba59acc8162 SHA512 2cb5778948f8d5f22d0d3f13a1ebd815003d635ededfae5fc4779382983a435308c5f484feb09926bfa6e11e6b582f27172a4bef541a9e300b723a25f5b19989 +DIST thunderbird-142.0-sq.xpi 504288 BLAKE2B 1d79b0e5f70e1799f034129063bd20dfe9c4688c6dea4698af6bb50848ffaac1fbb0de252568635202f376009619210e65b65edcfdadd247966cbb1e09d278d0 SHA512 30589d672139d5f96583849abe78f16d6021c27da9521db581ddd087b72ae9c1a84a0809ac60c1368303e035e341563051bdcca896d393db58a5fbe8020f38d4 +DIST thunderbird-142.0-sr.xpi 496048 BLAKE2B 15ce49a4bd32fc05b8b6a3c212d4f03027c17f981ca79d24d1d929009198c93f7f2e6f09c28cc573fbe2992c7a7892648e3f677428371a1ad5d8573d33bc1410 SHA512 71ad658d108816979eee312b82ed673349a14c250219e6f03b3f32a25e6ecd26ca1188add27fd79167d9f03c05935130b5636a9519d99766305cc6793834b2d1 +DIST thunderbird-142.0-sv-SE.xpi 486177 BLAKE2B 7f6bb22ebb017b0d4c958a5b4e747c65d947e6b8120c8d9a2cd22aa8fa8cd31a3f9f3f6fbe2f8db6a0af0acff6cdf7a18eb4daf6ea7873d0c9455b903b01bc98 SHA512 b8f5828410e07619c5d6f1c3d870a1e942e5f65b1ab35b615ff32f694cf504745dd37e757d634a75d039fa895fad7d5da13d58163bd91778961c3168b0b0d7f3 +DIST thunderbird-142.0-th.xpi 568285 BLAKE2B 804f6b68da7a3644cabeb869efd65faeeaa8547edd23f28dd372675ed6af9991f3d229c7e8d29afd850d65d49105963e57a1cf583466ebe72ffc24465c4d1be9 SHA512 e6984e863b15774655b4e9e450fa91baee1ceeff85997d9eb331b138f2fc1dfba0c65821febff2d219accac014e49f93eb7244a86833045f67fe1b7da86c417c +DIST thunderbird-142.0-tr.xpi 497390 BLAKE2B ac84d78a62573d93e016dbe4ef3ef9730376cb18b472bb8835f9cd7c0d6c682fad213a008c79a72b05669668f13cd947c04ccef4bc29c9e0e8409a5c64477cb0 SHA512 1282156bb0fbbd46d59d8514dce8de197429f9292de13a49ff5dc0a27e46538c55fbfdf4ac6621779863370fc69751f3a9c5b70e855304642a28b7a322556b24 +DIST thunderbird-142.0-uk.xpi 582798 BLAKE2B aab97280b7167b0761da1646cf6a4fc8b7023503957ffef1105db72eaa21119cac7a2f77ba3b670a16a9db95c6eac198c708b1e421a47d626c1fb96a504960eb SHA512 f9bbb2a365ddc8b5a1b2b4152dc594b17cdf26e4dd24ac8189ec191ab9464485a38f693730a74fae15724aa3f691dddf3e3a900aa4ab73c6d2b81b7435d8cd81 +DIST thunderbird-142.0-uz.xpi 355595 BLAKE2B 1ad516ed0b14bb3b5f2c6a05a82d5d45e7ec6b1988e36b48b66644c487c64316d8a5be39656bf94ff6f326173c4e1b2bd5485f55ad0bb929788014e660513371 SHA512 6e3093a035185007905ffe8abff322b2100ef3822e5c1126362f687dca3ee558eab2e9ad2ffbe4301a468d0807cae3711c7a1ed995fe3bec1f2f41bddc5cbe33 +DIST thunderbird-142.0-vi.xpi 520411 BLAKE2B 1437728b4bb02b644ed54a7ffa2793d91a3c191b2faa5eb76d1b91290782026dc6dce56e772623ccc72103a320704332a8b152cde59ce3860faecb033506f391 SHA512 56c5f85311aacf47acc2973f73a3436d12f1b7567a52fa064def66bbd1623df9bd4838e3b23838d0526884e220b9f3c00e5202ae9433fac897301c9f46b1f4a2 +DIST thunderbird-142.0-zh-CN.xpi 509610 BLAKE2B 803b2102ddbb53873083b33e460871838dde1161cb4f18e2979b6b9e5f736881cf268e090fb3cf2e5769bf2cb8163a921211a661b49006c4af2a330679394dc2 SHA512 e43bea01ae062bc917edff130f12729d8f757d020afb16348831e1ab92619790ca470d7adb01fa7df4f1d3291657a3df959275085d0cb33018c6c31b4e45df43 +DIST thunderbird-142.0-zh-TW.xpi 513167 BLAKE2B 44c06538c52eb79711bdce16b00d4d720156d9c9c81790499abbec31c8bbfcb159c067a60225a1ada922a4166888d8219ff3fe4a75127d3441751e0a8c0c96bc SHA512 d0609328f44ba2de9050a370c461e76b2402f99624c58ab9032771c7ba2bcd9ba7abd0c0d8b04a27c3272ede1a2f1041eabcde1203fc643a4e196ec1c6e7d7c0 +DIST thunderbird-142.0.source.tar.xz 766056040 BLAKE2B 23e4ffcaae73ef76a7baa8f357a8b9f17595e214e70230e8d51a6293448cf795535f1fcfc2300df3e1706e1e2bcd8eb26dedaf65179e43b2ceb7df21f2356e37 SHA512 9a871846fc395c69688310dbf4a4569b75d3b2952a34ba1f7dc9ef5a60a34bd740087b4abb2a1a4d522dfa9d6640f2f4fcc9972a2b72160d1ed3e0df71c2901c diff --git a/mail-client/thunderbird/thunderbird-142.0.ebuild b/mail-client/thunderbird/thunderbird-142.0.ebuild new file mode 100644 index 000000000000..0a248f6dee3c --- /dev/null +++ b/mail-client/thunderbird/thunderbird-142.0.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-141-patches-02t.tar.xz" +FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz" + +LLVM_COMPAT=( 19 20 ) + +PYTHON_COMPAT=( python3_{11..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 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-pipewire 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.27.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 + 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.114 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-apps/dbus + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/libdrm + x11-libs/pango + x11-libs/pixman + 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-76.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-pipewire? ( media-video/pipewire:= ) + system-png? ( >=media-libs/libpng-1.6.45:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + ) + wifi? ( + kernel_linux? ( + || ( + net-misc/networkmanager + net-misc/connman[networkmanager] + ) + ) + ) + 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/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +llvm_check_deps() { + if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then + einfo "llvm-core/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 "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-packed-relative-relocs \ + --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-gbm \ + --with-system-libdrm \ + --with-system-nspr \ + --with-system-nss \ + --with-system-pixman \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system + + # 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 + 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-pipewire + 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 +}