From nobody Fri Dec 23 18:42:57 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NdwzP30r5z1HNMt; Fri, 23 Dec 2022 18:42:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NdwzP2XFqz3JPY; Fri, 23 Dec 2022 18:42:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671820977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhHmyfqfbUOmBulTRLHsog+a52urqKKjqo0PlR4zO9k=; b=k88UTD1yXtemWn3vNA//Q3ppsoL5VtyrAkvUO3aekm7+8jOey+Y6kud0RtiPs9pilAFbsj hbQ64Ca7JLprtKzAvIjjrw5XwkIFiOmeG+aeUi/QFEnq68hF508jkn0BPw+IeKYbAjteuW 5kfQ+N0ffqHkR7fDhYWt4weMSQU/2vA28W0B/kzeeyvxzwwC7XZ15VrJzF7DXOzk6xJSLl bTo5Zd4Ft65oz0Tre/7iazU2Jd+iRq00+LJQF5vgUCtAjvxgabkIZAU/TNxpoip9S+WQbj Mr1UV4iPOk9prqZ4MeWX33V5i7Dn7rxuAafZX/VHezYFwYzz5u2IpbQ5NS4LEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671820977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhHmyfqfbUOmBulTRLHsog+a52urqKKjqo0PlR4zO9k=; b=LDSZQJ3wXyF1HcHjr/v4xd5BmfFjLUlHqghlmyb15Op0Ay3Bm5zZyvY/sYzn6Rhl1cJv/H DFD8IYdx+RZyqLN6hQMdMrnTRDRZStY/LDvODjnEEVfo7WM9qCNs7xE/HPW0HVwJ/mS01U kg+gDADCRmdk660+He5aX/AKDPKki8q4XHWaI6c4n+Sg5lCTPV9XTi8yos0JJ+w5ZoLKgn Fs69iEVo2VM2RnXfDc4kv7tHRy5JHOiShyl8jnWhCSo+zy/kz03tNUb3q2m9QygqqjvSh5 KK/LpFfGp2tmJZMwaJaMRUcGOV6bAJ6qVkkxyNgonioXQevf4O+zceGtrx9CVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671820977; a=rsa-sha256; cv=none; b=oXsq44DP8UXAtJB9pvx7kbLOgg+8UtRfSPOqGdd9ERGuoFsYw0pmpcKjCBFARDT5zB5Bpd curXPq7JOLcos4/fYIabBq5uBihsaxrVHinuCBi1xa9oQtasPjQ4FHtrs8L5Exc1ECo1mp 1LRjYzB0ZzCJYHgMVcRI3Vf4bgetI5L9jTjuxBqjm1j9Trkn2z6HeHIxgl5z5KZ8QyLU/l EGZfkDgenzCycnHgES4EfBUWpXVJKwMGj7vZWsDN1pakeev75ZpWe1T0i4EW8K0eRrdL6P 2cdZphlP66hZoeZ325s0mXOv5xOuOeMCznBnjYviLHIq4SItMzucSMzaWuLmRQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NdwzP1bDgzjyC; Fri, 23 Dec 2022 18:42:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BNIgvg5097892; Fri, 23 Dec 2022 18:42:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BNIgv6R097891; Fri, 23 Dec 2022 18:42:57 GMT (envelope-from git) Date: Fri, 23 Dec 2022 18:42:57 GMT Message-Id: <202212231842.2BNIgv6R097891@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: 41dbb7611294 - main - lang/python311: fix asyncio.subprocess regression List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 41dbb76112949cccafb9b73ff94565dd55e70890 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=41dbb76112949cccafb9b73ff94565dd55e70890 commit 41dbb76112949cccafb9b73ff94565dd55e70890 Author: Dmitry Marakasov AuthorDate: 2022-12-13 12:00:27 +0000 Commit: Dmitry Marakasov CommitDate: 2022-12-23 18:42:37 +0000 lang/python311: fix asyncio.subprocess regression Fix losing stdout of asyncio.subprocess spawned processes. PR: 268502 Approved by: wen (python@) Upstream issue: https://github.com/python/cpython/issues/100133 --- lang/python311/Makefile | 1 + lang/python311/files/patch-GH-100133 | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/lang/python311/Makefile b/lang/python311/Makefile index 81b31ae90b5c..900776860f1f 100644 --- a/lang/python311/Makefile +++ b/lang/python311/Makefile @@ -1,5 +1,6 @@ PORTNAME= python DISTVERSION= ${PYTHON_DISTVERSION} +PORTREVISION= 1 CATEGORIES= lang python MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//} PKGNAMESUFFIX= ${PYTHON_SUFFIX} diff --git a/lang/python311/files/patch-GH-100133 b/lang/python311/files/patch-GH-100133 new file mode 100644 index 000000000000..6db2c1b3eec1 --- /dev/null +++ b/lang/python311/files/patch-GH-100133 @@ -0,0 +1,24 @@ +commit ae8520c70992710903819f24dbce4e7dd05d7ea8 +Author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> +Date: Wed Dec 21 02:24:19 2022 -0800 + + GH-100133: fix `asyncio` subprocess losing `stderr` and `stdout` output (GH-100154) + + (cherry picked from commit a7715ccfba5b86ab09f86ec56ac3755c93b46b48) + + Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> + +diff --git Lib/asyncio/base_subprocess.py Lib/asyncio/base_subprocess.py +index e15bb4141f..4c9b0dd565 100644 +--- Lib/asyncio/base_subprocess.py ++++ Lib/asyncio/base_subprocess.py +@@ -215,9 +215,6 @@ def _process_exited(self, returncode): + # object. On Python 3.6, it is required to avoid a ResourceWarning. + self._proc.returncode = returncode + self._call(self._protocol.process_exited) +- for p in self._pipes.values(): +- if p is not None: +- p.pipe.close() + + self._try_finish() +