Source: uucpsend Version: 1.1-4.1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
uucpsend fails to cross build from source, because it does not use cross tools. Please consider converting the package to use debhelper. Alternatively, consider using dpkg's buildtools.mk. The attached patch implements the latter for your convenience. Helmut
diff -u uucpsend-1.1/debian/changelog uucpsend-1.1/debian/changelog --- uucpsend-1.1/debian/changelog +++ uucpsend-1.1/debian/changelog @@ -1,3 +1,10 @@ +uucpsend (1.1-4.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dpkg's buildtools.mk supply tools. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 09 Oct 2019 07:53:51 +0200 + uucpsend (1.1-4.1) unstable; urgency=medium * Non-maintainer upload. diff -u uucpsend-1.1/debian/rules uucpsend-1.1/debian/rules --- uucpsend-1.1/debian/rules +++ uucpsend-1.1/debian/rules @@ -20,6 +20,8 @@ package = $(shell grep "^Package: " debian/control|head -1|sed 's/Package: \(.*\)/\1/g') version = $(shell grep "^$(package) " debian/changelog|head -1 |sed 's/.*(\(.*\)\-[^\-]*).*/\1/g') +include /usr/share/dpkg/buildtools.mk + SHELL=/bin/bash installbin = install -g root -o root -m 755 installdoc = install -g root -o root -m 644 @@ -30,12 +32,12 @@ CFLAGS = -O2 -Wall endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) -STRIP = -s +STRIP_OPTION = -s --strip-program="$(STRIP)" endif build: # Builds the binary package. - $(MAKE) CFLAGS="$(CFLAGS)" + $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" touch stamp-build clean: debclean @@ -68,7 +70,7 @@ $(installdoc) uucpsend.ctl debian/tmp/etc/news # install -d -g news -o news -m 755 -d debian/tmp/usr/lib/news/bin - $(MAKE) DEST=debian/tmp MAN=root STRIP="$(STRIP)" install + $(MAKE) DEST=debian/tmp MAN=root STRIP="$(STRIP_OPTION)" install mv debian/tmp/usr/man debian/tmp/usr/share/man gzip -9fn debian/tmp/usr/share/man/man?/* dpkg-shlibdeps debian/tmp/usr/lib/news/bin/uucpsend