diff options
author | Joonas Niilola <juippis@gentoo.org> | 2024-10-30 11:23:29 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-10-30 11:23:29 +0200 |
commit | 97f6f0ad95f58cfc70d64c97aae0ab19c9c2aaf7 (patch) | |
tree | c83dd33488c1329f01f0decef8407b294b53bf7b /mail-client | |
parent | net-im/synapse: add 1.118.0 (diff) | |
download | gentoo-97f6f0ad95f58cfc70d64c97aae0ab19c9c2aaf7.tar.gz gentoo-97f6f0ad95f58cfc70d64c97aae0ab19c9c2aaf7.tar.bz2 gentoo-97f6f0ad95f58cfc70d64c97aae0ab19c9c2aaf7.zip |
mail-client/thunderbird: add 128.4.0
- sync changes from firefox-esr: add support for llvm-19, toggle clang use
flag off to make gcc the default compiler, filter some lto-related flags
that turn warnings into errors as they break on gcc (lto still works on
gcc), clear apulse-related messages.
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 66 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-128.4.0.ebuild | 1162 |
2 files changed, 1228 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 1a08adc4a9bd..d2f669dc638c 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -1,4 +1,5 @@ DIST firefox-128esr-patches-03.tar.xz 14156 BLAKE2B 9a618f0ddb8596b740893dc9113f374d193a00e4e8e76dbb2794928ceaafc7b5309cb6f69f6287ae1e423f0be0a060580b0d9d59307c9889362dd17fb7d31d3d SHA512 c6ec7233b368fac623ec0cce6f5c37d358a0fa5bb2154dc67eebb50968376ca9d46f3a734f5d79a4aa4edde9e300a9c65315d0e499aa6a1325b6c76a6c164258 +DIST firefox-128esr-patches-04.tar.xz 14416 BLAKE2B 0ffe3fd568480e37fe28fe71d5304e51028dcb8cb2d5fc1d838d725bdd36971696d7152c37bd90f7802c75e696aef0b1b075d386a906b40635f25083a6a58239 SHA512 adbac956dc2d6c1c29fb6641a42096bfd033a662f69e177f8d75a928f46d30fbc811e8a9ca24de8c7eb675ee80f6c1187f1a13dbca8e75782abfd54e276f5854 DIST thunderbird-128.3.1esr-af.xpi 530350 BLAKE2B 579853b1d476b123c34b6207dc2e35f994bb3638773d656f98dccf3dddb4888785b883dde93c6d22b3cf47aa6d058b9446ac2d051e2b748f0730ef9886bdad44 SHA512 94fc0d5210f0cb39fb4e7c8b97b467c6a8cb6d6fbebf813cec3c59c9b485bc343f04f47c7ce8c85debae1d75c9fed4c6bf0b79ea901014b401ecfa947627e602 DIST thunderbird-128.3.1esr-ar.xpi 679867 BLAKE2B 0643cd7085e093ccc2a381d1a1d71782942dc900e4451805773725731964d1b9ec981f5f7c6912759e22a2955e5a9d0acca71b5b8c54e262cf3d9b5b105b76ee SHA512 51ddb27f1411b867ab83c0dc92449a223a4fc5597fa1041f7a477859cb149f128ae0d7a5d25b178bb5b15a6384145eb9a20a5b60945778d11ca6db3280508c2d DIST thunderbird-128.3.1esr-ast.xpi 561054 BLAKE2B 932789c16556c4503ecda989c5a3bdcd052626f1cebefc11e50e22a04581f052785badef76d03b6a51bd1e73a62b92c2697604baae77fc04c2ec472c207d1dab SHA512 6c7b68f2ed1e346c294890868710b8ed60226df6f147aa78a1a5ce28b5bccd20456d85bca59d02917bf954ea4eee10d1a9b1265e1cd773c99959661f0b9ef39f @@ -129,3 +130,68 @@ DIST thunderbird-128.3.3esr-vi.xpi 789696 BLAKE2B 221dd1c72bd996ef37069ce6a1d66a DIST thunderbird-128.3.3esr-zh-CN.xpi 788219 BLAKE2B e458aefb20f27dca6d0c9cdd27981e7485438d6d3d5e34c70b912d7845da012f3c473a2403718c30bca617c54b4cf1a0832ee357b494478a1ab4194e3d733f9d SHA512 2a026f1500d2a7342ebae47938b87c39146b8e0c1f371142b29af5f953d5fe4d9d4d9d1c45f04eea0a70a85830db41f7dcb3d3c7d7a0114d37e785e1a94e38d2 DIST thunderbird-128.3.3esr-zh-TW.xpi 792579 BLAKE2B 8f4520ac3bd42a941b5f111bc3ad8a750aa6377eed534c17293f99d23fc9c500d60afef337b96973f316a852139bbd4ca67698bd18ebde408efe8e3bd1f50fba SHA512 89c9b6b465ae023f92f0f329a9e3d473db135f0a0915dd4ed6f51a26a6cfdbf93595a3480c85d7d037218af030e185558b6986f22f6f81c27ebf79239c43c62a DIST thunderbird-128.3.3esr.source.tar.xz 679424276 BLAKE2B 41a14aec99fe13a980f0ace5f9670cfcfa946d860a010fd4b0601c7b1b44c62cb466f0e5774a6353b2b4e2b2535247bc966ef14fbcc7f024dfa175871921627f SHA512 53a5bfacebb4d532f1a66502493e8641c59ce3ebe81530db7c5f9fb75a18db54211a2a4641e1aab96ffed127658a212334fa1a651a575c270118d0eed0a93c27 +DIST thunderbird-128.4.0esr-af.xpi 530348 BLAKE2B 4c9720bad1e2c6916e0f33a1dcea846b3e3f174cba5167fc35f3965461c2277f55ab83af9142dc23d9eb9fbbe6fbf31582ca308051969a54dc32ec42255942ad SHA512 f1beb1991db37c3f8b4d97d4cfe1278abd0c795cb6e49ba0df45f756fd19d2c74c8d28ad50d33f962d347c11bff205270211beaecc98f899478d579804f3737e +DIST thunderbird-128.4.0esr-ar.xpi 686480 BLAKE2B bc23801e75d46f5a1fa22c53c6487f5eaaa290abfe37bf430d371a5f67f6d911f80dd86ce6988739c387f79a8963f649a9c7bf992aa994b27c8a94ad6fa3bc75 SHA512 9013121127556fca723faf5e68c0d2a959a486e853d9e22bd9e71750f3098eb73dfb0fa2e98ff74c3caf0760e095d2e3848c7a1bae54e46d4315ede6a941e6d6 +DIST thunderbird-128.4.0esr-ast.xpi 561055 BLAKE2B 7b3718cea183d8153571d4b242f4012e869ae9cb532f2d208d9f5d2a761ad49b58cd07c0fd5f292c6e3a569e81d03df577816245ea2ff3bbd760d06652c47809 SHA512 8905cd5832d6e1bb6d7176566ef3fc56affb667606458e315f40eb83539039fd915bfccccb82d6d8cb72085470f87dc4970d12822979ffb5d2c3baa078b4b984 +DIST thunderbird-128.4.0esr-be.xpi 769119 BLAKE2B ad216cf6cb89aaee524b771eb0906539d2a66c3ec786a52aa800930615462b8f740b9c814ae29f43e2dbf7a0fc94171e3f721f75614708b16ea9cbca0d6519b9 SHA512 d6d6272e5fc6d8c5e3102408972c0e548b34634f8e9fa8173b4f90f0ab8a703a2884e51d588866627a3f1918d3c8e58d4cf04432e2785024856269033c8241a6 +DIST thunderbird-128.4.0esr-bg.xpi 811602 BLAKE2B 2c0b3913455539a0da4cc06b26ce0cd405e8152c0c7e18f725e2eaad2b055ea792837661f963c3872bc78d2d2857c2a721e3409a3287d416b9c9cba6db3ae8af SHA512 eab6b79a273b796618a43e2e0f71861f0f0703daec304b4f89f460e60cc70ddfe5f3fd16fbbe791f3f86d56e2c9919b69e90549662a063bf84f258341773c1f2 +DIST thunderbird-128.4.0esr-br.xpi 654633 BLAKE2B d521ade22445d7e507ed69939066f4ebc2ddf571962a664a9362ba9acc26a878f5c8ba6a3b979574271dbb967dea7d23a68d825d74a07608a17952af020e927b SHA512 3ef4eb25fc8e6bee1568756df965b9707771fd07686430fc946e6d710723657e7b5d7451fd182539db19eb8c6d92ec1e87d81981dbde4e43b5da797dc57dad58 +DIST thunderbird-128.4.0esr-ca.xpi 709854 BLAKE2B 5646dc057ca5119bca7261a3549c67be3a51fffbcea039cf7938d7eb636167b5f92410fe8f14d0d213aa3c5a368cfe89dd9e3067cfb772c5184fe5f192b18e8f SHA512 884c7fdeffa5332d0ee054e92cf934c6c1c50b9482b03c222f43a0e08210eadc5d60b6b291dae614810566891e3f379262a14009210e4ca24bc6a6a87c6a959d +DIST thunderbird-128.4.0esr-cak.xpi 671704 BLAKE2B 040a3daec35de59ef048992d623224ccaadaeb8b1b2e3ce40ef45decf7b2de4d8bdb180a0615c3e64ffcc261c2706e75b3cc95bad1637343c2e6b76f0bae38af SHA512 ffb2d2728e0fd9d416c905e263688695da7cb16f97d486f2735c037b3b45fdd08af1e2d0a2bfd1485cac6d751a77419f930c105d3597529b54a5474b23a76020 +DIST thunderbird-128.4.0esr-cs.xpi 788817 BLAKE2B 1924a0b82edb0ad5aaf930f8b788422506da8671f2320b8127d4d164a4e1734b57ccf7461fb2d8dc3f516dd1e7f77ecb30fff7244489a7fc53703b3f891cc6e8 SHA512 b2a7106da4a0b5e042fc43d1ccc607de3fe88088012992931c76e6dbac483dc31a9a97211d0e4a52f37cc22b1f1271c8767dbb9e8786590fe78d48806dd960ff +DIST thunderbird-128.4.0esr-cy.xpi 753453 BLAKE2B c9acd9cc1e3c860b875e1c1ac3425ea890fbcbcc94711a3f46acf88f75ca0de82678f4a5aef7d5c61a5fdebde0593de27afbef2b1986c725deada8f0157c094f SHA512 ac735734e6e2d62dd5672dab088ebcd60e9db1f59e6e12d0d742139dbb75fed655d01ed002670a16841983b3edb50b7336f4ce758ce5e948d38a85c915da3c0c +DIST thunderbird-128.4.0esr-da.xpi 737120 BLAKE2B e1757b5a45193850bd3a0e0d5212300b9b7fdac4e257da3e3d14c4476d66cf4e36fd62e7e75ce47c0c7edfbe3bfc646f885d0320776c9125c7d4399b33a004b6 SHA512 74fd326cf52ff53fd7a1a842497a0f8ba49cdde84d90d36c7954a375c03adeba4e4db66af8f09ae372eb0e2e4d7732deb456deb1ae662c28ac1e2ea0b9728e09 +DIST thunderbird-128.4.0esr-de.xpi 771022 BLAKE2B f47f03af6a0c0432203a9535532cfa06e9869cb1a9917233494b34804a9cd47e690a13b859fd1b62d55ad531f53265131d84edfbab476bf7a962333471e43d82 SHA512 64a95debb568e71393603d0e270b7dcbf09fb1c4f19c8d91f8743dd744836b06b685e69b3eafca4209b57a970a9b2ddd050a310f91d200605b54c832db44bb7b +DIST thunderbird-128.4.0esr-dsb.xpi 787771 BLAKE2B 90ff56aa563dbbacde66f2f68a28b0d92beffd96aafe291465020f215a4453bea51741eed0a183933ae6a5bf770fd3b702e06d40fc95d909808b54ba78470fc0 SHA512 69c99952e7992cbe30bbd49e40a0356f5defb1c943dd59fee2e9ac388345f31fda9e50325ab6c788a481cef1f599034c05d23d940153b382d822cf4eee86966b +DIST thunderbird-128.4.0esr-el.xpi 894340 BLAKE2B c2407c077e71199478bf32386fdc8d41febf5adc98e99f4379b01c03c374cd9a5d1c1559d8203240d38ebd28dc7c1b20f3c925e1fa12a12ba41d2086c9d4dc55 SHA512 d70f3bf341bf8a819c0f7b2762bcb25329908c126e3eeeac736095546398946f52de16c64132d067f4602732e1a69a37fd607a349b5d596be28a4a81fd78b6d7 +DIST thunderbird-128.4.0esr-en-CA.xpi 704737 BLAKE2B eb266260299086292572d4be7f1a425b4526b0b75d3953328e40355d4af698ce24ea42f08d2b8ccadef88ea631bc333a82c061578427401a86bc9c3291cb1b89 SHA512 87e25f7c638c538c2e72987bc09f4ddcf49d4e256f5b756832d340566c68165569f6ebd3504e45b0ff3fb9c453bbca2a64dfa14d58f82220dd715e365079db08 +DIST thunderbird-128.4.0esr-en-GB.xpi 706802 BLAKE2B 4f0fdd730f3e4efe32ab18559036d3d12456c63c1723001fbf39274dc9edd74919f7d6533051746ad59b4c596f6773393ec332fc5165ea17886e4c97e44e8fbf SHA512 c5a38115ff93f7cf15a12a7f85f654dfbe70782f0afae15347e531b59607f72a66cd8fd17429cee014087582c21c3b18b71da70781315172790d18228bb8e4c8 +DIST thunderbird-128.4.0esr-es-AR.xpi 762698 BLAKE2B 1b10956b595ac092990775ef0e515dd6733e09508c01eb5ae28f49536f764e56fa0a15657116c2f47be97efb7e9e54b8357b9d9edbefb54fe570909f72cc888b SHA512 98a59db750eb22cd18c9a000bc530da6c1e025b899aac25b6fe21e8ddc143338ff7c042109f9bcbb4f2b8043828ba0d95cc6ff03f26b0ee834d0c37a011ea3e7 +DIST thunderbird-128.4.0esr-es-ES.xpi 729373 BLAKE2B 6a373b996d83d6748c5ceb5e47a9d74ffdf2d3d848e115de5f33cf45527bccb7a13b96bf7967410216d57557fd261c0b07ea6cb0974645fbabfa8eb2b54cb045 SHA512 efca5bfb6c66c807e1d933e84be0a4b13262f33dcd341f2af0c6fcdabc7557ded52655b7eef30bdbc0349efafc491a7c75fb9314fde29b0ab1c4db031155154e +DIST thunderbird-128.4.0esr-es-MX.xpi 748411 BLAKE2B 9cdcdcf2ef29bda67827dc92d81d7f44d5f5a877002ae958b855768b2d0e9d1715a9bbe8e42ad38ea3dd6f3f63b373ab8798072a871176c0d9c30776b8f8501f SHA512 4bbac7202179a50d19e8401f3334bfb3b8f97de7fbe8d35db7459b102589452c8ba731aa89434351f20e4d38f1ed5523a668a55d9381f00d0722d05ebedd9fdc +DIST thunderbird-128.4.0esr-et.xpi 696281 BLAKE2B 784ad0dfb405edaa1da35a10f9bcf708e0348575cdcda03ebe226ae14421aea43137ce86717dc5c97589c68aa82389f984b2d1b4c5fcb294d18427ea2490415e SHA512 08fb4a49fb7fc72640a60f377506b792b15407d4b2aef99804bbc9ce7581a1ab3ed8a5cc8d4e2930df29270278aaea8f354eb5c4efb630f0cecb8fcc2c9bc6f1 +DIST thunderbird-128.4.0esr-eu.xpi 734390 BLAKE2B e3dfd932605d328e04a0f88b8fd2b9103038fa2145e1f4592700b201556ca93415a152aef3eabc372119bd2c937d05a3cf8336f17eb8bbc78de73da4a5620c8b SHA512 90658bc5e90b190aa20ab08da1044b7187033ad91c30cf303495a301a38f5536dff9138e4e7b33dc6a088f378d393285ec655d63c106b832513664f643f9daec +DIST thunderbird-128.4.0esr-fi.xpi 738610 BLAKE2B 13e1ad94c31ad50f8bb8310922210ac28c0b3cf4a7c7eba1472fb87cedd19667d7215e36774773ce5560047fab4dc4bb09f691154c6fc0d17fdbfa369bbbae05 SHA512 5217e1ef65cd69c971f7efd98b05549a90021bb642fde6a8fc6ba02a64042d2b886bd2b2a09dd0e56c0ed1f19b0d11bb692b3910f71209c43f7dccc73ace9ff0 +DIST thunderbird-128.4.0esr-fr.xpi 775786 BLAKE2B edf60075c98f5c6b9c0942ea6fc2b1a9c2f0230605ed2657b684dde127b16809f042c92124df7dc437f091d9aea86005a4a66e15ef8591b46a6d85aabccca134 SHA512 be53539a6d6d1105cadeb4423d745659f2f831af17b5588ac3377c43b52c1dac459061ee4f9185e717b5030c9a718a2de3f1612a20276aa891a6301b616583ba +DIST thunderbird-128.4.0esr-fy-NL.xpi 755944 BLAKE2B aa766dbb24675932f2b60c69db201f58b1ed8535bef83075d9469bf0e6e8fbeddea87ad18e2be2179bdecd3ea92275c66d337b83f8ba5a13c0d5a0885974e05e SHA512 902c1926fbc341689f97d99af395b16bcd1ad58c9c7fe77af3524fe1089eb5ce02954891d30524303502344b5ff426d9f67d1666a30ae529f7f67b609836984e +DIST thunderbird-128.4.0esr-ga-IE.xpi 615880 BLAKE2B f202cf9ea0718ed4b3b73020d7ddfd6a27b209147202c33271bf839f4e5cc031525bb44b49b3a70210c5f96edcc7667f8d0aba8b6c50755b430318bca052a45d SHA512 57d20c64c3f91d575252683511d4943d9b4e0cd59edf3b792d1c8ea7db2eb69b24faf3788ea92edbd6fb6e58dd4db470f017ab08684744195fb0d616e1da4e18 +DIST thunderbird-128.4.0esr-gd.xpi 728646 BLAKE2B 6161cb58b13f5c38b58fc883646a982a3a6a09484b2eba3de9cfc3331a2d6690e0eb50b6ecef326659c5bb3f0d36014730d2f61c303ce678604bd531bd083b6b SHA512 edd0796b9d1893b9da63132ce95155651a4799f8e8ba29f23616a66f1f5a1ba01b5863991873831b09afbbf9c3e74036630fdb6c47b5fb8bbe541b15fe2110f0 +DIST thunderbird-128.4.0esr-gl.xpi 741681 BLAKE2B 16bbddc564c5e9043c59e724442f5ef9f642b8daa1b7b493285efb82d80778ba26ea9251e38487c906303fe6767ae0341863be7ec8699d557e14887c0e3f6079 SHA512 06998be391b94a4f0a1d816098956b0826b72d556d402dddd471c77987eede2ba406df4db8e8a18f1db640240bbd11238fc4f4a266debb07d97a277dca03a6d1 +DIST thunderbird-128.4.0esr-he.xpi 700948 BLAKE2B 4e9318a2c3fb4bcd5ab748b8878262b557882a6ef1772c9e0a3cf434788dce3b0c9239dbbfb337030403444e8f1e809300457a361f243839ab70c0325a7e7763 SHA512 a1731149889311fdb25ba2fca79743c7f2891e00f250764359db9a72c35734ceaa925d83777c5306872ae13dca3e3944682b55a2bb15e7bbda63384ec439fd66 +DIST thunderbird-128.4.0esr-hr.xpi 719845 BLAKE2B a67e6958af03a104f7fe34ea735a4a96cb9a932417860eb5b8de7a40447af560c022e50cdcf06786bc79beef844b73f758588d6d8cced771d004acf2b93366ba SHA512 807a05798244aa55a24170f0d9d200a9a23c1331138f272dfba8e12454e2410a09d8804770e213a4e1fc28b9def23b35f4348e4db0c202c355560174508ed716 +DIST thunderbird-128.4.0esr-hsb.xpi 785171 BLAKE2B 4bd19fcfd28365926c468fa3c83741a175756dfd7939661de0d3ad13ffe3ac5abf7b7971e40e079252c1c5058869afe803305d0b692544f1c19495d8d8086774 SHA512 362ec35071ab28633b3fa4e993d0160acd926bb7c87223ac2b886c8e4be740a781f69fad60290fc60cdee84f0a4b3f856a95444717fc754b0f8d58a007b568f8 +DIST thunderbird-128.4.0esr-hu.xpi 787992 BLAKE2B 5e6672d40f13cfddac5d2f2472c98c980eec1425ae2b22f6889591f7f3de34f56548fcfb865a55ce03de0a9f752f6eb1052882a4ee7f0247f46db01b63f72d8c SHA512 a91efee4e0a07570044f98db5e5020cea08ac8a486dc872864b06ecdda7c71586d31ab97348335021245ea0c8b37b5acdc4f57cb08b86dda454b21d9b510751a +DIST thunderbird-128.4.0esr-id.xpi 666010 BLAKE2B 8b5795bf4e71f786cba74e10c67f3d4f1737c337eb6ed9f7881fd273c2c04e7c7dc4216b2bf27a4221e45ffb6b7c9eac999391b880e3a22ae4d80caf9570e934 SHA512 a41399c0fa40ac933d8627983398b3338e9bbe724d8039be41d8fa74f5b7bdcf493992f47e796dd3bb2979e994881bbfac56c354ee62881332866e2713d0e1a1 +DIST thunderbird-128.4.0esr-is.xpi 747035 BLAKE2B e19ca1443683ec2a25bbf3177d1ed8f35aeaac8470121c40e295b8323ecd9d6e64243288bcc003cab2336fc2f28714f7eebdf6268e6f832ab5df40706c18c2c0 SHA512 eae1b918b7eab5578dd12ead38772b06bd2d70004f495cc56324c509ce0c1a9a03ea5e6954c243cbf97b43ab494c7f1974c4c1c28d8c3ac454193e680618e3ce +DIST thunderbird-128.4.0esr-it.xpi 694515 BLAKE2B ab0291fa95c630bdc8aa1496c568d8096d90f9e5102d17f4f48633c4178d87b51a6daf8b636e8e261179827546004f3629a23e38b0475ff83f23ccdcbcb005d5 SHA512 38778d844b7a3cb4edf98a00082c7439f47aa7e98b28c9268a8c833e37f4f4a3ddee8270628eca2b1383236d6ba3b20c8bbf1134351128b25bc09e6d01d064af +DIST thunderbird-128.4.0esr-ja.xpi 824168 BLAKE2B 962ceba03c4ca34dad207625956acfda08d33283e2cee26d43c827f83b6fbd492ba07a101c877e7a619f4383f0893f6b046170cab75e767df499113be651f37c SHA512 064cd1083907fa0c09c41bf248e1d24e1e93e39320f3e646e516f900c61ea7b03c4e0d7a2b2e3716fd03a87bcba7d5e48dc068671587501f7e6d1b8275f534aa +DIST thunderbird-128.4.0esr-ka.xpi 796223 BLAKE2B be450c7adf2b87c74b1148cbac80752cc2888d32be0326abab5bc0807617acd893f3789fe5dadf17c382f16e843f79f761a5b318e27d26495a7c3aa2b53aae4b SHA512 ebba879b83bf8436187d65175c7fa9437e5c3082a4ca534dca4f307f96d1e256d377e6fee8bac3914981960c50e32d1c708a427cc22b6f2ac613c099b23f9160 +DIST thunderbird-128.4.0esr-kab.xpi 733900 BLAKE2B 0e10f6c7a720892841c4e2da6909c26fd2f7e1c9908a6d55d1057d68c2925d5c792f6fb3167d8a1a2e966fd7a160a743cda9e9e65850dd6a1561cc7495ce2973 SHA512 cffec8f6690dec6f84c1169674a050525dfca5e5f09fea89d1c857a294622b1bf51dbb99b525dde3ec3221f0abc8cd2e7765937123317445d4c7fb58d8b99608 +DIST thunderbird-128.4.0esr-kk.xpi 860677 BLAKE2B 1ca365fbbba9d9c616704bf08cee6ca705137c5664bd5958f41c7cdeb7f0ae8e4ea3fe358e2e5eacb34f8b5c724f66d31dfc6655c5880828f91942609aec6fc2 SHA512 8463e6c281af8e5ef5499c2b3045c179ee0706e291a95fd3e3ba4c00d06bf55670b10fafe8f7f3164b64555114e229caaaa0ad3abb701122d42dc099a7b35bf9 +DIST thunderbird-128.4.0esr-ko.xpi 756769 BLAKE2B 5396865ab184420cbf2dffcf5ff9d78af1cbb14e087a3acc0c637544499948f39e2bd5259c008daf7d2bd0353179ef4f92e5523df410267725ad6ef25b7c1c34 SHA512 14f151d74819b5863597555047d5f82a8a9e5cd48b03d72910b63ee2ec7f13796e1dc258d272f8e61c6ce7b2dc898dee98650e28a318398b972d9953fc4cfd67 +DIST thunderbird-128.4.0esr-lt.xpi 700919 BLAKE2B 5ef1bde7ffdf4aeebfbace9e0b77dca3672f995a07655d1e588a2130cf6c9416c4764ee57b846079eeb532f94c541fba57bfd20ad5ebbcec20c06985be868121 SHA512 448bc7d78a4d2fa9ca7eb3cafd3dde2814d99e319d5250c1315a9d288db7673ea3a287b97537974f3ae6e57781549deb4fafffd4e2e7fa5702c551c4e41c08d8 +DIST thunderbird-128.4.0esr-lv.xpi 625981 BLAKE2B 74ddf507d9c9a72fc29f65dc99e1677e0043f72f2c27e54e7f75301c36cd678a20ed59719f4b5646947d66c725f2b675461c529bda59b42750033816a1809408 SHA512 0428c4a8f0f6b8b25eef97514ed95046e57e83049ca3c97a31650f922fc93f5a88bd923ca96f699545643bfaa2d29316d43f24efd6cd1a059cceea0f0226973d +DIST thunderbird-128.4.0esr-ms.xpi 581082 BLAKE2B 5dca2a199ead8c3078e360615355050f580948e0458baadf23cfac17e6cd5ee5e755dcb40367794dc42022f9d9d71ae43411b421db14f0bd77ab7656111cd8c1 SHA512 a9a6b3fb5868075282a35e2bb8596199559b4ee81d59df65fb96d47faad3007b493e54b6518a666628da775f578ea5ec1f07bab1e4f2ebfd583c1904c0332b04 +DIST thunderbird-128.4.0esr-nb-NO.xpi 706103 BLAKE2B c11bd7b4942b1233aaf0168d05fb6e66be5a1ae9db02ff737d66779ef5a6dcbde38aebc5578fbabfc65e55927c2abc459c8cd57132265c00024d85e4cbe74c04 SHA512 5088abae8e3643feabed92a929f24bd33ad04a570667aa196cb039924d0764ebe58b97605d28dd5082053689bce18e7d143c2ca6984f92b824d286fc76986a27 +DIST thunderbird-128.4.0esr-nl.xpi 748486 BLAKE2B c6ffa2baca9cab103a0583807a286db7439857f1cdc62d781d205a510289841d343a78d8cd0c53aba9796af5e2e0c30638187769d3e6ea2f214006be68ac9a7b SHA512 56e3b232b58e1677ca6afc31ef52f84ed9ad573db7bcdaf98b8cc00bdbd5d2110dddffc7b17b435f1aedd61961073daf0bfa02086c0acc955ec7185fc077cf3b +DIST thunderbird-128.4.0esr-nn-NO.xpi 726986 BLAKE2B 09954be063fd39bef29aca2f766250b4a13e43aecb5478dc94af63fa366409e4710bf405c54ce8c593827b46ee8bbc4317fa0adb48457e90db2edcf0e3f73749 SHA512 03b7f15e06ce7d8269435e8c4a150df32d49b58525ebd17ecbbb741dcbba2b94645c8838f308fac5e98e87cd6e272c0450d27aebb7b6128b580e590548b3d480 +DIST thunderbird-128.4.0esr-pa-IN.xpi 685675 BLAKE2B 6763f79c0458a2418e236133d919fe0773b4099340085b372fbeae9a23eb00368340ab374d1c9f998c6add300bdb8669746c56dbb52fd1462094edcfcdedb22c SHA512 afb8aa6db1f5d970dd1d827348f8f3730da050332bd85efd2751f8511a5a2279996ed861dd987002cc2afcf2bb531f0bc032496acd65acc7668599d8450a48e8 +DIST thunderbird-128.4.0esr-pl.xpi 767303 BLAKE2B ac20accdbb5f156ccd6cf51147bd8d59e4778efbed0c2851a9a4b7376fe294fdbbe1ca4691e42c4e7edb32902c39417ca83d31f66a1f9674cfa8e62d9611d296 SHA512 e4b4363e5f9bdc0ebfdfd1c86965e62fde83c15fdabf42a28851ab230deb93227b736fe083b9026c65a9cee4af8ad7ecdb21438ae5839f356f5b2b5880821298 +DIST thunderbird-128.4.0esr-pt-BR.xpi 755727 BLAKE2B da1b048024f91f8045bedd0681d62c16d6a0a9cc5a73f70d83f392bf3abb00c210161fc2b340b0f188949aca2384bbee52db9191c02445ab41736ca4f46f9f88 SHA512 29e06f6654ba2e69769915593e79f6a2ddd8afcc75e42bc2202ab4c8c4cbf6ca8e032e70f01cf6d96b09d12bd8b24d9979175560fe34efeecc6ce643cf546a0c +DIST thunderbird-128.4.0esr-pt-PT.xpi 750495 BLAKE2B 7b4a3e0b542ee0b8d98158caa845791cb56b9f55a74fedd95e1c72450328bfe7a9d6a4d9e4a839082e9ed9e0e17d598b88cdcbd15c1a9f3c364da261828adc6b SHA512 a0b0d6cc5821c19eda972c32ec9568c7c5c9b308ce8ad981e9b575f992ca7e84f878a3828374a25e5aa530c91d5779c11163b966d59a63356c0e8699e52b14b7 +DIST thunderbird-128.4.0esr-rm.xpi 751461 BLAKE2B ac047deb548df260c2fc9c85e339e2391f6003d0ae3d70b52e9b79e38d4fbf837401f325c3fa06a02bf3075f1716e82a1763b513e464522ef0cefceb46cc5a9b SHA512 265f36e631ed90d5f599a9f9c4390901fa932d656582bdeb3e7fb1fff80afe6c6470b36f4d6e31bf4de1d41d066a7381ed0eceddf428fb04e8693e18c88fa645 +DIST thunderbird-128.4.0esr-ro.xpi 669741 BLAKE2B a1cdcc44dcc7c65c560bafdbfb4018e49122f7ddc1ba1f35c7008dc15b5ec67c14becaf3b5a93db60a42a49d19839b69b0155a789f92dc5afe6129e3f6bc0db6 SHA512 8e222f6011dc6903894f9493358cc9889744997f948053df0bdb97c46cedaa9f8be88bf793791d495f3ad9d1f6c815dda0c8f3927d6c3580b38cef693b595fce +DIST thunderbird-128.4.0esr-ru.xpi 877212 BLAKE2B 9752f8ec9d4bdd5ddf756968793397d043c95aac460bac5223b0d4f9aa83be0e3b531cefcc23425c6f8a63369fcfc834e29b3fbccb05029138d55b6610e32ea4 SHA512 63199ebbd0953908d0e393b8badb5085eb604c31d1cfd8015decb168dd4a68070eabf3e8023ea4d59b5e78bf95332499a0d132b79ddff87ead5b789852f786ef +DIST thunderbird-128.4.0esr-sk.xpi 788762 BLAKE2B a0eb22c887477f77671c8ada0ebe861e1c6d4a564f4b1a8dd5aa969451b26b6d3daa4fab2054292702f1c86abb450076d38c423f51b20683a8776ad87a212721 SHA512 2deef11dd757bd3273bd6fade4aed4225e018d7e7750bbc244a58f6806e92220e347d677c7852f303b89ea70843858767095e41c9372c67af637d0389e5619b3 +DIST thunderbird-128.4.0esr-sl.xpi 749577 BLAKE2B 33db7d8af5f7debda1c0b421877ee71191c50b53a719e1cb42be35bf34c179608ed434342321bdaf34235022754fe29dda99916cee404f181f470b0537a32ca9 SHA512 600c142220aaf9a737d14470e00b91c87a37e0b2e9f287beeb0331ab9b58cb8f43264424cb731c4efc62b71ddc5021e6d075c0179ccbee70c97c81e236a67413 +DIST thunderbird-128.4.0esr-sq.xpi 771528 BLAKE2B a22851d08142cb29072c02cd1e175e2710d02ef064a4086ebe1bbc5fa6d52f375fea745f8505e138af9900bbed357383a3f9b4f3ff3ca21196dad62b69f2c3b1 SHA512 d8ebe16c4bb67851c7cbd8e4f0bc4ae5e8df57f563fef94f5efa26bc7e9cf97ed6690d555da4639d1ecee143608907ee4e4736bb890d5a0b32062f3172535246 +DIST thunderbird-128.4.0esr-sr.xpi 771226 BLAKE2B 4f7e0f8c6650a62b2339f6c7e25042a8d413176f57fae6247f8cee79976e4da5680b82091a3c346d816314aaca14e3bd1503f238ded0bc5b6ece5f8d92e8232a SHA512 0b3c21632199b12440acb3965637ab753310e7a3ae130e12d1206b25012172e346802fdf5773e1b003539a37f01ff31343aa87e5634b6e890636b3997bc647c1 +DIST thunderbird-128.4.0esr-sv-SE.xpi 751824 BLAKE2B 6df6833b777ac0f31f3ba9a9671c844bc8ca167254e963140c06a6093d1ebb8297460809bd1da78e631724d8ea99777f9f0cde3afc062663b0a02e7a9f32cb24 SHA512 9b4c651c615fbbbe1e6127679a87e9ac0efc4a368b95e70dc839a7340ac2f70f75bcda8a6f55668f1c95fbf875174eddb34ca71133897da717a1de8846042ead +DIST thunderbird-128.4.0esr-th.xpi 815950 BLAKE2B fcde8174c006121c9e57d64dffee01ef84d00d108cc23d2fa8ce13d145e0cd198b2029c454a38ec8150a41f8587a14307faf3b325d515db2c0cb1d27c90bbbff SHA512 4dba34687d79f7dc934b7b9d71af44acb69f5852b78e2b96d8f2e2a642ab10f52a9cceab3154787eaa670e87846d2cbbfe5401c27d92d85bd33974a131056a9f +DIST thunderbird-128.4.0esr-tr.xpi 761636 BLAKE2B f3d74bdcaac164b05d8479f7261474346bd28ede95063a52eedb2aff136f988601b335a7e2d7a321d762d10d728ac9df4cb6b0103c5972e9cc5eec02f1e0a030 SHA512 a73ac5068ab7ec1cf2612ae8fbb2acc373f0e5aea0cbb3e3b82c936f38c3816521659ba26fd2c88323a501639b3334c75e7fffe0fa0b24d695ca0277caf5e369 +DIST thunderbird-128.4.0esr-uk.xpi 867539 BLAKE2B 0539518ea9bee8871b94574454b38ee5d7eaafeb2a913aa144a6c336ad4dfc9f901bf72011d4154c5fb7dd9d78b40ed103bf7026c3459ab863ffbb5c6c089d8c SHA512 12be78ad1775e3d3a78a47f66ee28500c1e2d19f73c1ac3908cb3a8f3e5472a39d0dba1b371b9957cd2ba5f990f8902f3a0f02608e2b75e39876339c41a78d8e +DIST thunderbird-128.4.0esr-uz.xpi 592134 BLAKE2B 28df6e16ddd72f74fc09231a90d4df82db73b696a9e85f396b5fab16b3237527898d893032499e1ec84b8279750bbeb00e5bb72d51c2630d83014b08d0f2c52d SHA512 9df68540bd81d24a364809577ac86b85aaa53c4e43075476e7f05a6bacf0aa16aeabf0cbcc83eb50fc597a7149ee8e4606473adde731ed3d8f38d2e64f4d4fbc +DIST thunderbird-128.4.0esr-vi.xpi 790930 BLAKE2B 6b45127d272323d59c3f04de6c30804bd5cad3316805668296ef479905d5420d23bfc43a816e81b9dc5689ba21f66e87eb07fa3d5dfa050ef95b1c527cb5894e SHA512 c4a278601901da454638ebd1bee4d4cb2e03a1b21e53b7849003d885e987a750f02ac0e1b2718dc5e4db65aaef37043a673e74e1263f111d671ad76d45afc940 +DIST thunderbird-128.4.0esr-zh-CN.xpi 790746 BLAKE2B b293fb0bf8fa031b45bb48e899248ccc9b84d7fcc7eafc28af9e8dc9e0d3199cf250acbae3190fc67d04b2a35aa0d8e796acdf307e980ba566842a42b91baa5f SHA512 d79d8b66ae50e574b68a4a9fc8f726de2d8e15482a98a8427b8498572d01ca356c46704b06b73282dbf9ac8593395ee93bac41ac69986b8c6140d8b3dc74cfb8 +DIST thunderbird-128.4.0esr-zh-TW.xpi 794101 BLAKE2B f11327c121c0f6572dc9a9731b00531a0e7a344e35bf3a8dc81f1005305225bc3208a9bdbc521f584c0136b5f644309edee79fde3206ceabe041f40cdfcd4614 SHA512 0fef1e5baf436705c1273f915e1beda9593e64d4bde61419159796c9372e9b8c0b879754734e926b5a5a1a4c5060d695348722041700bedeef78684513767e48 +DIST thunderbird-128.4.0esr.source.tar.xz 672888608 BLAKE2B 5a68ae19ca8d63ccb3489cd52d5b35f6409d94d4c9df7d164cb58d70ca720e2bf331506f44ff8611304d4e963e6b13245d04fb614a0c8e1a7180c99d56300c30 SHA512 ad031b3a9b738598358cead23cf8438435016222cd9a474c31892dc1b3db43d2d5d3a10c9639df770dc76eb3c0bc9db8be8beab84828d54ee50fc1e03f0da0a5 diff --git a/mail-client/thunderbird/thunderbird-128.4.0.ebuild b/mail-client/thunderbird/thunderbird-128.4.0.ebuild new file mode 100644 index 000000000000..b67b80087b97 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-128.4.0.ebuild @@ -0,0 +1,1162 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-128esr-patches-04.tar.xz" + +LLVM_COMPAT=( 17 18 19 ) + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +MOZ_ESR=yes + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info llvm-r1 multiprocessing \ + optfeature pax-utils python-any-r1 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 +dbus debug eme-free hardened hwaccel jack libproxy lto pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +rust-extensions +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + rust-extensions? ( dbus ) + wayland? ( dbus ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + clang? ( + sys-devel/lld:${LLVM_SLOT} + virtual/rust:0/llvm-${LLVM_SLOT} + pgo? ( sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.26.0 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.76 ) + !elibc_glibc? ( dev-lang/rust ) + 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 + <gui-libs/wlroots-0.17.3[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.101 + >=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:2 + x11-libs/pango + x11-libs/pixman + dbus? ( 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] + ) + wifi? ( + kernel_linux? ( + || ( + net-misc/networkmanager + net-misc/connman[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/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack )" +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!" >&2 + einfo "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}" +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use 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-r1_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 + + # 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 +} + +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 + + # Workaround for bgo#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + else + die "Unknown musl chost, please post your rustc -vV along with emerge --info on Gentoo's bug #915651" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + # Make ICU respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py || die "Failed sedding multiprocessing.cpu_count" + + # Respect MAKEOPTS all around (maybe some find+sed is better) + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py || + die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py || die "Failed sedding multiprocessing.cpu_count" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-gpsd \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-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 ; 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_enable rust-extensions thunderbird-rust + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + # LTO is handled via configure. + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-lto + filter-flags -Werror=lto-type-mismatch -Werror=odr + + if use lto ; 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 + + 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 + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if 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-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 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:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +} |