git: 77140fdb6f38 - 2023Q4 - databases/py-mysqlclient: fix build with mariadb
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Oct 2023 20:39:28 UTC
The branch 2023Q4 has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=77140fdb6f38878c92e326b43f1dd6c46f5a3c9b commit 77140fdb6f38878c92e326b43f1dd6c46f5a3c9b Author: Rozhuk Ivan <rozhuk.im@gmail.com> AuthorDate: 2023-09-05 10:36:16 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2023-10-03 20:39:12 +0000 databases/py-mysqlclient: fix build with mariadb PR: 272481 MFH: 2023Q4 (cherry picked from commit a63cc035abee4d9e1a89c8ac57c9efeb9ae974f5) --- databases/py-mysqlclient/Makefile | 2 +- databases/py-mysqlclient/files/patch-setup.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/databases/py-mysqlclient/Makefile b/databases/py-mysqlclient/Makefile index ea794fb9d777..70a85c7a0132 100644 --- a/databases/py-mysqlclient/Makefile +++ b/databases/py-mysqlclient/Makefile @@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0.37:devel/py-wheel@${PY_FLAVOR} -USES= compiler:c11 iconv mysql pkgconfig python ssl +USES= compiler:c11 dos2unix iconv mysql pkgconfig python ssl USE_PYTHON= autoplist concurrent pep517 PORTDOCS= * diff --git a/databases/py-mysqlclient/files/patch-setup.py b/databases/py-mysqlclient/files/patch-setup.py new file mode 100644 index 000000000000..4bb4df91be54 --- /dev/null +++ b/databases/py-mysqlclient/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py ++++ setup.py +@@ -14,7 +14,7 @@ + + def find_package_name(): + """Get available pkg-config package name""" +- packages = ["mysqlclient", "mariadb"] ++ packages = ["mysqlclient", "mariadb", "libmariadb"] + for pkg in packages: + try: + cmd = f"pkg-config --exists {pkg}"