busybox: Obey base_bindir, sysconfdir, etc. don't hardcode at /, /bin.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
busybox: Make tool symlinking code obey base_bindir.

Link to ${base_bindir}/busybox and avoid relative symlink optimizations
based on fixed layout assumptions.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
opkg: Obey sysconfdir.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
opkg: Obey base_bindir in postinst script.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Obey base_prefix & base_libdir, don't hardcode at / & /lib.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Use base_prefix for ldconfig packaging.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Package uclibc before uclibc-dev to get proper content.

uclibc-dev's patterns are not specific enough and work on assumption
base_libdir != libdir. If they are equal, actual .so's are pulled into
-dev package, so give them a chance to go into main package first.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Rename uclibc-thread-db package to *-dev to fix QA issues.

uclibc-thread-db contains debugging support libs, both static and shared
variants with sumlinks, which generates QA errors "non -dev/-dbg/-nativesdk
package contains symlink .so". The easiest solution is to cast the package
-dev, which makes full sense.
-FILES_uclibc-thread-db = "${base_libdir}/libthread_db*"
+FILES_uclibc-thread-db-dev = "${base_libdir}/libthread_db*"

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
gcc: Extend patch to obey base_libdir for uclibc host.

For gcc 4.7, need also patch top-level config/linux.h, other arch-specific
patches are not enough.
libc-package.bbclass: Obey base_bindir for shell shebang.
package.bbclass: Obey base_bindir/base_sbindir (incl. shell shebang).
update-alternatives.bbclass: Obey base_bindir for shell shebang.
useradd.bbclass: Obey base_bindir for shell shebang.
shadow: Obey sysconfdir.
update-rc.d: Rewrite installed script to obey sysconfdir.
update-rc.d.bbclass: Obey base_bindir for shell shebang.
uclibc: Add patches to obey prefix for /etc files and even /dev/log.
ccache.bbclass: Allow user to override CCACHE_DIR.

For example, some may want to use single cache (instead of per-package),
to better control disk usage.
TARGET_LDFLAGS: Building for arbitrary prefix requires -rpath-link to libdir.

It turns out that when for non standard prefix, libdir, etc. locations,
toolchain still can't find shared libs in some cases (like, shlibs this
shlib was linked against). So, switch back to commented out TARGET_LDFLAGS
definition which passes explicit -rpath-link to linker.