Source: acpi-support Version: 0.142-8 Tags: patch User: helm...@debian.org Usertags: rebootstrap
acpi-support fails to cross build from source, because it uses the build architecture toolchain. The attached patch makes the toolchain substitutable and uses dh_auto_build to provide the relevant substitutions. After applying it, acpi-support cross builds successfully. Please consider using it. Helmut
diff -u acpi-support-0.142/debian/addons/fakekey/Makefile acpi-support-0.142/debian/addons/fakekey/Makefile --- acpi-support-0.142/debian/addons/fakekey/Makefile +++ acpi-support-0.142/debian/addons/fakekey/Makefile @@ -1,10 +1,11 @@ +PKG_CONFIG ?= pkg-config all: acpi_fakekey acpi_fakekeyd acpi_fakekey: acpi_fakekey.c - gcc -Wall $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS) -o $@ $< + $(CC) -Wall $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS) -o $@ $< acpi_fakekeyd: acpi_fakekeyd.c - gcc -Wall $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS) $(shell pkg-config --cflags --libs libsystemd) -o $@ $< + $(CC) -Wall $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS) $(shell $(PKG_CONFIG) --cflags --libs libsystemd) -o $@ $< clean: $(RM) acpi_fakekey acpi_fakekeyd diff -u acpi-support-0.142/debian/changelog acpi-support-0.142/debian/changelog --- acpi-support-0.142/debian/changelog +++ acpi-support-0.142/debian/changelog @@ -1,3 +1,12 @@ +acpi-support (0.142-8.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Allow substituting build tools in fakekey Makefile. + + -- Helmut Grohne <hel...@subdivi.de> Sat, 28 Apr 2018 12:06:29 +0200 + acpi-support (0.142-8) unstable; urgency=medium * Handle the case of no active dbus. (Closes: #798362) diff -u acpi-support-0.142/debian/rules acpi-support-0.142/debian/rules --- acpi-support-0.142/debian/rules +++ acpi-support-0.142/debian/rules @@ -11,7 +11,7 @@ dh ${@} --with quilt,systemd override_dh_auto_build: - make -C debian/addons/fakekey all + dh_auto_build --sourcedirectory=debian/addons/fakekey -- all override_dh_auto_clean: dh_auto_clean