summaryrefslogtreecommitdiff
path: root/lang/python36
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2019-04-09 18:47:24 +0000
committeradam <adam@pkgsrc.org>2019-04-09 18:47:24 +0000
commite7dd1417d68274fd7e0480fbfbe9c636c09d6f41 (patch)
treea84dcd31d65bc5cfe382b7b027bc47aee8518fe5 /lang/python36
parent2910ea37d62d22601ae00a7c0786105486e65b9d (diff)
downloadpkgsrc-e7dd1417d68274fd7e0480fbfbe9c636c09d6f41.tar.gz
python3[567]: fix #53229
Diffstat (limited to 'lang/python36')
-rw-r--r--lang/python36/distinfo3
-rw-r--r--lang/python36/patches/patch-Python_pylifecycle.c16
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/python36/distinfo b/lang/python36/distinfo
index acc4b2d5ca6..4738d18b55f 100644
--- a/lang/python36/distinfo
+++ b/lang/python36/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2019/03/02 13:23:36 adam Exp $
+$NetBSD: distinfo,v 1.25 2019/04/09 18:47:24 adam Exp $
SHA1 (Python-3.6.8.tar.xz) = ee55acedef049268307633cbc9c7ff0610d1244f
RMD160 (Python-3.6.8.tar.xz) = 478ffd42f188414cd6c114740f90b147363b9b10
@@ -14,6 +14,7 @@ SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567
SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d
SHA1 (patch-Modules_socketmodule.c) = e6bdb8990cd9b8cf0b0ff48e6ae7b664681a9924
SHA1 (patch-Modules_socketmodule.h) = 13a3290eb72078067060d3e71b7baa08f3eb591c
+SHA1 (patch-Python_pylifecycle.c) = 9d912a683cf74a39bcd4ab73f431bccd3eb4288e
SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be
SHA1 (patch-configure) = 2c2f3e4bb0da0232f7c0c7eeae1eee782b06dd01
SHA1 (patch-pyconfig.h.in) = 58e2c03489f9b6e4d88f144d8c09773f92eacd61
diff --git a/lang/python36/patches/patch-Python_pylifecycle.c b/lang/python36/patches/patch-Python_pylifecycle.c
new file mode 100644
index 00000000000..ca23d95d7b0
--- /dev/null
+++ b/lang/python36/patches/patch-Python_pylifecycle.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-Python_pylifecycle.c,v 1.1 2019/04/09 18:47:24 adam Exp $
+
+NetBSD is also affected by bpo-30225.
+See bpo-33384: https://bugs.python.org/issue33384
+
+--- Python/pylifecycle.c.orig 2019-04-09 17:51:55.000000000 +0000
++++ Python/pylifecycle.c
+@@ -1043,7 +1043,7 @@ initsite(void)
+ static int
+ is_valid_fd(int fd)
+ {
+-#ifdef __APPLE__
++#if defined(__APPLE__) || defined(__NetBSD__)
+ /* bpo-30225: On macOS Tiger, when stdout is redirected to a pipe
+ and the other side of the pipe is closed, dup(1) succeed, whereas
+ fstat(1, &st) fails with EBADF. Prefer fstat() over dup() to detect