summaryrefslogtreecommitdiff
path: root/net-mail/mu
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/mu')
-rw-r--r--net-mail/mu/Manifest12
-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.2.ebuild101
-rw-r--r--net-mail/mu/mu-1.12.3.ebuild103
-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.5.ebuild)5
7 files changed, 45 insertions, 244 deletions
diff --git a/net-mail/mu/Manifest b/net-mail/mu/Manifest
index d18f66406a3f..c40599ff47da 100644
--- a/net-mail/mu/Manifest
+++ b/net-mail/mu/Manifest
@@ -1,14 +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.2.tar.xz 708852 BLAKE2B 72b9a0f8acad114d37a6dc7c214df5c6b2f3691f0f35dfe8408b3420e6d06d7e6345cd3db7bc32047c970367ac9d0374551fbbdff3616bcf9c96ebb7f9efcec5 SHA512 8733bdc6bed6e76278f052db8f270178f4ac269d610cd6f2ad44577be9b6fc8daeb85cd650b7ef2a21d141262065ecacdc9177fabd4bbe971d917943a2669b07
-DIST mu-1.12.3.tar.xz 714488 BLAKE2B 2f5ded323d94a028c33c447e877ec3cea3677bf69076893dd6751f69c47764eee2d779c13e8b5c601d0bd04beca4b8cef705a7fd2587fe1f81d22c381debee7a SHA512 27998f65636b42f7933cc39878d8900552aa1c94c90ea54f81d789c01eec5ddfdb93eb508b78a6416497c7c109193e1457b1ff2bafe98aa82ec88a4b5fc03832
DIST mu-1.12.4.tar.xz 715232 BLAKE2B 5886f07ad6fb12d8a538de80c4681cd2ba416da82839519a70676eabd2d2eef1fa1a53d004ab1524966682a4d6c2eef7e67cc4efc6f5e7c380e732b7614de854 SHA512 ddc0430fe41db3639433f60105a67bb184e611d8438a49e51fb9ea4b5b404c270bb78c9165cb3136a3b402a91a65735d917c0868ca4d134f13b4971b028da5b5
-DIST mu-1.12.5.tar.xz 717480 BLAKE2B f67b2231124b48271f3aff27cafa602aa8d6129a1ade7f241c92e28c5d9886b7b4deeeb6473ad5f9d228ae6a3059c915286b42ff60ccb364411a2dd4ee69a195 SHA512 25bdf9898b5058a934618dfd49dbbae56ce9629a10de425f91f7c9c145713d58d3668f09c64bbc854efe7c87e30b09aa080405cbb14d9b6df087d2ed8b3122c5
+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.2.ebuild 2383 BLAKE2B 258e8bbe267a97db89f934dcd6135f9912c04620c15a50ba46b2f5328e4fadfa2b8ac1df1bc2e83f35f0e4f43404744670c1f1583243b82821fa45363af09235 SHA512 97654240ea9c1db7c695724442c4d83fbdf8207425333df5dcdaea4039d3e13e16dfc12d9d888f3cab4f404b9d1cac32e8c9fb33a7ca7be5525535d2d6b58f3e
-EBUILD mu-1.12.3.ebuild 2420 BLAKE2B 3a6a5a57787475abf2a24a71e643054c81ff2514e3d3ba94498d0806f34232fb3266540bd5836e87daeaf6cc8941c5ea483b19f2aba8c6e628c30be66c24bc3c SHA512 4d429208cf30de5d7da13f75293a6234adf95d77bb77c8a44625a2f4d67c755343c7f9929cb6cc8a029cf4390cd994834c0d53748390a70169273f7748748022
-EBUILD mu-1.12.4.ebuild 2288 BLAKE2B 7bbfbc86424b22c6eba1c36e720f8f00dd8a50419d41fc291c91e0f1331666b0263700025123c9830402244e9f146e7a6df0035e4267eee48fd541eadaf971ae SHA512 88d603cbe7a152e43fd93a150d617816cb6be9c023be116a182fe9491d5e842dce3c7987953283767facc56cdcaf95d39f1b5462b9d2a55ca57ee3685dc64b25
-EBUILD mu-1.12.5.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.2.ebuild b/net-mail/mu/mu-1.12.2.ebuild
deleted file mode 100644
index f4e55a3d9779..000000000000
--- a/net-mail/mu/mu-1.12.2.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit elisp-common meson
-
-DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
-HOMEPAGE="https://www.djcbsoftware.nl/code/mu/ https://github.com/djcb/mu"
-SRC_URI="https://github.com/djcb/mu/releases/download/v${PV}/${P}.tar.xz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
-IUSE="emacs readline"
-
-DEPEND="
- dev-libs/glib:2
- dev-libs/gmime:3.0
- >=dev-libs/xapian-1.4:=
- emacs? ( >=app-editors/emacs-25.3:* )
- readline? ( sys-libs/readline:= )"
-RDEPEND="${DEPEND}"
-BDEPEND="
- sys-apps/texinfo
- virtual/pkgconfig
-"
-
-PATCHES=(
- # https://bugs.gentoo.org/925503
- "${FILESDIR}"/${PN}-1.12.0-no-python.patch
-
- # https://bugs.gentoo.org/928361
- "${FILESDIR}"/${PN}-1.12.2-musl.patch
-)
-
-SITEFILE="70mu-gentoo-autoload.el"
-
-src_prepare() {
- default
-
- # Don't install NEWS.org into /usr/share/doc.
- sed -i '/NEWS.org/,+1 d' meson.build || die
- sed -i '/mu4e-about.org/d' mu4e/meson.build || die
-
- # Don't compress the info file.
- sed -i '/gzip/d' build-aux/meson-install-info.sh || die
-
- # Instead, put it in /usr/share/doc/${PF}.
- sed -i "/MU_DOC_DIR/s/mu/${PF}/" mu4e/meson.build || die
-}
-
-src_configure() {
- local emesonargs=(
- $(meson_feature readline)
- -Dcld2=disabled
- -Demacs="$(usex emacs "${EMACS}" emacs-not-enabled)"
- # TODO: revisit this, it's not actually deprecated, just been reworked
- -Dguile=disabled
- )
- meson_src_configure
-}
-
-src_install() {
- meson_src_install
-
- # Since meson no longer installs NEWS.org, install it with dodoc.
- # Also, it must be uncompressed so that it can be viewed with
- # mu4e-info.
- docompress -x /usr/share/doc/${PF}/NEWS.org
- dodoc NEWS.org
-
- if use emacs; then
- # Same as above.
- docompress -x /usr/share/doc/${PF}/mu4e-about.org
- dodoc mu4e/mu4e-about.org
-
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- fi
-}
-
-pkg_preinst() {
- if [[ -n ${REPLACING_VERSIONS} ]]; then
- elog "After upgrading from an old major version, you should"
- elog "rebuild your mail index."
- fi
-}
-
-pkg_postinst() {
- if use emacs; then
- einfo "To use mu4e you need to configure it in your .emacs file"
- einfo "See the manual for more information:"
- einfo "https://www.djcbsoftware.nl/code/mu/mu4e/"
-
- elisp-site-regen
- fi
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/net-mail/mu/mu-1.12.3.ebuild b/net-mail/mu/mu-1.12.3.ebuild
deleted file mode 100644
index 7f369aaa2f8a..000000000000
--- a/net-mail/mu/mu-1.12.3.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit elisp-common meson
-
-DESCRIPTION="Set of tools to deal with Maildirs, in particular, searching and indexing"
-HOMEPAGE="https://www.djcbsoftware.nl/code/mu/ https://github.com/djcb/mu"
-SRC_URI="https://github.com/djcb/mu/releases/download/v${PV}/${P}.tar.xz"
-
-# mu: GPL-3+
-# + cli11: BSD
-# + fmt: MIT
-# + tl: CC0-1.0
-# + 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"
-IUSE="emacs readline"
-
-DEPEND="
- dev-libs/glib:2
- dev-libs/gmime:3.0
- >=dev-libs/xapian-1.4:=
- emacs? ( >=app-editors/emacs-25.3:* )
- readline? ( sys-libs/readline:= )"
-RDEPEND="${DEPEND}"
-BDEPEND="
- sys-apps/texinfo
- virtual/pkgconfig
-"
-
-PATCHES=(
- # https://bugs.gentoo.org/925503
- "${FILESDIR}"/${PN}-1.12.0-no-python.patch
-)
-
-SITEFILE="70mu-gentoo-autoload.el"
-
-src_prepare() {
- default
-
- # Don't install NEWS.org into /usr/share/doc.
- sed -i '/NEWS.org/,+1 d' meson.build || die
- sed -i '/mu4e-about.org/d' mu4e/meson.build || die
-
- # Don't compress the info file.
- sed -i '/gzip/d' build-aux/meson-install-info.sh || die
-
- # Instead, put it in /usr/share/doc/${PF}.
- sed -i "/MU_DOC_DIR/s/mu/${PF}/" mu4e/meson.build || die
-}
-
-src_configure() {
- local emesonargs=(
- $(meson_feature readline)
- -Dcld2=disabled
- -Demacs="$(usex emacs "${EMACS}" emacs-not-enabled)"
- # TODO: revisit this, it's not actually deprecated, just been reworked
- -Dguile=disabled
- )
- meson_src_configure
-}
-
-src_install() {
- meson_src_install
-
- # Since meson no longer installs NEWS.org, install it with dodoc.
- # Also, it must be uncompressed so that it can be viewed with
- # mu4e-info.
- docompress -x /usr/share/doc/${PF}/NEWS.org
- dodoc NEWS.org
-
- if use emacs; then
- # Same as above.
- docompress -x /usr/share/doc/${PF}/mu4e-about.org
- dodoc mu4e/mu4e-about.org
-
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- fi
-}
-
-pkg_preinst() {
- if [[ -n ${REPLACING_VERSIONS} ]]; then
- elog "After upgrading from an old major version, you should"
- elog "rebuild your mail index."
- fi
-}
-
-pkg_postinst() {
- if use emacs; then
- einfo "To use mu4e you need to configure it in your .emacs file"
- einfo "See the manual for more information:"
- einfo "https://www.djcbsoftware.nl/code/mu/mu4e/"
-
- elisp-site-regen
- fi
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
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.5.ebuild b/net-mail/mu/mu-1.12.6-r1.ebuild
index 974051ec7307..d458d77cb7ca 100644
--- a/net-mail/mu/mu-1.12.5.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="