meta/classes: Various python whitespace fixes

It was pointed out we have a number of weird indentations in the python functions.
This patch cleans up 3, 7 and other weird indentations for the core bbclass files.

It also fixes some wierd (odd) shell function indentation which my searches picked up.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
formfactor: Clean up errors on machines without framebuffers

If fbset can't find a framebuffer we end up with a mess on the console.
We might as well avoid doing this on machines without a framebuffer.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
insane.bbclass: Fix RPATH warning in the face of funny path strings

In toolchain edge cases it's possible for the RPATH of a library to be
set to something like "/usr/lib/../lib".  This should be detected as
"/usr/lib" and generate a warning.

Signed-off-by: Andy Ross <andy.ross@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
package_rpm.bbclass: fix and enhance the incremental rpm generation

The incremental rpm generation usually broke when package_rpm.bbclass
changed, change its implementation to make it more stable:

* It depended on the previous and current saved manifest files in
  the past, it would break when the manifest changed. Now query the
  previous and current installed pkgs from rootfs/var/lib and
  rootfs/install/, this would be more reliable, the manifest's change
  would not affect it any more.

* Add explanations before package_install_internal_rpm to explain what
  does the function do.

* Remove an unwanted "awk '{print $1}'".

[YOCTO #2906]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
coreutils: fix to build with acl support

Fix the issue that coreutils was built without acl support:

configure: WARNING: libacl development library was not found or not usable.
configure: WARNING: GNU coreutils will be built without ACL support.

which will cause ls and cp commands don't have the ACL related behaviors:
ls -l: no plus sign(+) after the permission string for files that have ACL
cp -p: can not preserves the ACLs.

[YOCTO #2959]

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
eglibc-2.16: Remove build dependency on libgcc_s and libgcc_eh

This patch backports two patches from glibc trunk essentially
dropping the requirements to have libgcc_s and libgcc_eh
this will simplify the toolchain bootstrap sequence.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
eglibc-2.16: Update to top of 2.16 branch

Some translations and tst-gettext fixes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
gcc-cross: Make gcc-cross-initial as the only intermediate gcc stage

Now glibc can be compiled with gcc-cross-initial therefore prepare
the stage to drop gcc-cross-intermediate

Also drop arm-nolibfloat.patch should not be needed anymore
half of changes in this patch are meant for OABI which we dont
use anymore

Signed-off-by: Khem Raj <raj.khem@gmail.com>
eglibc: Fix eglibc-initial and let eglibc depend on it

eglibc-initial does not need to install fake shared libs
anymore so drop it.

eglibc now should depend on eglibc-initial so that bootstrap
sysroot gets populated properly.

Drop references to gcc intermediate from glibc testing
scripts.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
uclibc.inc,uclibc-config.inc: Untabify python snippets

To appease bitbake

Signed-off-by: Khem Raj <raj.khem@gmail.com>
uclibc: Use gcc-cross-initial as staging compiler

Do not build fake shared libraries during uclibc-initial phase

Let uclibc depend on gcc-cross-initial instead of gcc-cross-intermediate
thereby set stage to remove gcc-cross-intermediate

Let uclibc depend on uclibc-initial so that boostrap sysroot
gets populated properly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
gcc-crosssdk-initial_4.7.bb: Add --with-native-system-header-dir to EXTRA_OECONF

gcc-crosssdk-intermediate will go away and -initial will
assume its responsibility therefore transfer the option

Signed-off-by: Khem Raj <raj.khem@gmail.com>
gcc-cross-intermediate, gcc-crosssdk-intermediate: Remove

These recipes arent used anymore so delete them

Signed-off-by: Khem Raj <raj.khem@gmail.com>