qt4: Avoid duplicate flags in the g++-unix.conf

The removed flags from this g++.conf file, which is installed to the
target as g++-unix.conf are added by gcc-base.conf . Do not add those
flags twice.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Eric Bénard <eric@eukrea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
sstate-sysroot-cruft.sh: Improve to use it from CI

* strip tmpdir prefix, so that we have shorter paths which aren't
  builder specific
* use '#' for regexp delimiter so that we don't need to prefix
  forward slashes in paths
* extend default whitelist to cover typical cases
* add parameter for external whitelist file
* use number of found paths as return code, so that CI can easily
  report error when new untracked files are found
* use .txt suffix for all output files, so that they can be easily
  viewed in browser
* add populate_sysroot task, because somewhere between dora and daisy
  the populate-sysroot files in sstate-control were renamed to have
  underscore instead of dash
* only few entries not covered by this default whitelist were found
  in world build (but I'll leave these for people to whitelist, because
  they are not generated in most builds)
  * [^/]*/home/builder
    home directory from meta/recipes-graphics/builder/builder_0.1.bb
  * [^/]*/usr/src/kernel/patches
  * [^/]*/usr/lib/gdk-pixbuf-2.0/.*/loaders.cache
    3 places are using this, not sure which one creates it
    meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb:
      GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
    meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb:
      GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache
    scripts/postinst-intercepts/update_pixbuf_cache:
      >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \
      sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/oeqa/selftest: Don't match log level in output

To facilitate changing the log level of the "Fetcher failure" message,
search only for the message without the "Error:" prefix.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
oeqa/runtime: add new cpp test and file

This tests out the limits header which we've noticed does have problems in
some SDK builds.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
python-dbus: use PACKAGECONFIG for doc generation

Adds 'docs' (for html doc generation) and 'api-docs' (for API doc generation)
configurations and leaves them both disabled by default. This avoids
autodetected dependency upon docutils.

Fixes [YOCTO #6530]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
oe.package_manager: fix use of PACKAGE_EXCLUDE for dpkg

It was iterating over the variable character-by-character rather than
word-by-word.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
SIGGEN_EXCLUDERECIPES_ABISAFE: add initscripts

* update-rc.d now adds initscripts dependency even to allarch recipes
  making them effectively TUNE_PKGARCH, "fix" it by excluding
  initscripts from all signatures

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
e2fsprogs: 1.42.9 -> 1.42.11

Patches were all merged upstream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
classes: Combine rootfs_<pkgtype> and populate_sdk_<pkgtype>

There is no real reason to have these separate files any longer. It does
mean in meta-toolchain type recipes some extra variables are defined but
it also means the common code can be grouped and maintained together
which I believe is more beneficial. We therefore merge the classes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
rootfs_*: Refactor common depends/lockfile task flags

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
populate_sdk_base: Move toolchain installation script to a separate file

It makes sense to move the script to a separate file, making the bbclass
clearer and allowing the end user to more easily customise or replace
it. There are no functionality changes, just the addition of some
substitution variables.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
glib-2.0: Make the gtester-report installation conditional

This isn't built/present under mingw builds so make installation
conditional upon its presence.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
glib-2.0: Allow correct printf configuration on darwin/mingw

mingw and darwin builds need to change the value of printf from no
to yes. Whilst you can do this from a bbappend, its currently a bit ugly
and assumes knowledge of the other conf arguments. Fixing this in the glib
recipe directly is cleaner in this case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
site: Add common-darwin

We need this to ensure there are some correct values when building with
meta-darwin. This matches the addition of a common-mingw site file in
the core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
fixup

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: Move dtc(fdt) configuration to PACKAGECONFIG

Converting this dependency to become a PACKAGECONFIG makes sense.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: Fixup target sdl configuration to use PACKAGECONFIG

SDL is now controlled by PACKAGECONFIG, remove the DEPENDS remnant
set PACKAGECONFIG accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: Add alsa PACKAGECONFIG and cleanup native/nativesdk DEPENDS

Converting this dependency to become a PACKAGECONFIG makes sense. Since
there is a "," in the configuration option, its not quite as straightforward
as normal.

Also clean up the native and nativesdk DEPENDS and set the PACKAGECONFIG
entries to match the old behaviour by default.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: Add PACKAGECONFIG for glx

With the configuration for sdl and glx, the virtual/libx11 in DEPENDS
no longer makes any sense at all, the dependency comes through the
various graphics backends. Therefore drop it. The glx PACKAGECONFIG
is added for completeness. We avoid a floating dependency on mesa.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: Simplify DEPENDS

These DEPENDS are now identical and the native/nativesdk variants can
be dropped in favour of letting PACKAGECONFIG sort it out.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>