[csw-maintainers] User requests symlinking from /usr/bin to /opt/csw/bin

Nicolai Schwindt schwindt at dfki.uni-kl.de
Thu Nov 19 08:23:42 CET 2009


[...]
> >> There's a user request to create symlinks from /usr/bin to
> >> /opt/csw/bin, for instance, /usr/bin/lpr --> /opt/csw/bin/lpr.
> >
> > I think it's not good.
> >
> > It will fail in a zone with global /usr.
> 
> It is a purely optional package that depends on cups and its whole  
> purpose
> is to replace the SysV-lp system. Nothing more. If you don't want the
> system replaced you don't install this package. We may choose a slightly
> modifed prefix like
>    CSWScups (CSW Solaris cups)
> or something to mark that it doesn't install in /opt/csw but replaced
> Solaris core functionality.

Which I can do by adjusting the order of my PATH elements.
Nothing belongs in /usr besides what SUN puts there.
The zones are are an example where this fails, and also the fact that I've 
seen several customer
mount /usr read only.

Besides that, it is law - at least to me - that's why there is /opt.
This is not linux ! 

Also I do not see cupsclient as purely optional. CSWcupslibs gets pulled in on 
behave of several
packages. To be able to verify you setup one will need CSWcupsclient. The 
actual printing can
be done with the onboard toolchain.

Apart from that - what happens to /usr/bin/lpr, is it deleted ? Is SUNWpcu 
deinstalled ?

Before making such modification one should think about making his on 
distribution rather than
build packages for an existing one.


Nicolai



More information about the maintainers mailing list