Code

rules: Use config.{guess,sub} provided by autotools-dev.
authorSebastian Harl <sh@tokkee.org>
Sat, 6 Jun 2009 13:45:57 +0000 (15:45 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 6 Jun 2009 13:45:57 +0000 (15:45 +0200)
This fixes a FTBFS on avr32.

Thanks to Bradley Smith for reporting this.
Closes: #529460
debian/changelog
debian/rules

index eb8281340929bdb1bce044bc6e6fd08d8853261d..0f73e6f3be8606d0bfd37c48b6fa490480284045 100644 (file)
@@ -4,12 +4,14 @@ liboping (1.1.2-1) unstable; urgency=low
   * Added liboping0.symbols.
   * debian/rules:
     - Do not ignore 'make clean' errors.
+    - Use config.{guess,sub} provided by autotools-dev to fix a FTBFS on
+      avr32, thanks to Bradley Smith for reporting this (Closes: #529460).
   * debian/control:
     - Use ${binary:Version} instead of ${Source-Version}.
     - Updated Standards-Version to 3.8.1.
     - Added Homepage and Vcs-{Git,Browser} fields.
 
- -- Sebastian Harl <tokkee@debian.org>  Sat, 06 Jun 2009 15:39:25 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Sat, 06 Jun 2009 15:43:49 +0200
 
 liboping (0.3.5-1) unstable; urgency=low
 
index b29b427f010d15e5276657d0ffe5d25bab3fb400..43ed9fc18f35d2b1b990ab14f8e4b8fd1b0e99c2 100755 (executable)
@@ -21,6 +21,12 @@ endif
 
 config.status: configure
        dh_testdir
+       
+       for file in config.guess config.sub; do \
+               mv $$file $$file.upstream; \
+               ln -s /usr/share/misc/$$file .; \
+       done
+       
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
                        --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
                        --mandir=\$${prefix}/share/man
@@ -41,6 +47,13 @@ clean:
        
        [ ! -f Makefile ] || $(MAKE) distclean
        
+       for file in config.guess config.sub; do \
+               if [ -e $$file.upstream ]; then \
+                       rm -f $$file; \
+                       mv $$file.upstream $$file; \
+               fi \
+       done
+       
        dh_clean 
 
 install: build