From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrc/files/, sys-apps/openrc/
Date: Tue, 1 May 2018 21:19:47 +0000 (UTC) [thread overview]
Message-ID: <1525209547.e4afc1bb6afddad8601a5f88d71a23d31bb06570.williamh@gentoo> (raw)
commit: e4afc1bb6afddad8601a5f88d71a23d31bb06570
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue May 1 21:18:27 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue May 1 21:19:07 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4afc1bb
sys-apps/openrc: Fix build on uclibc-ng
Bug: https://bugs.gentoo.org/show_bug.cgi?id=650908
Package-Manager: Portage-2.3.24, Repoman-2.3.6
..._POSIX_C_SOURCE-definition-to-Linux-build.patch | 29 ++++++++++++++++++++++
sys-apps/openrc/openrc-0.35.5.ebuild | 4 +++
2 files changed, 33 insertions(+)
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
new file mode 100644
index 00000000000..b547fe2b61e
--- /dev/null
+++ b/sys-apps/openrc/files/openrc-0.35.5-Add-_POSIX_C_SOURCE-definition-to-Linux-build.patch
@@ -0,0 +1,29 @@
+From f4e2142089487b7f5c99da949d7bf8d038724df7 Mon Sep 17 00:00:00 2001
+From: William Hubbs <w.d.hubbs@gmail.com>
+Date: Tue, 1 May 2018 13:28:57 -0500
+Subject: [PATCH] Add _POSIX_C_SOURCE definition to Linux build
+
+We need this to allow builds on uclibc-ng based systems.
+
+X-Gentoo-Bug: 650908
+X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650908
+---
+ mk/os-Linux.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mk/os-Linux.mk b/mk/os-Linux.mk
+index 2479ff5b..9e8a1485 100644
+--- a/mk/os-Linux.mk
++++ b/mk/os-Linux.mk
+@@ -11,7 +11,7 @@
+ SFX= .Linux.in
+ PKG_PREFIX?= /usr
+
+-CPPFLAGS+= -D_DEFAULT_SOURCE
++CPPFLAGS+= -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L
+ LIBDL= -Wl,-Bdynamic -ldl
+
+ ifeq (${MKSELINUX},yes)
+--
+2.16.1
+
diff --git a/sys-apps/openrc/openrc-0.35.5.ebuild b/sys-apps/openrc/openrc-0.35.5.ebuild
index 3420adf2a4c..820ec13085b 100644
--- a/sys-apps/openrc/openrc-0.35.5.ebuild
+++ b/sys-apps/openrc/openrc-0.35.5.ebuild
@@ -59,6 +59,10 @@ RDEPEND="${COMMON_DEPEND}
PDEPEND="netifrc? ( net-misc/netifrc )"
+PATCHES=(
+ "${FILESDIR}"/${P}-Add-_POSIX_C_SOURCE-definition-to-Linux-build.patch
+ )
+
src_prepare() {
default
next reply other threads:[~2018-05-01 21:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-01 21:19 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-03-21 20:35 [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrc/files/, sys-apps/openrc/ Sergei Trofimovich
2021-09-04 21:26 William Hubbs
2021-11-22 11:44 Sam James
2022-12-03 12:17 Sam James
2023-04-12 19:20 William Hubbs
2025-03-03 15:56 William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1525209547.e4afc1bb6afddad8601a5f88d71a23d31bb06570.williamh@gentoo \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox