Package: gcc-h8300-hms
Version: 2.95.2.2.1
Severity: serious
Tags: patch
When building 'gcc-h8300-hms' on i386/unstable,
I get the following error:
dh_testdir
# configure gcc build for our cross target
/gcc-h8300-hms-2.95.2.2.1/src/configure --target=h8300-hitachi-hms
--prefix=/usr --exec-prefix=/usr/h8300-hitachi-hms --host=i486-pc-linux-gnu-gnu
--enable-languages='c,c++' --enable-target-optspace --with-headers= --with-libs=
Invalid configuration `i486-pc-linux-gnu-gnu': machine `i486-pc-linux-gnu' not
recognized
Invalid configuration `i486-pc-linux-gnu-gnu': machine `i486-pc-linux-gnu' not
recognized
Unrecognized host system name i486-pc-linux-gnu-gnu.
make: *** [stamps/02-configure-stamp] Error 1
With the attached patch 'gcc-h8300-hms' can be compiled on unstable.
The patch also automatically updates config.guess/config.sub from
autotools-dev and adds support for compiling on amd64 and ppc64.
Regards
Andreas Jochens
diff -urN ../tmp-orig/gcc-h8300-hms-2.95.2.2.1/debian/control ./debian/control
--- ../tmp-orig/gcc-h8300-hms-2.95.2.2.1/debian/control 2001-01-28
07:28:45.000000000 +0000
+++ ./debian/control 2005-09-14 05:22:06.000000000 +0000
@@ -2,7 +2,7 @@
Section: devel
Priority: extra
Maintainer: Stephen M Moraco <[EMAIL PROTECTED]>
-Build-Depends: dejagnu (>= 1.3-19990614), bzip2, binutils-h8300-hms (>=
2.9.5.0.37), debhelper (>= 2), autoconf (>= 2.13), bison, flex, gettext, texinfo
+Build-Depends: autotools-dev, dejagnu (>= 1.3-19990614), bzip2,
binutils-h8300-hms (>= 2.9.5.0.37), debhelper (>= 2), autoconf (>= 2.13),
bison, flex, gettext, texinfo
Standards-Version: 3.1.1
Package: gcc-h8300-hms
diff -urN ../tmp-orig/gcc-h8300-hms-2.95.2.2.1/debian/rules ./debian/rules
--- ../tmp-orig/gcc-h8300-hms-2.95.2.2.1/debian/rules 2001-01-28
07:51:17.000000000 +0000
+++ ./debian/rules 2005-09-14 05:57:26.000000000 +0000
@@ -27,7 +27,13 @@
CROSS_TOOL := h8300-hitachi-hms
# attempt at being platform independent...
-CONFIG_HOST := ${DEB_BUILD_GNU_CPU}-pc-${DEB_BUILD_GNU_SYSTEM}-gnu
+CONFIG_HOST := ${DEB_BUILD_GNU_CPU}-pc-${DEB_BUILD_GNU_SYSTEM}
+ifeq ($(DEB_BUILD_GNU_CPU),powerpc64)
+CONFIG_HOST := powerpc-pc-${DEB_BUILD_GNU_SYSTEM}
+endif
+ifeq ($(DEB_BUILD_GNU_CPU),x86_64)
+CONFIG_HOST := i486-pc-${DEB_BUILD_GNU_SYSTEM}
+endif
srcdir := $(pwd)/src
stampdir := stamps
diff -urN ../tmp-orig/gcc-h8300-hms-2.95.2.2.1/debian/rules.unpack
./debian/rules.unpack
--- ../tmp-orig/gcc-h8300-hms-2.95.2.2.1/debian/rules.unpack 2001-01-06
07:55:01.000000000 +0000
+++ ./debian/rules.unpack 2005-09-14 05:21:53.000000000 +0000
@@ -36,6 +36,7 @@
esac
mv $(gcc_srcdir)/src .
rmdir $(gcc_srcdir)
+ cp /usr/share/misc/config.{guess,sub} src
echo "$(gcc_tarball) unpacked." > $@
.PHONEY: unpack
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]