summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-07 02:29:29 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-07 02:33:12 -0400
commit874b65e9b877024e66d0ed0a753440aafe59afcb (patch)
treec178be6272cdb4eee9523c9c0898eb5973b3c6ce /net-misc/rinetd
parentnet-misc/rinetd: EAPI6->8, remove dead urls, fix license (diff)
downloadgentoo-874b65e9b877024e66d0ed0a753440aafe59afcb.tar.gz
gentoo-874b65e9b877024e66d0ed0a753440aafe59afcb.tar.bz2
gentoo-874b65e9b877024e66d0ed0a753440aafe59afcb.zip
net-misc/rinetd: fix build with upcoming clang16
Bit ackward to patch due to weird mix of line terminator types within the same file, but this is just missing includes. Closes: https://bugs.gentoo.org/871060 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'net-misc/rinetd')
-rw-r--r--net-misc/rinetd/files/rinetd-0.62-clang16.patch11
-rw-r--r--net-misc/rinetd/rinetd-0.62-r3.ebuild (renamed from net-misc/rinetd/rinetd-0.62-r2.ebuild)4
2 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/rinetd/files/rinetd-0.62-clang16.patch b/net-misc/rinetd/files/rinetd-0.62-clang16.patch
new file mode 100644
index 000000000000..1aefd48aff1e
--- /dev/null
+++ b/net-misc/rinetd/files/rinetd-0.62-clang16.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/871060
+--- a/rinetd.c
++++ b/rinetd.c
+@@ -12,2 +12,3 @@
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <getopt.h>
+@@ -25,2 +26,3 @@
+ #include <ctype.h>
++#include <unistd.h>
+
diff --git a/net-misc/rinetd/rinetd-0.62-r2.ebuild b/net-misc/rinetd/rinetd-0.62-r3.ebuild
index d1db674c0bc7..b6df56b6242f 100644
--- a/net-misc/rinetd/rinetd-0.62-r2.ebuild
+++ b/net-misc/rinetd/rinetd-0.62-r3.ebuild
@@ -14,6 +14,10 @@ LICENSE="GPL-2+ GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
+PATCHES=(
+ "${FILESDIR}"/${P}-clang16.patch
+)
+
src_prepare() {
default