diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index a26d0ee71..64fbcf2f0 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -8,7 +8,7 @@ from debian_linux.gencontrol import PackagesList, Makefile, MakeFlags, Gencontro from debian_linux.utils import * class gencontrol(Gencontrol): - makefile_targets = ('binary-arch', 'build') + makefile_targets = ('binary-arch', 'binary-indep', 'build') def __init__(self, underlay = None): self.templates = Templates(['debian/templates']) diff --git a/debian/changelog b/debian/changelog index 84144252a..3b453a535 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +linux-tools (4.3~rc5-1~exp2) experimental; urgency=medium + + * Fix the build-indep and binary-indep targets (fixes FTBFS for arch:all) + + -- Ben Hutchings Wed, 14 Oct 2015 02:08:09 +0100 + linux-tools (4.3~rc5-1~exp1) experimental; urgency=medium * New upstream release candidate diff --git a/debian/rules b/debian/rules index 4572e23c6..ee262a9fc 100755 --- a/debian/rules +++ b/debian/rules @@ -13,7 +13,11 @@ build-arch: debian/control dh_testdir $(MAKE) -f debian/rules.gen build +# XXX All we really need to do is to generate the lockdep script, +# but for now we take the stupid option of building everything. build-indep: debian/control + dh_testdir + $(MAKE) -f debian/rules.gen build DIR_ORIG = ../orig/$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM) TAR_ORIG_NAME = $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.xz @@ -43,6 +47,7 @@ clean: debian/control binary-indep: dh_testdir + $(MAKE) -f debian/rules.gen binary-indep binary-arch: dh_testdir diff --git a/debian/rules.real b/debian/rules.real index a75feb4ae..303e16579 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -3,7 +3,7 @@ export KBUILD_BUILD_TIMESTAMP := $(shell dpkg-parsechangelog | sed -ne 's,^Date: include debian/rules.defs -binary-arch: install-kbuild install-usbip install-lockdep +binary-arch: install-kbuild install-usbip install-liblockdep ifneq ($(filter alpha amd64 arm64 armel armhf hppa i386 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x sh4 sparc sparc64,$(DEB_BUILD_ARCH)),) binary-arch: install-perf endif @@ -11,6 +11,8 @@ ifneq ($(filter i386 amd64 x32,$(DEB_BUILD_ARCH)),) binary-arch: install-hyperv-daemons endif +binary-indep: install-lockdep + build: $(STAMPS_DIR)/build $(STAMPS_DIR)/build: @@ -105,9 +107,9 @@ install-hyperv-daemons: $(STAMPS_DIR)/build dh_md5sums dh_builddeb -install-lockdep: DH_OPTIONS = -plockdep -pliblockdep$(VERSION) -pliblockdep-dev -install-lockdep: DIR = $(CURDIR)/debian/tmp -install-lockdep: $(STAMPS_DIR)/build +install-liblockdep: DH_OPTIONS = -pliblockdep$(VERSION) -pliblockdep-dev +install-liblockdep: DIR = $(CURDIR)/debian/tmp +install-liblockdep: $(STAMPS_DIR)/build dh_testdir dh_testroot dh_prep @@ -128,3 +130,21 @@ install-lockdep: $(STAMPS_DIR)/build dh_gencontrol dh_md5sums dh_builddeb + +install-lockdep: DH_OPTIONS = -plockdep +install-lockdep: DIR = $(CURDIR)/debian/tmp +install-lockdep: $(STAMPS_DIR)/build + dh_testdir + dh_testroot + dh_prep + $(MAKE) -C $(BUILD_DIR)/tools/lib/lockdep install top_srcdir=$(CURDIR) \ + DESTDIR=$(DIR) + dh_install + dh_installchangelogs + dh_installdocs + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb