1 |
commit: e4afc1bb6afddad8601a5f88d71a23d31bb06570 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 1 21:18:27 2018 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 1 21:19:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4afc1bb |
7 |
|
8 |
sys-apps/openrc: Fix build on uclibc-ng |
9 |
|
10 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=650908 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
..._POSIX_C_SOURCE-definition-to-Linux-build.patch | 29 ++++++++++++++++++++++ |
14 |
sys-apps/openrc/openrc-0.35.5.ebuild | 4 +++ |
15 |
2 files changed, 33 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/openrc/files/openrc-0.35.5-Add-_POSIX_C_SOURCE-definition-to-Linux-build.patch b/sys-apps/openrc/files/openrc-0.35.5-Add-_POSIX_C_SOURCE-definition-to-Linux-build.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..b547fe2b61e |
20 |
--- /dev/null |
21 |
+++ b/sys-apps/openrc/files/openrc-0.35.5-Add-_POSIX_C_SOURCE-definition-to-Linux-build.patch |
22 |
@@ -0,0 +1,29 @@ |
23 |
+From f4e2142089487b7f5c99da949d7bf8d038724df7 Mon Sep 17 00:00:00 2001 |
24 |
+From: William Hubbs <w.d.hubbs@×××××.com> |
25 |
+Date: Tue, 1 May 2018 13:28:57 -0500 |
26 |
+Subject: [PATCH] Add _POSIX_C_SOURCE definition to Linux build |
27 |
+ |
28 |
+We need this to allow builds on uclibc-ng based systems. |
29 |
+ |
30 |
+X-Gentoo-Bug: 650908 |
31 |
+X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650908 |
32 |
+--- |
33 |
+ mk/os-Linux.mk | 2 +- |
34 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
35 |
+ |
36 |
+diff --git a/mk/os-Linux.mk b/mk/os-Linux.mk |
37 |
+index 2479ff5b..9e8a1485 100644 |
38 |
+--- a/mk/os-Linux.mk |
39 |
++++ b/mk/os-Linux.mk |
40 |
+@@ -11,7 +11,7 @@ |
41 |
+ SFX= .Linux.in |
42 |
+ PKG_PREFIX?= /usr |
43 |
+ |
44 |
+-CPPFLAGS+= -D_DEFAULT_SOURCE |
45 |
++CPPFLAGS+= -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L |
46 |
+ LIBDL= -Wl,-Bdynamic -ldl |
47 |
+ |
48 |
+ ifeq (${MKSELINUX},yes) |
49 |
+-- |
50 |
+2.16.1 |
51 |
+ |
52 |
|
53 |
diff --git a/sys-apps/openrc/openrc-0.35.5.ebuild b/sys-apps/openrc/openrc-0.35.5.ebuild |
54 |
index 3420adf2a4c..820ec13085b 100644 |
55 |
--- a/sys-apps/openrc/openrc-0.35.5.ebuild |
56 |
+++ b/sys-apps/openrc/openrc-0.35.5.ebuild |
57 |
@@ -59,6 +59,10 @@ RDEPEND="${COMMON_DEPEND} |
58 |
|
59 |
PDEPEND="netifrc? ( net-misc/netifrc )" |
60 |
|
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${P}-Add-_POSIX_C_SOURCE-definition-to-Linux-build.patch |
63 |
+ ) |
64 |
+ |
65 |
src_prepare() { |
66 |
default |