Source: gmp
Version: 4.3.2+dfsg-1
Severity: minor
Tags: patch

config.status: executing libtool commands
CC=" m68k-linux-gnu-gcc" sh debian/fix-gmp-h.sh build
<stdin>:65:2: error: #error "The gmp-dev package is not usable with the 
architecture."
mv: uild/gmp.h' and uild/gmp.h' are the same file
make: *** [configure-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package

The attached patch lets it go past that stage, I’m now at:
libtool: compile:  ../../mpn/m4-ccas --m4=m4 m68k-linux-gnu-gcc -std=gnu99 -c 
-DHAVE_CONFIG_H -I. -I../../mpn -I.. -D__GMP_WITHIN_GMP -I../.. 
-DOPERATION_lshift -Wall -g -D_REENTRANT -O3 -Wa,--noexecstack lshift.asm -o 
lshift.o >/dev/null 2>&1
diff -u gmp-4.3.2+dfsg/debian/gmp.h gmp-4.3.2+dfsg/debian/gmp.h
--- gmp-4.3.2+dfsg/debian/gmp.h
+++ gmp-4.3.2+dfsg/debian/gmp.h
@@ -47,6 +47,8 @@
 #include "gmp-hppa.h"
 #elif defined(__powerpc64__)
 #include "gmp-ppc64.h"
+#elif defined(__m68k__)
+#include "gmp-m68k.h"
 #elif defined(__mips__)
 #include "gmp-mips.h"
 #elif defined(__powerpc__)
diff -u gmp-4.3.2+dfsg/debian/changelog gmp-4.3.2+dfsg/debian/changelog
--- gmp-4.3.2+dfsg/debian/changelog
+++ gmp-4.3.2+dfsg/debian/changelog
@@ -1,3 +1,9 @@
+gmp (2:4.3.2+dfsg-1+m68k) unreleased; urgency=low
+
+  * Add m68k support.
+
+ -- Thorsten Glaser <t...@mirbsd.de>  Sun, 24 Oct 2010 20:36:22 +0000
+
 gmp (2:4.3.2+dfsg-1) unstable; urgency=low
 
   * New upstream version.

Reply via email to