commit:     175d8dc6b2f3d1c8911e59b28187a93b45f4b887
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 31 19:58:46 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Mar 31 19:59:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=175d8dc6

net-misc/dhcpcd: Fixed build with USE="privsep"

Closes: https://bugs.gentoo.org/777600
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 net-misc/dhcpcd/dhcpcd-9.3.4.ebuild                |  1 +
 .../files/dhcpcd-9.3.4-include_termios.patch       | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild 
b/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
index 90ee346ea29..2b787b26667 100644
--- a/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
+++ b/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
@@ -35,6 +35,7 @@ RDEPEND="
 
 PATCHES=(
        "${FILESDIR}/${PN}-9.4.0-sparc_privsep.patch" #776178
+       "${FILESDIR}/${PN}-9.3.4-include_termios.patch" #777600
 )
 
 src_configure() {

diff --git a/net-misc/dhcpcd/files/dhcpcd-9.3.4-include_termios.patch 
b/net-misc/dhcpcd/files/dhcpcd-9.3.4-include_termios.patch
new file mode 100644
index 00000000000..58a6a0216b8
--- /dev/null
+++ b/net-misc/dhcpcd/files/dhcpcd-9.3.4-include_termios.patch
@@ -0,0 +1,22 @@
+From 7c08f3777a69c69e87a149bb35681ce2ed2f0490 Mon Sep 17 00:00:00 2001
+From: Mikhail Efremov <s...@altlinux.org>
+Date: Tue, 8 Dec 2020 16:15:28 +0000
+Subject: [PATCH] Linux: Fix privsep build by including sys/termios.h for all
+ platforms
+
+---
+ src/privsep-linux.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/privsep-linux.c b/src/privsep-linux.c
+index e588ecd7..1fbe97fa 100644
+--- a/src/privsep-linux.c
++++ b/src/privsep-linux.c
+@@ -29,6 +29,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/prctl.h>
+ #include <sys/syscall.h>
++#include <sys/termios.h>      /* For TCGETS */
+ 
+ #include <linux/audit.h>
+ #include <linux/filter.h>

Reply via email to