[Python-modules-commits] r27713 - in packages/python-regex/trunk/debian (4 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Feb 16 17:45:43 UTC 2014


    Date: Sunday, February 16, 2014 @ 17:45:42
  Author: morph
Revision: 27713

* debian/patches/10_bts739122_fix_FTBFS_on_s390x.patch
  - fix a FTBFS on s390x; thanks to Aurelien Jarno for the report and patch;
    Closes: #739122

Added:
  packages/python-regex/trunk/debian/patches/
  packages/python-regex/trunk/debian/patches/10_bts739122_fix_FTBFS_on_s390x.patch
  packages/python-regex/trunk/debian/patches/series
Modified:
  packages/python-regex/trunk/debian/changelog

Modified: packages/python-regex/trunk/debian/changelog
===================================================================
--- packages/python-regex/trunk/debian/changelog	2014-02-16 17:16:36 UTC (rev 27712)
+++ packages/python-regex/trunk/debian/changelog	2014-02-16 17:45:42 UTC (rev 27713)
@@ -1,8 +1,11 @@
 python-regex (0.1.20140130-1) UNRELEASED; urgency=medium
 
   * New upstream release
+  * debian/patches/10_bts739122_fix_FTBFS_on_s390x.patch
+    - fix a FTBFS on s390x; thanks to Aurelien Jarno for the report and patch;
+      Closes: #739122
 
- -- Sandro Tosi <morph at debian.org>  Sun, 16 Feb 2014 18:16:24 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 16 Feb 2014 18:44:32 +0100
 
 python-regex (0.1.20140120-1) unstable; urgency=medium
 

Added: packages/python-regex/trunk/debian/patches/10_bts739122_fix_FTBFS_on_s390x.patch
===================================================================
--- packages/python-regex/trunk/debian/patches/10_bts739122_fix_FTBFS_on_s390x.patch	                        (rev 0)
+++ packages/python-regex/trunk/debian/patches/10_bts739122_fix_FTBFS_on_s390x.patch	2014-02-16 17:45:42 UTC (rev 27713)
@@ -0,0 +1,34 @@
+Description: Fix a FTBFS on s390x
+ python-regex fails to build from source on s390x due to failures in the
+ testsuite. The problem is that the flags properties internally uses an
+ uint32, but is declared as T_PYSSIZET, that is an int64 value. The patch
+ below fixes the problem.
+Author: Aurelien Jarno <aurel32 at debian.org>
+Origin: vendor
+Bug: https://code.google.com/p/mrab-regex-hg/issues/detail?id=108
+Bug-Debian: http://bugs.debian.org/739122
+Last-Update: 2014-02-16
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Python2/_regex.c
++++ b/Python2/_regex.c
+@@ -17091,7 +17091,7 @@ static PyGetSetDef pattern_getset[] = {
+ static PyMemberDef pattern_members[] = {
+     {"pattern", T_OBJECT, offsetof(PatternObject, pattern), READONLY,
+       "The pattern string from which the regex object was compiled."},
+-    {"flags", T_PYSSIZET, offsetof(PatternObject, flags), READONLY,
++    {"flags", T_UINT, offsetof(PatternObject, flags), READONLY,
+       "The regex matching flags."},
+     {"groups", T_PYSSIZET, offsetof(PatternObject, public_group_count),
+       READONLY, "The number of capturing groups in the pattern."},
+--- a/Python3/_regex.c
++++ b/Python3/_regex.c
+@@ -17084,7 +17084,7 @@ static PyGetSetDef pattern_getset[] = {
+ static PyMemberDef pattern_members[] = {
+     {"pattern", T_OBJECT, offsetof(PatternObject, pattern), READONLY,
+       "The pattern string from which the regex object was compiled."},
+-    {"flags", T_PYSSIZET, offsetof(PatternObject, flags), READONLY,
++    {"flags", T_UINT, offsetof(PatternObject, flags), READONLY,
+       "The regex matching flags."},
+     {"groups", T_PYSSIZET, offsetof(PatternObject, public_group_count),
+       READONLY, "The number of capturing groups in the pattern."},

Added: packages/python-regex/trunk/debian/patches/series
===================================================================
--- packages/python-regex/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-regex/trunk/debian/patches/series	2014-02-16 17:45:42 UTC (rev 27713)
@@ -0,0 +1 @@
+10_bts739122_fix_FTBFS_on_s390x.patch




More information about the Python-modules-commits mailing list