1 |
commit: df13bd514e0d04eb52593e0b43c40c422ce09ad4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 03:02:23 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 03:06:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df13bd51 |
7 |
|
8 |
net-misc/socat: sync live |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-misc/socat/files/socat-9999-stddef_h.patch | 38 -------------------------- |
14 |
net-misc/socat/socat-9999.ebuild | 29 ++++++++------------ |
15 |
2 files changed, 11 insertions(+), 56 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 |
deleted file mode 100644 |
19 |
index 802b578d4a2..00000000000 |
20 |
--- a/net-misc/socat/files/socat-9999-stddef_h.patch |
21 |
+++ /dev/null |
22 |
@@ -1,38 +0,0 @@ |
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 7d28699e42f..b7f8ff16c50 100644 |
64 |
--- a/net-misc/socat/socat-9999.ebuild |
65 |
+++ b/net-misc/socat/socat-9999.ebuild |
66 |
@@ -1,8 +1,9 @@ |
67 |
-# Copyright 1999-2020 Gentoo Authors |
68 |
+# Copyright 1999-2021 Gentoo Authors |
69 |
# Distributed under the terms of the GNU General Public License v2 |
70 |
|
71 |
EAPI=7 |
72 |
-inherit autotools flag-o-matic git-r3 toolchain-funcs |
73 |
+ |
74 |
+inherit autotools flag-o-matic toolchain-funcs |
75 |
|
76 |
DESCRIPTION="Multipurpose relay (SOcket CAT)" |
77 |
HOMEPAGE="http://www.dest-unreach.org/socat/" |
78 |
@@ -10,9 +11,9 @@ EGIT_REPO_URI="https://repo.or.cz/${PN}.git" |
79 |
|
80 |
LICENSE="GPL-2" |
81 |
SLOT="0" |
82 |
-KEYWORDS="" |
83 |
-IUSE="libressl ssl readline ipv6 tcpd" |
84 |
+IUSE="bindist libressl ssl readline ipv6 tcpd" |
85 |
|
86 |
+BDEPEND="app-text/yodl" |
87 |
DEPEND=" |
88 |
ssl? ( |
89 |
!libressl? ( dev-libs/openssl:0= ) |
90 |
@@ -21,24 +22,16 @@ DEPEND=" |
91 |
readline? ( sys-libs/readline:= ) |
92 |
tcpd? ( sys-apps/tcp-wrappers ) |
93 |
" |
94 |
-BDEPEND=" |
95 |
- app-text/yodl |
96 |
-" |
97 |
-DEPEND=" |
98 |
- ${RDEPEND} |
99 |
-" |
100 |
+RDEPEND="${DEPEND}" |
101 |
+ |
102 |
+# Tests are a large bash script |
103 |
+# Hard to disable individual tests needing network or privileges |
104 |
RESTRICT=" |
105 |
test |
106 |
ssl? ( readline? ( bindist ) ) |
107 |
" |
108 |
-DOCS=( |
109 |
- BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY |
110 |
-) |
111 |
|
112 |
-PATCHES=( |
113 |
- "${FILESDIR}"/${PN}-1.7.3.4-fno-common.patch |
114 |
- "${FILESDIR}"/${PN}-9999-stddef_h.patch |
115 |
-) |
116 |
+DOCS=( BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY ) |
117 |
|
118 |
pkg_setup() { |
119 |
# bug #587740 |
120 |
@@ -51,13 +44,13 @@ pkg_setup() { |
121 |
|
122 |
src_prepare() { |
123 |
default |
124 |
- |
125 |
eautoreconf |
126 |
} |
127 |
|
128 |
src_configure() { |
129 |
filter-flags '-Wno-error*' #293324 |
130 |
tc-export AR |
131 |
+ |
132 |
econf \ |
133 |
$(use_enable ssl openssl) \ |
134 |
$(use_enable readline) \ |