summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-04-28 00:24:59 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-04-28 00:25:16 +0100
commit426743b8538f84b9d8f14b658283b45806a77f93 (patch)
tree17988f98672b6189cbd66336562bd5106c641fda /sys-libs/lwp
parentmedia-libs/phonon: Restore dropped ~amd64-fbsd keyword (diff)
downloadgentoo-426743b8538f84b9d8f14b658283b45806a77f93.tar.gz
gentoo-426743b8538f84b9d8f14b658283b45806a77f93.tar.bz2
gentoo-426743b8538f84b9d8f14b658283b45806a77f93.zip
sys-libs/lwp: tweak build failure on ia64
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'sys-libs/lwp')
-rw-r--r--sys-libs/lwp/files/lwp-2.8-ia64.patch18
-rw-r--r--sys-libs/lwp/lwp-2.8.ebuild4
2 files changed, 22 insertions, 0 deletions
diff --git a/sys-libs/lwp/files/lwp-2.8-ia64.patch b/sys-libs/lwp/files/lwp-2.8-ia64.patch
new file mode 100644
index 000000000000..bb5abe65cc34
--- /dev/null
+++ b/sys-libs/lwp/files/lwp-2.8-ia64.patch
@@ -0,0 +1,18 @@
+diff --git a/src/lwp_ucontext.h b/src/lwp_ucontext.h
+index dfb5465..adc58e5 100644
+--- a/src/lwp_ucontext.h
++++ b/src/lwp_ucontext.h
+@@ -25,6 +25,13 @@ Coda are listed in the file CREDITS.
+ #include <signal.h>
+ #include "lwp_stacktrace.h"
+
++// ia64 defines uc_link define as:
++// /usr/include/sys/ucontext.h:#define uc_link _u._uc._link
++// undo namespace pollution
++#undef uc_link
++#undef uc_stack
++#undef uc_mcontext
++
+ #ifdef SAVE_SIGMASK
+ #define JMP_BUF sigjmp_buf
+ #define SETJMP(x,y) sigsetjmp(x, y)
diff --git a/sys-libs/lwp/lwp-2.8.ebuild b/sys-libs/lwp/lwp-2.8.ebuild
index a2a5a51c75cd..c1ef7d1d2739 100644
--- a/sys-libs/lwp/lwp-2.8.ebuild
+++ b/sys-libs/lwp/lwp-2.8.ebuild
@@ -13,6 +13,10 @@ SLOT="1"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86"
IUSE=""
+PATCHES=(
+ "${FILESDIR}"/${P}-ia64.patch
+)
+
src_configure() {
econf --disable-static
}