r13391 - in /trunk/libproc-processtable-perl/debian: changelog rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Thu Jan 24 09:12:46 UTC 2008


Author: dmn
Date: Thu Jan 24 09:12:46 2008
New Revision: 13391

URL: http://svn.debian.org/wsvn/?sc=1&rev=13391
Log:
* debian/rules: allow for passing -O0 by exporting noopt in
  DEB_BUILD_OPTIONS

Modified:
    trunk/libproc-processtable-perl/debian/changelog
    trunk/libproc-processtable-perl/debian/rules

Modified: trunk/libproc-processtable-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libproc-processtable-perl/debian/changelog?rev=13391&op=diff
==============================================================================
--- trunk/libproc-processtable-perl/debian/changelog (original)
+++ trunk/libproc-processtable-perl/debian/changelog Thu Jan 24 09:12:46 2008
@@ -1,5 +1,6 @@
 libproc-processtable-perl (0.41-6) unstable; urgency=low
 
+  [ gregor herrmann ]
   The 'ready for perl 5.10' release.
 
   * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
@@ -13,6 +14,10 @@
     - create install-stamp target (depending on build-stamp)
     - use "$@" for touching stamp files
     - add PREFIX to make install
+
+  [ Damyan Ivanov ]
+  * debian/rules: allow for passing -O0 by exporting noopt in
+    DEB_BUILD_OPTIONS
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 23 Jan 2008 23:06:40 +0100
 

Modified: trunk/libproc-processtable-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libproc-processtable-perl/debian/rules?rev=13391&op=diff
==============================================================================
--- trunk/libproc-processtable-perl/debian/rules (original)
+++ trunk/libproc-processtable-perl/debian/rules Thu Jan 24 09:12:46 2008
@@ -10,12 +10,22 @@
 # which means only the main package is listed, not the transitional one
 TMP = $(CURDIR)/debian/$(shell dh_listpackages -a)
 
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+
 build: build-stamp
 build-stamp:
 	dh_testdir
 
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
+	$(MAKE) OPTIMIZE="$(CFLAGS)"
 	$(MAKE) test
 
 	touch $@




More information about the Pkg-perl-cvs-commits mailing list