Re: Utilities vs Applications

[prev] [thread] [next] [lurker] [Date index for 2005/04/29]

From: Michael G Schwern
Subject: Re: Utilities vs Applications
Date: 01:08 on 29 Apr 2005
On Thu, Apr 28, 2005 at 06:41:09PM -0500, David Champion wrote:
> > How is a user supposed to know the difference?  Why even have this artificial
> > split?
> 
> The split makes sense to me.  It's Apple's choices for each category
> that make no sense.

Maybe you could explain why it makes sense to someone whose eyes are too 
blind with fury to see it.


> > Unix does this, too, with the whole bin vs sbin thing.  traceroute and
> > ifconfig being the two I'm always losing.
> 
> That's a hate, indeed, because it used to mean something, once upon a
> time.  Sbin was for static tools, the sort of thing you don't want to
> crap out because your libc is hosed, or not yet mounted.

Isn't that /bin vs /usr/bin (and /sbin vs /usr/sbin) ?

OS X, curse it, does not staticly compile their /bin executables.

$ otool -L /bin/ls   
/bin/ls:
        /usr/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0)


Debian does an ok job in at least everything is linked against /lib
instead of /usr/lib so you can get somewhere if /usr craps out.  This is
at least on par with the FHS.

schwern@mungus:~$ ldd /bin/ls
        librt.so.1 => /lib/librt.so.1 (0x40021000)
        libacl.so.1 => /lib/libacl.so.1 (0x40033000)
        libc.so.6 => /lib/libc.so.6 (0x4003a000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x4016d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libattr.so.1 => /lib/libattr.so.1 (0x401be000)


> These days
> no vendors put any stock in separation or recoverability.  Most would
> prefer to stow everything onto one filesystem and dynamlically link
> everything.  On Solaris it's getting near impossible to static-link
> anything, because basic OS services are *able* to use DSOs for lookups
> and such, and libdl only comes shared.  HATE.
> 
> Actually I've all but given up hating in this arena.  Sanity lost that
> battle years ago.

Set the way back machine to circa 1998.  Linux/PowerPC is just getting off
the ground.  I'm sick of running MacOS 9 on my Wallstreet Powerbook so I
install Debian/PowerPC in its early days.  One of the more fun things about it
was libc would be broken about one in every three updates which in turn 
broke... well everything including the ability to put in a new libc.

As a fledging unix admin I rapidly learned how staticly compile all my
basic utilities.  fileutils, textutils, bash, etc... and set root to use
sash (Stand Alone SHell).  I learned ALOT from those days.

There's stuff above here

Generated at 00:00 on 02 May 2005 by mariachi 0.52