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 E2DFE1580EB for ; Wed, 28 May 2025 15:17:30 +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 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C9B2D343088 for ; Wed, 28 May 2025 15:17:30 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 2665111047D; Wed, 28 May 2025 15:17:19 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 1583011047D for ; Wed, 28 May 2025 15:17:19 +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 6BBD0343178 for ; Wed, 28 May 2025 15:17:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D42FAE9B for ; Wed, 28 May 2025 15:17:16 +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: <1748445434.f6f94e182969449757970fbcfd95abcbb54682f6.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/metadata.xml mail-client/thunderbird/thunderbird-139.0.ebuild X-VCS-Directories: mail-client/thunderbird/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: f6f94e182969449757970fbcfd95abcbb54682f6 X-VCS-Branch: master Date: Wed, 28 May 2025 15:17:16 +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: 973edfe1-6624-4c73-8a6c-233429f1e4a6 X-Archives-Hash: 76c28cf7c9adf8a309aac240c88eb36e commit: f6f94e182969449757970fbcfd95abcbb54682f6 Author: Joonas Niilola gentoo org> AuthorDate: Wed May 28 15:09:24 2025 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed May 28 15:17:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f94e18 mail-client/thunderbird: add 139.0 - sync all relevant changes from firefox update. Signed-off-by: Joonas Niilola gentoo.org> mail-client/thunderbird/Manifest | 66 ++ mail-client/thunderbird/metadata.xml | 1 + mail-client/thunderbird/thunderbird-139.0.ebuild | 1162 ++++++++++++++++++++++ 3 files changed, 1229 insertions(+) diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 81121f415637..ca3191fef596 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -2,6 +2,7 @@ DIST firefox-128esr-patches-11.tar.xz 18696 BLAKE2B 0f35eaa29f1daf9beb09c7303b3e DIST firefox-138-loong-patches-01.tar.xz 2948 BLAKE2B a88a68418b747206a50b3c7d90c447aaa2a3ae762d7d5d32bd03f3af59d0b9051c278de8b293275758844560f1f275461afbc07e40f449fe5060d47ccd5b0938 SHA512 cd80714cc7142edb1a3dd83a7ddcb11e65f6b3ae2c44c299a6ad6a7636514cbb0ba8bf95446553c028b3a80713825110438727c3308c810358b2483af3340a24 DIST firefox-138-patches-02.tar.xz 13236 BLAKE2B cda86ec5a89d591e7a294cea611ecf84483e28ddca9ea7087f4161ac7589d2e26255a7a1e78e3690dbe97adc5a2d07eefa3b2d2e032eea82f6722f9a6089dabb SHA512 0211e40595a59db168ee6ebdcde398cd9cde6200306ad08633235d8a85bbe367c6a5cb758fc4a9a646af7c33f6bb9a6cf403c47c62be954bc35949356d1e9f6f DIST firefox-138-patches-03.tar.xz 13284 BLAKE2B 825aed6ebea3a7c48140f9e050662ca07c93782dcd287c1e61e7a62d715fb9689820c283810f608a80a5221c366fb54ae06f41df16b317b010e17a014b2fbb6b SHA512 eaed91f322ae6151605579d4b1189e217f881a442239fd887d268dcb1a9d76099d501abd3ed16248ffb0a415214974a340dbfc47756a062cf083d5e57a6c655d +DIST firefox-139-patches-03.tar.xz 11536 BLAKE2B a7610d1348a2a4d02305c8d694a1648997040c69cb1445b901fe456045d0b1a73f28b0102ed03d34f70d8cc1ea9ab0245599a104b0063c7fb0dcb5a8fdd6f60b SHA512 4733d34a842d525824fbcf6ef5d8f33e26b4f37a16aa87043427eaaf1e0665aa257cb8487bd692e4fd095c2a78553ab3f0213208124c3455e534394576fb5614 DIST thunderbird-128.10.1esr-af.xpi 534915 BLAKE2B a9bf637027672d7cfed377a8447cb9cf679f4d57439f663e5f8a09f589b75b32180f2bc9fc7a0d972e9c1157fd96b8f56f87afd5250d4d6e1d35f7887886add0 SHA512 bddca968f0864eb6b8feea8547a4552f12ab42b076b593aaed075c0c7a6214240f1767090e17333800929329b3779954edbbc420588269e06817d46b14733146 DIST thunderbird-128.10.1esr-ar.xpi 686463 BLAKE2B 33b2c690e058a1b1c470f0375e37463eed9623f69136c26d6186733b28b4914e8f909d4d7dea20b57e6b837298318b6ccb3416f9bb226b1b55485d06122eaa36 SHA512 887db2fe338f7e7ae79dc05c1afc8bfd7f7bce20cc644cbfb7d7e645fdadc0975aeab638ddc415f2f4b48ec9e7eb60737878f1f2a9a858663a793303a3f4300f DIST thunderbird-128.10.1esr-ast.xpi 574780 BLAKE2B 2a99cab2c52577f88c226bfb2933502510ad06c68fb4e8f6d6b9f59e8d210a25387d423269cf1fcedc67af7209995da77eb6d9a376137e04fde6dcb56699d930 SHA512 38fc3cd80ee2394364bc1c76e1b7e157b2b082f65208a4b5e2e3b4afdadac230d13866cc8cdce0c8570e1cccbc0377f856a1c324df8e561bec478293786d03ec @@ -262,3 +263,68 @@ DIST thunderbird-138.0.2-vi.xpi 514979 BLAKE2B f54db8bbf66f8c8a2230a2d32f1621f6f DIST thunderbird-138.0.2-zh-CN.xpi 504313 BLAKE2B 359bfe6a39fc2cae93b6771791e2100bb04996c7089dc1de896b5c9b52226e48038ef1bc8ec5aa2626f15ad978e1fbc0444b273502cc5dcf9310eaa71b919bb5 SHA512 84840d0d6f957d1bef4e4280f0aff37dfc420081b2cbc123d3b38300df23d4da7e8e4c4a3a3293f607796e9302ed12bd33d27f11bf0411c502f14550c54999b0 DIST thunderbird-138.0.2-zh-TW.xpi 507439 BLAKE2B 7e7ccdfc2e55843f53c48c2bffd86d40e1c1301d28a2faf9bc88691482a1ca922d1364ec1d74784c90d5e9af2822407b9b9ca24c9d58ddba2c2458f24af8b218 SHA512 ec790f66facbf9cfbdfee9e1b01586a97f00685d2016c833d310b6aee98e2e8e7cd990e88246fba09cb0991e69facdacf0e243f576ba5083b23224e68af02c1b DIST thunderbird-138.0.2.source.tar.xz 739227692 BLAKE2B 372a400392d51b1e4c79c0bf3dfb24e792cf25596b195e86093f30ae253ba78a8911b10b24edbac92737481a248302d6651a27c38c981725e1990d794231c21b SHA512 6d6295cd2d2a2993a85a67750a127b0cd6305ded37a78f65427a544f2aa63e336414888d3562f911282f9b28c9ae7c005f305e241df6133f3e111b621da3b0eb +DIST thunderbird-139.0-af.xpi 316966 BLAKE2B fd40cea7fbbac5297985d61fd27df0a44156c9a29f424ebf029e57511cb673b994ab60935f85fb834c6048301357a7b42a7e17ac59f86959fc96cc84fc59c87c SHA512 b5b556d3aa5b5bc6bb02b844885efae969bcae47d0ddc47712bdd93aeee3dffa35c6cfe4776fe42728c4407975642c2799ff54b5320f740d21b110897306d837 +DIST thunderbird-139.0-ar.xpi 435736 BLAKE2B c569582445ea0d838dcc132609261f1b474b26e584073750623b673fe657aca591eb4ab5983b72afafb2e74a0567596e82f9c432112b48784a9edab5ac754f05 SHA512 279c27f31076a7f90c9daaeafc6f8ed9ed44424d08c47665e51de5bbfa1f338ef092c292c7a6ff4b4d0efbc22b27d6b4ab21f0fbdca33ee890ef7af87f4ac7fc +DIST thunderbird-139.0-ast.xpi 342370 BLAKE2B caff2af0ed53cd23e809c9c096fb76622652a4f4ec72c52b6baa7a8e508b295a8f3c4de4774a7fb223232a8f25a49d533764bd4ec0be46dcc2ff61037e3368be SHA512 748b49e18051a8e2b40ae412e63e3d2e0664dc31ace2d8effca7896c3a93b95988ec34fb4bdfb9687aae5a2ece3f52143ec633bb74e148ac7aec43830ab7f222 +DIST thunderbird-139.0-be.xpi 518996 BLAKE2B d35d548c3aaaf9e00e89ec04260d4b219d049c6fbe5407702e3f467addb1762c2f165203db2b5411d0bbeb998bf3bbb39113ec01ea6038d047e9cdf53a3d585a SHA512 4bacd399cc9c3afeea9448d3ffb81cea5a1fb79bee35c0ce79990931d359b16fc468e20d344b9ca34665d39790c1860e7e55974eab92a714d001813f639a2fb3 +DIST thunderbird-139.0-bg.xpi 535153 BLAKE2B 6c1db9b02089e93e11c5e53db8ebce37afcea48030f7b58e0fa263c7153bf3239835fbe39c02c147127048db750f2ee45967b75c496074ad2a3c599033c5183a SHA512 7d0c7a309bc5141d1923e3a6c554f38bac7b7675e170da3666f796870f7a4649b35e47e528ae6b41ffe8e993c786085ae3b058d915bcbd7e6de248581e1feca7 +DIST thunderbird-139.0-br.xpi 403226 BLAKE2B bc5e6e7e53e2866ebae3d7df348adcbe33b8ee76caa5aecc820bcadfff6585ba2b7865510e15066491808310c2e44175405274605e117a050348a678bbce0390 SHA512 e66b891c37c93479ae4f466a7e60c5f0920c30785fc2c63b1506c920d462840a83251a0cb9aae2433a10578b21ee8adc1e7ff9748b819396a054b682ea035816 +DIST thunderbird-139.0-ca.xpi 441382 BLAKE2B 9f99498b8a0b19046565affa21033a8d6672934d18cfaad52faa627b1157b795761e4df16220e282afd69374771b58fdbbf439daa9a0593d1d69d39708c901d1 SHA512 5bf9b040a6c604815d41c6611f633ce889fb64cd0de2053cdf6313c8fd67a60a7af7c81a0d8ae2a66cadaaffa36347475c8ce9777825923d9625bf91041f4107 +DIST thunderbird-139.0-cak.xpi 419101 BLAKE2B cfb6df830eac137c8819996f241617b122ad0498682ea0ea05b8481052be42a1e8856c0aa2c5da4024ba5bbb6c63e254a3332dfe406aaaae7a8f7d1518e3d797 SHA512 ef6eef5579a1250a49c01fbdc7fc35352748ae0accf09bea582a3bd5ceebf0e66d8a27c3291317a4f01d84587e5009f735e42fde609980046e462af09808bcac +DIST thunderbird-139.0-cs.xpi 517127 BLAKE2B 518e5a0518c52e774fa3c806d1935582f5f823840cc524b4c7c2e1756a9f879f298c3584ad820cd95927c1b2b3726904af39926ba55f8f6c7f6fb008eb083211 SHA512 8971f7ea4749eec9df70eb3bd65be3ab382a6e57c33a2c5e5f49c633c9401163781c84bfc3b3c956306f0ce1aa9f77fc79dedfad9cecc4eb37000b5d0cc9cf49 +DIST thunderbird-139.0-cy.xpi 485814 BLAKE2B 5ba34a5fe5221a4717d840d9f0d268b822f0676177796f0148ada41118ee38d5acc31b731531f0e9cc8eb3a17dd3f922da692bf343e4c78f8e47c2bf52b9799b SHA512 5adbe60c26b85cb54c74d5900ca3974392d0cb074c1107a72e264b80640b3ff0a3284320d3e084642703c456fd2f1d73aa7046dc00bafe89400cc1967d76e3e4 +DIST thunderbird-139.0-da.xpi 474892 BLAKE2B fef3b1e048dd414bb24b0bf058473d22ae90574db48cb6c06040f73f7ac366c865958b82ee02dd57675d4c6b21a56d6a449860ac52fda0a0d043a9add64cff39 SHA512 01564031535d6141f069834b2c0793f8c3e79a3f464ca6ef56119e3c03be810b563015cdd3ffade3d5cb118956ccade3222c7dfebba79055d3a96e45f2302616 +DIST thunderbird-139.0-de.xpi 502962 BLAKE2B 0ec68debb25c822a8c77d77eeb4f5484539194bf37e8843357a3d7e06ba1b71d89c8334a550a66a3cd1eadff6af18289941ef36ec37e0272cdeca6f3215b5df1 SHA512 5daef195427d415658ec1a405a499f836d78363f2d3c9e7ba8fb2864efd441ff316bc11dcdf4486280aa1dada050cfe6b2fcca461b1d66f7db542130caf23a94 +DIST thunderbird-139.0-dsb.xpi 515790 BLAKE2B 44f82ca93cd2b83acdf2e7c432a4fe68862d9c253343eed6e6cc6d1e5a8888e7fd065122de2f2dd1e7970e2414e26a7e91c29a3e28867a6764d624345ec5238a SHA512 b55f2b0920992934c70fe91d2dbda580ea666197a7ad9c065b535925342099c361fbd1bfeff583e9d26c83840f3dd44bb3def2894091ff81d0a843039132c2e2 +DIST thunderbird-139.0-el.xpi 606199 BLAKE2B 4452734ee2c426c92c92308aa867a3f11d3130682beb812e0a320556dbcefbee072a7f57c6d8334da508d8f757fe2d03777848c162620b7d6f13422d4715790c SHA512 bdd2a7d14e6f5fec2c725efd8daf8ab16e3a506743112cddfc663803e4d300b7660eb2557464658a7554c3ef4e21d3682e987f46e225f35ecc7ecfd475a24d63 +DIST thunderbird-139.0-en-CA.xpi 449783 BLAKE2B 1af2826f12ff5ae34ccd832dca621a3de757b8b2c0048d955facc9d44d703f1d7b54f57826005a67341c5e20f09aefdc996ab2b5209ffe363cae7d2342ed6d1f SHA512 4a8e6c7e7d98450f8aaaad2a29820ddb5aec8931f6ec9de52ed9e7d599d83f7ef0a4a5d60c8c68033b58ea14e02f1811a10d01579c0203b66154ecbc5913be95 +DIST thunderbird-139.0-en-GB.xpi 450740 BLAKE2B fdca6071216655e01b5e2e7fdaf7ce6065b6f881e70d64f83fa134b46653b3fa3d4cdc20b3a85d5baf4d1e235d5c0d687d00c53c49f648b7f0a1ef9a3793c67d SHA512 97d02130a01ed18f64b1300ec9800f95ea651f6c938c5fd549b496dca6634c480c12a0de9cca52e571a1dfe35ceb5c67ed10a1784dc58afe20f20695d3406bb7 +DIST thunderbird-139.0-es-AR.xpi 493639 BLAKE2B 637f6319be963e8a9f375aacb747bcbe7095b06e3bfe9dff3fadfb852b244c17b0d4d15541e219f7b2a0ec083ea16b9676fcf19493442d81369e25a03b331e12 SHA512 5a8ef6ed7865264a37f02cd15667960a321d4b987f5b492f3217cd541735fad53088776dde99838eba7b48a7d3d37be0c4a6bc95e88c74cc1b0fe1e47206cadd +DIST thunderbird-139.0-es-ES.xpi 495375 BLAKE2B 53bb06ce4b986f36b395d09754fb2467e3abe4b618949acd0352d6fa085b2165b777a4df67b0025570f2f3ad51c266eaf93e9c03415c1bac131fdd9a87e67a0f SHA512 b1f7d6fd071c1d461c87be6987346d377b0c871ee57be5750e04da89bd0ce756fb592dab000585db55334bbbb450eabd63b8a30ddc231eb4936f82d5271964f2 +DIST thunderbird-139.0-es-MX.xpi 489246 BLAKE2B c31fbe088dfaea798d7f6f6ba95ee20567a98b92648e2fa6b4bdde69bac9c73218e5ebb03f53f5e2c3a102e1e2b2245b2f03b17694e4eff8609404c991d8a77e SHA512 d0c8a96386ae54f95566b07d79802dc4da5065b9a8ddb10a3fa7089e6d3002c62d27d5610c91a49d54fc5195409da67c635b9c058fc95885fe51797af975bf89 +DIST thunderbird-139.0-et.xpi 443102 BLAKE2B a478b8bed7f6ab533a7838b21b0d766faaf968b0644cea9e074afb663c27e0e37bb17385042bb52ed77db1dfa4728f58f0b4595229047170b2ee0205073a94e5 SHA512 e02d7de7cf5de145e5b75706faecc11dad36ba47d100b6444f144da5c5dd036f4228254bd5d8b1003cd03de7846c2723628949e5b8fae0e8009638cff6ee7639 +DIST thunderbird-139.0-eu.xpi 471469 BLAKE2B 8816e44350b7f3b120a629034bd4a6d6c6fd18927a5f6df5566038f911c45c9b1cbb6227fdf4a499dab5c08174bdba81b6cdd746cc383f28329a31cf3d0ca55a SHA512 64920b95588da0a4c90c5c732cbd11adae97bd1927d3caa2679fabb5e4f6b674f497c33219f730ff4d0268ba291918ed1fb696c2a2327537f94ce8549a3892ea +DIST thunderbird-139.0-fi.xpi 472730 BLAKE2B a15aa047f1ee2ef3228c5c532ed9615da16fbaf5713def2a9d5a73a272a11e75e4016215c7e67b075bfc0fe63f7328b928bf94e2fb37f12290c4ff42870d62ec SHA512 9887760b47165f81198ea4c9c7af396bf456d610059d544a77dda4484018eb860befa7fb80611a17216e153e962184adb079e1bb003e444ac41f5655071fe6d9 +DIST thunderbird-139.0-fr.xpi 506095 BLAKE2B 8242b9f798df6d1b86acb9494301b85adf4f13dc08d7117cd4bac99c36612910786c107b621a7f491a80b7363d203bfedb30e0e5e1deacc3b0bf4d87866d21c7 SHA512 251ad4f58f5580b18c0e3bd1e619d8f6f3e78e04aa7ed6ae200232735476b48b1fb37ca8fe6af2845d725706125f3438e4d8dea7dd01691bb125c93dce84a289 +DIST thunderbird-139.0-fy-NL.xpi 488896 BLAKE2B 3378a93f09d60e2f9938a955a2decbb59bde124301599070d0b52532a2cafd2c3340143390ea2bc5b145e4956deb0e60b416388e2a6d7119605ec58117e11828 SHA512 d83ace414780d3d4823ffc1129b19f71b1b22fb9fd2e2ec1d2810ae66bb429d74ff942a346966257e0b0444ae0aebd944f96b335540af8a962f44ea34869b174 +DIST thunderbird-139.0-ga-IE.xpi 377496 BLAKE2B ae018c87f0689868dc713490e5b12b35c80304601a15e058955d9a571fd5a9914fcaf491060e7f685da63f09dca1f43d74395b3b581ad52cdb8414b23d329bdf SHA512 3cc892756583f4dcad2fbadfa0e2a376819dad7704d5076248d584ac79983250bf4a8baedf6f9554fb9cb6cf7645cfba705fad3a6ff14090fe942497b659ab46 +DIST thunderbird-139.0-gd.xpi 463047 BLAKE2B ca51af841fa3d583678e3e6d8643466495c7976265a091f659dc4f154d97c1eed842cd01a924bcc4948602ea4af5df79f927885c4444d931cb698911e0c0ffe0 SHA512 d2034bb1d5268e466ce01b6957746a4cc447a057703b3f2b1dfdb81dbef58328bfc27e43075f06490d5aa4ac6c184fcd03e4ef29e6d27d4b3105bbb420097079 +DIST thunderbird-139.0-gl.xpi 471958 BLAKE2B 3ba057601acaa16b3d7bc10ced20217e1b3ed1e2bf7748f116610f20aadc4055a81084f94fe19f66451c462c42415d98333dfbcb8a5cc0588f6cfcca95610be8 SHA512 7e0a6963200d4f80b6d219771a78c12388f29a6af754ab255963b06cc61d091fdd2d79ed929ecfae7443b4f19cfa115414ccc08f0f27e0b3d80666145b6a6d10 +DIST thunderbird-139.0-he.xpi 440194 BLAKE2B 04fc9abe2d584396e051be1acc41c234e1b1a5c733d5627a1a093fd606f123241f5bec7f121d7477a94b31050f0b3930bb9b239677c9a0df52f6c7b69649e075 SHA512 27522d402d9bfffc25c18da4929d4599ebe49cdac5cc2b741c71440fa2b6c442b7985b7aeeec66dafbbe31fe9ee292908b8dc080947623f3d6d725de41e523f6 +DIST thunderbird-139.0-hr.xpi 458915 BLAKE2B d48c2bbd1da07f62790a42111a70321724d63c527498b7b73bc6494d11b8fc838ddd526a3bcca617993df974d46773804f61c8ae8192301b0d3e5100094ecd59 SHA512 c48e99a2b8df8838e4118bec0dcdff3aa475c779d4e579501ae23ab3347dd8b275928ea1193d58a1689bc2797bb9561c86402858c29b3d6ebee7990d28dc626f +DIST thunderbird-139.0-hsb.xpi 512880 BLAKE2B ec91d7c01823e88651b934b29d2e6d0da5b88cedff3ecbde4a501f735d24a54f2e7f4039d2780fe250cb4bc72764e97d1f635b379ac4e5898b850344150efde5 SHA512 b42095172605fe6e366f3b4fac4bf4b93c769e870ecd48722da3444ea00d2c2584ddf017ab4872ca23996a8870a632f8ed82ecdebc7f0627a4522f3b4cdd2ce5 +DIST thunderbird-139.0-hu.xpi 515601 BLAKE2B 9db5883575519019856235b75c42d6e48cbac304752fe49ad10e9f6928c4232aa33edd2062ebf4ad8678a5e6be828160948f838538dc5c6c3088d8cf2d82e1c3 SHA512 c85e9eb2301639bbd49245780ce2ca7a03ae7dac271290a5e0d4aaa06b7653edd6ae72b52be71c30ebefa9a566cd976b7d892b3e1a8385142445c6a21b9906cf +DIST thunderbird-139.0-id.xpi 464509 BLAKE2B 9d4a69872f698ac77d42a3cf8ae035f506803cb28da432dc55e8eb96a74576af13abed85df82082ac053072fee7655b2f2c355c0ca9500550176c81f8761bcd2 SHA512 495c3643523cc05d35a8ee577291ba744b06ca03e190b44ef6e270216be8c7038a504c3b0de0a6124bf054a9ae59d2b0a298ff1505f6eb19f6c9ed7ae1a56387 +DIST thunderbird-139.0-is.xpi 481854 BLAKE2B 18c1731c2d5408b7d52ffa61d271cc8cc143d2ab1c0ed51165f00d5e15fd63160e8c1eb00a840e616c5224721972d285b29d44045c43a7b33b29683cfb1b2f33 SHA512 0a2733146aed2ce9887fdb5c207b5191794d85abd5c1e27a2f5cf6f7eb88a9358f82d17d9048057fcbd73bb85d4ba06a0c6acb50d35546f3f9d750aa1f96cff1 +DIST thunderbird-139.0-it.xpi 486743 BLAKE2B 1c9bd0e0bc5848d78ab376870634c0286e730108ea9683ec90073f8eb50fc0045fbab98208875ecc6a37d11a06647c3aa2c73ac071062beede81d3c914747625 SHA512 dc9a4c4ff4be0370545609fdf5b5bfb50e912f582a1e16c45e4fdb394d2bade91137e3586f8ee8d872aff2639e41decd2cd9bb4205fc507d9d734f5b8b60dc3a +DIST thunderbird-139.0-ja.xpi 537132 BLAKE2B 26f48f7836bded5d630ab14f2969d4827f559217be73100d25a15621045eb7391f4f93042c72aa977efe0b77fe2889cfed668831a341426dbb3de076e6c966e0 SHA512 be7740651166f7a0d7a0a47507a9358535b3481a3b2e436aede6602e434ad4d48ca48bd071e41d916320cfbc265feb97f3c2b1e3a5738f972cdfeecd0d09c69e +DIST thunderbird-139.0-ka.xpi 541998 BLAKE2B f12475e1968107069d174920d6eb00855049ecc4997660d0e1ca4043e38fdf2812a3c4e7dc29fb4c0126c85144a7eade13080ca53f3648c54c9b8993ac9274fe SHA512 08aa56559e731855a1144205b837a06f64908c513c474bab399824aab0bce44f9f071fc59e861ddbe638ec99691d4a3ad6258dc3eb4a1a93db6282373133ba13 +DIST thunderbird-139.0-kab.xpi 468317 BLAKE2B 65ab8c59149f52e6b7c03eea334f81cd8b9b76880b5586bc9e30b8a5eef253c3c5332ed06de9b989a84e6c56b2e1f5e600abde850ff138b66e19bfd48e012f4e SHA512 ddeee2eb45ad7a7b388f6cb1d6acefa413a6e1efcf2a536dfca7d45f25887516563765bcd90bcaf0c20c2d0558624fa77072aee2f5e1386a62a0107a76bcfbd1 +DIST thunderbird-139.0-kk.xpi 572043 BLAKE2B a16f6e969d20267182a5e048763da1d78ac2962e356b6676b57c55379c527fc4827be416c826d7e138586c0b26ae4606adf4be3f8b2480c1e309db75470d8cc2 SHA512 411fb369ddf8c03f47fa3a9550ddaa19b07416e0d209b326119cc208db5af84b2aabfdbb6a6776fb0cad276d54da6a7682b23bc06c76b091a4336a6c43cde3a5 +DIST thunderbird-139.0-ko.xpi 513100 BLAKE2B 56e8aa1ed7d7ae7f4c0483862a3d21d04d15981919d6b17221fd11d1e2fbab5507bf7786b14c27c9d1e3796951c112b601a09121b67c7609af130054b727b83d SHA512 f9c7b6e292d14d2f9ddf8b5aa8fc37de01ab2e7ae74fe8a4d229f57d4c1d20c14ea0f0f7935d66a1ed3c28993bc027bf24807bad683e9e9ddbf7b156a4a3d4c8 +DIST thunderbird-139.0-lt.xpi 442902 BLAKE2B 412df32bfd6aa12ece3aeba2ede344bcab03298bce3a7b7a0b329c6686269d7b869a6139dd041fb468c9e34da8d7623e8b99e51111f36ce770ea87a4aa34dc16 SHA512 6dd6752528b1370a359df947c35735f528677d13ea78634a3db703b05f194492738479fcfad1c3259523d396e80c46bbe5c12344dffb658e5f9d511b18a0775a +DIST thunderbird-139.0-lv.xpi 392673 BLAKE2B de17a08a0ea1f3a84b88c759599fc53323ac0917ec56990ed04f50c7e096414e9baa218feec7b58d612a67c84ad99f88ab11197d75b90641c0548d0d96285b38 SHA512 632f7db9d34b1620cd2315c3125b960718b17bc5ae676019d18e5a60c42fe9fc844ebd2686d3cc3f2e586c3dee522b13211df6d557af1bc10c44847692fb8104 +DIST thunderbird-139.0-ms.xpi 352871 BLAKE2B 594cab61ae50d89e302b804afb9d3c6179dbfcefcfb3e3b9482492672869a76aa156f536d8595917231a46d62a5f605139fac92cbe5919019e1e3d8e6385c486 SHA512 d09a2fee29b71ca7a7368dfc67ed84d0fadaf220f142eca8c1982426e0ebdb3af8497bd2aa6708268e2beb63e957788881e9db19ec4cfb8ceb5dcabb90497f1f +DIST thunderbird-139.0-nb-NO.xpi 445667 BLAKE2B 244aa29b02fb0a6b8b25d1a204e8c01281d99af2ad31ed02cc64cc0405942431ee5b35aca6a6b1b0c253b00c22895a54832be8901c2858c2f4e313e76c989cfa SHA512 15604ebc2392edc2d74df55fb2d802bac86e2c470578bbe79f337e48233b990ef561e83c8f5627c4a3783291b505366021eff9bb346a2e33b0a46847d82b294b +DIST thunderbird-139.0-nl.xpi 480404 BLAKE2B 0d927ae4125370b40a1a93b9462aa1f2b35abfd342f299e9c3ea3b57e0ca22812c43bb115f9211ffc434d0500096afa7e0c16dd27aade1e1bf3b0e2e5da024f8 SHA512 03c947dd466e0c4da2efe6d14b566c85f1e718a6cc516247ffc0e25356c799f13c7e7a18451f00c701c427d504c1226694f103e17e7751e5f7c2547a20f162ab +DIST thunderbird-139.0-nn-NO.xpi 465874 BLAKE2B 0d991547e52e40877ac5212aeb67cfd081e3b090672f51ca4eb107f3a1c9f8ec5c23a89564450050f74d205dfe42ef00977472f37dcbc377ad6cd187df3c2f9e SHA512 f2c7fb9230ffb76d1dcc10ed99a67b15172ade96672cc724807d996c8ed72103af098a24ce0c924cc9f8c209d044bb1e371e1f2d42229bd926d60a34863ec3cc +DIST thunderbird-139.0-pa-IN.xpi 433720 BLAKE2B a1edf99afc6f5e6b6d03242b2a17a9b01e382f12e58f83bf21a2525005b00cfe7970a0061e17dbc52aa29f96c682965763bf32b7a19bffa2aface0e5539f4096 SHA512 0f6e8e6a7af2b743199a53668a415f767d21d7fe1987e4e73691be5979047872e196e181f898adfd8940ab28c604e9c64eccc33de9d2d8b3b8e3dd539ba6775e +DIST thunderbird-139.0-pl.xpi 513175 BLAKE2B 1f7e527af2e6ec78edafcb78b0bfa0b42060e92f1cdd155823a558b40a6e5b36695f85c9332022d11df2a7e0519225e7d64c25f3ab80603b337635eb9af994a3 SHA512 bcf6b52edb8550827b68cbae3d65de50f31350c92ba0b6305c2b29f2dd4671ff6de0a276529a6376e41db1c406efacf1f499a350c432d4d85e4042d2bd6db084 +DIST thunderbird-139.0-pt-BR.xpi 488457 BLAKE2B fd5c240fe95d40f5aade8382404b24f44aeb552b8e126285aac9044b70cf9c0c2c0a0f4a1631232e2835961b07dc9d852c7781f09c342c3decb3d65c1a1d6d48 SHA512 590c4772da8fa8b514db339017a599ec5fa0adb2edfa86a68235c6a0cf42a3879c79cb116da52fa5c3af1a6cc61c32a7beae973efe0cdcf07d6d8692a8c7b9d0 +DIST thunderbird-139.0-pt-PT.xpi 485384 BLAKE2B 52d3e39cce00e84036306bab962c4aeba1c702bb3c4c4f12b69edde463f83792acdef25cb771c2f00181968828816c2254eee8cb451f7d1d134746a7d5ee522c SHA512 ac45a78002e63c498602e7cdde019cb7e73ae99d0d814a3603beb8d311ae7287bb0dddfca2229ef132663586b6763c6c42201e379dc5a4b44cefb0cea0f55da2 +DIST thunderbird-139.0-rm.xpi 488208 BLAKE2B 8bc3081cbafa56c5a2f108f46a14e35182717ab1902b2a44b917089e6ab2bf4496f59dcd79e92553303979c394a9d9ccbaac1589e28961d359d0f0c47c79ee7f SHA512 3ddcabb6fac3054d2196d5bdb937a0f402be2295e8d9950391c3061a45c66758d9c9b7b625e972306135cc1b47b6689d3f6d6deef448e8ff663ca9d8218fef4e +DIST thunderbird-139.0-ro.xpi 418448 BLAKE2B e43afb7ce73d36f65f0c96bed8f4a3a381bdc83e66ecdb511e44f795e150e92938b03d96a7b35e6f263cb42a0b0983269693f78e84268f0cbc9f713f40103fe0 SHA512 c4a6331c2ba18a2d2d4822c1b97b9f24592febf759e341f944c0347a5c7421728d601ca0c61fa66c2312335c1730e3f63a63d48bfd1fbde66f17dbfebce97c41 +DIST thunderbird-139.0-ru.xpi 590188 BLAKE2B fa982ab9bd5a46121da7edb84ff95d7a086135bf8ce4fe6fc8bd94aa5785bcb90e2e788299631442ffb0be8cdda40b4bccd4577169fc0ceca3628b7e533118d0 SHA512 66c4332a61e3592c29a9c75b909828e1861175f13ed1c34e46f5dfa752105f269772791522b3fc90abed492d2cb9a299bcc18daefeee11017e6d96f38d4af520 +DIST thunderbird-139.0-sk.xpi 517023 BLAKE2B b7d303171c4b518492ca2a90f8c264465cdee1ee4baf91a278a7c9f62f132aaae4ed7ae8fed4de40c932f2ab2dbfa15a20755ccde414dc4abd53a69a8c8a598d SHA512 cd720833fbd2d75caf5e23335db1ee2dfaedabd38d66d4034da99600a4f4094f0ebf0914c6561b0ce9a5b62021cefbca2a219dc9720b325e183dc4f38f69c2dc +DIST thunderbird-139.0-sl.xpi 483953 BLAKE2B 27a34767bf17697a05309f03a48c4bbeb68d11848ad0a35877cede06ee9a581812204fb77d9a21abad93375765b53d1f5231123c262a6ba6bb5e704ff6b3cc01 SHA512 589a014ea5b0b30c88a3c03c3912f65d1de10e6cb5e51f464b1b8309fc4470a8951848b06638eb141c135b97d538bebde8ca2a31769cbb14e587ab1e98b8c16d +DIST thunderbird-139.0-sq.xpi 504116 BLAKE2B 321c9a4b341cbb8f152e138332a626224740cd9fe21f50e45fbcf8a9f480d9f067c12dea5b04bf6ed4fde8b36bd4df373c7a3183bc6a004956b0c8178a5a698e SHA512 e0bb7e56624c5fea9d7af2780afb434614aaa25bf9d66f6af419da7ebb42e928b526fb2c45155feee0e1a1b602ad0333dece0cd87fcc5f8ba1bcaca6dbe68a04 +DIST thunderbird-139.0-sr.xpi 496744 BLAKE2B 140ef503bce4995f9e5c34eb9fb8349ff9d18f03fb8078758ff503f027a641c873dfe364994f9f3ae53136c4ef0971460b4026b5d54cb0abb329630130eddcf1 SHA512 5bc7cb8ff59a60454068d398f33658112301db7344099c32ab2397eef7bfefe0b737a3d36fef0e3dae96cc009ec631eaa710b7da504fadbc39be2cef0c82edc0 +DIST thunderbird-139.0-sv-SE.xpi 482749 BLAKE2B 039f32cff6fe24dd8b7ae20071c6f8567cfc4bab24f9daf6ba7b9d7d8ff5fa3778d952931d5ccb69d87cc06aa7a204d844f3561d836010fad4d897af0a1ec320 SHA512 06a20faac9502a4d78ea277ab316432582e515664d81a684114e2b3914f15835480ff6dbe08f8ae7ab2870535231583a4671302b169ffedfac3a98d0096e13ce +DIST thunderbird-139.0-th.xpi 563674 BLAKE2B e6d5587ab01c1c044587e3fc4cc40798104f561ec1ddc71cf22c3a6e4256067c7ff2f4da9051cabc9de5983507b6c490e75dcdaab40f56df485af69280d55e39 SHA512 e97f5ddfecf9d6e2cd537a63d18a4eae385a2494947f277fd710974a360f1c917a0910966cd3718152a2ffb72192b69445768549d1c5a3a3571be2cca66db36f +DIST thunderbird-139.0-tr.xpi 493120 BLAKE2B 4814428ab7453a42f028fb68cd53594361ec8450c83c025e2d44e3b7e690f8dba902b8d41d1bfe5889f82545aec9ec0a51866c32ea3d126c201fb19b870ef6b6 SHA512 03d8c44d07160b8119374f593cd05b2cf056650a62345d408f8f4b00080167a8dd56a792f76e4fc35ce362c4beb63400bb02da04cafe31f0afecf653da3f5fc5 +DIST thunderbird-139.0-uk.xpi 579870 BLAKE2B 264b37eff2ce18b24aea804116d37be85495ccda5720a88d2532f08c78eb8a7b2a741b1eb3fda2d9613c7209c12856129077d2ab67146f0311a1df7cb0e6fea8 SHA512 d4783debf184dda103af34d8808b5e505876fad71cc1b70d312270db55f747a212c970803b8ef9b26ac1519ef03cf4d1a96fc320c30e301df935e9bad6e912a0 +DIST thunderbird-139.0-uz.xpi 356056 BLAKE2B c4c94a3cff03ca526509ed175d6f34aa88ff7f704426a1321014c9b86f9207d75faf5bd5df41202869461428f816a84947dca4d956505ae25b838a8ac3b911a6 SHA512 1f0388599d04ebedbdf904eca590b372cdc992e4df5be2f97caabda61cd2a9a64bc8a7e0a658365822f49f343edcc9e08e312517e35ae09ec66da0e861326b04 +DIST thunderbird-139.0-vi.xpi 516768 BLAKE2B 00a332f2fbe3b0e5e3a3bbc63e17a2338ca3e7e175194325f8b7b45601f52f761fe69794635aa5caf9f58bf36edb37c8c198b823b4679eac6bf28ad8091ece49 SHA512 e3ee7b084daed653a190724ce1bd442ea59557b459b1af564f85590f0e5c1ffd3bb73c935ff41254e4738e31b809d3b03b251fbfa4af7d0bb7e7dd4a50d2db6e +DIST thunderbird-139.0-zh-CN.xpi 506143 BLAKE2B 94fd75ce10cf0da5fb7f42c8f51130bb3e98c7d75114a936c107009b516119e20fa0fae43b1ad0f5ee34575668c921f149fe21e88324a1232918b3870c556557 SHA512 175be4f771443ec07e9c7c909adf2d7dc84022cddc13237fec843a76d9b30f77fba5389d62e6cbf8404298bbd572c88f37397fdf69bbfb2243186edfc741bc3e +DIST thunderbird-139.0-zh-TW.xpi 509370 BLAKE2B 6f3b52f91087f9103393d54204a11cccb984c7b152976bd24839f985e346fbb6335a2d77e9d314bad5fd4aa3d3f8a44bbd2c2524e935579b4d3f18c4185cd928 SHA512 294338dbb37f34fef188f69a9e5dfb36566b9d6c4043c3145e62708105ff996620b54ff78151899967f1809a67e25cf96e23c863a36ef0ccd120311127ed7bff +DIST thunderbird-139.0.source.tar.xz 755313836 BLAKE2B 1804346bbfd01c3d4ccc44ea567f7bc573f6231bdaf3338ab6d151a74b28d84562cd5ab2b725420fa110feddf64aedbcabc41bbf21ca3cb5725daa0f5a5438b2 SHA512 8e749ceb7f0e88603ad244485b0d33ff209c71b7419debab5ca0bcecb3d9835079d72fee6333ba29458399ce748b92e55156ebbf1bd147a3787fa2f5bf1ed55c diff --git a/mail-client/thunderbird/metadata.xml b/mail-client/thunderbird/metadata.xml index 94a17590588e..c839ecf417ad 100644 --- a/mail-client/thunderbird/metadata.xml +++ b/mail-client/thunderbird/metadata.xml @@ -30,6 +30,7 @@ Use system-wide dev-util/librnp instead of bundled one. Use the system-wide media-libs/libvpx instead of bundled. + Use system media-video/pipewire for WebRTC and screencast instead of bundled one Use the system-wide media-libs/libpng instead of bundled (requires APNG patches) Use the system-wide media-libs/libwebp diff --git a/mail-client/thunderbird/thunderbird-139.0.ebuild b/mail-client/thunderbird/thunderbird-139.0.ebuild new file mode 100644 index 000000000000..5d61c9989248 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-139.0.ebuild @@ -0,0 +1,1162 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-139-patches-03.tar.xz" +FIREFOX_LOONG_PATCHSET="firefox-138-loong-patches-01.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 + &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 +}