Package: libticables
Version: 1.2.0-2
Severity: normal
Tags: patch
User: debian-sp...@lists.debian.org
Usertags: sparc64

libticables fails to build from source as sparc64 is not correctly
recognized by the configure script. The patch below fixes the problem.
Could you please apply it in the next upload? Thanks in advance.

diff -u libticables-1.2.0/debian/patches/00list 
libticables-1.2.0/debian/patches/00list
--- libticables-1.2.0/debian/patches/00list
+++ libticables-1.2.0/debian/patches/00list
@@ -2,0 +3 @@
+30_ftbfs-sparc64-configure.dpatch
--- libticables-1.2.0.orig/debian/patches/30_ftbfs-sparc64-configure.dpatch
+++ libticables-1.2.0/debian/patches/30_ftbfs-sparc64-configure.dpatch
@@ -0,0 +1,30 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 30_ftbfs-sh4-configure.dpatch by Aurelien Jarno <aure...@debian.org>
+##
+## DP: detects sparc64 architecture
+
+...@dpatch@
+diff -urNad libticables-1.2.0~/configure libticables-1.2.0/configure
+--- libticables-1.2.0~/configure       2008-11-15 08:30:40.000000000 +0100
++++ libticables-1.2.0/configure        2010-03-16 23:11:48.140082889 +0100
+@@ -30332,7 +30332,7 @@
+   powerpc-apple-darwin*) ARCH="-D__PPC__  -D__MACOSX__" ;;
+   s390-*-linux-*)        ARCH="-D__LINUX__" ;;
+   sh*-*-linux-*)         ARCH="-D__LINUX__" ;;
+-  sparc-*-linux-*)       ARCH="-D__SPARC__ -D__LINUX__" ;;
++  sparc*-*-linux-*)      ARCH="-D__SPARC__ -D__LINUX__" ;;
+   sparc*-sun-solaris*)   ARCH="-D__SPARC__ -D__SOL__" ;;
+ esac
+ CFLAGS="$CFLAGS $ARCH"
+diff -urNad libticables-1.2.0~/configure.ac libticables-1.2.0/configure.ac
+--- libticables-1.2.0~/configure.ac    2007-12-01 15:43:51.000000000 +0100
++++ libticables-1.2.0/configure.ac     2010-03-16 23:11:48.140082889 +0100
+@@ -121,7 +121,7 @@
+   powerpc-apple-darwin*) ARCH="-D__PPC__  -D__MACOSX__" ;;
+   s390-*-linux-*)        ARCH="-D__LINUX__" ;;
+   sh*-*-linux-*)         ARCH="-D__LINUX__" ;;
+-  sparc-*-linux-*)       ARCH="-D__SPARC__ -D__LINUX__" ;;
++  sparc*-*-linux-*)      ARCH="-D__SPARC__ -D__LINUX__" ;;
+   sparc*-sun-solaris*)   ARCH="-D__SPARC__ -D__SOL__" ;;
+ esac
+ CFLAGS="$CFLAGS $ARCH"

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: sparc64 

Kernel: Linux 2.6.32-bpo.5-sparc64-smp (SMP w/32 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to