Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Feb 2022 16:36:04 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 92ba87a661c4 - main - math/py-cdecimal: deprecate and mark BROKEN with Python 3.9
Message-ID:  <202202121636.21CGa4Pp028436@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

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

commit 92ba87a661c409b4167d37efc38a1588c81efa41
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-02-12 16:24:59 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-02-12 16:35:56 +0000

    math/py-cdecimal: deprecate and mark BROKEN with Python 3.9
    
    Note: upstream does not support it after Python-3.2, and a fast C
    implementation of the decimal module (_decimal) is bundled with Python.
    
    PR:             261870
---
 math/py-cdecimal/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/math/py-cdecimal/Makefile b/math/py-cdecimal/Makefile
index 7ce6f0093577..d2481f7e89bd 100644
--- a/math/py-cdecimal/Makefile
+++ b/math/py-cdecimal/Makefile
@@ -13,10 +13,19 @@ COMMENT=	Fast drop-in replacement for the Decimal module
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+DEPRECATED=	upstream does not support it after Python-3.2
+
 USES=		python:3.6-3.8
 USE_PYTHON=	distutils autoplist
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VER} == 3.9
+# Note: a fast C implementation of the decimal module (_decimal) is bundled with Python
+BROKEN=	no member named 'tp_print' in 'struct _typeobject'
+.endif
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cdecimal*.so
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202121636.21CGa4Pp028436>