1 |
commit: 25f864c733b97212f71e3677f4f1a2fbaca4e857 |
2 |
Author: Joshua Kinard <kumba <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 29 22:48:00 2017 +0000 |
4 |
Commit: Joshua Kinard <kumba <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 29 22:49:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25f864c7 |
7 |
|
8 |
dev-libs/libpcre: Fix compile error on MIPS. Fixes #626564 |
9 |
|
10 |
Fixes a compile error on certain MIPS platforms that leads to a |
11 |
violation of C grammar in sljit/sljitNativeMIPS_common.c. Patch |
12 |
has been upstreamed: |
13 |
https://bugs.exim.org/show_bug.cgi?id=2154 |
14 |
|
15 |
Signed-off-by: Joshua Kinard <kumba <AT> gentoo.org> |
16 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
17 |
|
18 |
.../libpcre-8.41-sljit_mips-label-statement-fix.patch | 15 +++++++++++++++ |
19 |
dev-libs/libpcre/libpcre-8.41.ebuild | 7 ++++--- |
20 |
2 files changed, 19 insertions(+), 3 deletions(-) |
21 |
|
22 |
diff --git a/dev-libs/libpcre/files/libpcre-8.41-sljit_mips-label-statement-fix.patch b/dev-libs/libpcre/files/libpcre-8.41-sljit_mips-label-statement-fix.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..0494ccc25eb |
25 |
--- /dev/null |
26 |
+++ b/dev-libs/libpcre/files/libpcre-8.41-sljit_mips-label-statement-fix.patch |
27 |
@@ -0,0 +1,15 @@ |
28 |
+diff -Naurp pcre-8.41.orig/sljit/sljitNativeMIPS_common.c pcre-8.41/sljit/sljitNativeMIPS_common.c |
29 |
+--- pcre-8.41.orig/sljit/sljitNativeMIPS_common.c 2017-05-07 11:32:25.000000000 -0400 |
30 |
++++ pcre-8.41/sljit/sljitNativeMIPS_common.c 2017-07-29 17:50:24.508909742 -0400 |
31 |
+@@ -503,9 +503,11 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit |
32 |
+ #ifdef SLJIT_IS_FPU_AVAILABLE |
33 |
+ return SLJIT_IS_FPU_AVAILABLE; |
34 |
+ #elif defined(__GNUC__) |
35 |
++ { |
36 |
+ sljit_sw fir; |
37 |
+ asm ("cfc1 %0, $0" : "=r"(fir)); |
38 |
+ return (fir >> 22) & 0x1; |
39 |
++ } |
40 |
+ #else |
41 |
+ #error "FIR check is not implemented for this architecture" |
42 |
+ #endif |
43 |
|
44 |
diff --git a/dev-libs/libpcre/libpcre-8.41.ebuild b/dev-libs/libpcre/libpcre-8.41.ebuild |
45 |
index a681e836fee..397cbd7f417 100644 |
46 |
--- a/dev-libs/libpcre/libpcre-8.41.ebuild |
47 |
+++ b/dev-libs/libpcre/libpcre-8.41.ebuild |
48 |
@@ -47,11 +47,12 @@ MULTILIB_CHOST_TOOLS=( |
49 |
/usr/bin/pcre-config |
50 |
) |
51 |
|
52 |
-#PATCHES=( |
53 |
-#) |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-8.41-sljit_mips-label-statement-fix.patch |
56 |
+) |
57 |
|
58 |
src_prepare() { |
59 |
- #epatch "${PATCHES[@]}" |
60 |
+ epatch "${PATCHES[@]}" |
61 |
sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die |
62 |
elibtoolize |
63 |
} |