mu: update from 1.4.15 to 1.6.5

This commit is contained in:
Butta 2021-09-01 22:32:06 +05:30
parent 78753edc32
commit 0558ea616d
2 changed files with 2 additions and 24 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.djcbsoftware.nl/code/mu/
TERMUX_PKG_DESCRIPTION="Maildir indexer/searcher and Emacs client (mu4e)"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.4.15
TERMUX_PKG_VERSION=1.6.5
TERMUX_PKG_SRCURL=https://github.com/djcb/mu/releases/download/$TERMUX_PKG_VERSION/mu-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=f7524e17de09470d1369bc1b3959b1f8ac1286eff2d442db33f8355726f8342a
TERMUX_PKG_SHA256=5040aa15acb3722901194693dc67fc54b9551347b921b9b690b14a1a7ec83847
TERMUX_PKG_DEPENDS="glib, libc++, libxapian, libgmime"

View File

@ -1,22 +0,0 @@
Fix for error in i686 build:
/home/builder/.termux-build/mu/src/lib/mu-store.cc:107:26: error: non-constant-expression cannot be narrowed from type 'long long' to 'time_t' (aka 'long') in initializer list [-Wc++11-narrowing]
created_{atoll(db()->get_metadata(CreatedKey).c_str())},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builder/.termux-build/mu/src/lib/mu-store.cc:107:26: note: insert an explicit cast to silence this issue
created_{atoll(db()->get_metadata(CreatedKey).c_str())},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<time_t>( )
diff -u -r ../mu-1.4.3/lib/mu-store.cc ./lib/mu-store.cc
--- ../mu-1.4.3/lib/mu-store.cc 2020-03-05 20:40:06.000000000 +0000
+++ ./lib/mu-store.cc 2020-04-29 12:10:46.086507000 +0000
@@ -104,7 +104,7 @@
std::make_shared<Xapian::Database>(db_path_) :
std::make_shared<Xapian::WritableDatabase>(db_path_, Xapian::DB_OPEN)},
root_maildir_{db()->get_metadata(RootMaildirKey)},
- created_{atoll(db()->get_metadata(CreatedKey).c_str())},
+ created_{static_cast<time_t>(atoll(db()->get_metadata(CreatedKey).c_str()))},
schema_version_{db()->get_metadata(SchemaVersionKey)},
personal_addresses_{Mu::split(db()->get_metadata(PersonalAddressesKey),",")},
contacts_{db()->get_metadata(ContactsKey)} {