From: Logarithmus <Logarithmus@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: meli-0.6.2
Date: Sun, 22 Nov 2020 01:27:42 +0100 [thread overview]
Message-ID: <20201122002742.c8Cac-5I9nZAzRUYHVUBPJFt3e4rYtzDHA3wSRTf-HM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26551@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 490 bytes --]
There is an updated pull request by Logarithmus against master on the void-packages repository
https://github.com/Logarithmus/void-packages meli
https://github.com/void-linux/void-packages/pull/26551
New package: meli-0.6.2
BSD/Linux terminal email client with support for multiple accounts and Maildir / mbox / notmuch / IMAP / JMAP.
See https://github.com/void-linux/void-packages/issues/26132
A patch file from https://github.com/void-linux/void-packages/pull/26551.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-meli-26551.patch --]
[-- Type: text/x-diff, Size: 3568 bytes --]
From 1b1d82856c645265bf5655cee7a368c94759e107 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Sat, 21 Nov 2020 08:27:54 +0300
Subject: [PATCH] New package: meli-0.6.2
---
srcpkgs/meli/patches/disable-lto.patch | 12 ++++++
.../patches/fixes-for-32bit-systems.patch | 41 +++++++++++++++++++
srcpkgs/meli/template | 15 +++++++
3 files changed, 68 insertions(+)
create mode 100644 srcpkgs/meli/patches/disable-lto.patch
create mode 100644 srcpkgs/meli/patches/fixes-for-32bit-systems.patch
create mode 100644 srcpkgs/meli/template
diff --git a/srcpkgs/meli/patches/disable-lto.patch b/srcpkgs/meli/patches/disable-lto.patch
new file mode 100644
index 00000000000..ec9c7870232
--- /dev/null
+++ b/srcpkgs/meli/patches/disable-lto.patch
@@ -0,0 +1,12 @@
+--- Cargo.toml
++++ Cargo.toml
+@@ -64,9 +64,7 @@ quote = "^1.0"
+ proc-macro2 = "1.0.18"
+
+ [profile.release]
+-lto = "fat"
+ opt-level = "z"
+-debug = false
+
+ [workspace]
+ members = ["melib", "tools", ]
diff --git a/srcpkgs/meli/patches/fixes-for-32bit-systems.patch b/srcpkgs/meli/patches/fixes-for-32bit-systems.patch
new file mode 100644
index 00000000000..7396ce4cfae
--- /dev/null
+++ b/srcpkgs/meli/patches/fixes-for-32bit-systems.patch
@@ -0,0 +1,41 @@
+--- melib/src/backends/notmuch.rs
++++ melib/src/backends/notmuch.rs
+@@ -81,7 +81,7 @@ impl DbConnection {
+ call!(self.lib, notmuch_database_get_revision)(
+ *self.inner.read().unwrap(),
+ std::ptr::null_mut(),
+- )
++ ) as u64
+ }
+ }
+
+--- melib/src/datetime.rs
++++ melib/src/datetime.rs
+@@ -69,8 +69,7 @@ extern "C" {
+ pub fn timestamp_to_string(timestamp: UnixTimestamp, fmt: Option<&str>) -> String {
+ let mut new_tm: ::libc::tm = unsafe { std::mem::zeroed() };
+ unsafe {
+- let i: i64 = timestamp.try_into().unwrap_or(0);
+- localtime_r(&i as *const i64, &mut new_tm as *mut ::libc::tm);
++ localtime_r(&(timestamp as ::libc::time_t), &mut new_tm);
+ }
+ let fmt = fmt
+ .map(CString::new)
+--- melib/src/lib.rs
++++ melib/src/lib.rs
+@@ -239,13 +239,13 @@ pub mod shellexpand {
+ let mut buf: Vec<u8> = Vec::with_capacity(BUF_SIZE);
+ let mut entries = SmallVec::new();
+ loop {
+- let n: i64 = unsafe {
++ let n = unsafe {
+ ::libc::syscall(
+ ::libc::SYS_getdents64,
+ dir.as_raw_fd(),
+ buf.as_ptr(),
+ BUF_SIZE - 256,
+- )
++ ) as isize
+ };
+ if n < 0 {
+ return SmallVec::new();
diff --git a/srcpkgs/meli/template b/srcpkgs/meli/template
new file mode 100644
index 00000000000..8a59fffa3ef
--- /dev/null
+++ b/srcpkgs/meli/template
@@ -0,0 +1,15 @@
+# Template file for 'meli'
+pkgname=meli
+version=0.6.2
+revision=1
+wrksrc=meli
+build_style=cargo
+configure_args="--features=cli-docs"
+hostmakedepends="pkg-config mdocml"
+makedepends="gpgme-devel dbus-devel sqlite-devel libnotmuch-devel libressl-devel pcre2-devel"
+short_desc="BSD/Linux terminal email client inspired by mutt"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://meli.delivery/"
+distfiles="https://git.meli.delivery/meli/meli/archive/alpha-${version}.tar.gz"
+checksum=ae6651d11c5edd449e1a57729c792f5dc425fbc153fa180f9a6a6131d23a19fa
next prev parent reply other threads:[~2020-11-22 0:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-21 5:31 [PR PATCH] " Logarithmus
2020-11-21 5:39 ` [PR PATCH] [Updated] " Logarithmus
2020-11-21 5:45 ` Logarithmus
2020-11-21 20:07 ` Logarithmus
2020-11-21 22:06 ` Logarithmus
2020-11-21 22:17 ` Logarithmus
2020-11-22 0:27 ` Logarithmus [this message]
2020-11-22 0:44 ` Logarithmus
2020-11-22 1:22 ` [PR REVIEW] " ericonr
2020-11-22 1:23 ` ericonr
2020-11-22 1:26 ` [PR REVIEW] " Logarithmus
2021-01-20 21:06 ` ericonr
2021-01-20 21:06 ` [PR PATCH] [Closed]: " ericonr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201122002742.c8Cac-5I9nZAzRUYHVUBPJFt3e4rYtzDHA3wSRTf-HM@z \
--to=logarithmus@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).