git: bbb52b35ed7e - main - lang/spidermonkey91: limit Python version to 3.7-3.10 (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sun, 20 Nov 2022 11:18:06 UTC
The branch main has been updated by fluffy:

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

commit bbb52b35ed7eb566deb8d80d1ba563c9c8844936
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-11-20 11:14:15 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-11-20 11:14:15 +0000

    lang/spidermonkey91: limit Python version to 3.7-3.10 (+)
    
    Old firefox engine still have harcoded 'rU' as file mode for 'fopen()'
    'U' is default and deprecated since python-3.3, becomes a failure in 3.11.
    
    Instead of patching dozen files, limit python to 3.7-3.10 as it used only for configure stage.
    
    Approved by:    portmgr blanket
---
 lang/spidermonkey91/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/spidermonkey91/Makefile b/lang/spidermonkey91/Makefile
index 989b82fe329b..2d491320483d 100644
--- a/lang/spidermonkey91/Makefile
+++ b/lang/spidermonkey91/Makefile
@@ -22,7 +22,7 @@ LIB_DEPENDS=	libffi.so:devel/libffi \
 		libnspr4.so:devel/nspr
 
 USES=		compiler:c++17-lang gmake localbase pathfix pkgconfig \
-		python:build readline tar:xz
+		python:3.7-3.10,build readline tar:xz
 USE_LDCONFIG=	yes
 SP_VER=		91
 HAS_CONFIGURE=	yes