Package: sendfile
Version: 2.1b.20080616-5.2
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: arm64

sendfile's config.guess/config.sub are out of date for the forthcoming
arm64 port.  The attached patch sets things up so that you don't have to
be bothered by this type of bug for future ports.  This is basically a
clone-and-hack of dh_autotools-dev_{update,restore}config, but I tried
to follow your obvious preferences and avoid dh_* even though the result
is a bit long-winded.

  * Refresh config.guess and config.sub from autotools-dev on each build.

diff -u sendfile-2.1b.20080616/debian/rules sendfile-2.1b.20080616/debian/rules
--- sendfile-2.1b.20080616/debian/rules
+++ sendfile-2.1b.20080616/debian/rules
@@ -32,6 +32,12 @@
 endif
 
 build:
+       set -e; for f in config.guess config.sub; do \
+               if ! test -f "develop/$$f.orig"; then \
+                       mv -f "develop/$$f" "develop/$$f.orig"; \
+                       cp -f "/usr/share/misc/$$f" "develop/$$f"; \
+               fi; \
+       done
        test -f develop/config.cache || ./makeconfig CONFIG=/etc 
BINDIR=/usr/bin MANDIR=/usr/share/man SERVERDIR=/usr/bin
        perl -i -pe 's/undef\s+ENABLE_MULTIPROTOCOL/define 
ENABLE_MULTIPROTOCOL/' src/globals.h
        $(MAKE) all
@@ -40,6 +46,11 @@
 clean: debclean
        rm -rf stamp-build
        $(MAKE) clean
+       set -e; for f in config.guess config.sub; do \
+               if test -f "develop/$$f.orig"; then \
+                       mv -f "develop/$$f.orig" "develop/$$f"; \
+               fi; \
+       done
 
 debclean:
 # Cleans debian binary directories to allow binary creation
diff -u sendfile-2.1b.20080616/debian/control 
sendfile-2.1b.20080616/debian/control
--- sendfile-2.1b.20080616/debian/control
+++ sendfile-2.1b.20080616/debian/control
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Martin Schulze <j...@debian.org>
-Build-Depends: libreadline-dev
+Build-Depends: libreadline-dev, autotools-dev
 Standards-Version: 3.5.2.0
 
 Package: sendfile

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]


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

Reply via email to