[Python-modules-commits] r31481 - in packages/gamera/trunk/debian (changelog rules)

danstender-guest at users.alioth.debian.org danstender-guest at users.alioth.debian.org
Thu Nov 20 12:27:00 UTC 2014


    Date: Thursday, November 20, 2014 @ 12:26:59
  Author: danstender-guest
Revision: 31481

Build dbg on arm64 with different optimization (Closes: #766740)

Modified:
  packages/gamera/trunk/debian/changelog
  packages/gamera/trunk/debian/rules

Modified: packages/gamera/trunk/debian/changelog
===================================================================
--- packages/gamera/trunk/debian/changelog	2014-11-20 04:11:08 UTC (rev 31480)
+++ packages/gamera/trunk/debian/changelog	2014-11-20 12:26:59 UTC (rev 31481)
@@ -1,3 +1,9 @@
+gamera (3.4.1+svn1423-3) UNRELEASED; urgency=medium
+
+  * Build dbg on arm64 with different optimization (Closes: #766740).
+
+ -- Daniel Stender <debian at danielstender.com>  Thu, 20 Nov 2014 13:00:03 +0100
+
 gamera (3.4.1+svn1423-2) unstable; urgency=medium
 
   * Added gendoc-version-parsing.diff (Closes: #767158).

Modified: packages/gamera/trunk/debian/rules
===================================================================
--- packages/gamera/trunk/debian/rules	2014-11-20 04:11:08 UTC (rev 31480)
+++ packages/gamera/trunk/debian/rules	2014-11-20 12:26:59 UTC (rev 31481)
@@ -8,10 +8,16 @@
 export PYTHONHASHSEED=random
 
 export CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
-export CFLAGS_noopt = $(patsubst -O2,-Og,$(CFLAGS))
 export CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
 export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
 
+DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifeq ($(DEB_BUILD_ARCH),arm64)
+export CFLAGS_noopt = $(patsubst -O2,-O0,$(CFLAGS))
+else
+export CFLAGS_noopt = $(patsubst -O2,-Og,$(CFLAGS))
+endif
+
 nproc = $(or $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))),1)
 python2 = $(shell pyversions -r)
 python2d = $(addsuffix -dbg,$(python2))




More information about the Python-modules-commits mailing list