git: 9b27560d80eb - main - net/samba416: Limit Python to max 3.11 because of distutils

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Tue, 02 Sep 2025 10:44:25 UTC
The branch main has been updated by michaelo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b27560d80eb3aed3117eb0fb65593d71c98dd6a

commit 9b27560d80eb3aed3117eb0fb65593d71c98dd6a
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2025-09-02 08:26:35 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2025-09-02 10:44:17 +0000

    net/samba416: Limit Python to max 3.11 because of distutils
    
    Samba 4.16 still requires distutils which have been removed in Python 3.12.
    Explicitly limit supported Python versions.
    
    PR:             289224
    Reviewed by:    0mp
    Approved by:    otis (mentor), samba (0mp)
    Differential Revision:  https://reviews.freebsd.org/D52331
---
 net/samba416/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/samba416/Makefile b/net/samba416/Makefile
index 0e4e23478edf..45eb0c63b280 100644
--- a/net/samba416/Makefile
+++ b/net/samba416/Makefile
@@ -459,10 +459,10 @@ SAMBA4_MODULES+=		auth_skel pdb_test gpext_security gpext_registry \
 .endif
 # Python bindings
 .if ! ${PORT_OPTIONS:MPYTHON3} || defined(NO_PYTHON)
-USES+=				python:build,test
+USES+=				python:build,test,-3.11
 CONFIGURE_ARGS+=		--disable-python
 .else
-USES+=				python
+USES+=				python:-3.11
 PLIST+=				${PKGDIR}/pkg-plist.python
 # Don't cache Python modules
 CONFIGURE_ARGS+=		--nopycache