From e352ed6ab455015a8aa2525513bcee45c4ade935 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Fri, 17 Apr 2020 15:07:17 -0400 Subject: [PATCH] neomutt: update to 20200417. --- .../neomutt/patches/00-bugfix-20200417.patch | 39 +++++++++++++++++++ srcpkgs/neomutt/template | 13 +++++-- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/neomutt/patches/00-bugfix-20200417.patch diff --git a/srcpkgs/neomutt/patches/00-bugfix-20200417.patch b/srcpkgs/neomutt/patches/00-bugfix-20200417.patch new file mode 100644 index 00000000000..7fe789ad622 --- /dev/null +++ b/srcpkgs/neomutt/patches/00-bugfix-20200417.patch @@ -0,0 +1,39 @@ +VOID PACKAGING NOTE: This was added to our release at upstream's request. +Upstream released, found a bug, fixed it, and reached out to their downstream +packagers to get this fix included. + +This is instead of breaking downstream packagers by moving the tag. We thank +neomutt upstream for their attention to packaging this software. + +commit 9e7537caddb9c6adc720bb3322a7512cf51ab025 (HEAD -> master, origin/master, origin/HEAD) +Author: Richard Russon +Date: Fri Apr 17 15:36:58 2020 +0100 + + ensure OP_NULL is always first + + A recent refactoring altered the ordering of the OPs when autocrypt was + enabled. This mean that OP_NULL wasn't 0 any more. + + Fixes: #2268 + +diff --git a/opcodes.h b/opcodes.h +index 701df71f8..3984d3a03 100644 +--- opcodes.h ++++ opcodes.h +@@ -37,7 +37,6 @@ + #endif + + #define OPS_CORE(_fmt) \ +- _fmt(OP_NULL, N_("null operation")) \ + _fmt(OP_ATTACH_COLLAPSE, N_("toggle display of subparts")) \ + _fmt(OP_ATTACH_VIEW_MAILCAP, N_("force viewing of attachment using mailcap")) \ + _fmt(OP_ATTACH_VIEW_TEXT, N_("view attachment as text")) \ +@@ -317,6 +316,7 @@ + _fmt(OP_COMPOSE_SMIME_MENU, N_("show S/MIME options")) \ + + #define OPS(_fmt) \ ++ _fmt(OP_NULL, N_("null operation")) \ + OPS_AUTOCRYPT(_fmt) \ + OPS_CORE(_fmt) \ + OPS_SIDEBAR(_fmt) \ + diff --git a/srcpkgs/neomutt/template b/srcpkgs/neomutt/template index 4ec4f53771d..9db62c850bc 100644 --- a/srcpkgs/neomutt/template +++ b/srcpkgs/neomutt/template @@ -1,15 +1,17 @@ # Template file for 'neomutt' pkgname=neomutt -version=20200320 +version=20200417 revision=1 wrksrc="neomutt-${version}" build_style=configure -configure_args="--ssl --gpgme --notmuch --gdbm --lua --sasl --zlib" +configure_args="--ssl --gpgme --notmuch --gdbm --lua --sasl --zlib --tdb + --rocksdb" make_check_target=test conf_files="/etc/neomuttrc" # neomutt needs either w3m/lynx/elinks to build manual.html hostmakedepends="docbook-xsl gettext libxslt perl tcl w3m" makedepends="aspell-devel gdbm-devel gettext-devel gpgme-devel libidn-devel + rocksdb-devel tdb-devel libnotmuch-devel libressl-devel libsasl-devel lua-devel zlib-devel" depends="mime-types" short_desc="Mutt with misc fixes and feature patches" @@ -17,7 +19,7 @@ maintainer="Toyam Cox " license="GPL-2.0-or-later" homepage="https://neomutt.org/" distfiles="https://github.com/neomutt/neomutt/archive/${version}.tar.gz" -checksum=69daf2e0633dee7e8bdba74ab714adfa70e8f078028b56d612228c2aa836aafa +checksum=6ed358053ae17694b580f3b5b13eec9f00f5a7320e76fae6fba767607c40cc48 # fix: if [ "${XBPS_CROSS_BASE}" ]; then @@ -36,6 +38,10 @@ post_install() { vsconf contrib/gpg.rc Muttrc.gpg.dist } +pre_check() { + export NEOMUTT_TEST_DIR=$(mktemp -d) +} + # REMARKS: # Conf file is in a --sysconfdir=/etc/$pkgname/Muttrc and then alternatives to # /etc/Muttrc. In addition, a dependency on mime-types is broken by having @@ -51,3 +57,4 @@ post_install() { # /etc/neomuttrc now exists, and there are no conflicts with regular mutt. # Due to this, an install.msg was added and all alternatives were removed. # Cross compiling was fixed in 20180323 +# 20200417 had some build changes, none referenced explicitly by our templates.