Comment 4 for bug 11466

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <E1Bcq92-0001PC-IC@dual>
Date: Tue, 22 Jun 2004 18:37:19 +0000
From: Goswin von Brederlow <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: FTBFS: x86_64 architecture unknown

--===============3663173441073579403==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: expect
Version: 5.41.0-1
Severity: important
Tags: patch
Justification: fails to build from source

Hi,

on x86_64cpus (i386 and amd64 debian) expect complains about not knowing
x86_64-pc-linux-gnu. Updating config.sub/guess solves that problem. You
might also want to pass --host=$(DEB_BUILD_HOST) so it builds for i386
under i386 debian even on x86_64 cpus.

The attached patch uses autotools-dev to use allways current config.sub/guess
files.

MfG
 Goswin

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.5-amd64
Locale: LANG=C, LC_CTYPE=C

--===============3663173441073579403==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="expect_5.41.0-1.0.0.1.pure64.patch"

diff -Nurd expect-5.41.0.deb/debian/changelog expect-5.41.0/debian/changelog
--- expect-5.41.0.deb/debian/changelog 2004-06-22 18:28:04.866435558 +0000
+++ expect-5.41.0/debian/changelog 2004-06-22 18:28:15.784605682 +0000
@@ -1,3 +1,9 @@
+expect (5.41.0-1.0.0.1.pure64) unstable; urgency=low
+
+ * Port to autotools-dev
+
+ -- Goswin von Brederlow <email address hidden> Tue, 22 Jun 2004 20:25:32 +0200
+
 expect (5.41.0-1) unstable; urgency=low

   * New upstream version (Closes: #251637, #251641)
diff -Nurd expect-5.41.0.deb/debian/control expect-5.41.0/debian/control
--- expect-5.41.0.deb/debian/control 2004-06-22 18:28:04.866435558 +0000
+++ expect-5.41.0/debian/control 2004-06-22 18:28:15.784605682 +0000
@@ -2,7 +2,7 @@
 Section: interpreters
 Priority: optional
 Maintainer: Mike Markley <email address hidden>
-Build-Depends: debhelper (>= 3.0), autoconf, tcl8.4-dev, tk8.4-dev
+Build-Depends: debhelper (>= 3.0), autoconf, tcl8.4-dev, tk8.4-dev, autotools-dev
 Standards-Version: 3.6.1.0

 Package: expect
diff -Nurd expect-5.41.0.deb/debian/rules expect-5.41.0/debian/rules
--- expect-5.41.0.deb/debian/rules 2004-06-22 18:28:04.867435390 +0000
+++ expect-5.41.0/debian/rules 2004-06-22 18:28:15.785605515 +0000
@@ -25,6 +25,10 @@
 configure-stamp:
  dh_testdir

+ [ -f config.sub.orig ] || mv config.sub config.sub.orig
+ [ -f config.guess.orig ] || mv config.guess config.guess.orig
+ cp /usr/share/misc/config.sub /usr/share/misc/config.guess .
+
  ./configure --prefix=/usr --includedir=/usr/include/tcl$(tcltk) \
    --mandir=/usr/share/man --enable-shared \
    --with-tcl=/usr/lib/tcl$(tcltk) --with-tk=/usr/lib/tk$(tcltk) \
@@ -50,6 +54,9 @@
  -$(MAKE) clean
  -$(MAKE) distclean

+ if [ -f config.sub.orig ]; then mv config.sub.orig config.sub; fi
+ if [ -f config.guess.orig ]; then mv config.guess.orig config.guess; fi
+
  dh_clean pkgIndex

 install: install-stamp

--===============3663173441073579403==--