Bug 176224

Summary: databases/mysql56-server: MySQL Server 5.6 requires Perl, but does not depend on it
Product: Ports & Packages Reporter: Phil Murray <pmurray>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Phil Murray 2013-02-18 03:50:00 UTC
After installing MySQL Server 5.6 from latest ports on a freshly installed 9.1 system, the rc.d script fails to run with:

[root@regent ~]# /usr/local/etc/rc.d/mysql-server onestart
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql

I tracked this down to mysql_install_db, when run directly can't find a Perl interpreter:

[root@regent ~]# mysql_install_db  
-su: /usr/local/bin/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

Fix: 

a) Install Perl beforehand, or
b) Add USE_PERL5_BUILD=yes to Makefile
How-To-Repeat: Fresh install of FreeBSD 9.1, install MySQL Server 5.6 from Ports, try to start it for the first time (ie, no existing data in /var/db/mysql)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-18 04:39:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2013-02-19 13:21:15 UTC
State Changed
From-To: open->feedback

Why do we need it? Actually I think we could remove p5-DBD-mysql55, too.
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2013-03-05 09:37:39 UTC
State Changed
From-To: feedback->closed

Fixed, thanks (the previous comment wasn't for this PR obviously).