diff mbox

[vivid/master-next,1/2] UBUNTU: [Packaging] control -- prepare for new kernel-wedge semantics

Message ID 1447696050-21914-11-git-send-email-apw@canonical.com
State New
Headers show

Commit Message

Andy Whitcroft Nov. 16, 2015, 5:47 p.m. UTC
We have been carrying a nastly little patch for kernel-wedge to cope with
the fact we use control.stub.  But it is simpler to just go with the flow
and emit the stub by hand.  Do this in such a way we keep a fake
debian/control.stub such that we will work with either Debian or Ubuntu
kernel-wedge.

BugLink: http://bugs.launchpad.net/bugs/1516686
Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian/rules | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/debian/rules b/debian/rules
index 18af5a0..4a7f5d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -95,7 +95,7 @@  clean: debian/control
 	rm -rf $(DEBIAN)/linux-*
 
 	# This gets rid of the d-i packages in control
-	cp -f $(DEBIAN)/control.stub $(DEBIAN)/control
+	cp -f $(DEBIAN)/control.stub $(DROOT)/control
 	cp $(DEBIAN)/changelog debian/changelog
 
 	# Install the copyright information.
@@ -105,7 +105,7 @@  clean: debian/control
 	[ -f $(DEBIAN)/reconstruct ] && bash -x $(DEBIAN)/reconstruct
 
 distclean: clean
-	rm -rf $(DEBIAN)/control $(DEBIAN)/control.stub \
+	rm -rf $(DROOT)/control $(DROOT)/control.stub $(DEBIAN)/control.stub \
 		$(DEBIAN)/d-i/kernel-versions debian/changelog \
 		debian/control debian/control.stub debian/copyright
 
@@ -145,7 +145,6 @@  $(DEBIAN)/control.stub: $(DEBIAN)/d-i/kernel-versions.in	\
 		-e 's/=HUMAN=/$(human_arch)/g'                                    \
 		>> $(DEBIAN)/control.stub;						\
 	done
-	cp $(DEBIAN)/control.stub $(DEBIAN)/control
 
 .PHONY: debian/control
 debian/control: $(DEBIAN)/control.stub
@@ -274,5 +273,6 @@  debian/control: $(DEBIAN)/control.stub
 			$(builddir)/firmware/$(build_arch);		\
 	fi
 
-	cp $(DEBIAN)/control.stub debian/control.stub
-	cd $(builddir) && LANG=C kernel-wedge gen-control > $(CURDIR)/debian/control
+	echo "# placebo control.stub for kernel-wedge flow change" >debian/control.stub
+	cp $(DEBIAN)/control.stub debian/control
+	cd $(builddir) && LANG=C kernel-wedge gen-control >> $(CURDIR)/debian/control