tags 629539 +patch
tags 629540 +patch
thanks
And here's the patch
Cheers,
--
Steve McIntyre
[email protected]
diff -u insserv-1.14.0/debian/rules insserv-1.14.0/debian/rules
--- insserv-1.14.0/debian/rules
+++ insserv-1.14.0/debian/rules
@@ -12,6 +12,18 @@
CFLAGS = -g -O2
endif
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+ CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
+
+ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ NOCHECK=1
+else
+ NOCHECK=0
+endif
+
#CFLAGS += -DDEBUG=1
INSTALL = install
@@ -29,10 +41,12 @@
dh_testdir
# Add here commands to compile the package.
- $(MAKE) COPTS="$(CFLAGS)"
+ $(MAKE) COPTS="$(CFLAGS)" $(CROSS)
+ifeq (0,$(NOCHECK))
chmod a+rx debian/run-testsuite
debian/run-testsuite
+endif
touch build-stamp
diff -u insserv-1.14.0/debian/changelog insserv-1.14.0/debian/changelog
--- insserv-1.14.0/debian/changelog
+++ insserv-1.14.0/debian/changelog
@@ -1,3 +1,11 @@
+insserv (1.14.0-2.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Add support for "nocheck" in DEB_BUILD_OPTIONS (Closes: #629539)
+ * Add support for cross-building. (Closes: #629540)
+
+ -- Steve McIntyre <[email protected]> Wed, 07 Jun 2011 15:38:19 +0100
+
insserv (1.14.0-2.1) unstable; urgency=low
* Non-maintainer upload.
diff -u insserv-1.14.0/debian/patches/series
insserv-1.14.0/debian/patches/series
--- insserv-1.14.0/debian/patches/series
+++ insserv-1.14.0/debian/patches/series
@@ -7,2 +7,3 @@
#100_show.patch
+105_nocheck.patch
110_portmap.patch
only in patch2:
unchanged:
--- insserv-1.14.0.orig/debian/patches/105_nocheck.patch
+++ insserv-1.14.0/debian/patches/105_nocheck.patch
@@ -0,0 +1,13 @@
+--- a/Makefile 2011-06-07 15:33:54.319492779 +0100
++++ b/Makefile 2011-06-07 15:34:28.099587668 +0100
+@@ -131,8 +131,10 @@
+ issuse=true tests/common
+ # issuse=true tests/suse
+ else
++ifeq ($(NOCHECK),0)
+ tests/common
+ endif
++endif
+
+ install: $(TODO) check
+ $(MKDIR) $(SBINDIR)