1 |
commit: f1a5c3617bbcc1b80db4f14b8e2a189c6ac9170e |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 28 00:52:25 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 28 02:34:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a5c361 |
7 |
|
8 |
net-misc/unix2tcp: fix build with clang16 |
9 |
|
10 |
Both run eautoreconf and add missing includes for |
11 |
implicit declaration issues beyond it. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/870457 |
14 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
15 |
|
16 |
net-misc/unix2tcp/files/unix2tcp-0.8.2-clang16.patch | 19 +++++++++++++++++++ |
17 |
net-misc/unix2tcp/unix2tcp-0.8.2-r1.ebuild | 12 ++++++++++++ |
18 |
2 files changed, 31 insertions(+) |
19 |
|
20 |
diff --git a/net-misc/unix2tcp/files/unix2tcp-0.8.2-clang16.patch b/net-misc/unix2tcp/files/unix2tcp-0.8.2-clang16.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..a67cc13acb26 |
23 |
--- /dev/null |
24 |
+++ b/net-misc/unix2tcp/files/unix2tcp-0.8.2-clang16.patch |
25 |
@@ -0,0 +1,19 @@ |
26 |
+https://bugs.gentoo.org/870457 |
27 |
+--- a/server.c |
28 |
++++ b/server.c |
29 |
+@@ -61,2 +61,3 @@ |
30 |
+ #include "list.h" |
31 |
++#include "mylog.h" |
32 |
+ #include "unix2tcp.h" |
33 |
+--- a/unix2tcp.c |
34 |
++++ b/unix2tcp.c |
35 |
+@@ -62,2 +62,3 @@ |
36 |
+ #include "list.h" |
37 |
++#include "mylog.h" |
38 |
+ #include "server.h" |
39 |
+--- a/utelnet.c |
40 |
++++ b/utelnet.c |
41 |
+@@ -23,2 +23,3 @@ |
42 |
+ #include <stdio.h> |
43 |
++#include <stdlib.h> |
44 |
+ #ifdef HAVE_SYS_TYPES_H |
45 |
|
46 |
diff --git a/net-misc/unix2tcp/unix2tcp-0.8.2-r1.ebuild b/net-misc/unix2tcp/unix2tcp-0.8.2-r1.ebuild |
47 |
index 1fe4b2478e3b..d35532343648 100644 |
48 |
--- a/net-misc/unix2tcp/unix2tcp-0.8.2-r1.ebuild |
49 |
+++ b/net-misc/unix2tcp/unix2tcp-0.8.2-r1.ebuild |
50 |
@@ -3,6 +3,8 @@ |
51 |
|
52 |
EAPI=8 |
53 |
|
54 |
+inherit autotools |
55 |
+ |
56 |
DESCRIPTION="Connection forwarder that converts Unix sockets into TCP sockets" |
57 |
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" |
58 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
59 |
@@ -11,4 +13,14 @@ LICENSE="GPL-2+" |
60 |
SLOT="0" |
61 |
KEYWORDS="amd64 arm ~hppa ~ia64 ppc ~s390 x86" |
62 |
|
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${P}-clang16.patch |
65 |
+) |
66 |
+ |
67 |
DOCS=( ChangeLog README ) |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ |
72 |
+ eautoreconf #870457 |
73 |
+} |