From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 19 00:40:19 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAA437B401 for ; Sat, 19 Jul 2003 00:40:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15A0643FCB for ; Sat, 19 Jul 2003 00:40:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6J7eHUp072381 for ; Sat, 19 Jul 2003 00:40:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6J7eHsK072380; Sat, 19 Jul 2003 00:40:17 -0700 (PDT) Resent-Date: Sat, 19 Jul 2003 00:40:17 -0700 (PDT) Resent-Message-Id: <200307190740.h6J7eHsK072380@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Max Okumoto Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 831A737B401 for ; Sat, 19 Jul 2003 00:37:57 -0700 (PDT) Received: from oecpc18.ucsd.edu (oecpc18.ucsd.edu [132.239.18.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DE7A43F3F for ; Sat, 19 Jul 2003 00:37:57 -0700 (PDT) (envelope-from okumoto@oecpc18.ucsd.edu) Received: from oecpc18.ucsd.edu (localhost [127.0.0.1]) by oecpc18.ucsd.edu (8.12.8p1/8.12.6) with ESMTP id h6J7brUA063773; Sat, 19 Jul 2003 00:37:53 -0700 (PDT) (envelope-from okumoto@oecpc18.ucsd.edu) Received: (from okumoto@localhost) by oecpc18.ucsd.edu (8.12.8p1/8.12.6/Submit) id h6J7bhoK063772; Sat, 19 Jul 2003 00:37:43 -0700 (PDT) (envelope-from okumoto) Message-Id: <200307190737.h6J7bhoK063772@oecpc18.ucsd.edu> Date: Sat, 19 Jul 2003 00:37:43 -0700 (PDT) From: Max Okumoto To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: sysadmin@alexdupre.com Subject: ports/54628: make install ignores DB_DIR when creating initial database. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Max Okumoto List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2003 07:40:19 -0000 >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: