[indiana-discuss] Adopt Indiana personalities (GNU and SUN)
Josh Lange
josh.h.lange at gmail.com
Wed Mar 5 09:42:56 PST 2008
Because the same can be said about bringing packages (noarch rpms)/scripts
over from a GNU/Linux based system.
I personally view the core sun userland utilities as the legacy piece of
software here ;-) .
Josh
On Wed, Mar 5, 2008 at 9:36 AM, Kyle McDonald <KMcDonald at egenera.com> wrote:
> Josh Lange wrote:
>
> I see the advantage as being able to SVR4 scripts seemlessly (have
> SUN_PERSONALITY set automatically by the package manager), as well as
> letting users opt to have all their scripts/commands to work just as they
> would on another sun box (ex. in the case of networked home directories,
> legacy, etc).
>
> It seems like the easiest way to do that would be to leave the sun stuff
> in /usr/bin (for all the reasons you wrote above, and more) and stick
> /usr/gnu/bin first in the default path of all users (probably except root.)
>
> Isn't that the best of both worlds?
>
> The /usr/has/bin thing is really orthogonal, since it's not a sun v.s gnu
> thing. It's an old Sun/SVR4 vs. new Sun/SVR4 thing.
>
> -Kyle
>
> Josh
>
>
> On Wed, Mar 5, 2008 at 7:19 AM, Alan Coopersmith <alan.coopersmith at sun.com>
> wrote:
>
> > Brandorr wrote:
> > > Regarding the Sun vs. GNU userspace issue, might we consider following
> > > Nexenta's lead here?
> > >
> > > http://www.nexenta.org/os/Different_Personalities
> > >
> > > The default behavior of NexentaOS is to search for execution binaries
> > > in order described in the PATH. Standard locations such as /usr/bin
> > > and /usr/sbin all populated with GNU binaries, which makes NexentaOS
> > > behave as GNU system. SUN binaries saved in /usr/sun/bin and
> > > /usr/sun/sbin locations and system could be forced to use SUN-like
> > > personality by utilizing SUN_PERSONALITY environment variable.
> > >
> > > SUN_PERSONALITY execve() system call logic implemented and it is
> > > finally allows Solaris-centric scripts to be executed in NexentaOS
> > > without modifications.
> > >
> > > Simple SUN_PERSONALITY=1 environment variable will switch execution
> > > paths on the fly to look on /usr/sun/{bin,sbin} first.
> >
> > Sounds like a lot of work that is much more simply handled by setting
> > $PATH - why would changing exec be better than setting $PATH to the
> > value you want?
> >
> > --
> > -Alan Coopersmith- alan.coopersmith at sun.com
> > Sun Microsystems, Inc. - X Window System Engineering
> > _______________________________________________
> > indiana-discuss mailing list
> > indiana-discuss at opensolaris.org
> > http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
> >
>
> ------------------------------
>
> _______________________________________________
> indiana-discuss mailing listindiana-discuss at opensolaris.orghttp://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/indiana-discuss/attachments/20080305/ddbaef20/attachment.html
More information about the indiana-discuss
mailing list