Subject: pkg/17883: pkgsrc bin-install target doesn't properly work as non-root
To: None <firstname.lastname@example.org>
From: None <email@example.com>
Date: 08/08/2002 14:37:18
>Synopsis: pkgsrc bin-install doesn't work correctly as regular user
>Arrival-Date: Thu Aug 08 14:38:00 PDT 2002
>Release: NetBSD 1.5.3
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 firstname.lastname@example.org:/usr/src/sys/arch/i386/compile/JCR-1.5-20020723 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 bsd.pkg.mk 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.