multilib: Fix an OVERRIDES expansion order issue

There were problems where a SRC_URI with:

SRC_URI_append_powerpc = " xxx"
SRC_URI_append_powerpc64 = " xxx2"

would end up with *both* xxx and xxx2 being added when using a multilib
which is clearly incorrect and undesirable.

The issue is that OVERRIDES has virtclass-multilib-xxxx added to it,
this eventually changed DEFAULTTUNE which then changes
TRANSLATED_TARGET_ARCH which is in OVERRIDES meaning we then need to
re-evaluate the overides and the TRANSLATED_TARGET_ARCH gets applied
twice since once you apply an override, it doesn't get undone.

Expanding DEFAULTTUNE to the correct value in advance avoids the issue
and means only the correct overrides get applied.

[YOCTO #3874]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Python: Add missing dependency "textutils" to "io" package

Modify the include file and script to generate a missing RDEPENDS.

Install python on target with python-io. Import ssl:

Python 2.7.3 (default, Feb  9 2013, 16:04:35)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/ssl.py", line 58, in <module>
ImportError: No module named textwrap

Installing python-textutils solves the issue.

Signed-off-by: MiLo <milo-software@users.sourceforge.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
util-linux: Remove -systemd package

unit files are added to util-linux itself when selected

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kconfig-frontends: Depend on pkgconfig-native

We were seeing errors like:

| autoreconf: running: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf --force
| configure.ac:27: error: possibly undefined macro: AS_IF
|       If this token and others are legitimate, please use m4_pattern_allow.
|       See the Autoconf documentation.
| configure.ac:100: error: possibly undefined macro: AC_MSG_ERROR
| autoreconf: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf failed with exit status: 1
| ERROR: autoreconf execution failed.

which turns out to mean the pkgconfig macros were unavailable (thanks for clear
error messages autoconf).

This patch adds in the missing dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
mulitilib_header: Avoid sstate checksum issues for -native recipes

The use of arch specific variables like MIPSPKGSFX_ABI was creeping
into the -native sstate checksums of package like ncurses-native.

This is pointless and undesireable. We could add specific variable
exclusions but we might as well just brute force the code to be disabled
in the -native case since we don't use multilibs in the native case.

[YOCTO #3827]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
sstate.bbclass: allow to disable sstate package creation

* building core-image-minimal-mtdutils with and without sstate packages enabled:
          with   without
  real     98m       95m
  user    212m      208m
  sys      26m       25m

* but this was tested on fast machine with TMPDIR on fast raid0 array
  so the impact is not so bad on simple image, but stuff like qt4 takes
  ages on our slow buildhost

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qemu.inc: remove EXTRA_IMAGEDEPENDS, images are usefull even without qemu installed on host

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
docbook-sgml-dtd: add 4.3 version

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
package-test: add test recipes

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between PN-dbg

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
initrdscripts: exclude conflicting packages from world-image

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
sstatesig: introduce SignatureGeneratorOEBasicHashLite

* Rebuilds packages when:
  a) If you edit patches of a given recipe it will rebuild.
  b) If you change a task like do_configure, things after it will rerun in
     a given recipe.
  c) If a dependent task in another recipe changes, it won't rerun.
  d) If you change some global configuration variable or shared .bbclass
     it will rebuild.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
oe-core: add world-image

* this depends on newer bitbake
* similar to world target, but collects all PACKAGES
* recipes marked with EXCLUDE_FROM_WORLD are excluded from world as well
  as world-image
* recipes marked with EXCLUDE_FROM_WORLD_IMAGE are excluded completely
  from world-image, sometimes you can build 2 recipes in same sysroot,
  but cannot install them in the same image
* PACKAGES listed in EXCLUDE_PACKAGES_FROM_WORLD_IMAGE are also
  excluded. You can remove e.g. ${PN}-dbg, but keep all other PACKAGES.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
rm_work: remove package and packages-split dirs

* as described in
  http://git.openembedded.org/openembedded-core/commit/?id=6107ee294afde395e39d084c33e8e94013c625a9

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
libpfm4: exclude from world

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>