pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk recognize MariaDB 10.4 as another accepted MySQL ve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/906ea6625723
branches:  trunk
changeset: 452323:906ea6625723
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sat May 08 19:53:28 2021 +0000

description:
recognize MariaDB 10.4 as another accepted MySQL version

diffstat:

 mk/mysql.buildlink3.mk |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 7e5e85ec54f7 -r 906ea6625723 mk/mysql.buildlink3.mk
--- a/mk/mysql.buildlink3.mk    Sat May 08 19:47:15 2021 +0000
+++ b/mk/mysql.buildlink3.mk    Sat May 08 19:53:28 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mysql.buildlink3.mk,v 1.29 2021/05/08 15:51:28 jdolecek Exp $
+# $NetBSD: mysql.buildlink3.mk,v 1.30 2021/05/08 19:53:28 jdolecek Exp $
 #
 # This file is included by packages that require some version of the
 # MySQL database client.
@@ -8,7 +8,7 @@
 # MYSQL_VERSION_DEFAULT
 #      The preferred MySQL version.
 #
-#      Possible: 57 56 MARIADB55
+#      Possible: 57 56 MARIADB55 MARIADB104
 #      Default: 57
 #
 # Package-settable variables:
@@ -37,7 +37,7 @@
 .include "../../mk/bsd.prefs.mk"
 
 MYSQL_VERSION_DEFAULT?=                57
-MYSQL_VERSIONS_ACCEPTED?=      57 56 MARIADB55
+MYSQL_VERSIONS_ACCEPTED?=      57 56 MARIADB55 MARIADB104
 
 # transform the list into individual variables
 .for mv in ${MYSQL_VERSIONS_ACCEPTED}
@@ -65,6 +65,9 @@
 _MYSQL_VERSION_MARIADB55_INSTALLED=    yes
 _MYSQL_VERSION_INSTALLED=      MARIADB55
 .  endif
+.elif exists(${LOCALBASE}/include/mysql/mariadb_version.h)
+_MYSQL_VERSION_MARIADB104_INSTALLED=   yes
+_MYSQL_VERSION_INSTALLED=      MARIADB104
 .endif
 
 
@@ -111,6 +114,8 @@
 MYSQL_PKGSRCDIR=       ../../databases/mysql56-client
 .elif ${_MYSQL_VERSION} == "MARIADB55"
 MYSQL_PKGSRCDIR=       ../../databases/mariadb55-client
+.elif ${_MYSQL_VERSION} == "MARIADB104"
+MYSQL_PKGSRCDIR=       ../../databases/mariadb104-client
 .else
 # force an error
 PKG_FAIL_REASON+=      "[mysql.buildlink3.mk] ${_MYSQL_VERSION} is not a valid mysql package."



Home | Main Index | Thread Index | Old Index