[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#591718: myspell: FTBFS on sparc64: tries to use sparc-linux-gnu-gcc/g++



Package: myspell
Version: 3.0+pre3.1-23
Severity: important
Tags: patch

myspell fails to build on sparc64 as it tries to use sparc-linux-gnu-gcc
and sparc-linux-gnu-g++ on all sparc architectures, including sparc64.

I don't really see why sparc should be handled differently than other
architectures, so please find a patch below to fix the issue.


diff -u myspell-3.0+pre3.1/debian/rules myspell-3.0+pre3.1/debian/rules
--- myspell-3.0+pre3.1/debian/rules
+++ myspell-3.0+pre3.1/debian/rules
@@ -7,6 +7,8 @@
 include /usr/share/dpatch/dpatch.make
 
 CFLAGS = -g -Wall -ansi -pedantic
+CXX=g++
+CC=gcc
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
@@ -17,14 +19,6 @@
 	INSTALL_PROGRAM += -s
 endif
 
-ifneq (,$(findstring sparc,$(DEB_HOST_GNU_TYPE))) 	 
-	CXX=sparc-linux-gnu-g++
-	CC=sparc-linux-gnu-gcc
-else 	 
-	CXX=g++
-	CC=gcc
-endif
-
 major=$(shell grep VERMAJOR= Makefile | cut -d"=" -f2)
 version=$(major).$(shell grep VERMINOR= Makefile | cut -d"=" -f2)
 


-- 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



Reply to: