Patchwork [2/2] UBUNTU: linux-libc-dev -- ensure we can only build this on debian.master

login
register
mail settings
Submitter Andy Whitcroft
Date Sept. 13, 2010, 6:45 p.m.
Message ID <1284403529-6286-3-git-send-email-apw@canonical.com>
Download mbox | patch
Permalink /patch/64626/
State Accepted
Delegated to: Leann Ogasawara
Headers show

Comments

Andy Whitcroft - Sept. 13, 2010, 6:45 p.m.
It is never right for linux-libc-dev to be build from other branches
than master.  Therefore prevent its generation from any other branch.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian/rules.d/2-binary-arch.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index e4a4f3c..da93e4d 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -250,6 +250,10 @@  binary-arch-headers: install-arch-headers
 	dh_testdir
 	dh_testroot
 ifeq ($(do_libc_dev_package),true)
+ifneq ($(DEBIAN),debian.master)
+	echo "non-master branch building linux-libc-dev, aborting"
+	exit 1
+endif
 	dh_installchangelogs -plinux-libc-dev
 	dh_installdocs -plinux-libc-dev
 	dh_compress -plinux-libc-dev