#52010: qt5-mysql-plugin for MariaDB -------------------------------+------------------------ Reporter: ctreleaven@… | Owner: mcalhoun@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: qt5-mysql-plugin | -------------------------------+------------------------ Comment (by ctreleaven@…): OK, it is a trivial patch to get it working with MariaDB: {{{ $ diff -u /opt/dvr/var/macports/sources/rsync.macports.org/release/tarballs/ports/aqua/qt5/Portfile Portfile --- /opt/dvr/var/macports/sources/rsync.macports.org/release/tarballs/ports/aqua/qt5/Portfile 2016-06-15 11:01:22.000000000 -0400 +++ Portfile 2016-08-13 14:33:25.000000000 -0400 @@ -450,6 +450,13 @@ } {mysql MySQL} { { + "mariadb55" + "port:mariadb" + "${prefix}/include/mariadb/mysql" + "-L${prefix}/lib/mariadb/mysql -lmysqlclient_r" + "" + } + { "mysql56" "port:mysql56" "${prefix}/include/mysql56/mysql" }}} BUT, as patched, the mariadb55 variant becomes the default variant (since it is first) to a port named "qt5-mysql-plugin". Clearly that is more than a little odd--one would expect mysql56 or mysql57 to be the default. OTOH, AFAICT, I'm the first one to be relying on this port as a dependency. If my mariadb55 variant is the default, it will be pre- compiled, etc. OTOH, I think it would be preferable if the qt5-xxx-plugin's did not use variants--use more subports, instead. So there would be qt5-mysql56-plugin, qt5-mysql57-plugin, qt5-mariadb55-plugin, etc. Restructuring that is beyond my pay grade. I'd like to move ahead with this. If I don't hear anything shortly, I'm going to commit the simple patch. It can always be changed or reverted. -- Ticket URL: <https://trac.macports.org/ticket/52010#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X