--- .../opensp-1.5.2-configure-with-ppc64le.patch | 26 ++++++++++++++++++++++ app-text/opensp/opensp-1.5.2-r3.ebuild | 3 ++- app-text/opensp/opensp-1.5.2-r4.ebuild | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch
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 new file mode 100644 index 0000000..e1c8bef --- /dev/null +++ b/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch @@ -0,0 +1,26 @@ +--- configure.orig 2016-04-09 16:24:17.507053635 +0000 ++++ configure 2016-04-09 16:25:41.851918142 +0000 +@@ -4947,6 +4947,9 @@ + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; ++ ppc64le-*linux*|powerpc64le-*linux*) ++ LD="${LD-ld} -m elf32lppclinux" ++ ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; +@@ -4960,9 +4963,12 @@ + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; +- ppc*-*linux*|powerpc*-*linux*) ++ ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; ++ ppc64le-*linux*|powerpc64le-*linux*) ++ LD="${LD-ld} -m elf64lppc" ++ ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; diff --git a/app-text/opensp/opensp-1.5.2-r3.ebuild b/app-text/opensp/opensp-1.5.2-r3.ebuild index 9f97607..28c32fc 100644 --- a/app-text/opensp/opensp-1.5.2-r3.ebuild +++ b/app-text/opensp/opensp-1.5.2-r3.ebuild @@ -33,7 +33,8 @@ S=${WORKDIR}/${MY_P} src_prepare() { epatch \ "${FILESDIR}"/${PN}-1.5-gcc34.patch \ - "${FILESDIR}"/${P}-fix-segfault.patch + "${FILESDIR}"/${P}-fix-segfault.patch \ + "${FILESDIR}"/${P}-configure-with-ppc64le.patch } src_configure() { diff --git a/app-text/opensp/opensp-1.5.2-r4.ebuild b/app-text/opensp/opensp-1.5.2-r4.ebuild index 2abcab3..0851155 100644 --- a/app-text/opensp/opensp-1.5.2-r4.ebuild +++ b/app-text/opensp/opensp-1.5.2-r4.ebuild @@ -33,6 +33,7 @@ S=${WORKDIR}/${MY_P} src_prepare() { epatch "${FILESDIR}"/${P}-fix-segfault.patch + epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch use prefix && eautoreconf } -- 1.9.1