Source: spacezero
Version: 0.80.03-1
Severity: serious
Justification: fails to build from source
Tags: patch

Hi,

spacezero FTBFS on some architecture by -mtune option.
  https://buildd.debian.org/status/package.php?p=spacezero
  http://buildd.debian-ports.org/status/package.php?p=spacezero
-----
Note: Writing spacezero.6
/usr/bin/make all DATADIR=/usr/share/spacezero/
make[2]: Entering directory
`/build/buildd-spacezero_0.80.03-1-armel-0EzDim/spacezero-0.80.03'
if [ ! -d ./bin/ ] ; then mkdir ./bin/ ; fi
if [ ! -d /home/buildd/.spacezero/ ] ; then mkdir /home/buildd/.spacezero/ ; fi
gcc  -g  -Wall -O3 -mtune=generic -I./include
-DDATADIR=\"/usr/share/spacezero/\"  `pkg-config --cflags gtk+-2.0` -c
src/spacezero.c -o  src/spacezero.o
cc1: error: bad value (generic) for -mtune switch
make[2]: *** [src/spacezero.o] Error 1
make[1]: *** [override_dh_auto_build] Error 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
make[2]: Leaving directory
`/build/buildd-spacezero_0.80.03-1-armel-0EzDim/spacezero-0.80.03'
-----

And -mtune generic option generates the binary which is not supported
by the architecture of Debian.
I attached a patch which revise this problem.

Could you check and apply this patch?

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff -Nru spacezero-0.80.03/debian/changelog spacezero-0.80.03/debian/changelog
--- spacezero-0.80.03/debian/changelog	2011-08-07 04:12:25.000000000 +0900
+++ spacezero-0.80.03/debian/changelog	2011-09-16 14:36:36.000000000 +0900
@@ -1,3 +1,9 @@
+spacezero (0.80.03-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+
+ -- Nobuhiro Iwamatsu <iwama...@debian.org>  Fri, 16 Sep 2011 14:36:32 +0900
+
 spacezero (0.80.03-1) unstable; urgency=low
 
   [ Romanella Di Ferdinando ]
diff -Nru spacezero-0.80.03/debian/patches/debian-changes-0.80.03-1.1 spacezero-0.80.03/debian/patches/debian-changes-0.80.03-1.1
--- spacezero-0.80.03/debian/patches/debian-changes-0.80.03-1.1	1970-01-01 09:00:00.000000000 +0900
+++ spacezero-0.80.03/debian/patches/debian-changes-0.80.03-1.1	2011-09-16 14:46:15.000000000 +0900
@@ -0,0 +1,38 @@
+Description: Upstream changes introduced in version 0.80.03-1.1
+ This patch has been created by dpkg-source during the package build.
+ Here's the last changelog entry, hopefully it gives details on why
+ those changes were made:
+ .
+ spacezero (0.80.03-1.1) unstable; urgency=low
+ .
+   * Non-maintainer upload.
+ .
+ The person named in the Author field signed this changelog entry.
+Author: Nobuhiro Iwamatsu <iwama...@debian.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- spacezero-0.80.03.orig/Makefile
++++ spacezero-0.80.03/Makefile
+@@ -16,8 +16,8 @@ GTKLIBS12=`gtk-config --cflags`
+ 
+ LDFLAGS=  -lm -lpthread $(OPENALFLAGS) $(GTKLIBS)
+ LDFLAGS12=  -lm -lpthread $(OPENALFLAGS) $(GTKLIBS12)
+-CFLAGS=  -Wall -O3 -mtune=generic -I./include -DDATADIR=\"$(DATADIR)\"
+-CFLAGS12=  -Wall -O3 -mtune=generic -I./include -DGTK12
++CFLAGS=  -Wall -O3 -I./include -DDATADIR=\"$(DATADIR)\"
++CFLAGS12=  -Wall -O3 -I./include -DGTK12
+ PROGRAMA=$(BINDIR)spacezero
+ 
+ 
diff -Nru spacezero-0.80.03/debian/patches/series spacezero-0.80.03/debian/patches/series
--- spacezero-0.80.03/debian/patches/series	2011-08-07 01:44:56.000000000 +0900
+++ spacezero-0.80.03/debian/patches/series	2011-09-16 14:46:15.000000000 +0900
@@ -1 +1,2 @@
 fix_datadir
+debian-changes-0.80.03-1.1

Reply via email to