Add patch 03_cflags.dpatch: use CFLAGS from debian/rules in upstream
authorgregor herrmann <gregoa@debian.org>
Tue, 5 Feb 2008 16:39:45 +0000 (16:39 -0000)
committergregor herrmann <gregoa@debian.org>
Tue, 5 Feb 2008 16:39:45 +0000 (16:39 -0000)
  Makefiles.

debian/changelog
debian/patches/00list
debian/patches/03_cflags.dpatch [new file with mode: 0755]
debian/rules

index 8d5fd8549df678e687a4a9b072d7860c6018483e..28058c9d1c3f9bc9fc5125a455eb22f3153d0ae3 100644 (file)
@@ -4,8 +4,10 @@ iodine (0.4.1-2) UNRELEASED; urgency=low
   * Create install-stamp target in debian/rules and adjust target
     dependencies.
   * Change debian/copyright to the new machine-readable format.
+  * Add patch 03_cflags.dpatch: use CFLAGS from debian/rules in upstream
+    Makefiles.
 
- -- gregor herrmann <gregor+debian@comodo.priv.at>  Mon, 24 Dec 2007 23:13:45 +0100
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Tue, 05 Feb 2008 17:31:25 +0100
 
 iodine (0.4.1-1) unstable; urgency=low
 
index d8fcd89197eb43d741731e9e6f7176a24e7ae0eb..399adf784f8ea205549c106d0e450b930eff6777 100644 (file)
@@ -1,2 +1,3 @@
 01_mandir
 02_make
+03_cflags
diff --git a/debian/patches/03_cflags.dpatch b/debian/patches/03_cflags.dpatch
new file mode 100755 (executable)
index 0000000..333ab9f
--- /dev/null
@@ -0,0 +1,31 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_cflags.dpatch by  <gregor+debian@comodo.priv.at>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Combine upstream CFLAGS with CFLAGS from debian/rules.
+
+@DPATCH@
+diff -urNad iodine~/src/Makefile iodine/src/Makefile
+--- iodine~/src/Makefile       2008-02-05 17:26:08.000000000 +0100
++++ iodine/src/Makefile        2008-02-05 17:27:44.000000000 +0100
+@@ -9,7 +9,7 @@
+ ARCH = `uname -m`
+ LDFLAGS =  -lz
+-CFLAGS = -c -g -Wall -D$(OS) -pedantic
++CFLAGS += -c -D$(OS) -pedantic
+ all: stateos $(CLIENT) $(SERVER) $(TESTSUITE) 
+diff -urNad iodine~/tests/Makefile iodine/tests/Makefile
+--- iodine~/tests/Makefile     2008-02-04 17:30:39.000000000 +0100
++++ iodine/tests/Makefile      2008-02-05 17:27:55.000000000 +0100
+@@ -6,7 +6,7 @@
+ OS = `uname | tr "a-z" "A-Z"`
+ LDFLAGS =  -L/usr/local/lib -lcheck
+-CFLAGS = -g -Wall -D$(OS) -I../src -I/usr/local/include -pedantic
++CFLAGS += -D$(OS) -I../src -I/usr/local/include -pedantic
+ all: $(TEST)
+       @./$(TEST)
index 2af51324a34a24f56cbaf7f521e61c06105ce7f0..602bb8f9c2afc14155c4392646a7097d71dd538e 100755 (executable)
@@ -27,8 +27,8 @@ configure-stamp: $(DPATCH_STAMPFN)
 build: build-stamp
 build-stamp: configure-stamp
        dh_testdir
-       $(MAKE)
-       $(MAKE) test
+       CFLAGS="$(CFLAGS)" $(MAKE)
+       CFLAGS="$(CFLAGS)" $(MAKE) test
        touch $@
 
 clean: unpatch