Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2026 06:57:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 285957] lang/python312 as default python
Message-ID:  <bug-285957-21822-Fs9CrXIV7X@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-285957-21822@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285957

--- Comment #62 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
(In reply to Tatsuki Makino from comment #61)

With changes like the following, building devel/py-dbus for a version of python
that is not the default version will be successful again.
However, it is only for py310 and py312, and the one for py313 is ignored by
textproc/py-sphinx.

Following is a unified diff of the changes.

diff --git a/Mk/Uses/meson.mk b/Mk/Uses/meson.mk
index f1b41cbdbceb..fd79fa8a5588 100644
--- a/Mk/Uses/meson.mk
+++ b/Mk/Uses/meson.mk
@@ -35,7 +35,7 @@ IGNORE=       'USES+= meson:${meson_ARGS}' usage: argument
[${_arg}] is not recognized
 .  if !empty(meson_ARGS:Mmuon)
 BUILD_DEPENDS+=        muon:devel/muon
 .  else
-BUILD_DEPENDS+=        meson:devel/meson
+BUILD_DEPENDS+=        meson:devel/meson${PY_FLAVOR:D@${PY_FLAVOR}}
 .  endif

 # meson uses ninja
diff --git a/devel/py-dbus/Makefile b/devel/py-dbus/Makefile
index 7a35ec8f7fd9..ff39df4225f8 100644
--- a/devel/py-dbus/Makefile
+++ b/devel/py-dbus/Makefile
@@ -32,8 +32,9 @@ OPTIONS_DEFINE=       DOCS EXAMPLES
 OPTIONS_SUB=   yes

 DOCS_DESC=                     Build and install HTML documentation (requires
Sphinx)
-DOCS_BUILD_DEPENDS=            sphinx-build:textproc/py-sphinx \
+DOCS_BUILD_DEPENDS=           
sphinx-build-${PYTHON_VER}:textproc/py-sphinx@${PY_FLAVOR} \
                               
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR}
+DOCS_BINARY_ALIAS=             sphinx-build=sphinx-build-${PYTHON_VER}
 DOCS_MESON_ENABLED=            doc

 post-patch:

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285957-21822-Fs9CrXIV7X>