Subject: pkg/17883: pkgsrc bin-install target doesn't properly work as non-root
To: None <>
From: None <>
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
>Release:        NetBSD 1.5.3
System: NetBSD 1.5.3 NetBSD 1.5.3 (JCR-1.5-20020723) #0: Tue Jul 23 15:18:22 PDT 2002 i386
Architecture: i386
Machine: i386
Doing a "make bin-install" under graphics/xpaint as a regular user did:

 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 revision 1.1003.
Use "make bin-install" as a regular user.
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.