summaryrefslogtreecommitdiff
path: root/net-mail/mu
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/mu')
-rw-r--r--net-mail/mu/Manifest6
-rw-r--r--net-mail/mu/files/mu-1.12.2-musl.patch31
-rw-r--r--net-mail/mu/files/mu-1.12.4-timet.patch34
-rw-r--r--net-mail/mu/mu-1.12.4-r1.ebuild (renamed from net-mail/mu/mu-1.12.4.ebuild)3
-rw-r--r--net-mail/mu/mu-1.12.6-r1.ebuild (renamed from net-mail/mu/mu-1.12.6.ebuild)5
5 files changed, 44 insertions, 35 deletions
diff --git a/net-mail/mu/Manifest b/net-mail/mu/Manifest
index 4ffc2e24936e..c40599ff47da 100644
--- a/net-mail/mu/Manifest
+++ b/net-mail/mu/Manifest
@@ -1,10 +1,10 @@
AUX 70mu-gentoo-autoload.el 68 BLAKE2B 518f6544d9b36a845e58fca8c4c9dc02c6855f48576508d47718afb1b08b4f83ce87f257e68756690f4ac70ed9770b7064f2613dc3c4077bbcf9b826512644d0 SHA512 ae50746ba93e3ac81a11d3c8746b72182fcdadc3e29966d65233debd8e6b8aa56f76f5e6a70fc68f7761e4dd55045d2b32e3765cedcced4813de3682187beeea
AUX mu-1.12.0-no-python.patch 1372 BLAKE2B 76a32d7a4a90139e3e3ebcc6fc83b1ddccd6ba4e58337949bff89ebd7ad01109c34cd1765ee22a1058e4e1f06ec5d5b5cea3c84091ede82bcea18212a42f83e3 SHA512 3a58fcf26ef8fc02f5515af7abc5a8d0093a5e05f079fa5eb4eab4e77e15599cea94a52fb5de9437b8d51d683229a5556bfca311526f1f546c4d434c6a35117d
-AUX mu-1.12.2-musl.patch 938 BLAKE2B 90e6e25033472c03730eec8076c055c92fc6d92a014c241a634f68cb099a6406d61ba49d0a78255a633c25b8e20b7143290ccd79e45d89556656a9cf9798875a SHA512 b76e1e4465e86b42005462d4b8cb225afef2d21050602be06fb1ec7e47bbb731dd3e2a572599527767638ce1f3ff30ceed259b670e2ec0d843163ccc653db77e
+AUX mu-1.12.4-timet.patch 1407 BLAKE2B 3447c4de7e4c0db5d5cb477164dd82b8089125a934aea7348ba01a88673254bd103aece17dfaf487348284759ecab1ff58653a978734850023a50e6ec80c3c9e SHA512 aa0b238d33fa26842c79199bb63a3790560c34ae7b0f2e5782faa6c9155735d401749b008df5e65d133a9efb0d3a16dbeb580904108962008c0ef42cd111765a
DIST mu-1.10.8.tar.xz 570792 BLAKE2B 6e65e77544011d0f6b8fb1a5ac4dfe074fe6af3504e2ce2577185a280af43c8d40e7ec3ed6bde90c6b6c6b4cd678a6ae5bae9430f7c2a03451f3f08fffe1c963 SHA512 d77fe955c44c09272feb7cd903dfc6f2a3b5974b81fef82bdb553ed2079e68451bb1ed11ce338ee2dfe9be835f0d99cb4ce0c4b41f43ecfad76e978732243c71
DIST mu-1.12.4.tar.xz 715232 BLAKE2B 5886f07ad6fb12d8a538de80c4681cd2ba416da82839519a70676eabd2d2eef1fa1a53d004ab1524966682a4d6c2eef7e67cc4efc6f5e7c380e732b7614de854 SHA512 ddc0430fe41db3639433f60105a67bb184e611d8438a49e51fb9ea4b5b404c270bb78c9165cb3136a3b402a91a65735d917c0868ca4d134f13b4971b028da5b5
DIST mu-1.12.6.tar.xz 719392 BLAKE2B 75afdfa95f6711fb94e40757c23dd404e888610d36c7d6cbf29727770dbe8fcd1a207b7eae7e1cd06dcab2f088eb38cf7d045a59efbfa3e700d85a0e5f95164b SHA512 c3ba7b4c90d2749364f8c414d2eadcc4e6021237416d92cefd4542688b2fdafb1215a7b75b22fcafa68d349a22b69556d707e2c1e2752941e469a9231bb64ced
EBUILD mu-1.10.8-r1.ebuild 2196 BLAKE2B 94f794bd3be0a72cb038225aa78644258a85558aba0db46d9f0b3604b34f20111dd3f76e87a2925d619068d48bf5e07c26861ea1674f23e74aeedeb89ef36248 SHA512 b6a997cf017581293c6b0a28f1b74938edff5f50571a49b56a00cd5877b0d738b6f3f12b185668640fa4862950ce42ff8994b54a607eb6f8ee2a3142d31fe686
-EBUILD mu-1.12.4.ebuild 2288 BLAKE2B 7bbfbc86424b22c6eba1c36e720f8f00dd8a50419d41fc291c91e0f1331666b0263700025123c9830402244e9f146e7a6df0035e4267eee48fd541eadaf971ae SHA512 88d603cbe7a152e43fd93a150d617816cb6be9c023be116a182fe9491d5e842dce3c7987953283767facc56cdcaf95d39f1b5462b9d2a55ca57ee3685dc64b25
-EBUILD mu-1.12.6.ebuild 2290 BLAKE2B 2bce26b9d77d67712ccc8025945cb0e9ef7edf2bcc3d0ede07f3753d1ce54b4ed742235cb6c700dbdf0caf9d66b74ec6df3819b8785b22efdd24d1286e3df3bc SHA512 f09876f6f835564789b1eec59a874ffb6bd6e4737589e0b3ea79384cac3b14db24ff457efcc18c5d782b45b58ed3e012d9d38d6f2f135abef9f2d6ff995f9e80
+EBUILD mu-1.12.4-r1.ebuild 2363 BLAKE2B a0309ca89430c5cbb30128abeeab4450708558aef5ddb97a2b2f2e5f9fb815c30b4663d4ff527abe3a49c65ca24fe2e10952e51245b2b47b60c49f7a54d2652d SHA512 1462eb58d24d8614baf66b7029166d3dea7136dcd80b38c40b08704255f7e0943731bd24e3b2747c2b425c2a1ed2461321da6421629f3c6a8758d091dfbab193
+EBUILD mu-1.12.6-r1.ebuild 2361 BLAKE2B ac7a3812a5606b6f29da6419854dcb631197ff772fbfc755cc43fa0fb899bedf352c9534e919a1a219c5824d230ea83b307cd89b05905263499ab1f2447308d7 SHA512 8e84361011ba1694e580c28b6433d0d86cdbd9f4c97ca2090ce4860870fc1379ebd8cb389462733ba74ee495adaf26ad5559d77fe88e03d7cbba7054d1e6894a
MISC metadata.xml 893 BLAKE2B 4d21c0794fc184957939ebaab628b9a1abe0bbdb63915157e266ce0a773fe3acc52722d010d3b4e096f86257e945c0f9dd51cd0dbe54c37f717408ffe942bc06 SHA512 7f499e039820d12c9acd0affe2a402fc53ee6367684a3c2ba25669987f02b0fabb3db0de978e197876bd9e3af315734af398ba7c8305119c511d59c709b6e225
diff --git a/net-mail/mu/files/mu-1.12.2-musl.patch b/net-mail/mu/files/mu-1.12.2-musl.patch
deleted file mode 100644
index 35f6017e56f3..000000000000
--- a/net-mail/mu/files/mu-1.12.2-musl.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From: https://github.com/djcb/mu/pull/2677
-From: Matthew Smith <matthew@gentoo.org>
-Date: Mon, 1 Apr 2024 11:23:39 +0000
-Subject: [PATCH] mu-utils: Fix build with musl
-
-In musl, `stdout` is a macro that expands to `(stdout)`, and
-`::(stdout)` is not valid C++.
-
-../mu-1.12.2/lib/utils/mu-utils.hh:268:32: error: expected
- id-expression before '(' token
- 268 | ::stdout);
- | ^~~~~~
-
-Nothing in the Mu namespace is named stdout, so it is safe to drop
-the `::`.
-
-Bug: https://bugs.gentoo.org/928361
---- a/lib/utils/mu-utils.hh
-+++ b/lib/utils/mu-utils.hh
-@@ -265,7 +265,7 @@ bool fputs_encoded (const std::string& str, FILE *stream);
- template<typename...T>
- static inline bool mu_print_encoded(fmt::format_string<T...> frm, T&&... args) noexcept {
- return fputs_encoded(fmt::format(frm, std::forward<T>(args)...),
-- ::stdout);
-+ stdout);
- }
-
- /**
---
-2.44.0
-
diff --git a/net-mail/mu/files/mu-1.12.4-timet.patch b/net-mail/mu/files/mu-1.12.4-timet.patch
new file mode 100644
index 000000000000..90ee1b60ba15
--- /dev/null
+++ b/net-mail/mu/files/mu-1.12.4-timet.patch
@@ -0,0 +1,34 @@
+From 075394b35f33bcf684eb0b0023a8640a3ce9c8f5 Mon Sep 17 00:00:00 2001
+From: Matthew Smith <matthew@gentoo.org>
+Date: Mon, 26 Aug 2024 14:46:54 +0000
+Subject: [PATCH] lib: use time_t_max for empty datetime
+
+In Mu::parse_date_time, when provided with an empty string, return
+time_t_max instead of G_MAXINT64. For systems with a 64-bit time_t, there
+is no difference. With a 32-bit time_t it caused a test to fail:
+
+ not ok /utils/date-basic - ERROR:../mu-1.12.4/lib/utils/tests/test-utils.cc:92
+ void test_date_basic(): assertion failed
+ (parse_date_time(std::get<0>(test), std::get<1>(test)).value_or(-1)
+ == std::get<2>(test)): (18446744073709551615 == 2147483647)
+
+This edge case probably only affected the test, as when other parts of
+the application call parse_date_time (e.g. mu-server.cc and
+mu-query-processor.cc), they check if the input string is empty first.
+
+Upstream: https://github.com/djcb/mu/pull/2749
+Bug: https://bugs.gentoo.org/933093
+--- a/lib/utils/mu-utils.cc
++++ b/lib/utils/mu-utils.cc
+@@ -493,7 +493,7 @@ Mu::parse_date_time(const std::string& dstr, bool is_first, bool utc)
+
+ /* one-sided dates */
+ if (dstr.empty())
+- return is_first ? 0 : G_MAXINT64;
++ return is_first ? time_t_min : time_t_max;
+ else if (dstr == "today" || dstr == "now")
+ return special_date_time(dstr, is_first);
+ else if (dstr.find_first_of("ymdwhMs") != std::string::npos)
+--
+2.46.0
+
diff --git a/net-mail/mu/mu-1.12.4.ebuild b/net-mail/mu/mu-1.12.4-r1.ebuild
index 23e6d037c065..7d7aa9f54a3f 100644
--- a/net-mail/mu/mu-1.12.4.ebuild
+++ b/net-mail/mu/mu-1.12.4-r1.ebuild
@@ -34,6 +34,9 @@ BDEPEND="
PATCHES=(
# https://bugs.gentoo.org/925503
"${FILESDIR}"/${PN}-1.12.0-no-python.patch
+
+ # https://bugs.gentoo.org/933093
+ "${FILESDIR}"/${PN}-1.12.4-timet.patch
)
DOC_CONTENTS="
diff --git a/net-mail/mu/mu-1.12.6.ebuild b/net-mail/mu/mu-1.12.6-r1.ebuild
index 974051ec7307..d458d77cb7ca 100644
--- a/net-mail/mu/mu-1.12.6.ebuild
+++ b/net-mail/mu/mu-1.12.6-r1.ebuild
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/djcb/mu/releases/download/v${PV}/${P}.tar.xz"
# + variant-lite: Boost-1.0
LICENSE="BSD Boost-1.0 CC0-1.0 GPL-3+ MIT"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="amd64 arm arm64 ~riscv x86 ~x64-macos"
IUSE="emacs readline"
DEPEND="
@@ -34,6 +34,9 @@ BDEPEND="
PATCHES=(
# https://bugs.gentoo.org/925503
"${FILESDIR}"/${PN}-1.12.0-no-python.patch
+
+ # https://bugs.gentoo.org/933093
+ "${FILESDIR}"/${PN}-1.12.4-timet.patch
)
DOC_CONTENTS="