public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpipeline/, dev-libs/libpipeline/files/
@ 2017-01-17  8:59 Fabian Groffen
  0 siblings, 0 replies; only message in thread
From: Fabian Groffen @ 2017-01-17  8:59 UTC (permalink / raw
  To: gentoo-commits

commit:     be7e37786b229ee2da2eed6c90fa8ed2e6963bf0
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 08:59:29 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 08:59:29 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be7e3778

dev-libs/libpipeline: fix for and marked ~{ppc,x86,x64}-macos

Package-Manager: portage-2.3.0

 ...pipeline-1.4.1-gnulib-darwin-program_name.patch | 28 ++++++++++++++++++++++
 dev-libs/libpipeline/libpipeline-1.4.1.ebuild      |  9 ++++---
 2 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/dev-libs/libpipeline/files/libpipeline-1.4.1-gnulib-darwin-program_name.patch b/dev-libs/libpipeline/files/libpipeline-1.4.1-gnulib-darwin-program_name.patch
new file mode 100644
index 00000000..91a3c47
--- /dev/null
+++ b/dev-libs/libpipeline/files/libpipeline-1.4.1-gnulib-darwin-program_name.patch
@@ -0,0 +1,28 @@
+https://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00079.html
+
+From: Margaret Lewicka <address@hidden>
+
+---
+ lib/error.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/lib/error.c b/lib/error.c
+index 6683197..36a3db7 100644
+--- gnulib/lib/error.c
++++ gnulib/lib/error.c
+@@ -113,9 +113,13 @@ int strerror_r ();
+ #  endif
+ # endif
+ 
++#if defined __APPLE__ && defined __MACH__
++#define program_name (((char **)*_NSGetArgv())[0])
++#else
+ /* The calling program should define program_name and set it to the
+    name of the executing program.  */
+ extern char *program_name;
++#endif
+ 
+ # if HAVE_STRERROR_R || defined strerror_r
+ #  define __strerror_r strerror_r
+-- 
+2.1.0

diff --git a/dev-libs/libpipeline/libpipeline-1.4.1.ebuild b/dev-libs/libpipeline/libpipeline-1.4.1.ebuild
index ab24456..4ca3f64 100644
--- a/dev-libs/libpipeline/libpipeline-1.4.1.ebuild
+++ b/dev-libs/libpipeline/libpipeline-1.4.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -12,10 +12,13 @@ SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
 IUSE="static-libs test"
 
 DEPEND="virtual/pkgconfig
 	test? ( dev-libs/check )"
 
-PATCHES=( "${FILESDIR}"/${P}-gnulib-cygwin-sys_select.patch )
+PATCHES=(
+	"${FILESDIR}"/${P}-gnulib-cygwin-sys_select.patch
+	"${FILESDIR}"/${P}-gnulib-darwin-program_name.patch
+)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-17  8:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-17  8:59 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpipeline/, dev-libs/libpipeline/files/ Fabian Groffen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox