r26898 - in /trunk/libjson-xs-perl/debian: changelog rules
ntyni at users.alioth.debian.org
ntyni at users.alioth.debian.org
Sat Nov 15 12:26:18 UTC 2008
Author: ntyni
Date: Sat Nov 15 12:26:15 2008
New Revision: 26898
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=26898
Log:
Lower the optimization level on sparc to work around bug #505415 in perl. (Closes: #501825)
* Lower the optimization level on sparc to work around bug #505415
in perl. (Closes: #501825)
+ debian/rules now supports DEB_BUILD_OPTIONS=noopt properly too.
Modified:
trunk/libjson-xs-perl/debian/changelog
trunk/libjson-xs-perl/debian/rules
Modified: trunk/libjson-xs-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjson-xs-perl/debian/changelog?rev=26898&op=diff
==============================================================================
--- trunk/libjson-xs-perl/debian/changelog (original)
+++ trunk/libjson-xs-perl/debian/changelog Sat Nov 15 12:26:15 2008
@@ -1,6 +1,9 @@
libjson-xs-perl (2.23-2) UNRELEASED; urgency=low
* Add myself to Uploaders.
+ * Lower the optimization level on sparc to work around bug #505415
+ in perl. (Closes: #501825)
+ + debian/rules now supports DEB_BUILD_OPTIONS=noopt properly too.
-- Niko Tyni <ntyni at debian.org> Sat, 15 Nov 2008 13:05:40 +0200
Modified: trunk/libjson-xs-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjson-xs-perl/debian/rules?rev=26898&op=diff
==============================================================================
--- trunk/libjson-xs-perl/debian/rules (original)
+++ trunk/libjson-xs-perl/debian/rules Sat Nov 15 12:26:15 2008
@@ -1,8 +1,25 @@
#!/usr/bin/make -f
+
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+# Allow disabling build optimisation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ ifeq (sparc,$(DEB_HOST_ARCH))
+ CFLAGS+="-O1"
+ else
+ CFLAGS+="-O2"
+ endif
+endif
build: build-stamp
build-stamp:
- dh build
+ dh build --before configure
+ dh_auto_configure -- OPTIMIZE="$(CFLAGS)"
+ dh build --after configure
touch $@
clean:
More information about the Pkg-perl-cvs-commits
mailing list