| Summary: | Ports specifying WANT_MYSQL_VER failing with MariaDB | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Bernard Spil <brnrd> |
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Bernard Spil
2013-09-04 09:10:00 UTC
Meanwhile I've created a patch that works for me (tested with
mail/dspam and databases/p5-DBD-mysql)
==== BEGIN PATCH
--- bsd.database.mk.orig 2013-08-05 21:43:39.000000000 +0200
+++ bsd.database.mk 2013-09-04 15:22:30.070278068 +0200
@@ -132,7 +132,13 @@
.if defined(WITH_MYSQL_VER) && ${WITH_MYSQL_VER} != ${WANT_MYSQL_VER}
IGNORE= cannot install: the port wants
mysql${WANT_MYSQL_VER}-client and you try to install
mysql${WITH_MYSQL_VER}-client
.endif
-MYSQL_VER= ${WANT_MYSQL_VER}
+.if ${_PERCONA} == 1
+MYSQL_VER= ${WANT_MYSQL_VER}p
+.elif ${_MARIADB} == 1
+MYSQL_VER= ${WANT_MYSQL_VER}m
+.else
+MYSQL_VER= ${WANT_MYSQL_VER}
+.endif
.elif defined(WITH_MYSQL_VER)
MYSQL_VER= ${WITH_MYSQL_VER}
.else
==== END PATCH
Responsible Changed From-To: freebsd-ports-bugs->ale Hi Alex-- you can have first go at this, since it's the mysql section. If you would prefer, you can reassign this back to me and I'll fix it. |