NetBSD Problem Report #5165

Received: (qmail 6019 invoked from network); 16 Mar 1998 11:51:36 -0000
Message-Id: <199803161111.MAA21185@i60s12.ira.uka.de>
Date: Mon, 16 Mar 1998 12:11:56 +0100 (CET)
From: Klaus Klein <kleink@ira.uka.de>
Reply-To: kleink@ira.uka.de
To: gnats-bugs@gnats.netbsd.org
Subject: database/postgresql post-install: possible variable expansion botch
X-Send-Pr-Version: 3.95

>Number:         5165
>Category:       pkg
>Synopsis:       databases/postgresql post-install: possible variable expansion botch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 16 04:05:00 +0000 1998
>Closed-Date:    Wed Mar 18 14:36:30 +0000 1998
>Last-Modified:  Wed Mar 18 14:38:45 +0000 1998
>Originator:     Klaus Klein
>Release:        19980314
>Organization:
Klaus Klein                                               kleink@ira.uka.de
IPR, University of Karlsruhe                        Phone: +49 721 608 7112
Kaiserstr. 12, D-76128 Karlsruhe                      Fax: +49 721 608 7141
>Environment:
System: NetBSD persuader 1.3E NetBSD 1.3E (PERSUADER+UVM) #3: Sat Mar 14 16:44:36 CET 1998 kleink@layla.inka.de:/vol/tmp/PERSUADER+UVM i386


>Description:
The post-install target sets up a "${HOME}/.profile" script for the pgsql user.
When emitting its ${PATH} and ${MANPATH} assignment lines (which append an
additional element to the respective pre-set path), these variables are
expanded as set in the current execution environment.  This probably isn't what
the target's implementor had in mind.

>How-To-Repeat:
Install the databases/postgresql package.  Examine "${PREFIX}/pgsql/.profile"
afterwards.

>Fix:
(If this PR is applicable, the fix should be obvious.)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: hubertf 
State-Changed-When: Mon Mar 16 04:53:05 PST 1998 
State-Changed-Why:  
I'm writing "$PATH" / "$MANPATH" into the .profile now. 
This will lead to the PATH set in /etc/profile or the environment 
set in login to be expanded. With MANPATH, this is never set by 
default, and will thus end up in ":/foo". Please let me know if 
this is acceptable. 


- Hubert 
State-Changed-From-To: feedback->closed 
State-Changed-By: hubertf 
State-Changed-When: Wed Mar 18 06:36:30 PST 1998 
State-Changed-Why:  
confirmed as fixed. - HF 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.