Gentoo Archives: gentoo-dev

From: Leno Hou <lenohou@×××××.com>
To: blueness@g.o, gentoo-dev@l.g.o
Cc: Leno Hou <lenohou@×××××.com>
Subject: [gentoo-dev] [PATCH v1][ 1/8] app-text/opensp: Fix ppc64le configure problem
Date: Tue, 19 Apr 2016 14:13:52
Message-Id: 1461075186-13641-1-git-send-email-lenohou@gmail.com
1 ---
2 .../opensp-1.5.2-configure-with-ppc64le.patch | 26 ++++++++++++++++++++++
3 app-text/opensp/opensp-1.5.2-r3.ebuild | 3 ++-
4 app-text/opensp/opensp-1.5.2-r4.ebuild | 1 +
5 3 files changed, 29 insertions(+), 1 deletion(-)
6 create mode 100644 app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
7
8 diff --git a/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch b/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
9 new file mode 100644
10 index 0000000..e1c8bef
11 --- /dev/null
12 +++ b/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
13 @@ -0,0 +1,26 @@
14 +--- configure.orig 2016-04-09 16:24:17.507053635 +0000
15 ++++ configure 2016-04-09 16:25:41.851918142 +0000
16 +@@ -4947,6 +4947,9 @@
17 + ppc64-*linux*|powerpc64-*linux*)
18 + LD="${LD-ld} -m elf32ppclinux"
19 + ;;
20 ++ ppc64le-*linux*|powerpc64le-*linux*)
21 ++ LD="${LD-ld} -m elf32lppclinux"
22 ++ ;;
23 + s390x-*linux*)
24 + LD="${LD-ld} -m elf_s390"
25 + ;;
26 +@@ -4960,9 +4963,12 @@
27 + x86_64-*linux*)
28 + LD="${LD-ld} -m elf_x86_64"
29 + ;;
30 +- ppc*-*linux*|powerpc*-*linux*)
31 ++ ppc64-*linux*|powerpc64-*linux*)
32 + LD="${LD-ld} -m elf64ppc"
33 + ;;
34 ++ ppc64le-*linux*|powerpc64le-*linux*)
35 ++ LD="${LD-ld} -m elf64lppc"
36 ++ ;;
37 + s390*-*linux*)
38 + LD="${LD-ld} -m elf64_s390"
39 + ;;
40 diff --git a/app-text/opensp/opensp-1.5.2-r3.ebuild b/app-text/opensp/opensp-1.5.2-r3.ebuild
41 index 9f97607..28c32fc 100644
42 --- a/app-text/opensp/opensp-1.5.2-r3.ebuild
43 +++ b/app-text/opensp/opensp-1.5.2-r3.ebuild
44 @@ -33,7 +33,8 @@ S=${WORKDIR}/${MY_P}
45 src_prepare() {
46 epatch \
47 "${FILESDIR}"/${PN}-1.5-gcc34.patch \
48 - "${FILESDIR}"/${P}-fix-segfault.patch
49 + "${FILESDIR}"/${P}-fix-segfault.patch \
50 + "${FILESDIR}"/${P}-configure-with-ppc64le.patch
51 }
52
53 src_configure() {
54 diff --git a/app-text/opensp/opensp-1.5.2-r4.ebuild b/app-text/opensp/opensp-1.5.2-r4.ebuild
55 index 2abcab3..0851155 100644
56 --- a/app-text/opensp/opensp-1.5.2-r4.ebuild
57 +++ b/app-text/opensp/opensp-1.5.2-r4.ebuild
58 @@ -33,6 +33,7 @@ S=${WORKDIR}/${MY_P}
59
60 src_prepare() {
61 epatch "${FILESDIR}"/${P}-fix-segfault.patch
62 + epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
63 use prefix && eautoreconf
64 }
65
66 --
67 1.9.1

Replies