public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-mail/email/files/, net-mail/email/
@ 2020-05-17 10:17 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2020-05-17 10:17 UTC (permalink / raw
  To: gentoo-commits

commit:     538995b35f322ce17289f855575cca28084782bd
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun May 17 10:16:52 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun May 17 10:17:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=538995b3

net-mail/email: Fix building with CFLAGS=-fno-common

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://bugs.gentoo.org/707620
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-mail/email/email-3.1.3-r1.ebuild              | 21 +++++++++++++++
 net-mail/email/files/email-3.1.3-fno-common.patch | 32 +++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/net-mail/email/email-3.1.3-r1.ebuild b/net-mail/email/email-3.1.3-r1.ebuild
new file mode 100644
index 00000000000..e8b2a103b89
--- /dev/null
+++ b/net-mail/email/email-3.1.3-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Advanced CLI tool for sending email"
+HOMEPAGE="https://github.com/deanproxy/eMail"
+SRC_URI="http://www.cleancode.org/downloads/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~x86"
+PATCHES=(
+	"${FILESDIR}"/${PN}-3.1.3-fno-common.patch
+)
+
+src_install() {
+	default
+	doman email.1
+	dodoc README TODO
+}

diff --git a/net-mail/email/files/email-3.1.3-fno-common.patch b/net-mail/email/files/email-3.1.3-fno-common.patch
new file mode 100644
index 00000000000..ecbc43d3413
--- /dev/null
+++ b/net-mail/email/files/email-3.1.3-fno-common.patch
@@ -0,0 +1,32 @@
+--- a/include/email.h
++++ b/include/email.h
+@@ -61,11 +61,11 @@
+ 
+ 
+ /* Globally defined vars */
+-dhash table;
+-char *conf_file;
+-dstrbuf *global_msg;
++extern dhash table;
++extern char *conf_file;
++extern dstrbuf *global_msg;
+ 
+-struct mailer_options {
++extern struct mailer_options {
+ 	bool verbose;
+ 	bool encoding;
+ 	short html;
+--- a/src/email.c
++++ b/src/email.c
+@@ -40,6 +40,11 @@
+ #include "error.h"
+ #include "mimeutils.h"
+ 
++dhash table;
++char *conf_file;
++dstrbuf *global_msg;
++struct mailer_options Mopts;
++
+ static void
+ defaultDestr(void *ptr)
+ {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-mail/email/files/, net-mail/email/
@ 2022-11-22  6:47 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-11-22  6:47 UTC (permalink / raw
  To: gentoo-commits

commit:     8a6efdf43f513f97ac6691fd4ea1d5ff3cd864f5
Author:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Thu Nov 10 23:54:06 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 22 06:47:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a6efdf4

net-mail/email: EAPI bump, fix clang16 configure

Closes: https://bugs.gentoo.org/879737
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
Closes: https://github.com/gentoo/gentoo/pull/28219
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{email-3.1.3-r1.ebuild => email-3.1.3-r2.ebuild}  |  7 ++++---
 .../files/email-3.1.3-fix-clang16-configure.patch     | 19 +++++++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/net-mail/email/email-3.1.3-r1.ebuild b/net-mail/email/email-3.1.3-r2.ebuild
similarity index 80%
rename from net-mail/email/email-3.1.3-r1.ebuild
rename to net-mail/email/email-3.1.3-r2.ebuild
index 03b751178f8d..5c2707adb62f 100644
--- a/net-mail/email/email-3.1.3-r1.ebuild
+++ b/net-mail/email/email-3.1.3-r2.ebuild
@@ -1,17 +1,18 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 DESCRIPTION="Advanced CLI tool for sending email"
 HOMEPAGE="https://github.com/deanproxy/eMail"
 SRC_URI="http://www.cleancode.org/downloads/${PN}/${P}.tar.bz2"
 LICENSE="GPL-2"
-SLOT="0"
 
+SLOT="0"
 KEYWORDS="~alpha amd64 x86"
 PATCHES=(
 	"${FILESDIR}"/${PN}-3.1.3-fno-common.patch
+	"${FILESDIR}"/${PN}-3.1.3-fix-clang16-configure.patch
 )
 
 src_install() {

diff --git a/net-mail/email/files/email-3.1.3-fix-clang16-configure.patch b/net-mail/email/files/email-3.1.3-fix-clang16-configure.patch
new file mode 100644
index 000000000000..37fcd9f14153
--- /dev/null
+++ b/net-mail/email/files/email-3.1.3-fix-clang16-configure.patch
@@ -0,0 +1,19 @@
+Clang16 will not allow using undeclared library functions by default.
+This imports ctype.h into that check so isdigit() can be used without errors.
+
+Bug: https://bugs.gentoo.org/879737
+
+PR upstream: https://github.com/deanproxy/eMail/pull/63
+
+Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
+
+--- a/check_strftime.sh
++++ b/check_strftime.sh
+@@ -14,6 +14,7 @@ cat << EOF > /tmp/strftime_try.c
+ #include <stdlib.h>
+ #include <time.h>
+ #include <sys/time.h>
++#include <ctype.h>
+ 
+ int
+ main (void)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-22  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-22  6:47 [gentoo-commits] repo/gentoo:master commit in: net-mail/email/files/, net-mail/email/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2020-05-17 10:17 Jeroen Roovers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox