diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index a19ca1bf04e19..89bf31ead45c2 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -1,6 +1,7 @@ DIST firefox-139-loong-patches-02.tar.xz 3096 BLAKE2B 2e9c0f3dac780c808a13f70fe3808df9976898360b55113def97bf3594893166e0647c70ebc389b2d14fa2c2453fc1dd68aba20d92178670ef97d70c34205e1c SHA512 e1244007290e2e15d14cf519e3ade6a4da06abe41c416de60569a11396609661cb62fb5b592e763cc079406699dc33d6a34851f71068f4d09bdf34021b035a59 DIST firefox-140esr-patches-03t.tar.xz 13772 BLAKE2B a62d981c81690306845b28375d1db9526e26a59d9f08fbfe3bce9711fb90567ecf502e398f929a7d98d3c563d8b98ddae760ffb7336be8fee96703cf13912637 SHA512 f357bfcaa4f51fd67c8278cb42b4fa9fa2595288a1ed44009dedc4080a7e1b70dba8495ea19c9f18a482b83a5ba261b5fbd91f29ed257cc80ba043316b95b573 DIST firefox-143-patches-02t.tar.xz 14036 BLAKE2B 7d84726e1d4ababc088052382e72aecce413ac02acb0ae0aaa974d258ebabe971a622b9c765f3f03d3a58a80e053f5d3c831c845b357df02bf88135fd416e7e4 SHA512 8d66d77a04b68018eac734b4eae4618d91b1a1f069733276a2187577ff13c4d08baee9fb0532159aaa3e3269716583ffc8af9f26502376907e87e3ed58bd6845 +DIST firefox-144-patches-01.tar.xz 11552 BLAKE2B 2ed23067a40b1198c53171c558dd526679ca489f949b163a39ac20bcaf9aa667e21c8a2eb3cfd94bbac0edb1ff064051fadd8eb3c121ef2913719f4842549836 SHA512 fa5cb7643830c7d71f55dc32587c010bc9c2586dbf01653fee0e142acd938a02dfeb6604d374e4146615200ffa96f44b863d6b4595d42a835cf456c721c42e59 DIST thunderbird-140.3.1esr-af.xpi 316218 BLAKE2B bd4889a7accb2ff53ed2edcf31201729c94e05c8d5c6b3d9e1e1fdd4d760fd8cda4e9a0a66dd49c0fc53cb3138c03aedac724bf0ae24ead496a2eb19ba22c782 SHA512 4bedb9733204c0551245c18e7ffc5435ed0686812c50030351fca7dff277581747f0722c41fa64851c68e56aaebd9c99ee169e3b7ea465e5f7ef56ec6a768ea4 DIST thunderbird-140.3.1esr-ar.xpi 436173 BLAKE2B 27febf9e2424b7780fa9b493feda00bc376795d0b2d00a8f1be0a84346f46444fa841485a1a47face821bc670e634243af3819bfdaf6f50f6ecff9207be12be0 SHA512 5f6552aceea9c2fb67d104d4a08adfc6de5ef547d5c0debbe2fc61d71a2e6572c1624eb93ab542a67aeddfb8670c0bc2eabd4782da25b53cbfa3932cb53ab2c1 DIST thunderbird-140.3.1esr-ast.xpi 340599 BLAKE2B 9f6ccbbb78f4203b76cad603d1372ffc9b786ec3a02408c660fc492ca849ed91f342fc02c72853071a5fb3b62ec44196d65ceb69ec1c5f02a6a6c1920444a209 SHA512 dd2ec3b9f01bed8c0c2689b5b63e60a791fda2313dc67428030aaf6455bfdf7a60eadfc1288a6033f9651e7916078bdcdb4d868d570db687a8fb66112c735b27 @@ -131,3 +132,68 @@ DIST thunderbird-143.0.1-vi.xpi 521329 BLAKE2B 25a70ebad1ed6d20b2d1b00a6450b988a DIST thunderbird-143.0.1-zh-CN.xpi 510220 BLAKE2B 46560cb1545a5704976eeaa7a9d1afae216242968943f93395038e615e8d987ea421742a3879fbcfc7926ee4fbbccff9b8492a8a5b1d1c4e1db0c46a6d755851 SHA512 5ec357530ae931941633d01fd7a37746db2b33c4df41c113d9fbd09b93ca27d4b609e31121b432bb7e974917b123fbdf4553de3a6f6fc0dc470f4dcbfabe71a4 DIST thunderbird-143.0.1-zh-TW.xpi 513781 BLAKE2B be39437914f36e8fa7703af1faba25eb1ee9dbed354986d7743721054369571e70d6b14765e31989ab1271ac7b2c91a9093ccb93aad914929428c057285d0122 SHA512 d506919183b5c93c628ceb133b0d8ea5f1b08245a9bef6073471341e1d3df998d5904c63dbb78f06d5f2b5f41c72d96192da9629c99ace807d1071f0eac619e3 DIST thunderbird-143.0.1.source.tar.xz 771223064 BLAKE2B 70a6e2f1dd47f7db39ee97acaf62e5785d1ca86b874ba197cde97a11e186fecfd606754c7b001a008318e0880e0731ad53042e4ddd4cd9c58b5ea115322b62d1 SHA512 5f4fd5e4f5bc9fee9852d51b8e675f7c9c605660332c24aa0c90e5437301b468153c1788720bc80a53cfc1c3bf95a4bdb622a0533b8f11fb9853b290485c47c6 +DIST thunderbird-144.0-af.xpi 315659 BLAKE2B 85ea65d26cfa7479a85a2aa8b81c8eead80ea8c3bd0d88616e6cc369c5c0f24bcf1d840be87c276defb362dfcb794258fbed40a0f10583b7c3ebe7171693f02c SHA512 9102293f454df7fc43af4849c2aac55a7fbae43b0f0b6a38ff557ea37b6f1c70d7495ab5d58dc06dc97d899733471633fae1b253c9701a805cdac7d819c3b4e7 +DIST thunderbird-144.0-ar.xpi 436470 BLAKE2B a30dbbbe0d19ce99a9d08d3a044d06a392addf2f3250f427a825780cfef6ce197ea57486f404881af6d070465a5be5b55b44b88f5d88945cb2cd62f05a58a8dc SHA512 f8455da9c84690d4fd47921773b039559f950701db94fee7e4fc1d7703a62a27f35e43f8687c3fcd78dc1ba5ded9de9a42b084423b99c0e3ebfc5c1912c20030 +DIST thunderbird-144.0-ast.xpi 339891 BLAKE2B f02738763c492b64e3f8a8f33b7801f49ee976eae6202644c0ab415744cd9437e20ac507769fba50193de102ed2ae39bf24bed71c6a352b0bac61c63e403d61f SHA512 8da5eb0caab381998e1b417e453e11059e8a69f3885a4a4a5b9101e36dda46ce358b8dd86c8914c2476775c0c9ee99be91de1ba679f6564d086c8ebb78ebe69e +DIST thunderbird-144.0-be.xpi 522821 BLAKE2B bb22007a209e5861825d794d1ace21f50926a0a62b95bf27137dbfea01d21db98e4ecb8a704486aa787d607ab5e3a4b9b4b77079a6c7e5d948b51b6974b10a21 SHA512 5a32b044e153ec21431e124a4e29550fc6ebe79192f8caffb985736ba88da7f82c2b5ce307934682624280eeded3f41f1651a0dac5c1fb5c06081e588bcc1e9c +DIST thunderbird-144.0-bg.xpi 542318 BLAKE2B 48a3dae38520229056d1644561a13796aefcd55dca0688987deabf1f2fd17b91a7e744bc9fbb2313662c848889804df5c2dd086fadc6f04cddaeb4aee3b89c1d SHA512 79fd290bf03a9563c8598ec602574553523ff4ebecdbe27d4effe79730a0f18c3ec2b63aea175918926e560096da0abadb6a4766f00079a193907e29732d5e28 +DIST thunderbird-144.0-br.xpi 403218 BLAKE2B 5efc1b89fe449f9890bf8a7f348fc47a3c63ce30e2272d422b343807f4c2257e3cd419eb729abbe14b958a81153514b13c8a15b7b365477f4b9643fcf5771aa2 SHA512 30512af6113b4d30de8ed1d8fc1ef8853082b7001c740adaf7e86d04505dc1bb652405e0a256dfeeee4c8c32ed53611e590d3472a4811d22dfd85ce0f953d164 +DIST thunderbird-144.0-ca.xpi 440926 BLAKE2B 426beaa26b798875124da167a5c3fd153e2da19ca7feedd81a226ea5b902d099fc110b56364c4cf7b624992284136fc298013772e160860876856264b15a66e5 SHA512 7dcfb1830f48c2fb3c40fb7e3a46f2d408087a9ee69d4ed7cf084bef22bb5b6ab830498cf4e02f567a66b42fb8bbd6f057f66a1b96e196dc3cc3e3d1c6f9565c +DIST thunderbird-144.0-cak.xpi 417857 BLAKE2B 0e6bb9627ac6af159bff6bedd2a4ca8a023c853eef811596322e95a040a12ffda021903f1798bfb4b4121d8228e9ac675970148410a4b4d7b35648f3868d2fba SHA512 f48073914173fc77d4328989992c476a40aa558121093c2636341a19035a4a88d4ffb42bcc25a597fb61802d04400a0704d388045e65ff6418c8f1b357a08d80 +DIST thunderbird-144.0-cs.xpi 524093 BLAKE2B b624e1e2ba8435c02fa8a2ba45f66bfad16b59aedc1c6bc563c7a1739a1df96ea141f4e7e55462828fb7cecd84958d999deabf161dd592e7a74aec7312da8a75 SHA512 626e1b2400778f004f4aaa9bdbae8905c953529b3700e84e1f321457cc265967f360f380a9c7a8531734a554d2351e9fa21a4823d46019fb650badbb9dfc1c5c +DIST thunderbird-144.0-cy.xpi 491999 BLAKE2B aaf8bdd2bf23207747fccca06419c057ae857f92245b19098b6e8dfead14b3a95ae7e64e8e4a4b57d5661c22a2b5e8b4aa16557448a143020e7ec07b9e783815 SHA512 b096d067095a5d959a394c2cb7975822bccf98ff43cca48f3393f3632029122fde5100bb779e60dd87091e669bfc0e0bb17db0b6e6d2589d8f7afbfcbd61afb5 +DIST thunderbird-144.0-da.xpi 479545 BLAKE2B 40213a271fe58b47e5b8c748cd1f1b6d668933f2706b2f84197cebd687f1ff8ed3b40276bb8f87c18164a77c6c6c8ebffbd685fabdf26b18d32eb7eb0a51b175 SHA512 e731826dbd3ce28b21a471551683e69b18c38fc6555fafaf112eb728f3f5de808cdda8c0e036942402223ede02caa7748c81d0bc66bdd6ab4c52dad0607a8922 +DIST thunderbird-144.0-de.xpi 509375 BLAKE2B 3a69ec8ccc225a92d8d2839b96c34956080405cdecdf5fa755a80ca47371f692b3371a9337a654af61220daa77e8f24afc7785ffe502f63dc951a886230e36ca SHA512 031a7cfe2f82870d2299d845a1d67d729a06c465cb01c1a98f613cca85ff12438364af4a6982e25037ce20812dc973334526a437e70f002eda3f19e9dc8ef6da +DIST thunderbird-144.0-dsb.xpi 522258 BLAKE2B 5c824ed671db2d0742c8370ca9eb01cc04364debfa6f0019c5b0d76a37753f0a250642727f7364dcd8f19cb80ae61518c21e88499ca4003c640e32a8500645e5 SHA512 68764363c1352182bdf6ed6e29ff81c47231d08601ac5fe9e3684e2bcd9499fc5f1a02196a127b2166b21e760888abf15c2400ed08694d34b389d52a5704d9dc +DIST thunderbird-144.0-el.xpi 613761 BLAKE2B 62a6641b1c4f7f41fb3077fcbfc7919dde281863521da4eff2263b33994322e9f34bb2f7ddc0b669bffa3918f7a64b90a6a71954cc6326d5200ef1cfde8b90d5 SHA512 f89d8731b4eadf7d2784f000914d2ad87adfb028c60cf470c5c22ee23069a57222af6f3e225833a679e4a5dab7c301bb40f1f7c1fed42cb78ed0ead622a484ac +DIST thunderbird-144.0-en-CA.xpi 454529 BLAKE2B 4fac0fc9806250ffc3ab3c7c780206a1faae1ccf91f7f9271670716f91c5c2edd06677782b74f41a7f5d488b44d07ade5d9e4e4b683530715e56204f89b2b623 SHA512 1ca1f6629babc97fd74c2919f193100e931b624dc2f8fd678e456393766bff0d3277ea1dc6a27e054e3c74a03611ba33d329c0fd16706126111b8492ba7477ba +DIST thunderbird-144.0-en-GB.xpi 455919 BLAKE2B 72daec5a7b3ec4634da92149c502820ab7254e2bc5fc333f308cb79da573ad584a44157f70fb1208d22af18ba9e42449add5e2e470ec50b8e409de6a2ed14672 SHA512 9d611c8cdab1fe51adfffb9631750fe9ba10b277ccf38de7b7da39ae74f4bd38052f2b321e031a0502ee9b7854521cf76736883199cff56acd09f2d9dda7d9c2 +DIST thunderbird-144.0-es-AR.xpi 499443 BLAKE2B 3852cd23e7f258e9f776ea8907a11f91a0230cabb012616ccf3bb4670ecaee05b4beb627b979174f5c9d9fb1d9816eba107b0b5ad9b3e9aba0f29f520c647b28 SHA512 4b3f0afbb6d03da10b5ca3d0e3d12d57bb3cbe4923b31c7599ea8ee08ed496f4664214c994bdea8c4498eb936bcdaea36533513d0bb94d4411bf1368594be0a1 +DIST thunderbird-144.0-es-ES.xpi 501079 BLAKE2B f56ff283e64037af790fb48ac4ec26949060993c6167d0ec9d274cd0aa1d3220fcd09c51eb60dde2a96fae10bacc0a64720a559e9f83adf712f09515877321ae SHA512 c4e03e78d787800f72d097e937c6d97d13ee1b4f7a2231962c4afd5170b57c6cc5eaadf872a0b95b8108640428f45eebaf261092c00b85f220d733c80b4d795d +DIST thunderbird-144.0-es-MX.xpi 489468 BLAKE2B 2a73ddfe4deb4a50d87aa3baca5dd7aacf50f4d395ed499fcf62203522bd6df3411ce45293cd14f5c60f9571df441e28dadf8e4788381cab6c1da1fa8022fe91 SHA512 dc4007d0f3cdc35a91e50ddc3625b2dfde366ca76cfa03011dc377e95ec9d7cf6a8a5e1c4b48b32aab2efa9a317c6cf88b3c1ad36749804502bd50e4d594a258 +DIST thunderbird-144.0-et.xpi 443871 BLAKE2B 5896fb622bc1a97922c211c8eebb8d6e62ecd7f690884e745f0ff5a91599f4c48b43bea745fb0212e4d13989e0e1baaf0e4d691ed7f0cea40102f33cb40b0d65 SHA512 5cdd67a88b571d8ed527ca2022fca6bba418ebcdf5b6e284932dbb59c8bf66dad909d7fc89c391ad95207230971926446dc58a026eb85f4001bbf783bfe8c9c9 +DIST thunderbird-144.0-eu.xpi 476297 BLAKE2B 49ffa3da6a20c89c4f884d49d66ce8abb47f46586bb4bdac51715feb90e6d3054c0613bad25a96da18647ecfe8cdd6c3be4071ed9d31c24c4e6014577a51bcc4 SHA512 313f7713b23c3ed0928a768de820b255d23c45aa4fb29b53300ae135088e2d4a8c99958de9a1ab04a688962315c4d04cb9a606aae4bd0b413294a983c0b19b90 +DIST thunderbird-144.0-fi.xpi 478850 BLAKE2B 7fc84bcd9c6e63d33131f91234e5f60d48a9c67a8b6476153f9cb5cf93eb1da5ace49ae6d86b5f7d688a1252f0ad73be6758a1f3f83a5db8fe94aa2eec100c1b SHA512 265dab79ea7d6cfac15d45e1b7eb0431a31b5fcb06d6eeb8687fba72177c6611d829ae3e872f1fd866abeea7e47633c9f15442823603dd5831bdb539da8bda99 +DIST thunderbird-144.0-fr.xpi 512565 BLAKE2B c3bf7ce0bc1c63fb09817c5dd2514125ed8294df489c23286800df5440531a508e5c7a10c4739bfda0e71554d9295fcdbb4ddcebba4c768194572f2e70c124bb SHA512 1ae1c335c77126c5f17d93a4c569cd04b2ded8ac20c0c43d9d1663fedc8a67463c99d9fa863901b8a50e5e0d75d8bff69d249b313f619d3e47b7b33410040936 +DIST thunderbird-144.0-fy-NL.xpi 494868 BLAKE2B be813da5fa030e51e6346a3bc06af0c91484aec2ea84c37ff7f638228fcbad433f9e0dad3ef0552505f26d7b658f7123e6dd050ff57a52246cf472b1a00b9bb8 SHA512 4dd4b99b2413073938d974f5a06eb5e7d89111be453637498d6eec1695c01162fc5f527ab3f908490c940ac63cc3ac1340c29d71d3ba1ff6fc655e24e8627f6c +DIST thunderbird-144.0-ga-IE.xpi 377000 BLAKE2B 9e8c35c5353ba8b167bf97a51fc8080ae88950e16e4fab0278880549fd1b9a918b3a8b1d452c9a6624e8ec921671b4cdfe52c57a542714ef67dfaa2fe3d71f28 SHA512 21496c3228245fd812859cbf5af5c602ef28dfb21f51557d751e1d52752aa8823626a3819e233c326ec84e205bf92b7a3d86be4f674bd42dbef441544348fbc7 +DIST thunderbird-144.0-gd.xpi 462264 BLAKE2B 868ac053ba14e2cc4d485b3ac799b7f8e4ca934b94a0ba3242d18d0073e3c5774287df3e7b006f086b0b32e0cef1c3b492a1ba39eb6edd6f3d969ccb57a75e55 SHA512 d493be0c4544121beb661657058a8cdcf0e81e1676b58fc18f65efc2b5b4e261205b4f017c0380158168ee4747b64643f3bac8d3357aa7b8fc4a2884c4f88ff6 +DIST thunderbird-144.0-gl.xpi 491798 BLAKE2B 50dfdb18fb7ce5ad99ab35e4f10a1bf31bbb897665acbcc2fc0bf9b3bf250c2c41f523b06ef85a9b6f61e67e7d55acb6484b9c86059500bc2d7d1da29b839c18 SHA512 fba8bc155119b35e4a4b3f4e25b6071cf8731d11c4618b532cd1d15fec943e9edf3a159704efc09b870872cbf43a5b7f2f8095e11d8cadbc9768b3144bcc2aa1 +DIST thunderbird-144.0-he.xpi 443225 BLAKE2B 057bae4f35af742a1f1e7e4bf768a5d800ec533355951ed2440fab9a4ef8cefa57ad7deab42db2793a792d88262a52ec57484379be1c5307a6b04b507782a9cd SHA512 b043ffd5fa86b1b1e2832047f84bb56d5603ab647d624e261542e5962820b9e8a912bc5896e8609dbbb902aa160dce5b66cbbc859169fc85d03ce3f4d568c9b3 +DIST thunderbird-144.0-hr.xpi 470725 BLAKE2B b692c30739d8830c7318129d08a2ed869cea6f2a6ed651b2d052f25956ecc5aaee0c917bdbdee9e3022b1f1a763d7e40e1c56b9bedc2db1ffdaff019fdccb079 SHA512 282246bf7f95730e9c5f5388625f8992a079cfaddb7df79fd591b627c73189a84df79e7e1a10327987f8f1021750eb620932cc625859f13c29322b8b874c4b7c +DIST thunderbird-144.0-hsb.xpi 519288 BLAKE2B 9aba8764581a4c559dc32142a6f551959374bdb54867431580b4e7111c1e2077acbc0ae3a0069e99080da8308cb6b0b2cd7f55248b9cb9ba60e0aabddef09998 SHA512 7de90e426e0b57671af4d4c53b7813b564986e071060e1634b31a979c41012e0d461a35836fe122d30084915b054911d15e0939e456db6cea14cbe5eba486942 +DIST thunderbird-144.0-hu.xpi 521443 BLAKE2B 9e284ba7fc5334e6e1c493348408c6017f3e257ec8b14f38e518733afd5ae99e0fec0ed53aa49d424f48fea28eadd1d30fa174ad3933ae097327a5aa83975027 SHA512 952c919f2d9d30d34229898d80e619c8c6154a9946101c5392ff0b2b18953937add3327597a0bd49f75f62ea164ef50e07a4709d4d87a068518a0b1baa24cccb +DIST thunderbird-144.0-id.xpi 467933 BLAKE2B cdd773cd72fb7073d14ae7e74eed2797a981158ea7eb2221830a46ad61670826a06d97d9e058f784ef288f59dbbffebcccd89d96776f74b85fa4b6a8e88856e3 SHA512 64331a34cf3fd27d9072ce97a600fc61be89c543fa90a9aaa9b88fc849b6338c5130bb0bf7cdf4de28e8c29d1ed26d2fcd7525e7b18fb451ceb5be2d841d6d93 +DIST thunderbird-144.0-is.xpi 485419 BLAKE2B 0d343cb27d58e14faf772b502e5e5807bff1615f8bf60dd4acdcfb0d11b370196c2f7b5cdb031c6dc56f75e4ad9bfd4acf88646177475510afa46582d37fc13e SHA512 6d4a483704c92298ed77c285858d4afbc6db223f95726b05b70c1204baf2f58b3727f37689819aa0008604fb395ec9af4f6d961765c2127dba7220b37d129261 +DIST thunderbird-144.0-it.xpi 492602 BLAKE2B f6849d2d41574c57ec19151a6a2163edc2fef1d37b7d0dd0aaad58101ecfc5461cfdd0a3a63ca175a599f0bd305ee3579e282e2c74317f8852abee615340f3d0 SHA512 488a4c5b27523290fc6e218e5452b056beaba64d132a4c3d358b9b73adaa093c6ae7136b48a422e227ffa7b567b623094bda6c6024abde217ea716c3443afaa8 +DIST thunderbird-144.0-ja.xpi 543511 BLAKE2B efb77f18cc06e06fde15f0696abe608fc0ff565a2c153cdcca1bbad5e0a5c14bc234fb3271e3d2bdb3fc097226fe90e531ae224e265d4f7cc8535eb3af00bbe5 SHA512 bb5ac14a53d6f63ae6f1a61984dc16357fbffb071d44d685d484a8f9397a21882a5d23bce5928d88d346b445c969602991a4e34a65df8959a8465c14b9515abe +DIST thunderbird-144.0-ka.xpi 559508 BLAKE2B 786473449a8cb3161b4332d7d5e1f9af96b762cccc326a94ecd1bfe4a29c7ed7645c864a082b1245b4faf7681ea86a19d6772691a7de11b8e9a31cb1ee5670ce SHA512 dcb53dc8c395b1fc6d6aca7d6934eefe24a65ff30db2d21f0fd9bb6966246f7219b86aa90d5a21f936542bf4875945765a41c6c70eef3bb7dc760bb71d0525f1 +DIST thunderbird-144.0-kab.xpi 471392 BLAKE2B 32d66129c4bb39c076e520a5d1ba7d75d4bd8ec47900be4b2ed5bb10f5696671d183babd0776c18a28e505737e248f90ec3ea16aa39eb2050f476817d317cfcb SHA512 bbb872dd813d2addd5a00a154994f6ccee04add3ee97db77c023431b5f1ca1458e677c217e06c3a518fefd9375aef6be256b6fce75403f2a517afd3ee422d594 +DIST thunderbird-144.0-kk.xpi 577611 BLAKE2B 73df37657cdda04a3c001c957fcf39758c73e919c69a18eb5d81ada29d2bc412f642711682aae5475ac386a67169bf968936b890a3029aaa735d51e12f469c8b SHA512 dcfd109f9598ee68cb397503139f8bfb5203240ab3ee7e6fb1ee33b2832c73fc0244ed7ff62f161e71c5301a9395a33c128f1b4230258859ea5ef1fc98cbb54f +DIST thunderbird-144.0-ko.xpi 519213 BLAKE2B ebec62b6872aa449b46127943d3eef05a479cce7c1897786f9afa5f93807cf274e70f6ab591edf17ac84b7b4e173abd5895ac54934c9021bb8cb0913015148e6 SHA512 574ce88f434257a8236f4a1107cd5dcb0db13ba22b9f53fbb9510aa6103e567f26e9a7f6275d1cff5b3414b371f109f8a844350b19abc6a484d25803c4c9485d +DIST thunderbird-144.0-lt.xpi 453903 BLAKE2B 7459c76c50cc802d127b28af280d671e1c17336d8488d87b382bd119b34237e04302076ac7d3fd8e1ca7cabd6be65a7c1a74284bc2c6e475da0598f8cdbf72c8 SHA512 a301b882903bb6525723275a5bfcf0b62f494cb58ccaa00f11fcd390e2cffc9c898f4e31aeadfb8d391021a3dae5fdbf0a92f2459cf61cf0903bd7f31d998e57 +DIST thunderbird-144.0-lv.xpi 392222 BLAKE2B d1be2c228546bbba9fb8d8df51ca03f6ee5399e2771a2e8b2a5ce74a9c2eb9bcc97e6b744cdf70ec42861b94fa607a51d46c92e3d9bebd87c8dd7708065565be SHA512 0dcc8349311af897fc376e9dc70b995371953b58e1f6dd04470882054a9f1fb7f03c849440b2647941fe02163e0710d7eab3b84149fe81894c1504e96a9c8c48 +DIST thunderbird-144.0-ms.xpi 352561 BLAKE2B 93802089f544e4a8c9e7701a6bd11b04fd55526d9b609203b6e6553de31ba0446102985af11f68c6674754a4f12a030792739d5b297619873121bd1a03479670 SHA512 b9bcf00d5aca28f1f4fb1e9033d24ff1d0eab44dfd141a09a61c2a934e808892aced06b7941e259535596c62a5d70baccb5a226a55adc90d1fed9668de244937 +DIST thunderbird-144.0-nb-NO.xpi 480220 BLAKE2B 9684ca85c400e79d633e0ba1318c902ad0b9d7f8c60e9d2a5b9b7be0ea3380b3626ab3306b7e5394c89b455b3b18503ff28bed00df0aab8896d6aff3b8da081e SHA512 e9d4eee66f3b1e18359e0c4c9cbeb5c5183c5ab4aa70e9bf6234905c54099128a921a983cf2e420f44e71314385a28690da0e72489c8b0e9a915cb5b6dbbe3bb +DIST thunderbird-144.0-nl.xpi 486178 BLAKE2B 6206e39e6c7f48bdeb5eeaac7b24792bfdae9e2747b28ae3815dad0e5b53388eac8b1c5b51ed1bbe1803595740f703db2349187d7e7d747c59d5165f9b4a347c SHA512 e31f87fb6fa2f0d5fc9e2401974ca9fd2ffb37c842e3928d39a1fdcc445a3ee3f30fcea980bf089c00cc807be8a90ddf0dab712a3c0b78137750ee148a8461e1 +DIST thunderbird-144.0-nn-NO.xpi 483700 BLAKE2B f95a8b56e157cdc382844dcb739dbe7579e067ff33ef2b0b6586398dc5fba02b50006d407e72428c2eea4ac764470d5281a74a944efc75206e450deadcf7a395 SHA512 568bbb6a2d55c6723011c38a4b60f4e13d42c2276492a2129426645df26f407595800b57f09c3cf9d1be6d50ac8f120a1b6ffaea40a333287e2fe39295f5f616 +DIST thunderbird-144.0-pa-IN.xpi 435512 BLAKE2B 3c1a966e3c9f50371b26b906c9aa3eded16d93d486c978b04a6d8502169ddd27ca5d9cbbc5c2290056f85ba5f10bba25bf2f7dd027a01ee72699bc70f27a7b91 SHA512 dbd6ba3ec219d91c5d49d7028315f2ee90b9529ff77e794772eaae591bbccb249a6d5cf538acb1058f5f6be4fec44e455d73b5c4aff2ec10a49b9488293124a3 +DIST thunderbird-144.0-pl.xpi 518949 BLAKE2B 682e60b55425cde372236e99855f0c2ade78bcc244d92112955b3f32262ae8986903e760bf949589d44b544e9de48b52bf8999cdbc9329ec042525b8b4cbdd5a SHA512 dd59f4ed78bdfa54a002f326ae6426f47f19162592a50aa77c11bb574c7638ec3636f31a7e4a67ff9059413e9d481248a2407d71683dc60a5ce5a474adf6196c +DIST thunderbird-144.0-pt-BR.xpi 493861 BLAKE2B cd7766170a315579a29535400e8fd46b2412008ac5ca91862367fdcb76fed53e8fb1cbeb3dfefeea2f77288cf4ea983a18b21fa7cd0a3866f669a07af42bae2b SHA512 94312b7ad776164e367cf02f235f1c35170862f3fcfd829e5658d4c132c1e2c78f0250a37a4adaad48fb53d3d3f54441456ae0af04c36e7916fa1aee35b52a97 +DIST thunderbird-144.0-pt-PT.xpi 488525 BLAKE2B 90fa0c6b0f92c807a665a719aaab203ebd733d98669699a2a90302f94e91ee0419642feece4088f2612de116ec4406cd25002cec652905cba6814dd184f9e702 SHA512 08374c19fd70f3ffe1fb46db1988dcca559b2353cfbd2c9667e783c7cc550a6d7d4d42e0200eacca51bc193435ee0bc3440f813cee3f7de265d263eca0b4d596 +DIST thunderbird-144.0-rm.xpi 490344 BLAKE2B 6363914aaa83383161519c62434d2a63086109164d090b830bd0787ddca41f77dc2c1c585b3d35b11bec0849bb73484722397e3a9b0813c558b0843404e5fa40 SHA512 1be8756ed2420f0ca48e1ff9c6a68afb14e8b9a89d3dc7524d8f97707402c14f91c80232cca2eaf9201f169d6991fbcd8146750084845a6bf2f96bdf255d85fb +DIST thunderbird-144.0-ro.xpi 463392 BLAKE2B fb9366502704bfba57e461e846948539187e92e132a40a6b7a927937d418e9ab12e56c8c94cf4297c6e7175ccad70a46c28201b92dcfe1fb81995f34dd670a56 SHA512 dce624e5e8d31701ad35099e6529018a6efa556a17864e93a3d874b6e9b894a6a4e0addefc67ee421ac6e2e0d09a6bf256c72432da29bf7cf3bbbd397ae8901e +DIST thunderbird-144.0-ru.xpi 598049 BLAKE2B 879a3ef635cc04c911373864cf2ba7d1e056d5837b1211bebac61e3dcc44dfeab05fd8d0a08f4d494c586a5d69b2069a99301284194da71f69a6f38a82058cf0 SHA512 29b539f827f9a970b268438b05521be0fa625a88c44ae920508527254a5d3aaf73747e05f2b798ccb148bae1aa55f4d71fd8c6b08b5054245e1b30123eacc732 +DIST thunderbird-144.0-sk.xpi 523814 BLAKE2B bd69d209055fb753a755c2f69baf6723352e0f30ab8f4a53a718a66b27083baedebdf4451ac7e30048f35178599020c5431eae9955f51b7cc7060d7acaf897ec SHA512 f2320898483e33e9a6bfeed3f731fbc69db606e49d55093fb62383740f214d11b0bdbdc155475d68d64bcd44b8df7272ad05762eea8e805ce52c4ba8e046f8e1 +DIST thunderbird-144.0-sl.xpi 489577 BLAKE2B 54b5531147adba784b5c4a50cf07aec00878843024c9b264472e1ffba3aa8d0f1edb3196417078b4d6cb5e9af39513e1310936389119b9249538240d6eb32f11 SHA512 c64c1deee336c114c3221d13acad45404f206ce07eaaa3700fa6c9b4c196d40b6b00dca5e86822367d190ba9f7d3b81784f2553af02455568c8105c3d5e700e8 +DIST thunderbird-144.0-sq.xpi 504315 BLAKE2B 18a869988537cdfae54394e5545b33a99ae0c71f49329806f8fecd2e76fbc8cf6d69b7d44be4aa278f77b17a08fd783eb6ea10f82c5f5b286996619d06fa42ca SHA512 3406a37eb880f727fb76c29023f2c18284443736667346ea3dd4f708662d5285962c7e0d23cfa1890f71dad023267d90469f23c5e23bd356f1afa17b16b350fb +DIST thunderbird-144.0-sr.xpi 496267 BLAKE2B b34b2e37146e54c37a7c2fbb3097b6c20c12773018a4b779c64fe068dfb6e83cbf52edcf239e82a58cd982a4bb2680024c1e9d9cda3d2bb34d87e14da9fa31bb SHA512 41d0dee130bce4f81b7ee6bbd0b566544a86a784cf4e1f66122588673a4e73ea00a76777d7173aca61c30f4ceee51682e2338ae7c0232d47959b5ccb4e70a9b0 +DIST thunderbird-144.0-sv-SE.xpi 488507 BLAKE2B 45fb6f782d29c2438a166b0b6c5368d1df514ea0af8afed8a9ce3895892f91bc7cbab1ecf06296d61386a5ed65aa837395d9ac35e1dd6cd9b31d552b070c4dd1 SHA512 590586d7357c6507ba0f4cf0f829049bddb9728330165a6c53b7409df9282a2bb6eaf4fc1fcf0343fae72f762b2d63b433164b67c0e7e87e9d1bac947fbfe95f +DIST thunderbird-144.0-th.xpi 569583 BLAKE2B f75ce75a95b5a2f5ab613b56f6605af4dae8faaffadd9f3c499529b431c2104c9180a0bdfe52a297b75ca59cfae9bc1991f0f67ada173caa19bd5c1f521b0ca4 SHA512 d7155efaf70ae4ca6a410a007e25ea42a17a17a82feaa2fde2358e4458ae843a6f93b1e86e3963f7c6f26f58161fa7cb97ed5bd4f74795c2b2eac64ad9de7d1b +DIST thunderbird-144.0-tr.xpi 499726 BLAKE2B 5bed5f49140fb22e0b3a5b14655f807a9dcdfeab763e1f14a9371a2ba452ad51a9c0365d5968243b050afce82fbbb206d7978b00d3e50d9894ad6bb1c7183c21 SHA512 ac09eecebc3e0bdf36ba365e88867320e7ad674dbce42ad3a8d35583352a29a695bfa20ae2bbc63645986cd7127236c7891cd33a97e310bdc85e1320e4144c01 +DIST thunderbird-144.0-uk.xpi 582675 BLAKE2B 7572dc36b935ba4152afa57f8530f3f6c6ec01f641582a01b4bc89da06d5380202370af751609e3c14170be345f0d92c05b4edcaa1dba3d5d16bcd88c91a1c08 SHA512 841e5465725b836819d19588b0ce91d088fc78f86b3a4ec3f221a4995023291e42c91396f8c4f119aeb12098e4d2a0a9784f01da3d0bb611765e91c6c07101c0 +DIST thunderbird-144.0-uz.xpi 355482 BLAKE2B ecc1b8fc57707ac1186ae86acd7e7c9acae97b4fdfa5cdca58af4b77fcab4d05d3be57845e7a0539197bccf94fd9ce0c2767fa7ae290317a47b90bb0f5982653 SHA512 0ad915a778d04a0ce79960ed72b282ded2932b1c0bc0d4391bf1a6d6df9cf6b07de7fcaf4bdd61cc0641be62fc47585992b0c9bb94e19c0ceb19b57b03264d91 +DIST thunderbird-144.0-vi.xpi 522915 BLAKE2B 213a470b0da51be434ce910f2ac83d52a22148156908ad7f159394e1dea23e6afb44171c9b9e0e6e52a81a1ff3cd23b275fd100a962c37577d654e5cb160ee4e SHA512 43fa5ebf1e8e701ed5c38d80bf79553f10457d4a60ba56b7fc89f57d1a8b689942f9d6b83cf016f51ba00063776b6b603456d20da15b4642114fbbb95e39845b +DIST thunderbird-144.0-zh-CN.xpi 511832 BLAKE2B b1d6bf2899b12f6f80ac0dd79e484c49c9e837a11c8c638fa1bc6918c8d360767b6679046795d4c7eed6b4efa63ee0e40acfa5979d9661b80d1668e46a6e2969 SHA512 f39bf97da2765610e33eeca5d0dc7b887eb7130212e64e5e0802a94d225f9200a48642062855afcdb86668af8eb4c598693009adbfeb1f7c22dbeb93ff83489b +DIST thunderbird-144.0-zh-TW.xpi 515424 BLAKE2B 66ddb28260f15abc1c3703d34e45ad341fb487cf5a24b287e34d0117ae2670e4744aa5afba9f526e67669a9420e4bb54661af5b75fa886605b9f5cc05bbc9e7f SHA512 cd58b523ff18b550bc62b0f5825917d297090a86c3b6f4fba0c746513e5d86f69f7dc7a33497d9bc2eaf98165d8d1c974d2d9c3520ddb40395424ab36a74749f +DIST thunderbird-144.0.source.tar.xz 762262852 BLAKE2B 835bad05e2c4c4e04a94659c8e008002ddb9fdbef701f22677046799a45de0b71b2d9b139bc3ca728f2a19b9dd16b346876d4e144812ff1d4408dd36d6dcfe95 SHA512 8557262b5abe8f1445cf2f8714b2241b4a4ce007c5e81a1d4b199aafe55cdd660c88d3ad4c210b5f96b2a4a85ba3f90650f6d3adea0bc756a344079efc0e4ccc diff --git a/mail-client/thunderbird/thunderbird-144.0.ebuild b/mail-client/thunderbird/thunderbird-144.0.ebuild new file mode 100644 index 0000000000000..56f2c10541046 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-144.0.ebuild @@ -0,0 +1,1155 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-144-patches-01.tar.xz" + +LLVM_COMPAT=( 19 20 ) + +PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.82.0" +RUST_NEEDS_LLVM=1 + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info llvm-r1 \ + multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" +S="${WORKDIR}/${PN}-${PV%_*}" + +if [[ -n ${MOZ_ESR} ]] ; then + SLOT="0/esr" +else + SLOT="0/stable" +fi + +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86" + +IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-pipewire system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + clang? ( + llvm-core/lld:${LLVM_SLOT} + pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.27.0 + net-libs/nodejs + virtual/pkgconfig + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + !X? ( + gui-wm/tinywl + x11-misc/xkeyboard-config + ) + )" +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.116 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + =media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-76.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-pipewire? ( media-video/pipewire:= ) + system-png? ( >=media-libs/libpng-1.6.45:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + ) + wifi? ( + kernel_linux? ( + || ( + net-misc/networkmanager + net-misc/connman[networkmanager] + ) + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +llvm_check_deps() { + if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then + einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then + einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + if use pgo ; then + if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + + # Get LTO from environment; export after this phase for use in src_configure (etc) + use_lto=no + + if [[ ${MERGE_TYPE} != binary ]] ; then + + if tc-is-lto; then + use_lto=yes + # LTO is handled via configure + filter-lto + fi + + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + if [[ ${use_lto} = yes ]] ; then + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-flags -Werror=lto-type-mismatch -Werror=odr + fi + + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif [[ ${use_lto} == "yes" ]] ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_setup + llvm-r1_pkg_setup + rust_pkg_setup + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # Clear tons of conditions, since PGO is hardware-dependant. + addpredict /dev + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi + + export use_lto +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if [[ ${use_lto} == "yes" ]]; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#915651 and bmo#1988166 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + rm -v "${WORKDIR}"/firefox-patches/*bmo-1988166-musl-remove-nonexisting-system-header-req.patch || die + fi + + # Enable jpeg-xl only in Firefox. + rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.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)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + elif use arm64 ; then + export RUST_TARGET="aarch64-unknown-linux-musl" + elif use loong; then + # Only the LP64D ABI of LoongArch64 is actively supported among + # the wider Linux ecosystem, so the assumption is safe. + export RUST_TARGET="loongarch64-unknown-linux-musl" + elif use ppc64 ; then + export RUST_TARGET="powerpc64le-unknown-linux-musl" + elif use riscv ; then + # We can pretty safely rule out any 32-bit riscvs, but 64-bit riscvs also have tons of + # different ABIs available. riscv64gc-unknown-linux-musl seems to be the best working + # guess right now though. + elog "riscv detected, forcing a riscv64 target for now." + export RUST_TARGET="riscv64gc-unknown-linux-musl" + else + die "Unknown musl chost, please post a new bug with your rustc -vV along with emerge --info" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-dbus \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-packed-relative-relocs \ + --enable-release \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-ffi \ + --with-system-gbm \ + --with-system-libdrm \ + --with-system-nspr \ + --with-system-nss \ + --with-system-pixman \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --enable-update-channel=${update_channel} + + # Whitelist to allow unkeyworded arches to build with "--disable-rust-simd" by default. + if use amd64 || use arm64 || use loong ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use loong || use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # riscv-related options, bgo#947337, bgo#947338 + if use riscv ; then + mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + mozconfig_add_options_ac 'Disable webrtc for RISC-V' --disable-webrtc + fi + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-pipewire + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + if [[ ${use_lto} == "yes" ]] ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + # mold expects the -flto line from *FLAGS configuration, bgo#923119 + append-ldflags "-flto=thin" + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from llvm-core/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if [[ -n ${MOZ_ESR} ]] ; then + local desktop_filename="${PN}-esr.desktop" + else + local desktop_filename="${PN}.desktop" + fi + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_postinst() { + xdg_pkg_postinst + + if ver_replacing -lt 136.0 ; then + elog "In this version of Thunderbird, upstream introduced an in-app notification" + elog "system. Setting pref 'mail.inappnotifications.enabled' to false and nullifying" + elog "'mail.inappnotifications.url' may help you avoid these messages, if you don't" + elog "wish to receive them." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +}