diff --git a/debian/.gitignore b/debian/.gitignore index f24d31d9f..d040fa3c7 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -17,6 +17,8 @@ /liblockdep*/ /libusbip-dev/ /linux-* +!/linux-cpupower.install +!/linux-cpupower.manpages /lockdep/ /po/ /rules.gen diff --git a/debian/changelog b/debian/changelog index a7ae16ccf..6f953596d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +linux (4.9.6-2) unstable; urgency=medium + + * linux-cpupower: Use dh-exec architecture filtering for x86-specific files + (fixes FTBFS on !x86) + + -- Ben Hutchings Fri, 27 Jan 2017 22:09:50 +0000 + linux (4.9.6-1) unstable; urgency=medium * New upstream stable update: diff --git a/debian/linux-cpupower.install b/debian/linux-cpupower.install old mode 100644 new mode 100755 index e79f8d192..cbed747b9 --- a/debian/linux-cpupower.install +++ b/debian/linux-cpupower.install @@ -1,3 +1,4 @@ +#!/usr/bin/dh-exec usr/bin -usr/sbin +[i386 amd64 x32] usr/sbin usr/share/ diff --git a/debian/linux-cpupower.manpages b/debian/linux-cpupower.manpages new file mode 100755 index 000000000..96f9593ef --- /dev/null +++ b/debian/linux-cpupower.manpages @@ -0,0 +1,3 @@ +#!/usr/bin/dh-exec +[i386 amd64 x32] tools/power/x86/turbostat/turbostat.8 +[i386 amd64 x32] tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.8 diff --git a/debian/rules.real b/debian/rules.real index 868efa3a2..000cb3254 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -579,10 +579,7 @@ endif dh_installchangelogs ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) dh_installdocs -ifneq ($(filter i386 amd64 x32,$(DEB_HOST_ARCH)),) - dh_installman tools/power/x86/turbostat/turbostat.8 \ - tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.8 -endif + dh_installman endif dh_strip dh_compress diff --git a/debian/templates/control.source.in b/debian/templates/control.source.in index 6123d082d..99ae41559 100644 --- a/debian/templates/control.source.in +++ b/debian/templates/control.source.in @@ -4,7 +4,7 @@ Maintainer: Debian Kernel Team Uploaders: Bastian Blank , maximilian attems , Ben Hutchings , Salvatore Bonaccorso Standards-Version: 3.9.8 Build-Depends: - debhelper (>= 10.1~), + debhelper (>= 10.1~), dh-exec, # used to run debian/bin/*.py python3:any, # used by debian/rules.real to prepare the source