You can’t configure nor download a newer version of the MySQL client using the FreeBSD ports collection while an older version is installed. It’s outrageous.

Anyway, here’s an unpolished patch disabling the check when configuring or fetching the port.

diff --git a/Mk/Uses/mysql.mk b/Mk/Uses/mysql.mk
index 2f9f7451d861..377675796418 100644
--- a/Mk/Uses/mysql.mk
+++ b/Mk/Uses/mysql.mk
@@ -126,7 +126,9 @@ MYSQL_FLAVOUR=     mysql
 
 .  if defined(_MYSQL_VER)
 .    if ${_MYSQL_VER} != ${MYSQL_VER}
+.if !${.TARGETS:Mconfig} && !${.TARGETS:Mconfig-*} && !${.TARGETS:Mfetch*}
 IGNORE=		cannot install: MySQL versions mismatch: ${_MYSQL_FLAVOUR}${_MYSQL_VER:C/[mpw]//}-client is installed and wanted version is ${MYSQL_FLAVOUR}${MYSQL_VER:C/[mpw]//}-client
+.endif
 .    endif
 .  endif

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>