Update both files before running ./configure, copying them from
/usr/share/misc (autotools-dev was in B-D already) and remove them
on clean to keep the Debian diff clean. That fixes the FTBFSes on
architectures like GNU/kFreeBSD or Linux AVR32 (Closes: #538885).

Also do the config.* dance in clean because it's needed for the “make
clean” step to success.
---
 debian/rules |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/debian/rules b/debian/rules
index db7860a..20a2620 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,6 +24,8 @@ endif
 
 config.status: configure patch-stamp
        dh_testdir
+       cp /usr/share/misc/config.guess .
+       cp /usr/share/misc/config.sub   .
        autoconf
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
                --prefix=/usr --mandir=\$${prefix}/share/man \
@@ -47,6 +49,9 @@ clean: unpatch
                rm -f doc/flite.$$i; \
        done
 
+       cp /usr/share/misc/config.guess .
+       cp /usr/share/misc/config.sub   .
+
        $(MAKE) clean
 
        rm -Rf doc/html
@@ -59,6 +64,7 @@ clean: unpatch
        rm -f config/config
        rm -f config/system.mak
        rm -f include/flite_version.h
+       rm -f config.guess config.sub
 
        dh_clean
 
-- 
1.6.3.3


-- 
To UNSUBSCRIBE, email to debian-accessibility-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to