Created attachment 186744 [details] py-subprocess32-3.2.7.diff The attached patch adds Google's backport of Python 3.2's subprocess module to Python 2.7. I've tested the port under FreeBSD 11.1-REALEASE on amd64 using the following utilities: - portlint -AC - make package - poudriere testport The output of each of them is clean.
This is a dependency of mail/afew (bug #222628).
(In reply to Sebastian Schwarz from comment #0) I'll put this on review until tomorrow, thanks for your work.
A commit references this bug: Author: dbaio Date: Sun Oct 8 12:33:17 UTC 2017 New revision: 451521 URL: https://svnweb.freebsd.org/changeset/ports/451521 Log: Add devel/py-subprocess32, Backport of the subprocess module from Python 3.2 & 3.3 This is a backport of the subprocess standard library module from Python 3.2 & 3.3 for use on Python 2. It includes bugfixes and some new features. On POSIX systems it is guaranteed to be reliable when used in threaded applications. It includes timeout support from Python 3.3 but otherwise matches 3.2's API. It has not been tested on Windows. WWW: https://github.com/google/python-subprocess32 PR: 222628 Submitted by: Sebastian Schwarz <seschwar@gmail.com> Reviewed by: koobs, sunpoet Differential Revision: D12519 Changes: head/devel/Makefile head/devel/py-subprocess32/ head/devel/py-subprocess32/Makefile head/devel/py-subprocess32/distinfo head/devel/py-subprocess32/pkg-descr
Committed, thanks!