Diff below updates py-terminado to 0.8.3, which is a minor maintenance
release.

Changes to the port:
  - Make this port python3-only as its only consumer is
    jupyter-notebook, which dropped python2 support
  - Add patch for removing call to getpgid() in
    testterminado/management.py. Result is that all tests succeed.

Testing:
  - 'make test' runs successful
  - Run tested on amd64

This update requires an addition of a quirk to devel/quirks and removal
of www/py-terminado from www/Makefile. I will do this upon committing
the diff below.

Comments/OK?


diff --git Makefile Makefile
index a8556156e5e..b7b12ba4908 100644
--- Makefile
+++ Makefile
@@ -2,10 +2,9 @@
 
 COMMENT =              terminals served to term.js using Tornado websockets
 
-MODPY_EGG_VERSION =    0.8.2
+MODPY_EGG_VERSION =    0.8.3
 DISTNAME =             terminado-${MODPY_EGG_VERSION}
 PKGNAME =              py-${DISTNAME}
-REVISION =             0
 
 CATEGORIES =           www
 
@@ -23,6 +22,6 @@ RUN_DEPENDS +=                
devel/py-ptyprocess${MODPY_FLAVOR} \
                        www/py-tornado${MODPY_FLAVOR}>=4
 
 FLAVORS =              python3
-FLAVOR ?=
+FLAVOR ?=              python3
 
 .include <bsd.port.mk>
diff --git distinfo distinfo
index 08f9e3663ab..e138035e5f5 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (terminado-0.8.2.tar.gz) = 3gjhQfg8OgeYsFDssJerYlnD8DMbL3t3UMkHXO0sIMI=
-SIZE (terminado-0.8.2.tar.gz) = 21041
+SHA256 (terminado-0.8.3.tar.gz) = SASndPgCMGp9mvcyIZPFOQ8doKu0KeCCoQ7x1G5vssI=
+SIZE (terminado-0.8.3.tar.gz) = 21165
diff --git patches/patch-terminado_management_py 
patches/patch-terminado_management_py
new file mode 100644
index 00000000000..a1b382ede55
--- /dev/null
+++ patches/patch-terminado_management_py
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Don't call getpgid() when killing a test. Taken from
+https://github.com/jupyter/terminado/pull/72.
+
+Index: terminado/management.py
+--- terminado/management.py.orig
++++ terminado/management.py
+@@ -70,8 +70,7 @@ class PtyWithClients(object):
+         """Send a signal to the process group of the process in the pty"""
+         if os.name == 'nt':
+             return self.ptyproc.kill(sig)
+-        pgid = os.getpgid(self.ptyproc.pid)
+-        os.killpg(pgid, sig)
++        os.killpg(self.ptyproc.pid, sig)
+     
+     @gen.coroutine
+     def terminate(self, force=False):
diff --git pkg/PLIST pkg/PLIST
index 7075ad4b8b1..99ec2dae658 100644
--- pkg/PLIST
+++ pkg/PLIST
@@ -1,4 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.2 2016/11/06 13:42:57 shadchin Exp $
+@conflict py-terminado-*
+@pkgpath www/py-terminado
 lib/python${MODPY_VERSION}/site-packages/terminado/
 
lib/python${MODPY_VERSION}/site-packages/terminado-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
 lib/python${MODPY_VERSION}/site-packages/terminado/__init__.py

Reply via email to