pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/39235: Unprivileged pkgsrc bootstrap fails on OpenSolaris 2008.05
The following reply was made to PR pkg/39235; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/39235: Unprivileged pkgsrc bootstrap fails on OpenSolaris
2008.05
Date: Mon, 28 Jul 2008 13:41:15 +0200
--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Jul 28, 2008 at 05:30:00AM +0000, David H. Gutteridge wrote:
> >Fix:
> OpenSolaris seems to have effectively done away with the /usr/ucb/
> binaries, and replaced them with /usr/gnu/bin/. In the bootstrap
> script, there's a hard-coded assumption that /usr/ucb/whoami exists,
> which it does not on OpenSolaris 2008.05.
Does Solaris set $USER by default? If yes, I would go with the attached
version.
Joerg
--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bootstrap.diff"
Index: bootstrap
===================================================================
RCS file: /data/repo/netbsd/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.132
diff -u -p -r1.132 bootstrap
--- bootstrap 19 Jun 2008 18:36:51 -0000 1.132
+++ bootstrap 28 Jul 2008 11:38:24 -0000
@@ -575,7 +575,14 @@ SunOS)
need_sed=yes
need_ksh=yes
set_opsys=no
- whoamiprog=/usr/ucb/whoami
+ if [ -x /usr/ucb/whoami ]; then
+ whoamiprog=/usr/ucb/whoami
+ elif [ -x /usr/gnu/bin/whoami ]; then
+ whoamiprog=/usr/gnu/bin/whoami
+ else
+ echo "WARNING: Could not find whoami(1), trying $USER."
+ whoamiprog="echo $USER"
+ fi
machine_arch=`uname -p | sed -e 's/i86pc/i386/'`
check_compiler=yes
;;
--cNdxnHkX5QqsyA0e--
Home |
Main Index |
Thread Index |
Old Index