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: Lubomir Sedlacik <salo%Xtrmntr.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/39235: Unprivileged pkgsrc bootstrap fails on OpenSolaris
2008.05
Date: Tue, 29 Jul 2008 01:17:17 +0200
On Mon, Jul 28, 2008 at 11:45:03AM +0000, Joerg Sonnenberger wrote:
> 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.
Why don't you just use id -u and compare to 0? That works everywhere,
since it's mandated by POSIX. (Granted, on older Solaris releases
you'll need to use /usr/xpg4/bin/id).
regards,
--
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org> --
Home |
Main Index |
Thread Index |
Old Index