Subject: pkg/17883: pkgsrc bin-install target doesn't properly work as non-root
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 08/08/2002 14:37:18
>Number:         17883
>Category:       pkg
>Synopsis:       pkgsrc bin-install doesn't work correctly as regular user
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 08 14:38:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.3
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.5.3 NetBSD 1.5.3 (JCR-1.5-20020723) #0: Tue Jul 23 15:18:22 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-1.5-20020723 i386
Architecture: i386
Machine: i386
>Description:
Doing a "make bin-install" under graphics/xpaint as a regular user did:

 Trying ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All
 pkg_add: can't open pkgdb: Permission denied
 ftp: No control connection for command.Installing from source

Notice that I didn't have access for the pkgdb, so then it quit
and continued on its fallback alternative.

This was bsd.pkg.mk revision 1.1003.
>How-To-Repeat:
Use "make bin-install" as a regular user.
>Fix:
Sorry I don't have a patch.
The fix should simply exit and say why.
(Instead of assuming that binary package may have not been available.)
Or it should prompt for su password.
>Release-Note:
>Audit-Trail:
>Unformatted: