ports/54628: make install ignores DB_DIR when creating initial database.
Max Okumoto
okumoto at ucsd.edu
Sat Jul 19 07:40:19 UTC 2003
>Number: 54628
>Category: ports
>Synopsis: make install ignores DB_DIR when creating initial database.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 19 00:40:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Max Okumoto
>Release: FreeBSD 4.8-RELEASE i386
>Organization:
UC San Diego
>Environment:
System: FreeBSD oecpc18.ucsd.edu 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Jul 17 14:47:17 PDT 2003 root at oecpc18.ucsd.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
During inital install of /usr/ports/databases/mysql41-server
the Makefile does not use the DB_DIR variable when creating
the inital database.
So when /usr/local/etc/rc.d/mysql-server.sh start is executed
there is no database.
>How-To-Repeat:
# make DB_DIR=/usr/home/mysql OVERWRITE_DB=yes install
>Fix:
Apply following patch
--- Makefile.orig Sat Jul 19 00:21:16 2003
+++ Makefile Sat Jul 19 00:20:05 2003
@@ -142,9 +142,9 @@
.endif
.if !exists(${DB_DIR}) || defined(OVERWRITE_DB)
.if defined(SKIP_DNS_CHECK)
- ${PREFIX}/bin/mysql_install_db --force
+ ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR}
.else
- ${PREFIX}/bin/mysql_install_db
+ ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR}
.endif
.endif
@${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list