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 AEF3B15F56C for ; Wed, 11 Jun 2025 18:59:44 +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 9CD41340FEA for ; Wed, 11 Jun 2025 18:59:44 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E9538110569; Wed, 11 Jun 2025 18:58:52 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 16C731107E0 for ; Wed, 11 Jun 2025 16:01:46 +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 7BB32340E16 for ; Wed, 11 Jun 2025 16:01:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3C3D2356 for ; Wed, 11 Jun 2025 16:01:43 +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: <1749657662.6ce7385fd9e4abd824144fc440f5e1d88490f08a.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-128.11.1.ebuild X-VCS-Directories: mail-client/thunderbird/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 6ce7385fd9e4abd824144fc440f5e1d88490f08a X-VCS-Branch: master Date: Wed, 11 Jun 2025 16:01:43 +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: faedc209-5232-4656-8814-a578cac1e853 X-Archives-Hash: cff6398e564b824024605d719c67e4f4 commit: 6ce7385fd9e4abd824144fc440f5e1d88490f08a Author: Joonas Niilola gentoo org> AuthorDate: Wed Jun 11 16:01:02 2025 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Jun 11 16:01:02 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ce7385f mail-client/thunderbird: add 128.11.1 Signed-off-by: Joonas Niilola gentoo.org> mail-client/thunderbird/Manifest | 65 ++ .../thunderbird/thunderbird-128.11.1.ebuild | 1171 ++++++++++++++++++++ 2 files changed, 1236 insertions(+) diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 4ecd51d1f0f7..e2bbbd42532f 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -199,6 +199,71 @@ DIST thunderbird-128.11.0esr-vi.xpi 791687 BLAKE2B 548e49385e11053f96eabf6dbce6c DIST thunderbird-128.11.0esr-zh-CN.xpi 792032 BLAKE2B f89c89df3881476a673ee62284c6688e8fdd9329eeb9dd6ce4eb8d6d1ba1c6088d9c9178306fdf2dba3c20e7faa550f6e836e49e1f5754ff9934898173c3ef42 SHA512 17011803d7d3c87ff1961ee5b2661aa0a37badc53d5a62e5b0f1a9e16c8f52ecee5ba7bcabcc68e22f3463a2eba758537d4482edeaafb854a47126733bbfe869 DIST thunderbird-128.11.0esr-zh-TW.xpi 795261 BLAKE2B c1f34704220a1555ce9f0ee23637ec94472ce6a669f2a14e85ef1bb8f477700aaf1c8f6c01025e9c8672547f5ef9c35f4a019a89be5695b2f91d9c739601be00 SHA512 30a2f6396acfc2d097f0aa5b8d4e130683be984bd08d694cd5bee71c79ae2f507c3a561e877301c60592f631056c19c67555d3d995fe24a621b2b178f06946b0 DIST thunderbird-128.11.0esr.source.tar.xz 676164740 BLAKE2B 9ce3bb4b03f43b30ec1bfddaa6140d3a734a708a910da0bf224a8de0b08e6749c1583e1bf66afe3374419bd2a3c77efe2ec289e1817b03651fa414aeac3c4cfa SHA512 33de73db2d5ab5152ff11c1947317081259f4e7644631b5e6b9c3b192b4473a5ae6fe897b27b3c8e240ff8c606ffaa8cc14e169c34a94b8de6e64b0c5f0f6810 +DIST thunderbird-128.11.1esr-af.xpi 534914 BLAKE2B 629341b5e2144967bb210582ac98b571c27e73649b05b1eb444bf32c7254f7d82ee56f99de4b257dafe5499e753527260d6a9b1e2e34178424d584bb6af001fd SHA512 47ca2caa146b5b5da83f6181cca7f4f8a8bd9544dec9225ce0f9a194897c201cb4ce14efce9191c12bcc549b776a793608ffb3dadc2c9c9302734e858d6194dc +DIST thunderbird-128.11.1esr-ar.xpi 686461 BLAKE2B 80d0d49843fa4dc2fe0ba323a6b3b8515c6056926691cfff75d62fbd56168e0d2d92fc5a89e9ab1aa0488d075c1500c5c5345a234d453978b4c066c1f1337d36 SHA512 87d664b560bf0f4378a1d873e868fdb920e795736f5649ea430e97556527876e08cc2cc1b2b5643ed9e3d02c7d41df0c5143a906661f5c29e43cee0a9b1681ef +DIST thunderbird-128.11.1esr-ast.xpi 574780 BLAKE2B f39229b77d213f740ef3a66ece3956f4d156028596c5766d5517f910efad584958e4acdc5e3c84845df20a724b2ed6a6e094c6a18544c16ca180cbe995bb2694 SHA512 867042d9186e90ff839ad9f6e0fe742cd8e7eecb6dfe34a3517c93bc1c31472088b4d87d06bcbf18031d6acbf0fd52452888674759424ba8caddb6a9e5a2ebfd +DIST thunderbird-128.11.1esr-be.xpi 781796 BLAKE2B a151f16185a40c67f24785a99da2e4a194f302ef4bb5828f8881ba53acd5448f6be88265afd7f3a3ec233ee9b77aee5cee22191df035e3b97b173634997b5bdc SHA512 a8c452340359d9eb8677a6b67b66fe63510c2843dc66648d1dc5738046207713497f9c81f40cdbbc1a5621ff4dc68c253b441d0d2f45fc05aad026e2ab17bf94 +DIST thunderbird-128.11.1esr-bg.xpi 813953 BLAKE2B 8f02917d9ed838bf5fd5812645e49fae6b79846c6d453cd8b4c09153dc408cbb81fd8efe8a48c8da579b2e4ac486c3c4df6d938861b7e69cfa29b3e4507be6c2 SHA512 5acaf8cf7d7e85e45f99120f80114f52c7554bfe5c888ea756bc55617624351966ba8e12f51c26795d174c492ccf208ff2a07e00109ca671e4b625f8c0fb4b53 +DIST thunderbird-128.11.1esr-br.xpi 650140 BLAKE2B 3d6f2aadc0b4d178f852e76ac4a601d901fa426e6eb071612d9f59bf05b4604c3f2fa07cf1f551257c7b0558877b1187a95a0e6d488a4b6932fade7f5d7df596 SHA512 2f91cdc151a387739f8a34c90a12cb7ae688bc44154d8a8da9fec61b129e2f23dc52715694bcf2b4f49226cecfeb7706808a5b16756557a31a82acc57ae15768 +DIST thunderbird-128.11.1esr-ca.xpi 704674 BLAKE2B 382a344dc1e076c8ab230209d55ee78b9b305dc7c77d8fe3f37dbb37a8acad61df6c2c8f5d1cc8805eddfaba597d1bf85f1c3074e485a7134af5399991b95dd7 SHA512 223ed13aeac04c2dff12c046e7d3f3c6dc2fcd263db85a19785f024f2a18cbf917cd4b7cfe81dd6cdbd31dd4c99b6a64793ac6c9132aba139b77e9cc8efcfe8c +DIST thunderbird-128.11.1esr-cak.xpi 669095 BLAKE2B 2e00cf8d97cbad76dad67d0f8174fcbaf8dd306eb28e2617b308c6f946ac995e2a9d677c31db67fade5738bac83ec65d800ef1a9c975db1ef4d783cf310fde7b SHA512 35a9a9f3f1dedb248f7f03b3cba6549c5a7ae070e2e2a08ce39d0d39c7ef8a9103681f582565d24f782fb01dd9bcdf0bbad0a404cdc5432329628b379f982c88 +DIST thunderbird-128.11.1esr-cs.xpi 790950 BLAKE2B 581533c97a023aa95a5e62ffe6865e6d51422c60f1b490abf5441816eb16fd75ec8509be5b5abf14748258f12f80c3659cec9f22eb02cdcfc5570d4229ed59dd SHA512 af8df4c6f84b670603c2166be3ff2af0592f2f067c61609c7e5c4db358da549e88a20de616ffef5f67181fe39973e9337effb008f0eeb424213376d92ebf33ca +DIST thunderbird-128.11.1esr-cy.xpi 754632 BLAKE2B 605f5a1dd6585ce161bc7e1fde09bb6246157ccb8bec159e6aced89c79aaad4c54eb521c185d07ff1ff2674737e9d7f7dbc647543f05f77af9014fd54b0fca0e SHA512 b4f9986ee2ba39630b407474794793a883c90c9ebf78818e65bea3732978589ce33bb0703417dc909b9ac9c1092e4e24b3f58b0b9619a361ff0ce3a51b13150c +DIST thunderbird-128.11.1esr-da.xpi 741566 BLAKE2B bab2a340342a66a63051dee69b81c5271ce2986959d2b84d2d06d13efa2e2d6fbc7168997edb078b1e4ed7b2a9570d4f854978a692a3f75fd5f5c1dc6c95ff11 SHA512 45b7b9cbb5ebc67dcac409145ed382d98c34cd4a05514fe9c4e53dc0dc1fa841904ae6002a1d4722fb7ff934de2e47d1db12a22adef49c1a13ed55f2fc7098d6 +DIST thunderbird-128.11.1esr-de.xpi 772448 BLAKE2B 7c67ff20735f3c8d070ad59ec36b7f9a812c4328666ba9e7f1569d0b2f93c3c92e6a9e55613c36a0d9405619a4eabb2f68b3d00c5cc55e346bb2f72b45a9f5c3 SHA512 1373224100348d6d39b06a4b1c489ef08d84a9860cabe1274945e469c8c191b1bb46e76d89b54c2e061315a58c602cd5ee0744c99b3899b6e6c963d30b9cc001 +DIST thunderbird-128.11.1esr-dsb.xpi 788598 BLAKE2B dcee8c5f8ed0e548956eabacc0ee1b72f074fb12f74a57fdb85f48c1f253711df01b314bed4b74d86617327146fee3f54d3c6580d81476afa3452237edcc6b4c SHA512 7ed48158bafdc35b57d9dbaf41fd0c1de921579f9066428e80e7a8ab7c8c2096f5bdba38d8e5eba9bb4d9218ebe4792d83d885e2c59cc7186b574055735115be +DIST thunderbird-128.11.1esr-el.xpi 893850 BLAKE2B 05ca2387d88eac7817875c131b0054a4c24c688ab240d04c7f0be1ca4c7324e651a9de4c309ddb4167542933dee0871e9a92994ee5192730501bf1dcbd4b872a SHA512 6ec56564c2b98df5e97d553d534ff2cb2528e04ab036f5d404d66a2a18b5dbeef8e8e95676a99e163a79368a5f30e3694ec9115511eea048b4d8256c6c4824da +DIST thunderbird-128.11.1esr-en-CA.xpi 705374 BLAKE2B 5490b2f3684439faf79cd2b9723b78aa9b136441877a6fdadda624f7f25fcee28c6365ee01fe282528aaf9c21740a88e4518c06721df8306269a15f7da9e1b73 SHA512 e39da2548436ebe905e1135034ea999ea1382fc49d71d786ea11ef516be86e887e97012b37384fb181abaec899a8893dfae379dd156ba39b222dec8603606cff +DIST thunderbird-128.11.1esr-en-GB.xpi 706025 BLAKE2B d0ddb7c697cad3b113cc2bdd6b9491b7e98f4fa058c9364edc842a23648a50022f02813b13c62a66da27a6d06baabd92bd78a6c92a8d2dbf95a074468b9427a7 SHA512 adb73f6452dfc27d6e58d94b1174ab52c278053fad53e53e5a087339396612393f60ba287d651e484fd88aa9fea8f06d537c728e82e0ff1a28c0a9a9911d55d5 +DIST thunderbird-128.11.1esr-es-AR.xpi 761964 BLAKE2B 8e3ec1c0b92d171bd4ee0da2cba2427273abe748ef2db81061ef2235d0b2df62ad36dcd525ee9ef49b5c4d180bf24c76a63e89fc0563d6b9b3460a448874d472 SHA512 c4124f6f5733af72b7e015f5c619706ccd135d2c04a62fc2521e621acf60c16b25d176f843205666fbbd7dfd670fcba70a81df0f74e6efe614fff0f9c7e2f92f +DIST thunderbird-128.11.1esr-es-ES.xpi 762965 BLAKE2B 0f5883af58b6cbaa98c3499e9f959596a7d874b12dfd4a7fb067ddc27949c7b2cb8548bf58e90777c86d63e60c19b164bab0339a4d9dd7e171bd724b485f61b2 SHA512 f4fe5dc240721ac0d432554b24d666388a1ebe6c94a5d4eb02f7a28777d8c9038bc4deb652b03e16dd48b16deaa7a9bafcf2c471504fbe9390e41529bb6878aa +DIST thunderbird-128.11.1esr-es-MX.xpi 756912 BLAKE2B af7fa9daa92e1d8e38e61d7cb35f8f1453269e158176092e3f508f97086fb1db7a9addb7ed744a0e97a86e8908e07c8e2fdb0742d339279379be34bda2c9832d SHA512 7bb7a83f0115ad07b9402e41d967ca59766b10a9c0f53bfd9aa7a8c11b942c59165d8e65e7a35051af00fad26a15187e7ac18182f182acd4a6068682f72007f1 +DIST thunderbird-128.11.1esr-et.xpi 702058 BLAKE2B ec2c37a0e7895833a60089ae30e930650286f9b55548406dc933b20f436a63db9579b621015dfa9757efd9731ab9b7bde83f8c552f0941ab6bb253e41f419b3d SHA512 54c6f0abad03a3a8c7f7e87c2d5119a5b88cacdde1122bdd5b33d188b8efb24d1c6959e89b2b8237b0bba5b3c8a0faa2821380d7040ccf82eed7f14fa84dc733 +DIST thunderbird-128.11.1esr-eu.xpi 738601 BLAKE2B 133b2251173c42746ae3e9172257149d1f3bd213c26dda4751b7ed06011f248726d70bc95303a0cc356029750f71764e8292140b0eb7df71276df0df22e87eef SHA512 62fb540c9643b319e4eec771ca0f4d53057cd2ca7352d7be44b28bceb60b4da1e053d0ce799f13de02c4e4fe5765b8a3d06627820be3f81781224b0f7db47be6 +DIST thunderbird-128.11.1esr-fi.xpi 736079 BLAKE2B e447f5cacfe32bb3267a5e1f39441c2d880aa5b9f7a6dcb653e955bcf62b2956dc8f66323f9a86e94e62c6eeb8a82d7ca2310b6b14cd39c5d6dd60b0e6246009 SHA512 c2abba7bfbd1b35ca283c7221b90e0f346ac3b23e91579b6d6b022eb61f6521225779a1f42b9cff2982b724a2c929abddc261f7cecc46eebb40d8c57214d32a8 +DIST thunderbird-128.11.1esr-fr.xpi 776172 BLAKE2B 80d210a2df5a94221a02f91db5fec1c8fa097005f261e2a85819df5e0255f8e42d7ad8e153205a9571aef5117401aec91027b5445dae2d1fda1e98c376f4fe51 SHA512 4f6985ef8443ac4312dc5d07525e955ceeb90993dc1bb98ccb2ce3abb3d68099f5165513744140bb919cd3bf8a1994a27730a93531689ae3a2ea0a2fbdc2515c +DIST thunderbird-128.11.1esr-fy-NL.xpi 757463 BLAKE2B beff1ac2903cbabe74895c5b2febd5f8aaaaf810be748c46c2dced98b0280a4c1f6054c8c82d70f8f29b53800f85e5ff13fc3057be92d7cb7f3e04723259523d SHA512 83e2d6c585e06a15ff16c01d13c8b3161d4b1ba812fbdd7adc01ca2457a8bba2c1fb6915822807abc029babe1b7139af8565a7c2f42f558e495cce096dfa4292 +DIST thunderbird-128.11.1esr-ga-IE.xpi 614301 BLAKE2B a524237dc5071a834b679d1edc8dffda75500b9aa288204dfd25c95dbee19a8913d14017b57a9791f4e09fdc9fa7da488fc797e247a8444279d5204d3302241b SHA512 296b127b08ab0532bd2938268b13054e285d6628e1af05da8f58e881f2e741dd2d16237e64b51628b46b56509ddc18b31c901bf13f82f47a2040802e1187c6b4 +DIST thunderbird-128.11.1esr-gd.xpi 723346 BLAKE2B 89cd9df46a8bb26f272b7cade4dbb71aca6b2a3c066afb1600b1d93d725b112df236645beea31fe5927d99d95f4a9492d1ced3670dc78bb9be9cfba280de6a34 SHA512 3a86d983eb2d62169304ce8c5fa1d79f30ff973d227516bc32345d83369ffb5b59d76abecb8485d3355e6d80f7a3f6f949b9fc2fccff99321fc828dc954aac8f +DIST thunderbird-128.11.1esr-gl.xpi 738611 BLAKE2B 6235f272bb1041ee341f71073d47cfb58f11a2c3da18ff5b481e885733437664d0ca93131e58e35c8f73b6bc16ac4fbc0023e79247531bfbd31f9575c27986e3 SHA512 a4942aaeb1d50532fa79f09eacf14a68635bd1564810ed096373534dc9a1a46b446ef1e31f7e7a155b91222ae3a3113a885380482986c7c735aaf0941d2ed09f +DIST thunderbird-128.11.1esr-he.xpi 697001 BLAKE2B b7fffec8e09476e619d4d1be8b165c26d54189053a279acd6d9e9ef9ce6ea5fd6136b98302a5d1344c18b40653784e48f7298127fc0b51bfa0877b38dc77d71b SHA512 2a94b821b26e12bb2de9e2de222dab8e8d9011c6db2e2d270081341c9e59a7caa658405dd877cf6787689c0d5a3edfb7c2d364fbfec30e306862be8f3f33eb8b +DIST thunderbird-128.11.1esr-hr.xpi 724800 BLAKE2B da7113667bb67a68823dc5fdc368de853afcc7f47cac6889c113c3a6d334e6934d2a2479705d0c06a53b8903205f939a6edf79c8715872c1e93841696832f6fb SHA512 a450d773f7ec103a527428d80c804dafaf4ffc64a97b7b2520d1c5c9f796fc745ad309a100edce6877a72d7409876a9d6721b7557adf17d360aac1c55aa2c051 +DIST thunderbird-128.11.1esr-hsb.xpi 785134 BLAKE2B 2a57a95b478af2c2640c53c9a1db7c8ac8dde24634bd067bd820324163334e404aacdd0576124638ae725b75333fd9c21fee8ee44820828f61a0bde7e8b560a5 SHA512 c3edae690aa8023c2df720927f3bacae2586951700a8474ac8612b4a10b9680698c68ddbb1df2c51b4e1c09accec484d7ca49a6cff140f392036cdebe0eb2720 +DIST thunderbird-128.11.1esr-hu.xpi 788741 BLAKE2B 54aaf269e1c76008762dad634392ad7e6986c0e8242f5a6aa26042ca9f2b996753b257c783f5b3774c53733229ca038afec24cde5fb5017c7396c5f37113bfce SHA512 d88f1930b8290bfc54171bcbe1962724531a0d37117f4c817007d42feb0b0c7c599e237d54576784b5cb3d26f3da65004f6d2bf5bc4df47d189953ab5d2557ee +DIST thunderbird-128.11.1esr-id.xpi 721080 BLAKE2B f7e000aa76e98cd9a64b6e5148b56858d18a68c2ddda50173d301f3d2733ddf2fc6092797ec90cadf04cad55a42d07e208daa97b9c28c1673b6646424a9d1bc2 SHA512 65f41bee62947e3fb2459d632e30f28d0c69462e1badea881cdf310dae6cc341396bdf2d4490e5f9bef8cd1c3a2f39d5b7cad02adf69221e573b29f2736c6e38 +DIST thunderbird-128.11.1esr-is.xpi 753324 BLAKE2B 12b5b0633efa881de50e92c68e685f01f6580985c160ca41c7249510175f0e051ae2224f4eeff8e8bae281e9c3250bdeb601bbfa1c3dad37ea41d0e2505f7445 SHA512 7e6fbf37784fb66a6fabbd5c330b75089ac957e4bf4135b387932b1dab84b89213b27a6f9ae1c51157327fe8c2821f9d30f476999f0c646c4f5bb0f566c95f6a +DIST thunderbird-128.11.1esr-it.xpi 753056 BLAKE2B 40c72167b3665198ce951a436f7164fe0f30ef3891acc119920af31396bf0c455e00b51a581ab104c42a74a546f460c532bd746ad7297ca304edf059d3f2375d SHA512 c535aea4cf4af5092bc555a10759c880b2f6ea1ebae74df2f81f094f87688854e75d99453d9306ddce4b5f5cf015188f4be788d4af379fadd5f494730e240bc7 +DIST thunderbird-128.11.1esr-ja.xpi 823998 BLAKE2B 733de246188a6b534c312fad3a2c2f9ceaa8222ac86ca5efe185d883c0b3cbbb17da08862e3590334b9ed7b4cf0b9524b4bf301b2be7386ebd75c57d73f0f8da SHA512 6d394269c56501e3afb7d6ed5c89dd3f858478c53e3acf58c707e9af76d17727cc9854eba7cbad4766696a7119f9b05252dc092ba5d61fdc3528b64c58e5d574 +DIST thunderbird-128.11.1esr-ka.xpi 819345 BLAKE2B 96ba150b7ce1e3d6104e108e11f07c9d4912e42b370959f0d8a7f48c5ba1014a2b5255cbb377df17c78c8be262f44a29b2e53026b05e4d5e0ad83e9d7887e166 SHA512 481fedb6238e754e0bcc1223a9346af2368517dfda53ffe82c6dc63126c353223be73c74bba6552426b6c686e18715229055c2734adba76ec20d5d1267da3589 +DIST thunderbird-128.11.1esr-kab.xpi 732126 BLAKE2B 50da56cd80eaf52ee4cfa0006f97092d46babaaca5d6ac83bc2957a02e481d27d428e345b6174421d334e758e97ad19aecb28b0a72da3ef64202dff65909d35d SHA512 dcb7347a68285b54765e579309186d0e5a1e8ac8b7b2c4249d6ce4f167c08e58f9edc1dcd5db1344ddf4db3c921128ec526af30de2bbd4a7ba1922cf50866b3b +DIST thunderbird-128.11.1esr-kk.xpi 859681 BLAKE2B d1709204213286973cce373fea7bcc318a665c4779b3fb860f2aa47e744a8fafef82d3ed0026693b04b4c636d4e143c113d7065660e4f867a9452f0d573cae65 SHA512 e28e6f8e45aed063b4a3dd6a37fc3c7320d1f1fec714721d8096c440bfe59a79d105c35e89913fb9f36a23196c95434534ce9216761d22306d26707a55db179a +DIST thunderbird-128.11.1esr-ko.xpi 792698 BLAKE2B 5d8e08ce52b82f1f377fed66973e96252d78bb72199ddd85101899333b8f9c4265378e21e84338ebe3ab21ca6fc0787f20421750d97a6c1b8c5b08579f4145c7 SHA512 1ce14784a47dcbb29b2eaf0695e26037cfea406f844c288255161d175fec94daa34b4f3c87f8819fc476786fc77b583a5669f1e32fb4246426527c7888c4547b +DIST thunderbird-128.11.1esr-lt.xpi 696753 BLAKE2B 5daef6216eb47bdb474aba3d882ba901a5bb47676b4f43b4c7be2de4b498f2520799382e4285fe905ed1f49e5f647bbf6ca07ff7127df1968fc7baa3b5becddc SHA512 960533fb44eac0ee390e4c99b542c2ffa6b1d8c05e3788347afa22420c32873518601fef407ea9591be8a8f35594d2056deb490494dd735a47aeace266c8af06 +DIST thunderbird-128.11.1esr-lv.xpi 626200 BLAKE2B 843cc0874be27861a368a245adb15e1009aea0b72a785e771deb583e6cbd276eb87ff38dd400775d76d09fdbd856f0195ecef4dc2a57eda478ebb14f47dd834b SHA512 0dfca1f41074b6acc30932c8b6099220e17501b4b184e7d8e8abdbfb4d4beb7c855a9bc3902dfed31bb8dcbac8f356e88897e10e93770528938b11457355b9d9 +DIST thunderbird-128.11.1esr-ms.xpi 586656 BLAKE2B 579225627a49d264dc7f4d32d84581042175fb18805c20bacdf4497545249813aabaf63353b3a9b83f6dc08d56d7a36670240af12532b829c828da453ad05816 SHA512 50047b8e6f7314e01993c765410563ebec7c6032352dc58fd99ee335350da4da73d324c787edf0e9d94f356162d0c77487835f2ed7eee4231b7d4d88396e1657 +DIST thunderbird-128.11.1esr-nb-NO.xpi 700496 BLAKE2B c0d44742b90ce9ee9c3e6a2d80550476a5eb160032d7809f86da37509c8b7a313ad43c84f5535474d0d4e9ea9433ccd85d56cf8bae78a267cfe8bb41b6907961 SHA512 a9fc352b515c899c50f406427b7c0a33e9830b2928df125160b7691c6c65d02f09ad7a44217b11d2e56f36c53102f009cd336da9518d2f5ae0471bb64cb51a02 +DIST thunderbird-128.11.1esr-nl.xpi 747738 BLAKE2B 5d5eecc35ae9f10b99bfc1d6d3a3324b05925bcecf4af3bb355c9df2643d447e998240ef2e102497be10ea84aa1d85caa97d696c591576d3207b8b468eef53df SHA512 bd3662887a6863542ad43a6d28b30ee27ad99bd71dfbb225b08602bdd22072214165e01aece6b58fe11fe7c9d85a69c7f1e51cf4ef7fd08c26fd1c1236023026 +DIST thunderbird-128.11.1esr-nn-NO.xpi 727390 BLAKE2B f2ac9cb38f673b98d298d8e1081926cf0a2e17b1e890e640587fcd2ecb74e9151a1898ba3928e5b619c623ef718882190b6ca950b743be502db124e725a9534f SHA512 7e1708643d13e058fc28d883e389f605fd1e16b22305bc33c626046e8e14624755ad5b60e6fa87e43b01200d475df8ecf0127e0ad38503b767d2a0bd672e5f4a +DIST thunderbird-128.11.1esr-pa-IN.xpi 687932 BLAKE2B ea2fa19e77f096faf6b7443908d9425f5ff46bc0ed87cf41e19925526effb2c24806ea8ad0d84c90f9c5badab05d5a60e52707878ab984933816068e9b813ec0 SHA512 901508f029fb9eecca6e55a728b84f3adae4a88ba0121e33fa15e5c389f0956187dea8fc6cd4f3c442c4d7c291f5c2d7d89a35788a593fd16f065b95ef50106e +DIST thunderbird-128.11.1esr-pl.xpi 786554 BLAKE2B a9bb378c949d6eec6b01542225fb606144e89fa8bcd2f4ca0115e99904f80f4fe6a6253e55aff012a5e705f564623b953ce62b9acb599e5a654c494125e58a7a SHA512 3773e73898cc3fdfd8e73ce135d266f97dc000b5cce077db4a1581d8dcd4c53cc470b941b545df48bad660bf1d46e5dc672863af179ccadc47ada681ae2fe992 +DIST thunderbird-128.11.1esr-pt-BR.xpi 756730 BLAKE2B e125377f57c8661d9a108412526bde969c2aa109274eaf673796eb83fac6510ee29d3e6b3051313ac4d843dc3abc8648b6a18ce9a0ca80db3576c6209491b1d7 SHA512 4c68caec1f83b261d3fcec2b9fbfd433533fac1c923ad37e28bb7e05b86aea0ea0bd072ae3ed499a5f8daa75d36ba0dc3830d3ba1ad5d584fc617499db10045d +DIST thunderbird-128.11.1esr-pt-PT.xpi 751446 BLAKE2B 4bff2cae48bd86aedc86002cf197d90512ce42fb91436681c54fc167a4aa5e98307b353a7d8a5481ad0ecbd1eb7b0ae8094489c55e0598470a6107ea23fc8466 SHA512 98128d211d64cbecfecc53ec191e8a65f089f47b8b1ae4347b8463fddbdf02387bb88064a742a2a3d7ddea16df980708a17f1e3544b7fca0aae1c7f281a09c4c +DIST thunderbird-128.11.1esr-rm.xpi 752637 BLAKE2B 73554e113580f53ecc87c6a7032474168bbbd615882481b648754686dddf3c8b3a3735d5175b26241fa462b756bbfaeeda90a6dd3261f38843329f4040568c97 SHA512 6c890842b77d9e1b3693276a7a4383d88e8a79d330d35ec91d6bc38d9b6e3afecf3f8b59bc18d54a720afda9ef1cb4cb9eeb11294a7c5b9ab7526f920ded9cb7 +DIST thunderbird-128.11.1esr-ro.xpi 666559 BLAKE2B dd5c39b5a313f6822cc007cb56e7bf6dd701dd2fdf582b2a7f1a48c1afaffc3aeaca358b131c30e95f43e579a57fe31e73967fa9144bfd8127f95beab7b9d872 SHA512 cad8dc75697201eb06d0520f1df3b8499c6a46ae5a8209acd457d0ab8874fb420725c59430aa749616c96f89fcf48464ef6d5ceedfb32f14b1d08b42bec2a380 +DIST thunderbird-128.11.1esr-ru.xpi 877023 BLAKE2B 50e59c21afe6e18eae4688bab876074c7ea36e7a6025c2876e740fba46d41134b0a8a45a99c34adcdaec6daf5ae2c81b61c262a856d66d07fead4b9079a47553 SHA512 bf7efd36dd022e8d26cadcf0bf08e23dee5f4e6556b4f5bb195488c203b2dc683a8886211ffc044944b96f12f5d8edb040f9a3d0b86f91346e373b728d77d983 +DIST thunderbird-128.11.1esr-sk.xpi 790343 BLAKE2B a5c0ff119e9d8d0c365fa6a9b2a59f0a55be5a42f54b4a9f79cde0c8a7c3de76013931de0398ff0982f0c9672b7bbe40a63c7b5b81f8c9344233fe9e32be6068 SHA512 dfad3d4bdf9d4d01b0faa7a46d38ae82774295815a5cb488f41917bb75fb68000cfab87ba59e0e695c4796e850e11080d0ffe331606ccc5148ab5ade7457837e +DIST thunderbird-128.11.1esr-sl.xpi 751617 BLAKE2B 7ec382b3a94dcfb9ed2f84535ba5400d00e9bea4ad2c67647d9a23c36e98e58b746cb186f7277767a5848c6920859cd9a3332cafe4a0403f5e2c63aa38bf9142 SHA512 9d302d239d4eba835e8b37da4733a5fea892351e66b8af31feba61256e17d06695f42c569d03af0b90c72da8f6210788278a1efecc0da4bdfd4b757e25bbdcb3 +DIST thunderbird-128.11.1esr-sq.xpi 773958 BLAKE2B 7877cd6852ff743b608143003d222cff897e851727665d8a76d0480c48b486653502ad51f0fcfe828b02df906cb40903496005bcce7a5339fd0831c273d52756 SHA512 d9717a8f71ec69d1ba6c6169996bb755b221ccfbb687f0ed2c29937016f49d0aa681fee1761ff46b4da36aace49c2942187aa2a9d982839efe5e141883e09e1b +DIST thunderbird-128.11.1esr-sr.xpi 766344 BLAKE2B 1db7e12b6099ec0dc03bfe8b47d517d18ea1ecce718a7fabb38dac09affb70ef5e3f33daae6b28d1c1cb58fd8751ac60f4f727daa3d8ca6aef7b78dfea9f9531 SHA512 86c3723e2f74112eec64a5b7c4ddda1138ce522c07764031bc15fc7c3b5cf289fdab51a5ee808c3b5cf61ce40c063c7e1c1518a96c19c1585a2b9bf02bc42034 +DIST thunderbird-128.11.1esr-sv-SE.xpi 751553 BLAKE2B 6459ba46f0b0e8942c3df10d4213b5e1e6732cfff902bf6ed7b9491084ae3746ed42a83caaab87fdbd8c20c747b4a4f5accc694abe30a6b4f6c819faec0e1b4e SHA512 4b2e6e2c187611471ec66cc9ca03cce4690b1691d3dce79f081b0db3474c37a7ec1f18d9bb71a979e5081d35db74193cfc6f57ad9793fbed32084eb4e3b20a58 +DIST thunderbird-128.11.1esr-th.xpi 846429 BLAKE2B 8977dad37ca74d12fe0218319822723050929451618850053ee5c8277cd5132e543e219b33df4286fe9848dca67be08496b7d1ded4584679e53af6a97f1224c5 SHA512 36b4a4946f4a52832281c4340fbaee098a4b21f1fb950a287596d282e8a6091e88a0c9a41727a7e85ad9e8fa1ca56175fb1127bb67d040dd6a3050cdd370492c +DIST thunderbird-128.11.1esr-tr.xpi 763626 BLAKE2B 191e68ce36bc2da9684230076e7a5f7172e45add8dbc4081cf0070b899afd035a95d8495fcebb08c5a18f1b5ff6f7df76bc531c37bc1a36c454a21a64bee45fe SHA512 269877e831291e134fb3b9384950575fcd319e130e5f56c13d882186e7c7cb0cbf043142f3641e91cf74d21f1363384ce9abf2544fb3ea52e8c79320f135cc8a +DIST thunderbird-128.11.1esr-uk.xpi 865741 BLAKE2B b9e5cd3b7a9d36083995ac12bde8a6d91c73b55a65bd4341b214723f19a46683d00a63b5a8e00bcbe725e8cb33f499c685977a989550c8b5de5fda835bfc4de1 SHA512 4da1fb508af33c9c258974f46a96857c712dc486de38f7cfc87d067fd72a894882d7655f515356ad93f1e28ffbf5de0581dba0856f054ee19eac8351a8c67caa +DIST thunderbird-128.11.1esr-uz.xpi 589341 BLAKE2B 9abf8335fa62964ef3db4ee14381c999d689b2fbdf91dfec1040bafccc15a87434c3d457e44ed5922b36fc255ca4dd47cfb4b5f23279a6dc6fddd6db5e1f8c0b SHA512 984f4bc0a432a5891bad85f11751750cde1caa606c5b63673f3b6c1aff86fc2f09b7c8a7b76f85a4f962e99e890be2750434d244d46a1600da29d6b64cd3c0bf +DIST thunderbird-128.11.1esr-vi.xpi 791686 BLAKE2B da3a6de0cbd3e95d8bfda6197e114afb3b284c4e1ac5e0a5b1cb4a725b3ae4586e1adf4c2b586089305c4a619b8c11d1fcce1f75a4ee866d7df4be6fcb3f2318 SHA512 efbab1cb12c66adc1c4966a41ea5622f854bbf0c6efa53159a41d2f4996d7044926c9115e0ab9e27256ec61a4337d7eb190a3942bd81256b2a80e06b334f372a +DIST thunderbird-128.11.1esr-zh-CN.xpi 792034 BLAKE2B 2d6baf2e93e933144e975526a46ebd533143f86aa03f002204fd6f8f854ee1e9b4132b7d9402c881b1ca44d5c1518a5bf6cf0cd45a51f77c36333f71f07b8ad4 SHA512 149ce39f8ce5de0c511ddf30dfda822ff9c97161a1b069137495208d582a3d84ef310551495fbc82adf77b6264a87ade5a233f4e3c925c04198edabb1c717ccc +DIST thunderbird-128.11.1esr-zh-TW.xpi 795259 BLAKE2B 3605672b372a5e3874e88703fb9f7806ba42eb4960e321995407f1846762a2059f2efbc50df9c3ba55d9fcd7d92288be8c455791453775704a0ede99c492462a SHA512 2010ff176a180bf9b9d8c4c3c820460d4671c0486ead7f3350b1e856e2e3cae18b8716e4fbfec568564191809964881e6609905e182e3b7c55732425dfcc7485 +DIST thunderbird-128.11.1esr.source.tar.xz 676156916 BLAKE2B 113b48c1bda6fb1cb544e8d3cc0412b89b69b1616215cece467d093b66caa3a2259b8f434a35bf3a4cb1737d57092fb8735868746938bd6ac48c9d11577eac7a SHA512 8fd99f68895b543bdc5bba38d7720f0e48e2a82c9fe5e8ca15534e3918cc40b5b2911666dbbbda0a7911783a03a0d8f7371ea353fd67416baca1e1dffdd25c44 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 diff --git a/mail-client/thunderbird/thunderbird-128.11.1.ebuild b/mail-client/thunderbird/thunderbird-128.11.1.ebuild new file mode 100644 index 000000000000..1e1f68d257b6 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-128.11.1.ebuild @@ -0,0 +1,1171 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-128esr-patches-11.tar.xz" + +LLVM_COMPAT=( 18 19 ) + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.77.1" +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=yes + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info llvm-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[@]}" +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 ~ppc64 ~x86" + +IUSE="+clang +dbus 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+=" +rust-extensions +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + rust-extensions? ( dbus ) + wayland? ( dbus ) + wifi? ( dbus )" + +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.26.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 + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="6800M" + 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="6800M" + 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#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + elif use arm64 ; then + export RUST_TARGET="aarch64-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" + + # Make ICU respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py || die "Failed sedding multiprocessing.cpu_count" + + # Respect MAKEOPTS all around (maybe some find+sed is better) + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.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 -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.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-gpsd \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-pixman \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-ffi \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --enable-update-channel=${update_channel} + + if ! use x86 ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly, since it's not activated automatically via "known arches" list. + # Update 128.1.0: Disable jit on riscv (this line can be blanked to disable by default), + # bgo#937867. + use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_enable rust-extensions thunderbird-rust + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # 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 ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on 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 + + 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 +}