[Python-modules-commits] r19343 - in packages/python-crypto/trunk/debian (3 files)
sramacher-guest at users.alioth.debian.org
sramacher-guest at users.alioth.debian.org
Wed Nov 16 16:59:27 UTC 2011
Date: Wednesday, November 16, 2011 @ 16:59:25
Author: sramacher-guest
Revision: 19343
Fix unresolved symbol in _fastmath when built without optimization
Added:
packages/python-crypto/trunk/debian/patches/fix-unresolved-reference-size.patch
Modified:
packages/python-crypto/trunk/debian/changelog
packages/python-crypto/trunk/debian/patches/series
Modified: packages/python-crypto/trunk/debian/changelog
===================================================================
--- packages/python-crypto/trunk/debian/changelog 2011-11-16 15:12:46 UTC (rev 19342)
+++ packages/python-crypto/trunk/debian/changelog 2011-11-16 16:59:25 UTC (rev 19343)
@@ -1,14 +1,17 @@
-python-crypto (2.4.1-1) UNRELEASED; urgency=low
+python-crypto (2.4.1-1) unstable; urgency=low
* New upstream release.
* debian/rules: also export CPPFLAGS to honor all hardening flags.
- * Honor noopt.
- - debian/patches/donot-drop-g.patch: update to don't drop optimization
- flags and to don't append -O3.
+ * Support noopt.
+ - debian/patches:
+ + dont-drop-g.patch: update to don't drop optimization flags and to
+ don't append -O3.
+ + Add fix-unresolved-reference-size.patch to fix an unresolved reference
+ in _fastmath when built without optimization.
- debian/rules: if noopt is not set, append -O3 to CFLAGS (as upstream
does).
- -- Sebastian Ramacher <s.ramacher at gmx.at> Sat, 12 Nov 2011 16:49:11 +0100
+ -- Sebastian Ramacher <s.ramacher at gmx.at> Wed, 16 Nov 2011 17:59:02 +0100
python-crypto (2.4-1) unstable; urgency=low
Added: packages/python-crypto/trunk/debian/patches/fix-unresolved-reference-size.patch
===================================================================
--- packages/python-crypto/trunk/debian/patches/fix-unresolved-reference-size.patch (rev 0)
+++ packages/python-crypto/trunk/debian/patches/fix-unresolved-reference-size.patch 2011-11-16 16:59:25 UTC (rev 19343)
@@ -0,0 +1,23 @@
+Description: fix build issues if built without optimization.
+ If built with -O0 the call to size won't be inlined and thus _fastmath cannot
+ be loaded due to an unresolved symbol.
+Author: Sebastian Ramacher <s.ramacher at gmx.at>
+Last-Update: 2011-11-16
+Forwarded: http://lists.dlitz.net/pipermail/pycrypto/2011q4/000514.html
+
+diff --git a/src/_fastmath.c b/src/_fastmath.c
+index eff3e29..5882f3d 100644
+--- a/src/_fastmath.c
++++ b/src/_fastmath.c
+@@ -998,7 +998,7 @@ cleanup:
+
+
+
+-INLINE size_t size (mpz_t n)
++static INLINE size_t size (mpz_t n)
+ {
+ return mpz_sizeinbase (n, 2);
+ }
+--
+1.7.7.2
+
Property changes on: packages/python-crypto/trunk/debian/patches/fix-unresolved-reference-size.patch
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: packages/python-crypto/trunk/debian/patches/series
===================================================================
--- packages/python-crypto/trunk/debian/patches/series 2011-11-16 15:12:46 UTC (rev 19342)
+++ packages/python-crypto/trunk/debian/patches/series 2011-11-16 16:59:25 UTC (rev 19343)
@@ -1 +1,2 @@
dont-drop-g.patch
+fix-unresolved-reference-size.patch
More information about the Python-modules-commits
mailing list