Subject: Installing packages as non root broken? (was: CVS commit: pkgsrc/mk)
To: Roland Illig <rillig@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: tech-pkg
Date: 11/20/2005 00:21:59
On Tue, Nov 15, 2005 at 04:29:10PM +0000, Roland Illig wrote:
> 
> Module Name:	pkgsrc
> Committed By:	rillig
> Date:		Tue Nov 15 16:29:10 UTC 2005
> 
> Modified Files:
> 	pkgsrc/mk: bsd.pkg.mk
> 
> Log Message:
> Allow white-space in the PATH environment variable. Fixes PR 32079. The
> shell quoting still isn't completely correct for some other variables.
> This needs to be fixed, too.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.1748 -r1.1749 pkgsrc/mk/bsd.pkg.mk

Hi,

I have the feeling that this commit (and maybe 1.1751 too) broke the
installation as a non root user.

===> Installing for fribidi-0.10.4nb1
===> Becoming root@parresum.lan.rfc1918.veego.de to install fribidi.
/usr/bin/su Password:
path=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/sbin:/usr/sbin: Command not found.
tr: not found
make: "../../mk/../../mk/bsd.prefs.mk" line 54: warning: "/usr/bin/uname -s | tr -d /" returned non-zero status
tr: not found
make: "echo 3.99.11 | tr 'A-Z' 'a-z'" returned non-zero status
make: "../../mk/../../mk/bsd.prefs.mk" line 550: warning: Couldn't read shell's output for "cd /home/source/pkgsrc/converters/fribidi/../.. && "
make: "../../mk/../../mk/bsd.prefs.mk" line 570: warning: Couldn't read shell's output for "cd /home/source/pkgsrc/converters/fribidi && "
make: "../../mk/../../mk/bsd.prefs.mk" line 604: Could not find /mk/wrapper/wrapper-defs.mk
make: "../../mk/../../mk/bsd.prefs.mk" line 607: Could not find /mk/bsd.makevars.mk
/usr/pkg: permission denied
[..]

It works when I install it as root and not as a normal user.

Bernd