Source: usbutils Version: 1:010-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
usbutils fails to cross build from source, because debian/rules hard codes plain gcc for building usbreset. Seeding the compiler from dpkg's buildtools.mk fixes the cross build. Please consider applying the attached patch. Helmut
diff --minimal -Nru usbutils-010/debian/changelog usbutils-010/debian/changelog --- usbutils-010/debian/changelog 2019-02-06 23:35:25.000000000 +0100 +++ usbutils-010/debian/changelog 2019-02-21 06:18:54.000000000 +0100 @@ -1,3 +1,10 @@ +usbutils (1:010-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Seed compiler for usbreset from buildtools.mk. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 21 Feb 2019 06:18:54 +0100 + usbutils (1:010-2) unstable; urgency=medium * Upload to unstable. diff --minimal -Nru usbutils-010/debian/rules usbutils-010/debian/rules --- usbutils-010/debian/rules 2019-02-06 23:23:56.000000000 +0100 +++ usbutils-010/debian/rules 2019-02-21 06:18:53.000000000 +0100 @@ -1,10 +1,12 @@ #!/usr/bin/make -f +-include /usr/share/dpkg/buildtools.mk + %: dh $@ override_dh_auto_build: dh_auto_build - gcc $(CFLAGS) -o $(CURDIR)/usbreset $(CURDIR)/usbreset.c + $(CC) $(CFLAGS) -o $(CURDIR)/usbreset $(CURDIR)/usbreset.c override_dh_auto_install: dh_auto_install --destdir=$(CURDIR)/debian/tmp