From 92a030dffd4fd7c3f5abdd7a85b16086da294fe1 Mon Sep 17 00:00:00 2001 From: Florian Smeets Date: Sun, 7 Apr 2024 01:32:10 +0200 Subject: databases/p5-DBD-mysql: Fix for MariaDB users Add a new variable DBD_MYSQL, use that in *_DEPENDS and add mysql to USES where required. DBD_MYSQL will automatically set the correct DBD dependency. In cd16748194e2 databases/p5-DBD-mysql was updated to 5.x, in 5.x the support for MariaDB was removed and only MySQL >= 8.0 is supported. In the 4.x releases MariaDB is still supported, according to upstream 4.x will still be supported for a while [1], so use that for now when we detect that MYSQL_FLAVOUR is set to mariadb. databases/p5-DBD-mysql4 was added in d95f49cb3b54. DBD:MariaDB would be another alternative, but migrating to it might need more analysis than just staying with the 4.x releases of p5-DBD-mysql. This thread on the amavis-users mailing list has a very good summary [2] from the author of DBD:MariaDB. This includes ideas and suggestions from vvd and mat. Thanks! [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277889#c17 [2] https://lists.amavis.org/pipermail/amavis-users/2024-March/006823.html PR: 275100, 277889 Reviewed by: vvd, mat Fixes: cd16748194e2 Differential Revision: https://reviews.freebsd.org/D44662 --- net-mgmt/netdot/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net-mgmt/netdot') diff --git a/net-mgmt/netdot/Makefile b/net-mgmt/netdot/Makefile index e3bdac514e39..78e2f68ea0e2 100644 --- a/net-mgmt/netdot/Makefile +++ b/net-mgmt/netdot/Makefile @@ -1,7 +1,7 @@ PORTNAME= netdot PORTVERSION= 1.0.7 DISTVERSIONPREFIX= ${PORTNAME}- -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= net-mgmt MAINTAINER= nick@foobar.org @@ -16,7 +16,7 @@ RUN_DEPENDS= p5-libapreq2>=0:www/p5-libapreq2 \ p5-Apache-AuthCookie>=0:www/p5-Apache-AuthCookie \ p5-Apache2-SiteControl>=1.0:www/p5-Apache2-SiteControl \ p5-URI>=0:net/p5-URI \ - p5-DBD-mysql>=0:databases/p5-DBD-mysql \ + ${DBD_MYSQL} \ p5-SQL-Translator>=0.07:databases/p5-SQL-Translator \ p5-Class-DBI>=3.0.17:databases/p5-Class-DBI \ p5-Class-DBI-AbstractSearch>=0:databases/p5-Class-DBI-AbstractSearch \ -- cgit v1.2.3