diff options
author | Joonas Niilola <juippis@gentoo.org> | 2024-01-24 09:04:41 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-01-24 09:05:00 +0200 |
commit | 1c3a6354165e30db2f0adf44f412c9a384fb0545 (patch) | |
tree | f8c22d1943171da3be85c4f052950fd910893588 /mail-client | |
parent | dev-python/starlette: Bump to 0.36.1 (diff) | |
download | gentoo-1c3a6354165e30db2f0adf44f412c9a384fb0545.tar.gz gentoo-1c3a6354165e30db2f0adf44f412c9a384fb0545.tar.bz2 gentoo-1c3a6354165e30db2f0adf44f412c9a384fb0545.zip |
mail-client/thunderbird: add 115.7.0
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-115.7.0.ebuild | 1331 |
2 files changed, 1396 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 4410c8706b5c..12c35fc7d1ff 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -129,3 +129,68 @@ DIST thunderbird-115.6.1-vi.xpi 743886 BLAKE2B 8c3a879cebf75b23b60b57350fdab990b DIST thunderbird-115.6.1-zh-CN.xpi 742058 BLAKE2B 0d18a32a23b072c85122cbe5a74036d6b2db64819d29c07703870232c857c949e313afb3760a21868b19443aec49a53ecd602f02836455203e5396b0b5211005 SHA512 d87781b0130b8788f822bf447ab322df451cba4149b95397deeecf5e1c3be0ded744d5bd9b4fad9829e8231120356860e13dee32a2bba0a9aae93baa7ca4286f DIST thunderbird-115.6.1-zh-TW.xpi 744999 BLAKE2B aec2a8404722b3c2b07362ce4542665a603049ccd6408c58552a5ffaca6af50a1875e6930866fcc8d8d2adef9c545a2c769bf7f9cb4f497a01df5ba66a915577 SHA512 72d4fe5e6bab768752d58318e8253f96cf0ce7a511642f920b3a70fae1002ad69f6295bf62775868bc6140a7d1d7285a94d33ff0a1b4e0c866a75f339d13e1ee DIST thunderbird-115.6.1.source.tar.xz 533899156 BLAKE2B e26b52782bde9b8637dcf5eaed0c7762541c87832032353bb849bbd0e735121a94a13518877fbd4aa091d943842cf8f04f526fc3b23eae56fc445d0e756c38b2 SHA512 f2efaff8b209234b202671b5322fb14a367b955e28c4b24b139af091b838186126e3d387ca21e57ed089629af876e86b38588789b1ef3db14f4f8703095467b3 +DIST thunderbird-115.7.0-af.xpi 549700 BLAKE2B 3bc2ea371ffa3666ef46e34220e9352b84b317d7c2fa7145cb129b60d9b0f5e110f88953512a773c94accfc78e9eaedf11c0200c2e2aee7f3196f62a22766035 SHA512 74176f279b90e65115244334f20f7a387d8087706d9dd20c550cdf2be9b87485c53a2baab7383a7623c2a46c951270fea5ad7bec0d0725985ead3c70a7eb47dc +DIST thunderbird-115.7.0-ar.xpi 666361 BLAKE2B e44585a1fdebe17dba69ef883310855427eaa656c82de9a53e090dac67f27cd1e0e37f5d22a1884e458a18584b4e589809d0f117855d1096f9b4fa74cd7a99a7 SHA512 a944a0e4b9eb14a2eb1b85987e801fb553707c33d4dcfd97a2c9306563c78a003070bfb9f00c09f4e972a7682a4dfbefd8f6b3fc580b8c0aee06bbf337e6e806 +DIST thunderbird-115.7.0-ast.xpi 568311 BLAKE2B 9156bba9c66d142aff5541db33d8ce761c50e4a3e92e6becb3f3cc1adabdd930053f77c031b40d160f41147489942543adc6ff4ffc1f80ff446220b4a8cd418c SHA512 ddd37a559414c29c14919491aca2483a5fdf5f2e0ed6ab7e7392ce2d3d23c9367bdff75b822727fe791e7db5b6d9b4facb457bf7d9407990f1641b92c09decfa +DIST thunderbird-115.7.0-be.xpi 715877 BLAKE2B 3efa513e437203622e0f05f65847be3b9a32ebbe165cf86028a7a862d1bc389d3ee1dd4e9e95a4bda1f9d728a2ac972e1ce72848e9ac0f8930a07473686d7706 SHA512 c2f86f1b8d0a71912f21491eb6b335c6bf37d79893fc6625ea1cdd3362be5279fdf1049e9068f306b0ef3eebc1b07c6ef2a0c378f1b61c2cb7d0f7c33884b65b +DIST thunderbird-115.7.0-bg.xpi 778165 BLAKE2B e0c863a86fa24c5f5a88d4b0c2c682730352e2b4866d6190e371d89137e088f2e097d70c29d48972fd350ef53f499d2544cdf88397919b6db7f359b6c3539a57 SHA512 e65c5a0201c1e7b3e4d62a4a7631886899340d97c8572a21f72fb6b3f5d1b62ac77c3e06bb2c142f9ba7d63211ebfac37a6104d45185fedc8b2526d4a66758db +DIST thunderbird-115.7.0-br.xpi 641954 BLAKE2B 64b7fa8ef79e1eb5a1ba66c306ca193141148163842f5ea1eaee270212ae65b28526a298fbb9ed454f6eb92f3fdbfe89621c6c44a62547f6e2bb79640ae0b5b0 SHA512 9948d6f6b47ef3a517095a60f3372f0fb50f4d755570e3b21000c6932e17d8328fb34bbfe9b6ecf3f49cba37b62c73f53bba18171c964d3a7b8e338baca2f784 +DIST thunderbird-115.7.0-ca.xpi 685487 BLAKE2B b802656965cda2df19bffe8b71e12f046e00d3c90d73327beaa7c114b7399b47844ed3e76f6007c42fac26fbafaa7d7a26fe8973f58e5640b510e916aea44091 SHA512 4cfae9a87d84e6db73d9edbe11410d4826d94241cf05d00f13f4737b22eab66802ab60f2cef447c2f3b2221fe97ec83407e0dcdd58b7557b041d43fb808e91f9 +DIST thunderbird-115.7.0-cak.xpi 667770 BLAKE2B 43eb59c1b3c528ffed7f0f5eca516530587b0307fc41f63ae145932c1c6e70ece0bb4fc9b70b100c281f8d6dc884b379ac13512cb8765fca7e9ae2824ccfdef1 SHA512 3a7bf16df1707c5a9e22fc2740d88224de390fdae231b72baba64fd7a37d8c86626a05c2be4e1b0659963642e8ea4a29b7407ad747bfd1bc7e7d3e7ae9371dd6 +DIST thunderbird-115.7.0-cs.xpi 758494 BLAKE2B f66e9d20a9d754e05be1b3ead04886bba48642a9a1932e9b03909fcfa319def7a31b830ad2b6b6a0e3d97a76b4e64174ca1a020c1952dabefa09bc863e1718ee SHA512 67a24047c06fee73d94c6ae51a0ca11b2163fcc74992796559d9a22db751221ab65200363cf26aa50ea2eba8dc441da11fa3ba2598123de1966721a6d7e641b3 +DIST thunderbird-115.7.0-cy.xpi 725249 BLAKE2B e6ceb64e6b0a9a4cc7321150a9d8b4c6de47a3d5081fec2a0c3b8df1acbf494399d835ac4167a59ba316e20d119fee5b976760811f7db0216f5c4af68910942f SHA512 d1d276dd492acb5221f509e500f493e744d2e478860bede1e3e51abec622f622716c1d6116b536ecb49326ebb3a59b0a0a357cd7e526907d4414347a3415deb9 +DIST thunderbird-115.7.0-da.xpi 710487 BLAKE2B 3c36948ae2c530d7baaf2db33698afb2ba7a3e9da2ac5a54f8a513dab5848150ee45f2fcd98e2df302c9446a413203213fc7f73b0571d37201ac1ec6768dc085 SHA512 1319df86b0b4074f32642f3cc6c451ea71ec48077337908bfbf88d5bcea8ecca19fc09e8a7f3a5caa87f0dba52073674f03a49aa7a82722553cd0f2ae6694ff3 +DIST thunderbird-115.7.0-de.xpi 740823 BLAKE2B dda55670258de51877cab7b460a628a3c6cc770aeebabba60fa0d0c2b4c09ab960606cda61defdc9be5e8ca8e48b1a93acd34b841661a3d1cb4ca0d995775af8 SHA512 b2221599f84211b6064f2f2d180f3a731adf86aab4ed61f9d76c29386b987da20e908192720236e6a2e5eea0f71c312b9625ab5df9a0fedc4e24b7fd9fb5c044 +DIST thunderbird-115.7.0-dsb.xpi 758952 BLAKE2B db63b527571405dae0e24ffe86971e702b3ae1fc2acce971190d9ea544444267d0fd4c8eba197aeca169f0640059c5ed471e17eca6c416dd9579d59b3db0a840 SHA512 158b7d93f61d338ea862bd0c38cb0716d8c94312c733fdf409da2940de1b4f3daa5004ca9f588cceb894917d3c8c58e428898a32f6c80acf289f1cb876649729 +DIST thunderbird-115.7.0-el.xpi 862425 BLAKE2B 734b9d6b98880afe84aef341b870ee10b5a1b70142686d98771a630adc9ab94725e7ea27115c81f81d360f615327a7e2a5e4c9a5fa3f4712d965edbcbd48d9e4 SHA512 54fb2eb1453847d215dba8b9b7729aa631f7c725c9fe30c481eeadffb5f1ef1151b1d892bffd2d024a1d666675fa2d4980115bebec3df6d6e36de38fdafc5d10 +DIST thunderbird-115.7.0-en-CA.xpi 671001 BLAKE2B e83e20cb9e5af17c3009f7726ca79d09d78450d7c2f2e69b4a5f88a950ff0fa78c5a3d7cac56cfed0256bdfdeff3d7908fe3eb872fffbac14ba11602079801ec SHA512 b1f87e625c2086a927cfcac677668ce781079711809bc9eb8ec585c540a055b76cf9e7db1c7a0c62bb0d1cbe96d9bce030228470e7dd9b20fa3f3d29f80c0ffb +DIST thunderbird-115.7.0-en-GB.xpi 681335 BLAKE2B 0a1fee36745ae5f7ff657affddfe875cb31deaf9c8029487d8f6251bf636c97968ecaa3f8ba56a941589da6b9e57ae8f1cdc2e70098df6ee5a219acb2667dca3 SHA512 68d3ae9f1ea773b492054fd4ff2cd13976e48650277b4a58ee201c7713f6023ea21c6a53e5fbe71c4eafb73e8a9ed6ade55d79ba5e83b942c332c7b4af2ace27 +DIST thunderbird-115.7.0-es-AR.xpi 735066 BLAKE2B 36e60e0f5b4486fda68ff777abdfcf8192d99ced0c3d80b095606c4aac073b0fdd86b89c374f2c3d9a2b1c9904280f4b7e64f1d0095e9548a35b247bd1761522 SHA512 93fa2aa16ab20712158dd0fbf5cafc529c4c69c7e4c3f0d32af88c858c7c77434d88881aebc31d8c89986986b68744d3d6887e270bd3faee9b8a6bf182b5fa22 +DIST thunderbird-115.7.0-es-ES.xpi 696917 BLAKE2B 9033b33df8b66eb4e49a6c8b4be316087e21b8c215623b417659246158941391ec7771128f43c47b530fb632596ab37ffc4974e1776bb5a4e68f338bc0d1b5b2 SHA512 82307d03803dc48135cb24abfefe6cc55423893a885553c0923782710ff0abf7dc5e73e06b075d69c2ae64fc110ec39c8115c106856f45de92dcc03043335927 +DIST thunderbird-115.7.0-es-MX.xpi 719667 BLAKE2B 2541a3ec26beef25abfc08ed682632334c47516f5c9901fd550d839a8f268158bb841211e9b84c91ba2f42c313cf26a5b556d6924f3b77ded9fb9996cb1687f2 SHA512 06dce8a8c529b9d4ba3589b9ad22cf179f74b5578403976522ca27c224be54aad454936e1bea9370cfad29fa6bde8ef9512d81fcbb1207ac8486ec0fcbcbca9a +DIST thunderbird-115.7.0-et.xpi 679906 BLAKE2B 2af8ce8d9093de17d98feec5b7a29b732c86b2b2d00cf99f8ff6ccacfc2ce3ea9b7377f2636a01aa66e5defb693c0297a05aa892ba26f79d2dda836f8c7c1ed2 SHA512 4d7419406e4e01bab2401c0ffdb1fb358c954a5363d11b9ba8e6e4e440d0200d43c4a626e5d1c0ea5e66ab0417df5f32e47af86882839e0594e7b81cadc85dc1 +DIST thunderbird-115.7.0-eu.xpi 708419 BLAKE2B 7e49aba98d6ab69c32600fecd8a300898dcb2e9df7d2abf153728b270fb8282915c294154618b8ad669bda666518b653aa77e53435531a75ef3f7d285f9e4b45 SHA512 bf66b29a4dcf835122b04b48f2c68d2d8c70a7520116d1309665678f159520b6890b628033a0f0d8c128afd6bdd24c326e99a8e124669a14f5f02d2658160b4e +DIST thunderbird-115.7.0-fi.xpi 712129 BLAKE2B 0708b282062f1a6ae282d5813371856f1ea783a52d21a1f495041eb98facce6d77310c348de5e1d225bfb8bade0468fd5fade75fd441b3add6d336ac4b4e2587 SHA512 784336da59fdaa6d5da6210e38a13783d5280f98e71f11e7fc7d73bc4efa38fe1c128e585fba61300b46f1b290c35ef648109234cb6a9069adb2eea95439e835 +DIST thunderbird-115.7.0-fr.xpi 745971 BLAKE2B a3df86999513fa700eb0babc89eeda8902061e31b43089791ccbd717d9615f1aab200a516b601c9c4ecfbce7ac07bdc48fdf7ac6f98d5acd843084d9c9075c1d SHA512 a806bb956c159c4dff7859c520b4507cb9ab59ff8cc48d159c659293e0ae0f1af756bdba37c511a12ebc70bdc0534e80bb829b9420487abfaa25a17291370d72 +DIST thunderbird-115.7.0-fy-NL.xpi 728672 BLAKE2B 1e9d46cd8d34fcef70a413259dbb85c2b1e38c0c74c7dd784e4c29b2c6ff91b279e04c789fd5d7b8bbad1b33dfcae55b6f347a744117abaf93566b7758bcf94d SHA512 2c33acad24472bb874e1cf71d8c8bea12c6fa3ec5a408b1ddd65bbec5791e45245fa44b4d067ff94e39879b8aab4b173b8a22c888ace510677bec631842b3f0f +DIST thunderbird-115.7.0-ga-IE.xpi 609797 BLAKE2B 24c25b37acc5c92b2f346f0a9c230568070c859038e0427ebfba957d0c4c6c43888ab4766b23ec954ec7aa05a5dfba34ede272952c3100196aa511d315e0b55a SHA512 cbce5796c58033031cfea2f21bf34c4e160f49688013c8e408d621fafabd8b91d6562b8d092754a71bd01cccfd87ebec586e5dfde63667e7ec5a0ffd064c7f6f +DIST thunderbird-115.7.0-gd.xpi 712351 BLAKE2B d0126218d3535bc71c517977f85ef311f00afabb17ff40a296d1a9d2666cb71676b4ba4952ea5ef068d062916382192381a2a8c6a9d43386126ec91732f35339 SHA512 f91513dddca3d3638c4a6f35ac257634d797b00a27fd7268e17428613d5060f9a968fecab7bfc374eca450f6c53aecef66e5d14b464adbbdeaf483ecac26e12d +DIST thunderbird-115.7.0-gl.xpi 718872 BLAKE2B 0b1a42e6256012bd34c8a9e00f51a680095e06ac36adf9de8daf635aa3b97d94afcc0df322108b39b9f2c8cdc673492ae11d1e39fc124eb4a151f925b73723c7 SHA512 80d6d3851feb7b5b6d2b597cab26120950aa555ec0cb4adcafab19801b0b7b302d5345bb428255882af3568d8add97de4fceff28be897d0aba40a720e46fdf9f +DIST thunderbird-115.7.0-he.xpi 684661 BLAKE2B ed3e6ed9393ca2f98e8adb1ea74b3de77877c73faf558dedea98411be8a80d7762fc3dac2e8f2e073f39f5fc32212a2b84c4272a365a17844bca6ac0f4dbc03b SHA512 0f9f539bcf7da91fd134c2fb2afe96c85c43a53df0a319d5a93b3faff9529b789386ee0845734c799305e94ec0e65d6393badd31fdcc85f451a368a4fa8e7a00 +DIST thunderbird-115.7.0-hr.xpi 686418 BLAKE2B 99c10e21db3df537cf8745f799551ef2e45d2a091d0031b1938d8897ba58010f9d40bcd1670bc037f56b8acbfefdaf1d85539f6ad1dfbe343abfdbb8c7bda8f6 SHA512 2aaafb44b855de612dd836f12cb96c65a920edf77b8eb083c53c06d79133459fec982f600dbd09e25199a8af2ff18f7c3ba71ef6057c8aad10b615e40dbee465 +DIST thunderbird-115.7.0-hsb.xpi 756105 BLAKE2B 8784037d669296f427c49073e613c3cab233b548afc1b53ca397936e7d2c04f65f486ebef8f455cca35104e914c28e77f50e61d9feea5627e5679d084d7835ea SHA512 b65bda62fcac21b9056ce852816e649f10bc51129319b73fcf86fbeb3f72684d256e6099f9d7b29f1aa2025df3669fc39e931a168d8e7bcf946442b111b5d176 +DIST thunderbird-115.7.0-hu.xpi 757813 BLAKE2B d9faa2b74d4d91fd9ece206cce655049c10d2779ca8cc0eeb4aca08473450304a434231ea513f413ce46cdd73ed77a9730220a8115a0b30eec9d232141961191 SHA512 2b17df2183243f8fa2501232253a202752271727eafb45b164238ac2afaf6612717a2b9ea888cf10dcd225a88d6e7b784ff6a1d5f256c39cc0e6c89c74f7c3df +DIST thunderbird-115.7.0-id.xpi 651338 BLAKE2B 611b4f444bd3990bb946c0923af5a1fe4a72c44693658585c08e48e1640868da161de5370d950ea18b2d60a83c3390e28040d351d91024d82097b0b6f5a209b5 SHA512 9e7c1877f2eac0efc17cc33706e26ee6ff3799f6f7110c8d96a5c78ca17dc8be2c31087dc3b2d8bd6e08b863c75e46c2b8b72f86afed54263933308fb7893a9b +DIST thunderbird-115.7.0-is.xpi 718693 BLAKE2B 7dcd6fd59d1d27a53f3fe883b4e701673d78c9ce45fdfb28701ba684864b719d7d8556197c104eac5346496fcfc3c79e45e66b85cc05c4071baf446e2080838e SHA512 072d2ef1527a1cc19e5cdb237f00c284cb814742a56f02e4d49a6f6cc0d04072ccd17d9be44505ac6f274eb5fe309e5a67fb67653f2c5d8e540581c6dbc5062d +DIST thunderbird-115.7.0-it.xpi 667374 BLAKE2B bdcf9af1f76383518e9fd59535c424744c8d42d092ee593929d24cec178affc26afb0b0e81fb3edb1a70594182f05091f82e1c25599b34ee1305ee5c89103268 SHA512 1f37cbd03bca3eb757887d41cdf24417d13a2dfcff792e597bfc2f5e8e41376acd219623f168af61423497d2789ed5c3cc4023fd6047f1bb9593aa88bc92ad90 +DIST thunderbird-115.7.0-ja.xpi 794747 BLAKE2B 8a749b9e5a300bc94b734e57d0431fe71d911209de1734c44a56772ab379652893d4643a06f89ed7660e63f9dcb26489704bfc017222fe11c762d1251fdd7fee SHA512 b36dde03b9316c227f2f9be1cb5e4380e97dee2db1c4f571dac99d43ebe1f57d9c8d9cf4837ac8df56c3fa5a3ccd6eeebb73e4b50e2d312ae217eaaa598a70d4 +DIST thunderbird-115.7.0-ka.xpi 783160 BLAKE2B 88ef26358c9c487194799f6eabbfe3724556d646734260a2864addcee48cd24e055f9c1fe79fd932e6086bfaa3c851fecc1ed83e211857b9f8b38f04fd7429c3 SHA512 9f542dfcfea580bc7a626b40c8d2cfd32fbe38602ae4ccc447c3ef422a3955bd61892b8fbfcd0ad6be321cb8a61b582f1722d630611603223254f82c24260c4d +DIST thunderbird-115.7.0-kab.xpi 711115 BLAKE2B 4621cbc070c77f50b04dde9d670baf3c9777bf733ed6bd0f75ef09e9a9f45acc6d217e98349f2544e949c19d2638a3299f5badd9914bb26ce1007e1985ad8f6d SHA512 81f9ce780c8b3b5cef7845190d89d7077fd1a9ae100e1ca2ea99148fa8f13da7ff84b9e065dca77265a706c7b6d38ed079bb30e7f5f842ef622b574662445165 +DIST thunderbird-115.7.0-kk.xpi 831831 BLAKE2B bb2c11a1265c2444c8628bf4452043da8746b6c1dadae4b1ecfd64aa8e9d2d8c294a9b488441748d3ca6653b13c74a5e66c9a6a73c632b6fd36c5ddbf3ef1191 SHA512 a9898421df010ca2a2b56feea11054fc62a150a2560509410869892679b74a05ccfe6657b7a28c4f766529b9f8823bf13d73e20e2ade55a832e2f1ed67f28834 +DIST thunderbird-115.7.0-ko.xpi 736911 BLAKE2B d959ebe6e844fdd9f551e1d7462de13b30e6b13ecddaf84f94635e337c399351de9e03d8e8031867f0d63e73204f407431992716f5c2d24f0b418382cdc9fa26 SHA512 eaeddaf1e6ec41625a7c71e89849ed2febf9b42b8dcd7d66b766876394e08a4fe8dd65e9d8a1d8cc685a6723e5ab7deb5cc48fd927c8edf8e12dd38baeed2f0c +DIST thunderbird-115.7.0-lt.xpi 688622 BLAKE2B 9e8eea89464a6e0e8312c6c2d0d84f708b772c1eb54638ed0de2f3c94df5782d1b67a637f07b26a2a52c871b93e354f18d977c459147d25be61bfea004ddf2c8 SHA512 18e349910233ca49750014ec6c8b0e4ba98297035922288a9bcf8489f10c113d3e8fa1f38991c9d3f52dfff5963818f57664081c6e50f6a1d006c1a69d7ddde2 +DIST thunderbird-115.7.0-lv.xpi 613033 BLAKE2B 747ce0b7782657932c8ac4121deb00619c8a5b7c1eb5b06e6d9e0e20365ee9e3f60e88cf215cd15537cafcdd107fe3bf1547a95c3e1fcee63dcfba5099fbafdc SHA512 1eb4f24c0d87a6c1be2fbc0b1dc55c87a898b70dca04eeab0ddd896f1a97942866736e6b0abf3edd5e495edaab4c9a3a2ad8589051099b1ade90901a2544c2c6 +DIST thunderbird-115.7.0-ms.xpi 573630 BLAKE2B d4786b915f8c8e2be8cb54588e9a26c2ce7991ad11596cbe3a0c9ef5995ac05f51eaa318430181c8f7cfb8a7ab706e4301077b3e9f45b6b6e604e62ba5712378 SHA512 ca15741fcaa2a66ed8029d7f912ed1eff94438da376ab1a42883632c841094e3575e9324291d06f32e512be66ec9b0c2b5b677e80c5e0c5583b72e41ed49b07c +DIST thunderbird-115.7.0-nb-NO.xpi 672707 BLAKE2B 34f6b8cf4fe347764486a549ec1f51e944e07f42934c5ccd32b51ebb3a633eb40634c204e8913bf7335e9260b4dea5468d0a896271702be4386b53fe3f32c813 SHA512 ebc0c8013a11b663141360bbd495113c610dc79e6c9125fafb142591f1ca034734024d3fcad01ce0c55010985ef0e6b710f26db646d3245e92e42d4efe35957b +DIST thunderbird-115.7.0-nl.xpi 720028 BLAKE2B b28a1a7555bad75e56dc1cd8aba219d857871b5fe46b8363d6e017cd95498f1e1f11d7898c1d3fd9bcbeb3a602005a41391f5eba8de845c0e1c07b1202528cc0 SHA512 c602ddb199e5769eb7416680d15997e1e328151f7de2c67228a8bfa2cc8e72a97a08dfaff0829206c9d67a127343d2fcb253256ed240befeb83962bd7661baab +DIST thunderbird-115.7.0-nn-NO.xpi 688825 BLAKE2B 0d3054eb1bf4b1142aed36a7cd045257d09b9568340ecfd8e810c8e9853663e2de3e60d8cba11350ba366ee8531795477518707e100179c62dd2e3586c93660b SHA512 c3f48e08766c9a7db93f4ef43a21de621a3359b04b544f10e8fb2162bfc356e5fcd8a0c1b94562f39152ae6b8aca5f0fce62f74a827aa9e1cceb0e8ac1662e44 +DIST thunderbird-115.7.0-pa-IN.xpi 678303 BLAKE2B 2029e295167f51c71ca55cae327d690f3427e4ec8b05c58dcb01f07b000a09e8bea18ee9658282716e3962e0402d70091180728e5faebe891f97bed98195676d SHA512 8bede3c3d05f883cf071a1d17a981a45375d421b6c124782e0a0be69ce8d1bee5eb083402e8c039595b82677c5bd9efc5e596a74bcf7f449c17acf6e8291663f +DIST thunderbird-115.7.0-pl.xpi 738662 BLAKE2B 7da070097537a7c8cdd590bb6073d8a822d12822563e090b1deb9258e5eddd10093a7abded7e2c8104d129e033dc0cf70911d9acee3e814f2bfa949e48eded13 SHA512 0a6f246cd3574c77a9ab8ae9e4ced3e6c2addab3c3cbd454d593dee7a16fe1baadbc47e4189633f7d2852ad45a8c8141ff0dbf1385cdaeb9afe8d28a2e4dab1c +DIST thunderbird-115.7.0-pt-BR.xpi 728314 BLAKE2B 3e717e195f830c2a957a384a70e8ca34cbed053318bc99e5c4423cc7d75d63f2756404cd3a5f4a853d845eb860e0051413e5e11b45b1a6467f550413245d07d8 SHA512 3625835b0058375e74ffbc3e38614d3d13c444c63b1dde616ff91e55a6c296ca753fbca29df36afe3aff277d897af5ef06840964dcc4d5fcef5808153a2d6dd3 +DIST thunderbird-115.7.0-pt-PT.xpi 702844 BLAKE2B 69b7ee80c8f5dee4f133f1437b7e61c8da700eef2e960c6cb86ebc9c5bf5ce975e90597c66d4d6bed1e6c30245c3bac7a76281ed6915d896c105ff6a06406067 SHA512 d2491af643b1ecb44c8e9506292a2705559661ddc4d8b294bff2bca9bd1eaab57cf8cddc30cac2cf634ac988b9c0a6497afaf1a0bddabdb085482b643a73f02c +DIST thunderbird-115.7.0-rm.xpi 723686 BLAKE2B b53250ad8a5339b8fb0e45306b47b7438967c47ca87a29fe62013a9e131489d9aae48806775853b8f7228d0231130c34f8d599e353273dd460089c01a11cca61 SHA512 a490a94f60b9058a487a9761027936fb0054254992f4e493ec91ab9c26447774a22f31b348d9ca72064f1b02464685776529412a70ba66e201deb704a4b93584 +DIST thunderbird-115.7.0-ro.xpi 659821 BLAKE2B 5948671cca76b6090b5ab3bd2fc686e1fc7c9946d0c72153a12a79146dbd736968af528ae5c8919306b9a5a923116886a24a85a8b814bce5ad9f5e75995e3bcb SHA512 19ea26e6102ba4715b9593e58689e009e6c97623c89b30b70d84e2ada9bcf6dbca7e157a2ba6e9374a1d31767d6ec031efb1b9e14e20c68dad8df0d333d25f21 +DIST thunderbird-115.7.0-ru.xpi 845811 BLAKE2B d228c75b08e52a8e36933ddbcf0ad89992e1046dd91efbf2a5768cee6dc6f34ef21844a05839f32feaadcfaa223b8d9384bdb1d3492f43a592be8cc9e307dd56 SHA512 a20077e7c4ee32f19e9c802a63add4ca66fac30650956c6f73c83d31d6bb82de4ceafec94abed92ed6c5af41526aa36bf5fbbfb18b628454e6a74390d674f51c +DIST thunderbird-115.7.0-sk.xpi 757870 BLAKE2B 58c39069a8d05dbf9002c486974916b286660a71cca86c5d107c45abaeaed21ddcfc6524015c3f8441cc84637debc93223ad0fb7327c9b5bc3b33cf62e5aa2c0 SHA512 fe353fd769873eb7a6aeec5e274efb156afb1fb259104dd0fa56bc75ceb808519db462895b9f92f5f4a9ca3560577bce687c73d857fac3d43413dd0b31abe955 +DIST thunderbird-115.7.0-sl.xpi 721123 BLAKE2B 9ac28fc1dbdb8331156342f41c09bd1ed77a093959fc89016d80562bf0202a5ebd9cd0c17ed2c124e01ee2056032bed20d2fa0a785c8706e6115999a9a8de872 SHA512 2972888a92acbcc492c52f19cf40bac6646b967cab4282fbd89530172f92433fc7ece56ce0c95aea8add93deb1a833b0a69226109a327ecec87adde338db5046 +DIST thunderbird-115.7.0-sq.xpi 742207 BLAKE2B 247d09ea697d213934f8b5ed95803d31a8b04c92aaab719f0a946135942e36f73bc2110156b2e13677db3c15d4051e2675cd99872f2b6b86200904271bfa2319 SHA512 42fd94b2ab1d979eed2695ff6b58b7635148b5e324e973c0f8d3d286033726e04ead8390d1a43e2324849d276b6fa7c32e145efe562ad3c7b84a774006a030be +DIST thunderbird-115.7.0-sr.xpi 755181 BLAKE2B 477f51151a51fe5d65ee71b38eeb2e5076021c9d3a60becad7e666e877235cf361405242ac87b52b52c5191eb6e5c511d06557b5333e5f9491a5883db2d1b1ea SHA512 8e79b9c7042467df63e2ea0933ea71f2f840fcb67a188254923dd71709ec0ee8a8d2087fc18329f35bf53becb1d20f9c9080779f983158781576984f669719d0 +DIST thunderbird-115.7.0-sv-SE.xpi 724143 BLAKE2B 544d95a56c26433f29cec99dada6c2394c53397be30c0244417f60ffa3ac30fb76b1c0b09bc747c394ce8a4f86efb75ad05ce167527883bc165a5d0793eee860 SHA512 b76a6e5b5a8c06f9211582a727298d3acaa743f2cfa78d4cf60f616408a6ef76789309fcd715e83d32e685ff140ab9adb69363428a8d2495cfdf08e983585ea9 +DIST thunderbird-115.7.0-th.xpi 781129 BLAKE2B aa111af02e6ef1ee2136208d2310b71b8ec4163c6cea4313b76ab4df0421d1050e638b217e27a9745c0c7fba0112373364bf8f61904b53582fe2c6517cfbfcf1 SHA512 9defc0a09b2e46f3ce449c3219f0937d17acdcb69bff0685bb11a4dbdd73e1e2cf0dfc8e6b80e701851c70a6255a4ce488d39b005c7e009282f7903e04bd4a83 +DIST thunderbird-115.7.0-tr.xpi 735789 BLAKE2B 5938287f9a6df553025f2ad31d301789b449c2359fb0487ae5c25f184c8ec8f656a6d2472d402c0657de76296fea6104683db5276438fec630425f20ac6e0c88 SHA512 8f16c74569dc75b5c3714ca6eb42009d11d93bc970f89d63213767ae26370fb41b32c86b0c076088816ac8ee43327f57c7544d9c47399747a9882e006f1c3138 +DIST thunderbird-115.7.0-uk.xpi 838419 BLAKE2B c93d1f78afc66bc0fc8c259d689596ccd5a168d6b755310808f6480241056d6c902b0de620d0433d6cf364ab859959faaa33132c79b079af11ad29b16666b699 SHA512 e0280671276a0b2c012574b3f17dd0e2fcd716e02b69d60a1f586dda7c088f201d4d50a41ecc684a8fa2bd24001635da5f8ddbb3efdfddfd38dea5f797acf20c +DIST thunderbird-115.7.0-uz.xpi 587156 BLAKE2B 59fad8fd641e9b18efcdaac5053e31c7f6bee1a362c0c8b8b2dbc0a4472c985ebde319763c29da0b4c14f99b408c88970418a9b12f4033921f8e9468f8a28d00 SHA512 e4274df3935a763a76ecb8829592a9646a8626ec046f01d83301734bc69b643b4e5035e061e9a4c0b1f1af86de4d6e5681cad8122f1440ae6c114037074d7585 +DIST thunderbird-115.7.0-vi.xpi 764154 BLAKE2B 23fbc672b39ac6f6e30ea06b131c1d22e03a35f07b8d7c11b01f18da0c97c18b0fe7c80ad10997240639edd8d978e7a80cc2854b58ca9986251dc7cbb93a759e SHA512 2933d27c07fa07134fce34785f160f9732eecf842f941a7e3d512f5a03751c70eac1be6ca3bc9c50ac5e7b056c787f16c10c572448f23680dec3cd0651191564 +DIST thunderbird-115.7.0-zh-CN.xpi 761572 BLAKE2B 8d099904ac891386f5936b8151a38384be9ad5c816b5adc01a689e9b017a578f2af22f59b7f74d3eee8fa244c6e56ee85b54b22dd5c6af0777b8fe8f585b0216 SHA512 f4288c6b5429b71e8bf6e6aae3c096911302c9ab3554314eaaac776fc8779cc032d3e3523c60bf2f845c48f1b87468a8700ab92ee2c3bf663b23adf427a81d67 +DIST thunderbird-115.7.0-zh-TW.xpi 766124 BLAKE2B d1c08e311dec02e7f024a25b1adca6987d4714679861a1e0a8dd028336b858fe42e55368894110560f6e08354b69b0b0f17d6e1de6ab97a07b6c19dc8c8f9498 SHA512 0000b9141ee84900a2a299e7adbbb7df576fd20981f488d8595ca7e8a042132ae15221db66beac710159da07a9feb82c304529a4b9ec40a1f3bc2d0fd4130192 +DIST thunderbird-115.7.0.source.tar.xz 532459912 BLAKE2B 2d936b07c3c78963d9a68c2be4e18c06b27e6f4f61a60bd2d7f49e2ca39e5c6c5f6ff2c0d9fed90cf88c5517ea0a52a711c78164c4ab568589d57962a9aca177 SHA512 de9edb81cf5da494101bf927a5b963ccdec0cc9bff87ebd72d896c6e25102c1113b326f67302a81abd237048aa1e6150c4a97fe4b1892bc80030cbab9099e2d8 diff --git a/mail-client/thunderbird/thunderbird-115.7.0.ebuild b/mail-client/thunderbird/thunderbird-115.7.0.ebuild new file mode 100644 index 000000000000..3b4e775b2ce5 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-115.7.0.ebuild @@ -0,0 +1,1331 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-115esr-patches-08.tar.xz" + +LLVM_MAX_SLOT=17 + +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp" +IUSE+=" wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + || ( + ( + sys-devel/clang:17 + sys-devel/llvm:17 + clang? ( + sys-devel/lld:17 + virtual/rust:0/llvm-17 + pgo? ( =sys-libs/compiler-rt-sanitizers-17*[profile] ) + ) + ) + ( + sys-devel/clang:16 + sys-devel/llvm:16 + clang? ( + sys-devel/lld:16 + virtual/rust:0/llvm-16 + pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] ) + ) + ) + ( + sys-devel/clang:15 + sys-devel/llvm:15 + clang? ( + sys-devel/lld:15 + virtual/rust:0/llvm-15 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] ) + ) + ) + ) + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.65 ) + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + wayland? ( + >=gui-libs/wlroots-0.15.1-r1[tinywl] + x11-misc/xkeyboard-config + ) + )" +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.90 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/pango + x11-libs/pixman + dbus? ( + dev-libs/dbus-glib + sys-apps/dbus + ) + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-74.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/networkmanager + sys-apps/dbus + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon[X] + x11-libs/libXrandr + x11-libs/libXtst + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily +# placed here until toolchain-funcs.eclass gets an official support for mold linker. +# Please see: +# https://github.com/gentoo/gentoo/pull/28366 || +# https://github.com/gentoo/gentoo/pull/28355 +tc-ld-is-mold() { + local out + + # Ensure ld output is in English. + local -x LC_ALL=C + + # First check the linker directly. + out=$($(tc-getLD "$@") --version 2>&1) + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # Then see if they're selecting mold via compiler flags. + # Note: We're assuming they're using LDFLAGS to hold the + # options and not CFLAGS/CXXFLAGS. + local base="${T}/test-tc-linker" + cat <<-EOF > "${base}.c" + int main() { return 0; } + EOF + out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1) + rm -f "${base}"* + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # No mold here! + return 1 +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work + addpredict /dev/dri + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto && tc-ld-is-lld ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # May need a wider addpredict when using wayland+pgo. + addpredict /dev/dri + + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + if ! use ppc64; then + rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die + fi + + if use x86 && use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.patch || die + fi + + # Workaround for bgo#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch || die + + 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)" + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \ + || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py \ + || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear cargo checksums from crates we have patched + # moz_clear_vendor_checksums crate + moz_clear_vendor_checksums audio_thread_priority + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-gpsd \ + --disable-install-strip \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-wmf \ + --enable-js-shell \ + --enable-legacy-profile-creation \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --update-channel=${update_channel} + + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly + # Can be removed once upstream enable it by default in the future. + use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3 + fi + + if use lto ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + # LTO flag was handled via configure + filter-lto + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # Modifications to better support ARM, bug #553364 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \ + --with-thumb=yes \ + --with-thumb-interwork=no + fi + fi + + if [[ ${CHOST} == armv*h* ]] ; then + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard + + if ! use system-libvpx ; then + sed -i \ + -e "s|softfp|hard|" \ + "${S}"/media/libvpx/moz.build \ + || die + fi + fi + + if use clang ; then + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64') + local disable_elf_hack= + if use amd64 ; then + disable_elf_hack=yes + elif use x86 ; then + disable_elf_hack=yes + elif use arm ; then + disable_elf_hack=yes + fi + + if [[ -n ${disable_elf_hack} ]] ; then + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack + fi + fi + + if use elibc_musl && use arm64 ; then + mozconfig_add_options_ac 'elf-hack is broken when using musl/arm64' --disable-elf-hack + fi + + # Additional ARCH support + case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif use lto ; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + fi + ;; + esac + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # Allow elfhack to work in combination with unstripped binaries + # when they would normally be larger than 2GiB. + append-ldflags "-Wl,--compress-debug-sections=zlib" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + if use system-python-libs; then + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system" + else + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + fi + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if tc-ld-is-mold && use lto; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + local show_doh_information + local show_shortcut_information + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + show_shortcut_information=no + else + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 91.0 ; then + # Tell user that we no longer install a shortcut + # per supported display protocol + show_shortcut_information=yes + fi + done + fi + + if [[ -n "${show_doh_information}" ]] ; then + elog + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):" + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all" + elog "DNS traffic to Cloudflare by default is not a good idea and applications" + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5" + elog "(\"Off by choice\") by default." + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." + fi + + if [[ -n "${show_shortcut_information}" ]] ; then + elog + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for" + elog "each supported display protocol. Instead we will only install" + elog "one generic Mozilla ${PN^} shortcut." + elog "If you still want to be able to select between running Mozilla ${PN^}" + elog "on X11 or Wayland, you have to re-create these shortcuts on your own." + fi + + # bug 835078 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then + ewarn "You have nouveau drivers installed in your system and 'hwaccel' " + ewarn "enabled for Firefox. Nouveau / your GPU might not support the " + ewarn "required EGL, so either disable 'hwaccel' or try the workaround " + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +} |