Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/socat/, net-misc/socat/files/
Date: Sun, 06 Mar 2016 11:06:35
Message-Id: 1457166417.1e993862a9035cdf54e32298f593a3d03b2f94fe.jer@gentoo
1 commit: 1e993862a9035cdf54e32298f593a3d03b2f94fe
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 5 08:26:40 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 5 08:26:57 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e993862
7
8 net-misc/socat: Fix building with USE=-ssl (bug #576270 by Jan Chren (rindeal)).
9
10 Package-Manager: portage-2.2.27
11
12 net-misc/socat/files/socat-1.7.3.1-stddef_h.patch | 38 +++++++++++++++++++++++
13 net-misc/socat/socat-1.7.3.1.ebuild | 5 ++-
14 net-misc/socat/socat-2.0.0_beta9.ebuild | 6 +++-
15 net-misc/socat/socat-9999.ebuild | 3 ++
16 4 files changed, 50 insertions(+), 2 deletions(-)
17
18 diff --git a/net-misc/socat/files/socat-1.7.3.1-stddef_h.patch b/net-misc/socat/files/socat-1.7.3.1-stddef_h.patch
19 new file mode 100644
20 index 0000000..c914a81
21 --- /dev/null
22 +++ b/net-misc/socat/files/socat-1.7.3.1-stddef_h.patch
23 @@ -0,0 +1,38 @@
24 +When disabling OpenSSL support, nestlex.c still needs stddef.h which is
25 +magically included through the OpenSSL headers otherwise.
26 +
27 +--- a/configure.in
28 ++++ b/configure.in
29 +@@ -61,7 +61,7 @@
30 + AC_CHECK_HEADERS(inttypes.h)
31 + AC_HEADER_SYS_WAIT
32 + AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/param.h sys/ioctl.h sys/time.h syslog.h unistd.h)
33 +-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)
34 ++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)
35 + AC_CHECK_HEADERS(pty.h)
36 + AC_CHECK_HEADERS(netinet/in.h netinet/in_systm.h)
37 + AC_CHECK_HEADERS(netinet/ip.h, [], [], [AC_INCLUDES_DEFAULT
38 +--- a/config.h.in
39 ++++ b/config.h.in
40 +@@ -189,6 +189,9 @@
41 + /* Define if you have the <grp.h> header file. */
42 + #undef HAVE_GRP_H
43 +
44 ++/* Define if you have the <stddef.h> header file. */
45 ++#undef HAVE_STDDEF_H
46 ++
47 + /* Define if you have the <stdint.h> header file. */
48 + #undef HAVE_STDINT_H
49 +
50 +--- a/sysincludes.h
51 ++++ b/sysincludes.h
52 +@@ -51,6 +51,9 @@
53 + #if HAVE_SYS_TIME_H
54 + #include <sys/time.h> /* select(); OpenBSD: struct timespec */
55 + #endif
56 ++#if HAVE_STDDEF_H
57 ++#include <stddef.h>
58 ++#endif
59 + #if HAVE_STDINT_H
60 + #include <stdint.h> /* uint8_t */
61 + #endif
62
63 diff --git a/net-misc/socat/socat-1.7.3.1.ebuild b/net-misc/socat/socat-1.7.3.1.ebuild
64 index 998dc35..e46c58a 100644
65 --- a/net-misc/socat/socat-1.7.3.1.ebuild
66 +++ b/net-misc/socat/socat-1.7.3.1.ebuild
67 @@ -3,7 +3,7 @@
68 # $Id$
69
70 EAPI=5
71 -inherit eutils flag-o-matic toolchain-funcs
72 +inherit autotools eutils flag-o-matic toolchain-funcs
73
74 DESCRIPTION="Multipurpose relay (SOcket CAT)"
75 HOMEPAGE="http://www.dest-unreach.org/socat/"
76 @@ -31,6 +31,9 @@ DOCS=(
77
78 src_prepare() {
79 epatch "${FILESDIR}"/${PN}-1.7.3.0-filan-build.patch
80 + epatch "${FILESDIR}"/${PN}-1.7.3.1-stddef_h.patch
81 +
82 + eautoreconf
83 }
84
85 src_configure() {
86
87 diff --git a/net-misc/socat/socat-2.0.0_beta9.ebuild b/net-misc/socat/socat-2.0.0_beta9.ebuild
88 index 1a83319..07429de 100644
89 --- a/net-misc/socat/socat-2.0.0_beta9.ebuild
90 +++ b/net-misc/socat/socat-2.0.0_beta9.ebuild
91 @@ -4,7 +4,7 @@
92
93 EAPI=5
94
95 -inherit eutils flag-o-matic toolchain-funcs
96 +inherit autotools eutils flag-o-matic toolchain-funcs
97
98 DESCRIPTION="Multipurpose relay (SOcket CAT)"
99 HOMEPAGE="http://www.dest-unreach.org/socat/"
100 @@ -32,7 +32,11 @@ DOCS=(
101
102 src_prepare() {
103 epatch "${FILESDIR}"/${PN}-1.7.3.0-filan-build.patch
104 + epatch "${FILESDIR}"/${PN}-1.7.3.1-stddef_h.patch
105 +
106 touch doc/${PN}.1 || die
107 +
108 + eautoreconf
109 }
110
111 src_configure() {
112
113 diff --git a/net-misc/socat/socat-9999.ebuild b/net-misc/socat/socat-9999.ebuild
114 index 9ebf68b..076b3a1 100644
115 --- a/net-misc/socat/socat-9999.ebuild
116 +++ b/net-misc/socat/socat-9999.ebuild
117 @@ -33,6 +33,9 @@ DOCS=(
118 )
119
120 src_prepare() {
121 + epatch "${FILESDIR}"/${PN}-1.7.3.0-filan-build.patch
122 + epatch "${FILESDIR}"/${PN}-1.7.3.1-stddef_h.patch
123 +
124 eautoreconf
125 }