Source: lm-sensors Version: 1:3.4.0-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
lm-sensors fails to cross build from source, because it fails finding sys/io.h while building prog/dump/superio for mips64el. But it shouldn't build that tool for mips64el. It uses MACHINE=$(uname -m) to decide what to build, so debian/rules needs to supply that. The attached patch makes lm-sensors cross buildable. Please consider applying it. Helmut
diff --minimal -Nru lm-sensors-3.4.0/debian/changelog lm-sensors-3.4.0/debian/changelog --- lm-sensors-3.4.0/debian/changelog 2017-04-05 22:07:33.000000000 +0200 +++ lm-sensors-3.4.0/debian/changelog 2018-12-07 06:29:43.000000000 +0100 @@ -1,3 +1,10 @@ +lm-sensors (1:3.4.0-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass MACHINE to make. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 07 Dec 2018 06:29:43 +0100 + lm-sensors (1:3.4.0-4) unstable; urgency=medium * Drop the sensord package, it is not really maintained upstream, and diff --minimal -Nru lm-sensors-3.4.0/debian/rules lm-sensors-3.4.0/debian/rules --- lm-sensors-3.4.0/debian/rules 2017-04-05 19:08:21.000000000 +0200 +++ lm-sensors-3.4.0/debian/rules 2018-12-07 06:29:41.000000000 +0100 @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk + %: dh $@ --parallel --with systemd @@ -8,6 +10,7 @@ LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \ MANDIR=/usr/share/man MAKEARGS_ARCH = $(MAKEARGS_INDP) \ + MACHINE=$(DEB_HOST_GNU_CPU) \ CFLAGS="$(CFLAGS)" \ CPPFLAGS="$(CPPFLAGS)" \ LDFLAGS="$(LDFLAGS)" \