[trusty/lts-backport-utopic-next,2/3] UBUNTU: [Packaging] control -- prepare for new kernel-wedge semantics
diff mbox

Message ID 1447696050-21914-5-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(-)

Patch
diff mbox

diff --git a/debian/rules b/debian/rules
index fb3210f..30233dd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -94,14 +94,14 @@  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.
 	cp $(DEBIAN)/copyright debian/copyright
 
 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
 
@@ -141,7 +141,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
@@ -270,5 +269,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