1 |
commit: a9fee5c109c671e034d31127ea59d988ab15f5fb |
2 |
Author: Theo Anderson <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Sun Jan 17 10:25:02 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 15 06:02:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9fee5c1 |
7 |
|
8 |
mail-mta/nullmailer: fix build with clang (c++11) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/669746 |
11 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
12 |
Signed-off-by: Theo Anderson <telans <AT> posteo.de> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/19088 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
.../nullmailer/files/nullmailer-2.2-c++11.patch | 36 ++++++++++++++++++++++ |
17 |
mail-mta/nullmailer/nullmailer-2.2-r1.ebuild | 1 + |
18 |
2 files changed, 37 insertions(+) |
19 |
|
20 |
diff --git a/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch b/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..ac2eb23a338 |
23 |
--- /dev/null |
24 |
+++ b/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch |
25 |
@@ -0,0 +1,36 @@ |
26 |
+From f63dcd3d7ec69a7150f305ba81380988e0a1e38d Mon Sep 17 00:00:00 2001 |
27 |
+From: Denis Pronin <dannftk@××××××.ru> |
28 |
+Date: Tue, 25 Feb 2020 10:06:41 +0300 |
29 |
+Subject: [PATCH] fixed compilation with c++11 standard |
30 |
+ |
31 |
+Signed-off-by: Denis Pronin <dannftk@××××××.ru> |
32 |
+--- |
33 |
+ src/inject.cc | 6 ++++-- |
34 |
+ 1 file changed, 4 insertions(+), 2 deletions(-) |
35 |
+ |
36 |
+diff --git a/src/inject.cc b/src/inject.cc |
37 |
+index 0a555b2..189a70a 100644 |
38 |
+--- a/src/inject.cc |
39 |
++++ b/src/inject.cc |
40 |
+@@ -148,9 +148,10 @@ static bool header_add_to = false; |
41 |
+ |
42 |
+ struct header_field |
43 |
+ { |
44 |
++ typedef unsigned length_t; |
45 |
+ // member information |
46 |
+ const char* name; |
47 |
+- unsigned length; |
48 |
++ length_t length; |
49 |
+ bool is_address; |
50 |
+ bool is_recipient; |
51 |
+ bool is_sender; |
52 |
+@@ -204,7 +205,8 @@ struct header_field |
53 |
+ |
54 |
+ #define F false |
55 |
+ #define T true |
56 |
+-#define X(N,IA,IR,IS,IRS,R) { #N ":",strlen(#N ":"),\ |
57 |
++#define X(N,IA,IR,IS,IRS,R) { #N ":", \ |
58 |
++ static_cast<header_field::length_t>(strlen(#N ":")),\ |
59 |
+ IA,IR,IS,IRS,R,false, false } |
60 |
+ static header_field header_fields[] = { |
61 |
+ // Sender address fields, in order of priority |
62 |
|
63 |
diff --git a/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild b/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild |
64 |
index 1835317ed6c..53c1cabc06f 100644 |
65 |
--- a/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild |
66 |
+++ b/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild |
67 |
@@ -40,6 +40,7 @@ PATCHES=( |
68 |
"${FILESDIR}/${P}-fix-test-racecondition.patch" |
69 |
"${FILESDIR}/${P}-disable-dns-using-test.patch" |
70 |
"${FILESDIR}/${P}-disable-smtp-auth-tests.patch" |
71 |
+ "${FILESDIR}/${P}-c++11.patch" |
72 |
) |
73 |
|
74 |
pkg_setup() { |