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][ 7/8] sys-libs/gdbm: Fix ppc64le configure problem
Date: Tue, 19 Apr 2016 14:18:04
Message-Id: 1461075186-13641-7-git-send-email-lenohou@gmail.com
In Reply to: [gentoo-dev] [PATCH v1][ 1/8] app-text/opensp: Fix ppc64le configure problem by Leno Hou
1 ---
2 .../files/gdbm-1.11-configure-with-ppc64le.patch | 26 ++++++++++++++++++++++
3 sys-libs/gdbm/gdbm-1.11.ebuild | 1 +
4 2 files changed, 27 insertions(+)
5 create mode 100644 sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch
6
7 diff --git a/sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch b/sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch
8 new file mode 100644
9 index 0000000..2bdba70
10 --- /dev/null
11 +++ b/sys-libs/gdbm/files/gdbm-1.11-configure-with-ppc64le.patch
12 @@ -0,0 +1,26 @@
13 +--- configure.orig 2016-04-09 17:02:36.818123640 +0000
14 ++++ configure 2016-04-09 17:04:09.407071685 +0000
15 +@@ -6898,6 +6898,9 @@
16 + ppc64-*linux*|powerpc64-*linux*)
17 + LD="${LD-ld} -m elf32ppclinux"
18 + ;;
19 ++ ppc64le-*linux*|powerpc64le-*linux*)
20 ++ LD="${LD-ld} -m elf32lppclinux"
21 ++ ;;
22 + s390x-*linux*)
23 + LD="${LD-ld} -m elf_s390"
24 + ;;
25 +@@ -6914,9 +6917,12 @@
26 + x86_64-*linux*)
27 + LD="${LD-ld} -m elf_x86_64"
28 + ;;
29 +- ppc*-*linux*|powerpc*-*linux*)
30 ++ ppc64-*linux*|powerpc64-*linux*)
31 + LD="${LD-ld} -m elf64ppc"
32 + ;;
33 ++ ppc64le-*linux*|powerpc64le-*linux*)
34 ++ LD="${LD-ld} -m elf64lppc"
35 ++ ;;
36 + s390*-*linux*|s390*-*tpf*)
37 + LD="${LD-ld} -m elf64_s390"
38 + ;;
39 diff --git a/sys-libs/gdbm/gdbm-1.11.ebuild b/sys-libs/gdbm/gdbm-1.11.ebuild
40 index 06ebd03..aa9d6cf 100644
41 --- a/sys-libs/gdbm/gdbm-1.11.ebuild
42 +++ b/sys-libs/gdbm/gdbm-1.11.ebuild
43 @@ -26,6 +26,7 @@ RDEPEND="
44 EX_S="${WORKDIR}"/${EX_P}
45
46 src_prepare() {
47 + epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
48 elibtoolize
49 }
50
51 --
52 1.9.1