[maemo-developers] busybox symlinks discussion

From: tz thomas at mich.com
Date: Tue Dec 16 01:22:14 EET 2008
Perhaps a different path should be followed.  Literally.

I'm not sure if /usr/local would be a good choice, so I will use
/usr/tools in the example.

Instead of the prefix being / or /usr, it would be /usr/tools in the
target build.  The SDK might need some adjustment.

Add /usr/tools/lib into the /etc/ld.so.conf path.
Add /usr/tools/bin into the system default path so by the time X comes
up it precedes /usr/bin and /bin.
(repeat with /sbin, etc.).

The install for a replacement (e.g. sort) would simply go into
/usr/tools/bin and perhaps do a rehash if such a thing can be done.

The busybox version of a tool symlink would be there, but shouldn't be
the one used.

Removing or changing /usr/tool/ should then work independently.

>From my limited experience, tools don't try to force /usr/bin and /bin
when running things, though they sometimes check versions or options
(or don't - but either way the busybox versions fail).

More information about the maemo-developers mailing list