[haiku-development] Re: usr/bin

Rob Judd <haiqu@xxxxxxxxxx> wrote:

> Axel Dörfler wrote:
> > Rob Judd wrote:
> >> Until we go multi-user, could we have a symlink from /boot/system/bin to
> >> /usr/bin please? It would make porting apps that call /usr/bin/env a
> >> whole lot easier.
> > 
> > Even with multi user, there will never be a /usr directory in Haiku.
> > Porting is not just recompiling, and it deserves a bit more attention
> > (like to put the settings into the right place, or use the native Media
> > Kit instead of porting G-Streamer as well).
> 
> Not sure where you're planning to put user-accesible binaries then, and 
> /usr/bin just seemed the obvious location.

We do have /boot/system/bin and /boot/common/bin. Using the common directory 
for anything that doesn't belong to the system seems to be obvious to me.

> I also am aware of the difference between merely compiling something and 
> porting it, D'oh! But when a test suite uses Python and calls hundreds 
> of scripts with #!/usr/bin/env python then the sensible thing to do is 
> NOT edit the whole mess, but to install a simple symlink. I don't care 
> what the _proper_ way to do that might be, the return isn't worth the 
> effort when tests are run once and then immediately deleted once their 
> results are known.

Your test method is flawed. The users won't have a symlink, so their
result when running those scripts will be different from your result.

However, editing the test suite certainly isn't the sensible either.

I'm not sure if it's worth the effort to explain this, but certainly
a sensible way to provide compatibilty with those scripts would
be to implement a mapping inside the runtimeloader of the
standard unix #! directories to haiku directories.

Marcus

Arcor.de Gaming Area - kostenfrei daddeln bis der Arzt kommt!
Jetzt checken und aus über 80 Spielen wählen!
http://www.arcor.de/footer-gaming/

Other related posts: