Package: sane-backends
Version: 1.0.24-1.1
Severity: important
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el

Dear Maintainer,

libgphoto2 fails to build on the ppc64el architecture, as it fails to
recognize it. The root cause is that libtool and configure is outdated
in the package, and needs to be updated.

One solution would be to use dh-autoreconf, however sane-backends has
plenty of patches touching only Makefile.in instead of Makefile.am, and
running dh-autoreconf would just revert these changes. I have therefore
made patch changing directly configure and libtool.m4. You will find it
attached to this bug report. As it currently blocks the ppc64el
bootstrap in debian, and upload as soon as possible would be really
appreciated. Thanks

Thanks,
Aurelien

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.14-1-powerpc64le (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru sane-backends-1.0.24/debian/patches/ppc64el.patch sane-backends-1.0.24/debian/patches/ppc64el.patch
--- sane-backends-1.0.24/debian/patches/ppc64el.patch	1970-01-01 01:00:00.000000000 +0100
+++ sane-backends-1.0.24/debian/patches/ppc64el.patch	2014-08-25 23:07:59.000000000 +0200
@@ -0,0 +1,70 @@
+--- a/configure
++++ b/configure
+@@ -12929,7 +12929,7 @@
+   rm -rf conftest*
+   ;;
+ 
+-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
++x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
+ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+   # Find out which ABI we are using.
+   echo 'int i;' > conftest.$ac_ext
+@@ -12947,7 +12947,10 @@
+ 	  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*)
+@@ -12966,7 +12969,10 @@
+ 	  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*)
+--- a/m4/libtool.m4
++++ b/m4/libtool.m4
+@@ -1312,7 +1312,7 @@
+   rm -rf conftest*
+   ;;
+ 
+-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
++x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
+ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+   # Find out which ABI we are using.
+   echo 'int i;' > conftest.$ac_ext
+@@ -1326,7 +1326,10 @@
+ 	  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*)
+@@ -1345,7 +1348,10 @@
+ 	  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*)
diff -Nru sane-backends-1.0.24/debian/patches/series sane-backends-1.0.24/debian/patches/series
--- sane-backends-1.0.24/debian/patches/series	2013-11-24 15:41:59.000000000 +0100
+++ sane-backends-1.0.24/debian/patches/series	2014-08-25 23:06:53.000000000 +0200
@@ -13,3 +13,4 @@
 nousbtest.patch
 man-page-spelling.patch
 source-spelling.patch
+ppc64el.patch

Reply via email to