1 |
commit: 426743b8538f84b9d8f14b658283b45806a77f93 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 27 23:24:59 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 27 23:25:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=426743b8 |
7 |
|
8 |
sys-libs/lwp: tweak build failure on ia64 |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
sys-libs/lwp/files/lwp-2.8-ia64.patch | 18 ++++++++++++++++++ |
13 |
sys-libs/lwp/lwp-2.8.ebuild | 4 ++++ |
14 |
2 files changed, 22 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/lwp/files/lwp-2.8-ia64.patch b/sys-libs/lwp/files/lwp-2.8-ia64.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..bb5abe65cc3 |
19 |
--- /dev/null |
20 |
+++ b/sys-libs/lwp/files/lwp-2.8-ia64.patch |
21 |
@@ -0,0 +1,18 @@ |
22 |
+diff --git a/src/lwp_ucontext.h b/src/lwp_ucontext.h |
23 |
+index dfb5465..adc58e5 100644 |
24 |
+--- a/src/lwp_ucontext.h |
25 |
++++ b/src/lwp_ucontext.h |
26 |
+@@ -25,6 +25,13 @@ Coda are listed in the file CREDITS. |
27 |
+ #include <signal.h> |
28 |
+ #include "lwp_stacktrace.h" |
29 |
+ |
30 |
++// ia64 defines uc_link define as: |
31 |
++// /usr/include/sys/ucontext.h:#define uc_link _u._uc._link |
32 |
++// undo namespace pollution |
33 |
++#undef uc_link |
34 |
++#undef uc_stack |
35 |
++#undef uc_mcontext |
36 |
++ |
37 |
+ #ifdef SAVE_SIGMASK |
38 |
+ #define JMP_BUF sigjmp_buf |
39 |
+ #define SETJMP(x,y) sigsetjmp(x, y) |
40 |
|
41 |
diff --git a/sys-libs/lwp/lwp-2.8.ebuild b/sys-libs/lwp/lwp-2.8.ebuild |
42 |
index a2a5a51c75c..c1ef7d1d273 100644 |
43 |
--- a/sys-libs/lwp/lwp-2.8.ebuild |
44 |
+++ b/sys-libs/lwp/lwp-2.8.ebuild |
45 |
@@ -13,6 +13,10 @@ SLOT="1" |
46 |
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86" |
47 |
IUSE="" |
48 |
|
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${P}-ia64.patch |
51 |
+) |
52 |
+ |
53 |
src_configure() { |
54 |
econf --disable-static |
55 |
} |