From 40fd38b3e24a9d7b02d3ab374635d02d5a5ddc22 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 10 Apr 2020 16:55:09 +0000 Subject: Fix bitrotted code. Drop maintainership. I don't use this port much as evidenced by the fact that one of these bugs was fixed in Arch Linux in 2016 (https://bugs.archlinux.org/task/46571). Submitted by: Jacob D Hunt MFH: 2020Q2 --- security/pssh/Makefile | 4 ++-- security/pssh/files/patch-psshlib_cli.py | 11 +++++++++++ security/pssh/files/patch-psshlib_manager.py | 18 ++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 security/pssh/files/patch-psshlib_cli.py create mode 100644 security/pssh/files/patch-psshlib_manager.py (limited to 'security/pssh') diff --git a/security/pssh/Makefile b/security/pssh/Makefile index 23aa6738556b..233507c67e56 100644 --- a/security/pssh/Makefile +++ b/security/pssh/Makefile @@ -2,11 +2,11 @@ PORTNAME= pssh PORTVERSION= 2.3.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security net sysutils MASTER_SITES= CHEESESHOP -MAINTAINER= brooks@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Parallel versions of the openssh tools LICENSE= BSD3CLAUSE diff --git a/security/pssh/files/patch-psshlib_cli.py b/security/pssh/files/patch-psshlib_cli.py new file mode 100644 index 000000000000..6f628152573b --- /dev/null +++ b/security/pssh/files/patch-psshlib_cli.py @@ -0,0 +1,11 @@ +--- psshlib/cli.py.orig ++++ psshlib/cli.py +@@ -6,7 +6,7 @@ + import shlex + import sys + import textwrap +-import version ++from psshlib import version + + _DEFAULT_PARALLELISM = 32 + _DEFAULT_TIMEOUT = 0 # "infinity" by default diff --git a/security/pssh/files/patch-psshlib_manager.py b/security/pssh/files/patch-psshlib_manager.py new file mode 100644 index 000000000000..33d8e478cd5a --- /dev/null +++ b/security/pssh/files/patch-psshlib_manager.py @@ -0,0 +1,18 @@ +--- psshlib/manager.py.orig ++++ psshlib/manager.py +@@ -2,6 +2,7 @@ + + from errno import EINTR + import os ++import fcntl + import select + import signal + import sys +@@ -209,6 +210,7 @@ + + # Setup the wakeup file descriptor to avoid hanging on lost signals. + wakeup_readfd, wakeup_writefd = os.pipe() ++ fcntl.fcntl(wakeup_writefd, fcntl.F_SETFL, os.O_NONBLOCK) + self.register_read(wakeup_readfd, self.wakeup_handler) + # TODO: remove test when we stop supporting Python <2.5 + if hasattr(signal, 'set_wakeup_fd'): -- cgit v1.2.3