Bug 155703

Summary: bsd.database.mk -- check compatability with MySQL version without adding LIB_DEPENDS
Product: Ports & Packages Reporter: Matthew Seaman <m.seaman>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
bsd.database.mk.diff none

Description Matthew Seaman 2011-03-19 19:10:02 UTC
I'm the maintainer of databases/phpmyadmin.  Up to now, I've had
'USE_MYSQL=yes' included in that port's Makefile so I could use the
IGNORE_WITH_MYSQL functionality, and not minded that this introduced a
LIB_DEPENDS on databases/mysqlXX-client, which isn't necessary as a
direct dependency for this port, because it would always have had that
as an indirect dependency in any case.

However, the php5-mysql or php5-mysqli modules now default to using
the MySQL native drivers, in which case, no LIB_DEPENDS on
mysql-client is needed.

databases/phpmyadmin is incompatible with older versions of MySQL, and
I'd still like to use the IGNORE_WITH_MYSQL functionality as far as
possible.

This patch allows port maintainers to say:

USE_MYSQL= compat
IGNORE_WITH_MYSQL=	323 40 41

without adding any dependency on databases/mysqlXX-client
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2011-03-26 11:41:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2011-03-26 11:52:14 UTC
State Changed
From-To: open->closed

Thanks for the submission, but phpmyadmin should not use any form of 
USE_MYSQL: it doesn't need a library and it doesn't need a local server. 
Checking for the version of an installed MySQL Server is not correct, 
USE_MYSQL should be removed.