Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2023 04:56:31 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 39ca6f0f2af0 - main - databases/py-mysql-connector-python: Runtime fix with newer protobuf
Message-ID:  <202309050456.3854uVrN032614@gitrepo.freebsd.org>

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

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

commit 39ca6f0f2af097b21300f4f20c35a80f9716035a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-09-05 04:55:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-05 04:56:13 +0000

    databases/py-mysql-connector-python: Runtime fix with newer protobuf
    
    PR:             273309
    Reported by:    dvl
---
 databases/py-mysql-connector-python/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/databases/py-mysql-connector-python/Makefile b/databases/py-mysql-connector-python/Makefile
index 9972791452ca..832730f53c7c 100644
--- a/databases/py-mysql-connector-python/Makefile
+++ b/databases/py-mysql-connector-python/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mysql-connector-python
 PORTVERSION=	8.1.0
+PORTREVISION=	1
 CATEGORIES=	databases python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -11,7 +12,7 @@ LICENSE=	GPLv2
 
 BUILD_DEPENDS=	${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}protobuf>=3.11.0:devel/py-protobuf@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}protobuf>=4.21.1:devel/py-protobuf@${PY_FLAVOR}
 
 USES=		python
 USE_GITHUB=	yes
@@ -36,6 +37,8 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|"gcc"|"${CC}"|g ; \
 		s|"g++"|"${CXX}"|g' \
 		${WRKSRC}/cpydist/__init__.py
+	@${REINPLACE_CMD} -e 's|protobuf>=4.21.1,<=4.21.12|protobuf>=4.21.1|g' \
+		${WRKSRC}/setup.py
 
 do-test:
 	@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ./unittests.py)



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