summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPPed72 <paolo.pedroni@iol.it>2016-04-22 17:34:22 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-05-05 08:59:09 +0000
commitb5f1e9968e573009453180799b1156a37b40e6b8 (patch)
tree234b0e08e0b8dea16e566b4c30dc94c1303a7459 /dev-python/pypy3
parentdev-vcs/subversion: Stable for HPPA PPC64 (bug #581448). (diff)
downloadgentoo-b5f1e9968e573009453180799b1156a37b40e6b8.tar.gz
gentoo-b5f1e9968e573009453180799b1156a37b40e6b8.tar.bz2
gentoo-b5f1e9968e573009453180799b1156a37b40e6b8.zip
dev-python/pypy3: fix regression in tkinter
Gentoo-Bug: https://bugs.gentoo.org/533384 Closes: https://github.com/gentoo/gentoo/pull/1326 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-python/pypy3')
-rw-r--r--dev-python/pypy3/files/pypy3-2.4.0-fix-tkinter-regression.patch74
-rw-r--r--dev-python/pypy3/pypy3-2.4.0-r2.ebuild1
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/pypy3/files/pypy3-2.4.0-fix-tkinter-regression.patch b/dev-python/pypy3/files/pypy3-2.4.0-fix-tkinter-regression.patch
new file mode 100644
index 000000000000..a92152ee845d
--- /dev/null
+++ b/dev-python/pypy3/files/pypy3-2.4.0-fix-tkinter-regression.patch
@@ -0,0 +1,74 @@
+# HG changeset patch
+# User Philip Jenvey <pjenvey@underboss.org>
+# Date 1414136649 25200
+# Branch py3k
+# Node ID 8c340acffe279d63dd2df525173713b2054619c8
+# Parent a87e6542c186bdc7408ea027aed83c62820a9c49
+issue1899: fix broken bytes usage from default
+
+diff --git a/lib_pypy/_tkinter/app.py b/lib_pypy/_tkinter/app.py
+--- a/lib_pypy/_tkinter/app.py
++++ b/lib_pypy/_tkinter/app.py
+@@ -439,7 +439,7 @@
+ if isinstance(s, int):
+ return s
+ s = s.encode('utf-8')
+- if '\x00' in s:
++ if b'\x00' in s:
+ raise TypeError
+ v = tkffi.new("int*")
+ res = tklib.Tcl_GetBoolean(self.interp, s, v)
+@@ -451,7 +451,7 @@
+ if isinstance(s, int):
+ return s
+ s = s.encode('utf-8')
+- if '\x00' in s:
++ if b'\x00' in s:
+ raise TypeError
+ v = tkffi.new("int*")
+ res = tklib.Tcl_GetInt(self.interp, s, v)
+@@ -463,7 +463,7 @@
+ if isinstance(s, float):
+ return s
+ s = s.encode('utf-8')
+- if '\x00' in s:
++ if b'\x00' in s:
+ raise TypeError
+ v = tkffi.new("double*")
+ res = tklib.Tcl_GetDouble(self.interp, s, v)
+@@ -472,7 +472,7 @@
+ return v[0]
+
+ def exprboolean(self, s):
+- if '\x00' in s:
++ if b'\x00' in s:
+ raise TypeError
+ v = tkffi.new("int*")
+ res = tklib.Tcl_ExprBoolean(self.interp, s, v)
+@@ -481,7 +481,7 @@
+ return v[0]
+
+ def exprlong(self, s):
+- if '\x00' in s:
++ if b'\x00' in s:
+ raise TypeError
+ v = tkffi.new("long*")
+ res = tklib.Tcl_ExprLong(self.interp, s, v)
+@@ -490,7 +490,7 @@
+ return v[0]
+
+ def exprdouble(self, s):
+- if '\x00' in s:
++ if b'\x00' in s:
+ raise TypeError
+ v = tkffi.new("double*")
+ res = tklib.Tcl_ExprDouble(self.interp, s, v)
+@@ -499,7 +499,7 @@
+ return v[0]
+
+ def exprstring(self, s):
+- if '\x00' in s:
++ if b'\x00' in s:
+ raise TypeError
+ res = tklib.Tcl_ExprString(self.interp, s)
+ if res == tklib.TCL_ERROR:
diff --git a/dev-python/pypy3/pypy3-2.4.0-r2.ebuild b/dev-python/pypy3/pypy3-2.4.0-r2.ebuild
index 446c8d6aa16a..07646dbe336f 100644
--- a/dev-python/pypy3/pypy3-2.4.0-r2.ebuild
+++ b/dev-python/pypy3/pypy3-2.4.0-r2.ebuild
@@ -82,6 +82,7 @@ src_prepare() {
"${FILESDIR}"/2.3.1-shared-lib.patch # 517002
epatch "${FILESDIR}/2.4.0-ncurses6.patch"
epatch "${FILESDIR}"/${PN}-2.4.0-libressl.patch
+ epatch "${FILESDIR}/${PN}-2.4.0-fix-tkinter-regression.patch" # 533384
sed -e "s^@EPREFIX@^${EPREFIX}^" \
-e "s^@libdir@^$(get_libdir)^" \