Summary: | databases/py-mysql-connector-python: errors with devel/py-protobuf 4.23.2,1 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Dan Langille <dvl> |
Component: | Individual Port(s) | Assignee: | Muhammad Moinur Rahman <bofh> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | bofh, sunpoet |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Dan Langille
2023-08-23 15:03:41 UTC
The epoch is used only in FreeBSD version check. It does not affect python. py-protobuf's version in Python is 4.24.1 (currently). Before I update devel/py-protobuf, I always checked all dependent ports. Since py-mysql-connector-python's RUN_DEPENDS says >=3.11.0, it should be OK. However, it actually requires 4.21.1 to 4.21.2 (install_requires in setup.py). If latest py-protobuf works fine. The simplest patch is as follows: --- setup.py.orig 2023-08-23 14:48:53 UTC +++ setup.py @@ -137,7 +137,7 @@ setup( ext_modules=EXTENSIONS, cmdclass=COMMAND_CLASSES, python_requires=">=3.8", - install_requires=["protobuf>=4.21.1,<=4.21.12"], + install_requires=["protobuf>=4.21.1"], extras_require={ "dns-srv": ["dnspython>=1.16.0,<=2.3.0"], "compression": ["lz4>=2.1.6,<=4.3.2", "zstandard>=0.12.0,<=0.19.0"], And RUN_DEPENDS should be updated to match the above range. Pass this PR to maintainer. A commit in branch main references this bug: 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(-) |