Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2024 15:38:29 GMT
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2c7013fff596 - main - sysutils/ntfy: fix build with Python 3.11
Message-ID:  <202401211538.40LFcT2D080919@gitrepo.freebsd.org>

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

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

commit 2c7013fff5963d9faa72770b006f99c60d5fa1df
Author:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
AuthorDate: 2024-01-21 15:37:17 +0000
Commit:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
CommitDate: 2024-01-21 15:37:17 +0000

    sysutils/ntfy: fix build with Python 3.11
    
    Obtained from here:
    https://github.com/dschep/ntfy/issues/262
    
    PR:             275494
    Approved by:    portmgr (blanket approval)
---
 sysutils/ntfy/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sysutils/ntfy/Makefile b/sysutils/ntfy/Makefile
index b7990e62acc0..f1d8c90207bf 100644
--- a/sysutils/ntfy/Makefile
+++ b/sysutils/ntfy/Makefile
@@ -15,11 +15,16 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}appdirs>0:devel/py-appdirs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOR}
 
-USES=		python
+USES=		python:3.11
 USE_GITHUB=	yes
 GH_ACCOUNT=	dschep
 USE_PYTHON=	distutils noflavors autoplist
 
 NO_ARCH=	yes
 
+post-patch:
+# Fix build with Python 3.11
+	@${REINPLACE_CMD} -e 's|getargspec|getfullargspec|' \
+		${WRKSRC}/ntfy/__init__.py
+
 .include <bsd.port.mk>



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