From cb647b6ca1322275f60d4867868cc938393371da Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Wed, 5 May 2021 13:53:28 +0000 Subject: [PATCH] notmuch: update to 0.32 --- packages/notmuch/build.sh | 4 ++-- packages/notmuch/lib-config.cc.patch | 21 +++++++++++++++++++++ packages/notmuch/notmuch-config.c.patch | 22 ---------------------- 3 files changed, 23 insertions(+), 24 deletions(-) create mode 100644 packages/notmuch/lib-config.cc.patch delete mode 100644 packages/notmuch/notmuch-config.c.patch diff --git a/packages/notmuch/build.sh b/packages/notmuch/build.sh index 5443e5f04..2fcf297e7 100644 --- a/packages/notmuch/build.sh +++ b/packages/notmuch/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://notmuchmail.org TERMUX_PKG_DESCRIPTION="Thread-based email index, search and tagging system" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=0.31.3 +TERMUX_PKG_VERSION=0.32 TERMUX_PKG_SRCURL=https://notmuchmail.org/releases/notmuch-${TERMUX_PKG_VERSION}.tar.xz -TERMUX_PKG_SHA256=484041aed08f88f3a528a5b82489b6cda4090764228813bca73678da3a753aca +TERMUX_PKG_SHA256=e91e5706ffb615d5ebc5a47ce197d4ec2efca06eea77a0ddcb7af2e4c2543646 TERMUX_PKG_DEPENDS="glib, libc++, libgmime, libtalloc, libxapian, zlib" TERMUX_PKG_BREAKS="notmuch-dev" TERMUX_PKG_REPLACES="notmuch-dev" diff --git a/packages/notmuch/lib-config.cc.patch b/packages/notmuch/lib-config.cc.patch new file mode 100644 index 000000000..364f90922 --- /dev/null +++ b/packages/notmuch/lib-config.cc.patch @@ -0,0 +1,21 @@ +diff -uNr notmuch-0.32/lib/config.cc notmuch-0.32.mod/lib/config.cc +--- notmuch-0.32/lib/config.cc 2021-05-02 10:05:44.000000000 +0000 ++++ notmuch-0.32.mod/lib/config.cc 2021-05-05 14:32:33.893497609 +0000 +@@ -473,6 +473,7 @@ + pw_buf = (char *) talloc_zero_size (ctx, pw_buf_size); + } + ++#if !defined(__ANDROID__) || defined(__LP64__) + if (e == 0) { + char *comma = strchr (passwd.pw_gecos, ','); + if (comma) +@@ -483,6 +484,9 @@ + } else { + name = talloc_strdup (ctx, ""); + } ++#else ++ name = talloc_strdup (ctx, ""); ++#endif + + talloc_free (pw_buf); + diff --git a/packages/notmuch/notmuch-config.c.patch b/packages/notmuch/notmuch-config.c.patch deleted file mode 100644 index ccba609ef..000000000 --- a/packages/notmuch/notmuch-config.c.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -u -r ../notmuch-0.24.1/notmuch-config.c ./notmuch-config.c ---- ../notmuch-0.24.1/notmuch-config.c 2017-04-01 14:29:38.000000000 +0200 -+++ ./notmuch-config.c 2017-04-07 01:01:21.205661688 +0200 -@@ -157,6 +157,8 @@ - pw_buf = talloc_zero_size(ctx, pw_buf_size); - } - -+#if !defined(__ANDROID__) || defined(__LP64__) -+ /* Only 64-bit Android has the pw_gecos field. */ - if (e == 0) { - char *comma = strchr (passwd.pw_gecos, ','); - if (comma) -@@ -167,6 +169,9 @@ - } else { - name = talloc_strdup (ctx, ""); - } -+#else -+ name = talloc_strdup (ctx, ""); -+#endif - - talloc_free (pw_buf); -