1 |
commit: 6fac1518b00810d03d46ffddc5f030193b1deaf7 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 18 15:19:17 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 18 15:19:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fac1518 |
7 |
|
8 |
net-misc/socat: Update live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.63, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-misc/socat/files/socat-9999-stddef_h.patch | 38 ++++++++++++++++++++++++++ |
14 |
net-misc/socat/socat-9999.ebuild | 3 +- |
15 |
2 files changed, 39 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/socat/files/socat-9999-stddef_h.patch b/net-misc/socat/files/socat-9999-stddef_h.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..802b578d4a2 |
20 |
--- /dev/null |
21 |
+++ b/net-misc/socat/files/socat-9999-stddef_h.patch |
22 |
@@ -0,0 +1,38 @@ |
23 |
+When disabling OpenSSL support, nestlex.c still needs stddef.h which is |
24 |
+magically included through the OpenSSL headers otherwise. |
25 |
+ |
26 |
+--- a/configure.ac |
27 |
++++ b/configure.ac |
28 |
+@@ -61,7 +61,7 @@ |
29 |
+ AC_CHECK_HEADERS(inttypes.h) |
30 |
+ AC_HEADER_SYS_WAIT |
31 |
+ AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/param.h sys/ioctl.h sys/time.h syslog.h unistd.h) |
32 |
+-AC_CHECK_HEADERS(pwd.h grp.h stdint.h sys/types.h poll.h sys/poll.h sys/socket.h sys/uio.h sys/stat.h netdb.h sys/un.h) |
33 |
++AC_CHECK_HEADERS(pwd.h grp.h stddef.h stdint.h sys/types.h poll.h sys/poll.h sys/socket.h sys/uio.h sys/stat.h netdb.h sys/un.h) |
34 |
+ AC_CHECK_HEADERS(pty.h) |
35 |
+ AC_CHECK_HEADERS(netinet/in.h netinet/in_systm.h) |
36 |
+ AC_CHECK_HEADERS(netinet/ip.h, [], [], [AC_INCLUDES_DEFAULT |
37 |
+--- a/config.h.in |
38 |
++++ b/config.h.in |
39 |
+@@ -189,6 +189,9 @@ |
40 |
+ /* Define if you have the <grp.h> header file. */ |
41 |
+ #undef HAVE_GRP_H |
42 |
+ |
43 |
++/* Define if you have the <stddef.h> header file. */ |
44 |
++#undef HAVE_STDDEF_H |
45 |
++ |
46 |
+ /* Define if you have the <stdint.h> header file. */ |
47 |
+ #undef HAVE_STDINT_H |
48 |
+ |
49 |
+--- a/sysincludes.h |
50 |
++++ b/sysincludes.h |
51 |
+@@ -51,6 +51,9 @@ |
52 |
+ #if HAVE_SYS_TIME_H |
53 |
+ #include <sys/time.h> /* select(); OpenBSD: struct timespec */ |
54 |
+ #endif |
55 |
++#if HAVE_STDDEF_H |
56 |
++#include <stddef.h> |
57 |
++#endif |
58 |
+ #if HAVE_STDINT_H |
59 |
+ #include <stdint.h> /* uint8_t */ |
60 |
+ #endif |
61 |
|
62 |
diff --git a/net-misc/socat/socat-9999.ebuild b/net-misc/socat/socat-9999.ebuild |
63 |
index dab9093e876..dfc7752ca39 100644 |
64 |
--- a/net-misc/socat/socat-9999.ebuild |
65 |
+++ b/net-misc/socat/socat-9999.ebuild |
66 |
@@ -34,8 +34,7 @@ DOCS=( |
67 |
) |
68 |
|
69 |
PATCHES=( |
70 |
- "${FILESDIR}"/${PN}-1.7.3.0-filan-build.patch |
71 |
- "${FILESDIR}"/${PN}-1.7.3.1-stddef_h.patch |
72 |
+ "${FILESDIR}"/${PN}-9999-stddef_h.patch |
73 |
) |
74 |
|
75 |
pkg_setup() { |