Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2001 21:58:49 -0800 (PST)
From:      pavel@networkphysics.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/24749: mysql323-server pkg-install script doesn't propagate DB_DIR
Message-ID:  <200101310558.f0V5wng10494@freefall.freebsd.org>

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

>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




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