From nobody Wed Aug 11 15:58:17 2021 X-Original-To: python@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 18FDE11F83FC for ; Wed, 11 Aug 2021 15:58:17 +0000 (UTC) (envelope-from bugzilla-noreply@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 4GlDxh6yTbz3NDX for ; Wed, 11 Aug 2021 15:58:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 D394112129 for ; Wed, 11 Aug 2021 15:58:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 17BFwGGn077287 for ; Wed, 11 Aug 2021 15:58:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17BFwG7t077286 for python@FreeBSD.org; Wed, 11 Aug 2021 15:58:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 257770] textproc/py-sphinx: Add upstream patch to fix runtime error with Python 3.10 Date: Wed, 11 Aug 2021 15:58:17 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 257770: textproc/py-sphinx: Add upstream patch to fix runtime error with Python 3.10 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257770 --- Description --- While testing lang/python310, I found runtime error such as following happens with textproc/py-sphinx if 3.10 is default version of Python. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/bin/sphinx-build", line 33, in sys.exit(load_entry_point('Sphinx=3D=3D3.5.2', 'console_scripts', 'sphinx-build')()) File "/usr/local/bin/sphinx-build", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.10/importlib/metadata/__init__.py", line 162= , in load module =3D import_module(match.group('module')) File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlock= ed File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_remo= ved File "/usr/local/lib/python3.10/site-packages/sphinx/cmd/build.py", line = 25, in from sphinx.application import Sphinx File "/usr/local/lib/python3.10/site-packages/sphinx/application.py", line 32, in from sphinx.config import Config File "/usr/local/lib/python3.10/site-packages/sphinx/config.py", line 23,= in from sphinx.util import logging File "/usr/local/lib/python3.10/site-packages/sphinx/util/__init__.py", l= ine 35, in from sphinx.util import smartypants # noqa File "/usr/local/lib/python3.10/site-packages/sphinx/util/smartypants.py", line 33, in from sphinx.util.docutils import __version_info__ as docutils_version File "/usr/local/lib/python3.10/site-packages/sphinx/util/docutils.py", l= ine 31, in from sphinx.util.typing import RoleFunction File "/usr/local/lib/python3.10/site-packages/sphinx/util/typing.py", line 34, in from types import Union as types_Union ImportError: cannot import name 'Union' from 'types' (/usr/local/lib/python3.10/types.py) ---------------------------------------------------------------------- So add upstream patch to fix the problem. References: https://github.com/sphinx-doc/sphinx/issues/9512 https://github.com/sphinx-doc/sphinx/pull/9513 https://github.com/sphinx-doc/sphinx/commit/36e06d67c9e4ef6d3d0881aac76066b= 5c19 82ccd