From owner-freebsd-ports Tue Jan 30 22: 0:19 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 94F0237B69B for ; Tue, 30 Jan 2001 22:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0V601K10670; Tue, 30 Jan 2001 22:00:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8024D37B699 for ; Tue, 30 Jan 2001 21:58:49 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0V5wng10494; Tue, 30 Jan 2001 21:58:49 -0800 (PST) (envelope-from nobody) Message-Id: <200101310558.f0V5wng10494@freefall.freebsd.org> Date: Tue, 30 Jan 2001 21:58:49 -0800 (PST) From: pavel@networkphysics.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/24749: mysql323-server pkg-install script doesn't propagate DB_DIR Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24749 >Category: ports >Synopsis: mysql323-server pkg-install script doesn't propagate DB_DIR >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 30 22:00:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Tom Pavel >Release: 4.2-RELEASE >Organization: Network Physics >Environment: superbird[84]% uname -a FreeBSD superbird.networkphysics.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Fri Dec 8 11:04:48 PST 2000 root@superbird.networkphysics.com:/usr/src/sys/compile/NPCTL-4.1-SMP i386 >Description: The DB_DIR env/make variable allows one to build/installmysql into a different default database dir. I expected that if I built a package using a particular setting of DB_DIR, then the binary package would install into that dir on another machine. This almost works, but presently requires that DB_DIR be setenv-ed on the other machine before pkg_add. I think that the pkg-install script should be editted as part of the package build process to default to the specified directory. >How-To-Repeat: /usr/ports/databases/mysql323-server make DB_DIR=/u1/mysql package Try to install this on another machine (mkdir /u1 first). The mysqld will hang up because it lacks permission to /u1/mysql >Fix: I think you need to pass pkg-install through sed, just like is done for the mysql-server.sh script. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message