Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/dhcpcd/, net-misc/dhcpcd/files/
Date: Wed, 31 Mar 2021 19:59:29
Message-Id: 1617220757.175d8dc6b2f3d1c8911e59b28187a93b45f4b887.polynomial-c@gentoo
1 commit: 175d8dc6b2f3d1c8911e59b28187a93b45f4b887
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 31 19:58:46 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 31 19:59:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=175d8dc6
7
8 net-misc/dhcpcd: Fixed build with USE="privsep"
9
10 Closes: https://bugs.gentoo.org/777600
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-misc/dhcpcd/dhcpcd-9.3.4.ebuild | 1 +
14 .../files/dhcpcd-9.3.4-include_termios.patch | 22 ++++++++++++++++++++++
15 2 files changed, 23 insertions(+)
16
17 diff --git a/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild b/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
18 index 90ee346ea29..2b787b26667 100644
19 --- a/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
20 +++ b/net-misc/dhcpcd/dhcpcd-9.3.4.ebuild
21 @@ -35,6 +35,7 @@ RDEPEND="
22
23 PATCHES=(
24 "${FILESDIR}/${PN}-9.4.0-sparc_privsep.patch" #776178
25 + "${FILESDIR}/${PN}-9.3.4-include_termios.patch" #777600
26 )
27
28 src_configure() {
29
30 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
31 new file mode 100644
32 index 00000000000..58a6a0216b8
33 --- /dev/null
34 +++ b/net-misc/dhcpcd/files/dhcpcd-9.3.4-include_termios.patch
35 @@ -0,0 +1,22 @@
36 +From 7c08f3777a69c69e87a149bb35681ce2ed2f0490 Mon Sep 17 00:00:00 2001
37 +From: Mikhail Efremov <sem@××××××××.org>
38 +Date: Tue, 8 Dec 2020 16:15:28 +0000
39 +Subject: [PATCH] Linux: Fix privsep build by including sys/termios.h for all
40 + platforms
41 +
42 +---
43 + src/privsep-linux.c | 1 +
44 + 1 file changed, 1 insertion(+)
45 +
46 +diff --git a/src/privsep-linux.c b/src/privsep-linux.c
47 +index e588ecd7..1fbe97fa 100644
48 +--- a/src/privsep-linux.c
49 ++++ b/src/privsep-linux.c
50 +@@ -29,6 +29,7 @@
51 + #include <sys/ioctl.h>
52 + #include <sys/prctl.h>
53 + #include <sys/syscall.h>
54 ++#include <sys/termios.h> /* For TCGETS */
55 +
56 + #include <linux/audit.h>
57 + #include <linux/filter.h>