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][ 4/8] net-libs/libmnl: Fix ppc64le configure problem
Date: Tue, 19 Apr 2016 14:15:50
Message-Id: 1461075186-13641-4-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 .../libmnl-1.0.3-configure-with-ppc64le.patch | 26 ++++++++++++++++++++++
3 net-libs/libmnl/libmnl-1.0.3-r1.ebuild | 4 ++++
4 2 files changed, 30 insertions(+)
5 create mode 100644 net-libs/libmnl/files/libmnl-1.0.3-configure-with-ppc64le.patch
6
7 diff --git a/net-libs/libmnl/files/libmnl-1.0.3-configure-with-ppc64le.patch b/net-libs/libmnl/files/libmnl-1.0.3-configure-with-ppc64le.patch
8 new file mode 100644
9 index 0000000..d46bcc9
10 --- /dev/null
11 +++ b/net-libs/libmnl/files/libmnl-1.0.3-configure-with-ppc64le.patch
12 @@ -0,0 +1,26 @@
13 +--- configure.orig 2016-04-08 16:30:09.521850897 +0000
14 ++++ configure 2016-04-08 16:34:25.932337241 +0000
15 +@@ -6309,6 +6309,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 +@@ -6325,9 +6328,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/net-libs/libmnl/libmnl-1.0.3-r1.ebuild b/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
40 index 4b0bbc2..aa57068 100644
41 --- a/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
42 +++ b/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
43 @@ -15,6 +15,10 @@ SLOT="0"
44 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux"
45 IUSE="examples static-libs"
46
47 +src_prepare() {
48 + epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
49 +}
50 +
51 src_configure() {
52 econf $(use_enable static-libs static)
53 }
54 --
55 1.9.1