Bug 78427

Summary: mysql41-server port lost DB_DIR option
Product: Ports & Packages Reporter: Tim Wilde <freebsd>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Tim Wilde 2005-03-04 19:50:14 UTC
In the update to MySQL 4.1.10, the mysql41-server port lost its DB_DIR make option.  The DB_DIR is now set statically in the compile to /var/db/mysql.  This appears to have been part of a "fix" to being able to specify the DB_DIR in rc.conf, but I don't understand why this was taken out at the same time.  It should still be possible to specify the database directory passed to mysql's configure script.

Fix: 

Simply add DB_DIR back into the Makefile, and set --localstatedir=${DB_DIR} instead of --localstatedir=/var/db/mysql
Comment 1 twilde 2005-03-05 00:13:43 UTC
It looks like there were some other changes relating to ${DB_DIR} 
disappearing too - specifically, fresh databases are always being created in 
/var/db/mysql on installation as well, and the default entry in the rc.d 
script is hard-coded as well.  It'd be really nice to have the DB_DIR 
functionality back in the makefile, I don't see why it is mutually exclusive 
with being able to set it in rc.conf.

-- 
Tim Wilde
twilde@dyndns.org
Systems Administrator
Dynamic Network Services, Inc.
http://www.dyndns.org/
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2005-03-05 06:35:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2005-03-05 07:09:36 UTC
State Changed
From-To: open->closed

Fresh databases are created where you want, not during installation. 
Read ports/UPDATING.