diff --git a/debian/build/tools/perf/Makefile b/debian/build/tools/perf/Makefile index f46a154c4c1c..ec91e9b921e0 100644 --- a/debian/build/tools/perf/Makefile +++ b/debian/build/tools/perf/Makefile @@ -17,7 +17,7 @@ else ifeq ($(DEB_HOST_ARCH_CPU),powerpc64) else ifeq ($(DEB_HOST_ARCH_CPU),s390) KERNEL_ARCH_PERF = s390 else ifeq ($(DEB_HOST_ARCH_CPU),s390x) - KERNEL_ARCH_PERF = s390x + KERNEL_ARCH_PERF = s390 else ifeq ($(DEB_HOST_ARCH_CPU),sh4) KERNEL_ARCH_PERF = sh else ifeq ($(DEB_HOST_ARCH_CPU),sparc) diff --git a/debian/changelog b/debian/changelog index 11d03a7bf055..0f7b889d66b7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,20 @@ linux-tools (3.2~rc4-1~experimental.1) experimental; urgency=low -- Ben Hutchings Wed, 07 Dec 2011 01:53:15 +0000 +linux-tools (3.1.1-3) unstable; urgency=low + + * Fix s390x support. + + -- Aurelien Jarno Sun, 18 Dec 2011 19:32:12 +0100 + +linux-tools (3.1.1-2) unstable; urgency=low + + * Change the check for stale debian/control to tolerate binNMUs + (Closes: #649005) + * Rebuild with perl 5.14 (Closes: #649006) + + -- Ben Hutchings Thu, 17 Nov 2011 03:18:03 +0000 + linux-tools (3.1.1-1) unstable; urgency=low * New upstream release diff --git a/debian/rules b/debian/rules index d201eff61f4d..28304f75f211 100755 --- a/debian/rules +++ b/debian/rules @@ -55,13 +55,15 @@ binary: binary-indep binary-arch CONTROL_FILES = debian/changelog $(wildcard debian/templates/control.*) debian/control debian/rules.gen: debian/bin/gencontrol.py $(CONTROL_FILES) - +if [ -f debian/control.md5sum ]; then \ - if md5sum $^ | diff - debian/control.md5sum > /dev/null; then true; else \ - $(MAKE) -f debian/rules debian/control-real; \ - fi \ - else \ - $(MAKE) -f debian/rules debian/control-real; \ - fi +ifeq ($(wildcard debian/control.md5sum),) + $(MAKE) -f debian/rules debian/control-real +else ifeq ($(VERSION_DEBIAN_BINNMU),) + md5sum --check debian/control.md5sum --status || \ + $(MAKE) -f debian/rules debian/control-real +else + grep -v debian/changelog debian/control.md5sum | md5sum --check - --status || \ + $(MAKE) -f debian/rules debian/control-real +endif debian/control-real: debian/bin/gencontrol.py $(CONTROL_FILES) chmod +x $< diff --git a/debian/rules.real b/debian/rules.real index 45eb8f390df2..17eec6acb844 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -5,7 +5,7 @@ include debian/rules.defs DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) binary-arch: install-kbuild -ifneq ($(filter alpha amd64 armel armhf hppa i386 powerpc ppc64 s390 sh4 sparc sparc64,$(DEB_BUILD_ARCH)),) +ifneq ($(filter alpha amd64 armel armhf hppa i386 powerpc ppc64 s390 s390x sh4 sparc sparc64,$(DEB_BUILD_ARCH)),) binary-arch: install-tools endif