1 |
commit: e248b7af8903fdb47cd11c203d46f8eded6023c3 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 10 18:20:34 2018 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 10 18:31:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e248b7af |
7 |
|
8 |
sys-fs/udev: fix 233 build with glibc-2.26 |
9 |
|
10 |
Package-Manager: Portage-2.3.19_p3, Repoman-2.3.6_p37 |
11 |
|
12 |
sys-fs/udev/files/233-fix-includes.patch | 38 ++++++++++++++++++++++++++++++++ |
13 |
sys-fs/udev/udev-233.ebuild | 3 ++- |
14 |
2 files changed, 40 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/sys-fs/udev/files/233-fix-includes.patch b/sys-fs/udev/files/233-fix-includes.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..44b06214f89 |
19 |
--- /dev/null |
20 |
+++ b/sys-fs/udev/files/233-fix-includes.patch |
21 |
@@ -0,0 +1,38 @@ |
22 |
+From 284d1cd0a12cad96a5ea61d1afb0dd677dbd147e Mon Sep 17 00:00:00 2001 |
23 |
+From: Matija Skala <mskala@×××.com> |
24 |
+Date: Wed, 15 Mar 2017 13:21:10 +0100 |
25 |
+Subject: [PATCH] fix includes |
26 |
+ |
27 |
+linux/sockios.h is needed for the SIOCGSTAMPNS macro |
28 |
+ |
29 |
+xlocale.h is included indirectly in glibc and doesn't even exist in |
30 |
+other libcs |
31 |
+--- |
32 |
+ src/basic/parse-util.c | 1 - |
33 |
+ src/libsystemd-network/sd-lldp.c | 1 + |
34 |
+ 2 files changed, 1 insertion(+), 1 deletion(-) |
35 |
+ |
36 |
+diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c |
37 |
+index 6e58ced6f5..d86700736d 100644 |
38 |
+--- a/src/basic/parse-util.c |
39 |
++++ b/src/basic/parse-util.c |
40 |
+@@ -23,7 +23,6 @@ |
41 |
+ #include <stdio.h> |
42 |
+ #include <stdlib.h> |
43 |
+ #include <string.h> |
44 |
+-#include <xlocale.h> |
45 |
+ |
46 |
+ #include "alloc-util.h" |
47 |
+ #include "extract-word.h" |
48 |
+diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c |
49 |
+index 0702241506..39ddb2461a 100644 |
50 |
+--- a/src/libsystemd-network/sd-lldp.c |
51 |
++++ b/src/libsystemd-network/sd-lldp.c |
52 |
+@@ -19,6 +19,7 @@ |
53 |
+ ***/ |
54 |
+ |
55 |
+ #include <arpa/inet.h> |
56 |
++#include <linux/sockios.h> |
57 |
+ |
58 |
+ #include "sd-lldp.h" |
59 |
+ |
60 |
|
61 |
diff --git a/sys-fs/udev/udev-233.ebuild b/sys-fs/udev/udev-233.ebuild |
62 |
index c42ecc2c0be..33ba3ae76f4 100644 |
63 |
--- a/sys-fs/udev/udev-233.ebuild |
64 |
+++ b/sys-fs/udev/udev-233.ebuild |
65 |
@@ -1,4 +1,4 @@ |
66 |
-# Copyright 1999-2017 Gentoo Foundation |
67 |
+# Copyright 1999-2018 Gentoo Foundation |
68 |
# Distributed under the terms of the GNU General Public License v2 |
69 |
|
70 |
EAPI=6 |
71 |
@@ -57,6 +57,7 @@ S=${WORKDIR}/systemd-${PV} |
72 |
|
73 |
PATCHES=( |
74 |
"${FILESDIR}"/233-format-warnings.patch |
75 |
+ "${FILESDIR}"/233-fix-includes.patch |
76 |
) |
77 |
|
78 |
check_default_rules() { |