Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libetpan/files/, net-libs/libetpan/
Date: Sat, 11 May 2019 02:21:54
Message-Id: 1557541305.cb76da37b02ed5bca29ca8f21be989f1dd5e80b6.blueness@gentoo
1 commit: cb76da37b02ed5bca29ca8f21be989f1dd5e80b6
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 11 02:21:18 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat May 11 02:21:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb76da37
7
8 net-libs/libetpan: upstream patch to fix build on musl
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 .../files/libetpan-1.9.3-missing-stddev_h.patch | 30 ++++++++++++++++++++++
14 net-libs/libetpan/libetpan-1.9.3.ebuild | 1 +
15 2 files changed, 31 insertions(+)
16
17 diff --git a/net-libs/libetpan/files/libetpan-1.9.3-missing-stddev_h.patch b/net-libs/libetpan/files/libetpan-1.9.3-missing-stddev_h.patch
18 new file mode 100644
19 index 00000000000..9d53f90190b
20 --- /dev/null
21 +++ b/net-libs/libetpan/files/libetpan-1.9.3-missing-stddev_h.patch
22 @@ -0,0 +1,30 @@
23 +commit da9fd7839c9affea48f74a159a789fbb183b4be1
24 +Author: maxice8 <30738253+maxice8@××××××××××××××××××××.com>
25 +Date: Fri Feb 1 01:58:08 2019 -0200
26 +
27 + add missing stddef.h include for 'NULL' (#322)
28 +
29 + clientid.c: In function 'mailimap_clientid':
30 + clientid.c:66:38: error: 'NULL' undeclared (first use in this function)
31 + if (mailimap_read_line(session) == NULL)
32 + ^~~~
33 + clientid.c:66:38: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
34 + clientid.c:39:1:
35 + +#include <stddef.h>
36 +
37 + clientid.c:66:38:
38 + if (mailimap_read_line(session) == NULL)
39 +
40 +diff --git a/src/low-level/imap/clientid.c b/src/low-level/imap/clientid.c
41 +index 1c34637..38880dd 100644
42 +--- a/src/low-level/imap/clientid.c
43 ++++ b/src/low-level/imap/clientid.c
44 +@@ -33,6 +33,8 @@
45 + # include <config.h>
46 + #endif
47 +
48 ++#include <stdlib.h>
49 ++
50 + #include "mailimap_sender.h"
51 + #include "clientid_sender.h"
52 + #include "clientid.h"
53
54 diff --git a/net-libs/libetpan/libetpan-1.9.3.ebuild b/net-libs/libetpan/libetpan-1.9.3.ebuild
55 index b700e23e776..262ae83217d 100644
56 --- a/net-libs/libetpan/libetpan-1.9.3.ebuild
57 +++ b/net-libs/libetpan/libetpan-1.9.3.ebuild
58 @@ -30,6 +30,7 @@ RDEPEND="${DEPEND}"
59
60 PATCHES=(
61 "${FILESDIR}"/${PN}-1.0-nonnull.patch
62 + "${FILESDIR}"/${PN}-1.9.3-missing-stddev_h.patch
63 )
64
65 pkg_pretend() {