Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Leno Hou <lenohou@×××××.com>
Cc: "Anthony G. Basile" <blueness@g.o>, gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH v1][ 1/8] app-text/opensp: Fix ppc64le configure problem
Date: Tue, 19 Apr 2016 14:36:47
Message-Id: 20160419163631.3b2dde25.mgorny@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH v1][ 1/8] app-text/opensp: Fix ppc64le configure problem by Leno Hou
1 On Tue, 19 Apr 2016 22:32:51 +0800
2 Leno Hou <lenohou@×××××.com> wrote:
3
4 > On Tue, Apr 19, 2016 at 10:20 PM, Michał Górny <mgorny@g.o> wrote:
5 >
6 > > On Tue, 19 Apr 2016 22:12:59 +0800
7 > > Leno Hou <lenohou@×××××.com> wrote:
8 > >
9 > > > ---
10 > > > .../opensp-1.5.2-configure-with-ppc64le.patch | 26
11 > > ++++++++++++++++++++++
12 > > > app-text/opensp/opensp-1.5.2-r3.ebuild | 3 ++-
13 > > > app-text/opensp/opensp-1.5.2-r4.ebuild | 1 +
14 > > > 3 files changed, 29 insertions(+), 1 deletion(-)
15 > > > create mode 100644
16 > > app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
17 > > >
18 > > > diff --git
19 > > a/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
20 > > b/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
21 > > > new file mode 100644
22 > > > index 0000000..e1c8bef
23 > > > --- /dev/null
24 > > > +++ b/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
25 > > > @@ -0,0 +1,26 @@
26 > > > +--- configure.orig 2016-04-09 16:24:17.507053635 +0000
27 > > > ++++ configure 2016-04-09 16:25:41.851918142 +0000
28 > > > +@@ -4947,6 +4947,9 @@
29 > > > + ppc64-*linux*|powerpc64-*linux*)
30 > > > + LD="${LD-ld} -m elf32ppclinux"
31 > > > + ;;
32 > > > ++ ppc64le-*linux*|powerpc64le-*linux*)
33 > > > ++ LD="${LD-ld} -m elf32lppclinux"
34 > > > ++ ;;
35 > > > + s390x-*linux*)
36 > > > + LD="${LD-ld} -m elf_s390"
37 > > > + ;;
38 > > > +@@ -4960,9 +4963,12 @@
39 > > > + x86_64-*linux*)
40 > > > + LD="${LD-ld} -m elf_x86_64"
41 > > > + ;;
42 > > > +- ppc*-*linux*|powerpc*-*linux*)
43 > > > ++ ppc64-*linux*|powerpc64-*linux*)
44 > > > + LD="${LD-ld} -m elf64ppc"
45 > > > + ;;
46 > > > ++ ppc64le-*linux*|powerpc64le-*linux*)
47 > > > ++ LD="${LD-ld} -m elf64lppc"
48 > > > ++ ;;
49 > > > + s390*-*linux*)
50 > > > + LD="${LD-ld} -m elf64_s390"
51 > > > + ;;
52 > >
53 > > Isn't that the generic kind of problem usually fixed via elibtoolize?
54 > >
55 >
56 > How to fix it via elibtoolize ? Thanks if you give me in detail ;-)
57
58 I don't know the details, I just know it does some random common
59 patching to configure files. Take a look at libtool.eclass and
60 ELT-patches.
61
62 --
63 Best regards,
64 Michał Górny
65 <http://dev.gentoo.org/~mgorny/>

Replies