Subject: Re: installing databases/gdb on Linux FC1
To: Russell McManus <russell_mcmanus@yahoo.com>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 11/16/2004 19:30:23
On Tue, 16 Nov 2004 10:35:52 -0500
Russell McManus <russell_mcmanus@yahoo.com> wrote:

> 
> builds OK, but bails out like so:
> 
> ===> Installing for gdbm-1.8.3
> ===> Becoming root@russepc to install gdbm.
> sudo Password:
> sudo: cd /var/amm/pkgsrc/databases/gdbm; /usr/bin/env PATH=/amm/pkgsrc/databases/gdbm/work/.buildlink/bin:/amm/pkgsrc/databases/gdbm/work/.tools/bin:/amm/pkgsrc/databases/gdbm/work/.gcc/bin:/usr/pkg/bin:/amm/pkg/bin:/ms/dist/mm/VERS/system/bin:/u/ammprod/current/utils/bin:/ms/dist/fsf/PROJ/xemacs/21.4.10/exec/bin:/u/russe/bin:/ms/dist/aurora/bin:/usr/local/bin:/usr/bin:/bin:/usr/kerberos/bin:/ms/dist/perl5/bin:/ms/dist/fsf/bin:/ms/dist/afs/bin:/usr/X11R6/bin:/usr/bin/X11:/ms/dist/aurora/sbin:/usr/sbin:/sbin:/usr/etc:/ms/dist/afs/sbin:.:/sbin:/usr/sbin /usr/pkg/bin/bmake  PKG_DEBUG_LEVEL=0   OPSYS=Linux OS_VERSION=2.4.22-1.2188.nptlsmp LOWER_OPSYS=linux real-su-install : command not found
> *** Error code 1
> 

Do you have /usr/bin/env?  It's a symlink to /bin/env in my FC3.  (and
pkgsrc used to work in FC2, or maybe even FC1, I don't remember correctly).

If you don't have it, try this patch:

Index: Linux.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/platform/Linux.mk,v
retrieving revision 1.2
diff -u -r1.2 Linux.mk
--- Linux.mk	13 Oct 2004 15:31:31 -0000	1.2
+++ Linux.mk	16 Nov 2004 18:29:18 -0000
@@ -104,7 +104,11 @@
 .elif exists(/usr/bin/sed)
 SED?=		/usr/bin/sed
 .endif
+.if exists(/bin/env)
+SETENV?=	/bin/env
+.else
 SETENV?=	/usr/bin/env
+.endif
 SH?=		/bin/sh
 SHLOCK=		${LOCALBASE}/bin/shlock
 .if exists(/bin/sort)

Cheers

-- 
Julio M. Merino Vidal <jmmv@menta.net>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/