Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2003 00:37:43 -0700 (PDT)
From:      Max Okumoto <okumoto@ucsd.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sysadmin@alexdupre.com
Subject:   ports/54628: make install ignores DB_DIR when creating initial database.
Message-ID:  <200307190737.h6J7bhoK063772@oecpc18.ucsd.edu>
Resent-Message-ID: <200307190740.h6J7eHsK072380@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307190737.h6J7bhoK063772>