Source: popt
Version: 1.16-8
Severity: normal
Tags: patch
User: [email protected]
Usertags: ppc64el

Dear Maintainer,

Currently popt fails to build on ppc64el platform because it fails to recognize
that ppc64el supports ppc64el platform.  The root cause is that libtool and
configure is outdated in the package, and needs to be updated. Take a look at
the build log:

http://ftp.unicamp.br/pub/ppc64el/debian/buildd-upstream/build_logs/logs/popt_1.16-8_ppc64el.build

I tried to update this package using dh-autoreconf, but it is failing hard, so,
I took a sinpler way and create a patch to add ppc64el bits into configure and
libtool files.

I would appreciate if you can include this patch into the package. It is pretty
simple and risk-free (it only changes the power stuff).

Thank you,
Breno
Index: popt-1.16/configure
===================================================================
--- popt-1.16.orig/configure
+++ popt-1.16/configure
@@ -7022,7 +7022,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_i386"
 	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
+	  powerpc64le-*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
+	  powerpc64-*)
 	    LD="${LD-ld} -m elf32ppclinux"
 	    ;;
 	  s390x-*linux*)
@@ -7041,7 +7044,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_x86_64"
 	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
+	  powerpc64le-*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
+	  powerpc64-*)
 	    LD="${LD-ld} -m elf64ppc"
 	    ;;
 	  s390*-*linux*|s390*-*tpf*)
Index: popt-1.16/m4/libtool.m4
===================================================================
--- popt-1.16.orig/m4/libtool.m4
+++ popt-1.16/m4/libtool.m4
@@ -1281,7 +1281,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_i386"
 	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
+	  powerpc64le-*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
+	  powerpc64-*)
 	    LD="${LD-ld} -m elf32ppclinux"
 	    ;;
 	  s390x-*linux*)
@@ -1300,7 +1303,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_x86_64"
 	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
+	  powerpcle-*)
+	    LD="${LD-ld} -m elf64lppc"
+	    ;;
+	  powerpc-*)
 	    LD="${LD-ld} -m elf64ppc"
 	    ;;
 	  s390*-*linux*|s390*-*tpf*)

Reply via email to