Package: python-regex Version: 0.1.20140120-1 Severity: serious Tags: upstream patch Justification: fails to build from source (but built successfully in the past)
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. --- python-regex-0.1.20140120.orig/Python2/_regex.c +++ python-regex-0.1.20140120/Python2/_regex.c @@ -17089,7 +17089,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."}, --- python-regex-0.1.20140120.orig/Python3/_regex.c +++ python-regex-0.1.20140120/Python3/_regex.c @@ -17082,7 +17082,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."}, -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: s390x Kernel: Linux 3.2.0-4-s390x (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org