commit:     12f364eb0045af44b4009a6722f36c560827d20f
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sat Apr 11 21:27:51 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Apr 16 21:20:36 2015 +0000
URL:        https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=12f364eb

dev-libs/boehm-gc: musl doesn't have getcontext (yet)

 dev-libs/boehm-gc/boehm-gc-7.4.2-r99.ebuild             |  3 ++-
 dev-libs/boehm-gc/files/boehm-gc-7.4.2-getcontext.patch | 12 ++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dev-libs/boehm-gc/boehm-gc-7.4.2-r99.ebuild 
b/dev-libs/boehm-gc/boehm-gc-7.4.2-r99.ebuild
index 2312d58..b46deba 100644
--- a/dev-libs/boehm-gc/boehm-gc-7.4.2-r99.ebuild
+++ b/dev-libs/boehm-gc/boehm-gc-7.4.2-r99.ebuild
@@ -14,7 +14,7 @@ SRC_URI="http://www.hboehm.info/gc/gc_source/${MY_P}.tar.gz";
 
 LICENSE="boehm-gc"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~mips ppc ~x86"
+KEYWORDS="amd64 arm ~mips ppc x86"
 IUSE="cxx static-libs threads"
 
 DEPEND=">=dev-libs/libatomic_ops-7.4
@@ -24,6 +24,7 @@ S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
        epatch "${FILESDIR}"/${PN}-7.2e-os_dep.patch
+       epatch "${FILESDIR}"/${PN}-7.4.2-getcontext.patch
 }
 
 src_configure() {

diff --git a/dev-libs/boehm-gc/files/boehm-gc-7.4.2-getcontext.patch 
b/dev-libs/boehm-gc/files/boehm-gc-7.4.2-getcontext.patch
new file mode 100644
index 0000000..d694b84
--- /dev/null
+++ b/dev-libs/boehm-gc/files/boehm-gc-7.4.2-getcontext.patch
@@ -0,0 +1,12 @@
+diff -ur a/gc-7.4.2/mach_dep.c b/gc-7.4.2/mach_dep.c
+--- a/gc-7.4.2/mach_dep.c      2014-06-03 08:08:02.000000000 -0200
++++ b/gc-7.4.2/mach_dep.c      2015-04-10 10:54:48.500634001 -0200
+@@ -218,7 +218,7 @@
+ 
+ #   if defined(HAVE_PUSH_REGS)
+       GC_push_regs();
+-#   elif defined(UNIX_LIKE) && !defined(NO_GETCONTEXT)
++#   elif 0
+       /* Older versions of Darwin seem to lack getcontext(). */
+       /* ARM and MIPS Linux often doesn't support a real     */
+       /* getcontext().                                       */

Reply via email to