fontconfig: upgrade to 2.10.1

A couple of changes:
 * licence snippet in fccache.c moved down the file;
 * new files appeared in this version, added them to fontconfig package

(From OE-Core rev: f6ca099d9cbd2ed1c181e8e91cc16d0550701f26)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
fontconfig: update to upstream version 2.10.2

(From OE-Core rev: c494865437ed9136fb8841235f1d9341997cadb7)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
fontconfig: add sysroot option to fc-cache and fc-cat

This is needed in order to be able to generate the cache on host.

Additionally, remove the volatile config file, as /var/cache was moved
out of tmpfs.

[YOCTO #2599]

(From OE-Core rev: b675e9917b0a1e774c95ee7a946f515c5a996b59)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
add fontcache.bbclass

All font packages should inherit this class in order to generate the
proper postinst/postrm scriptlets.

The scriptlets will actually create a host intercept hook that will be
executed at the end, at do_rootfs time, after all packages have been
installed. This is good when there are many font packages.

[YOCTO #2923]

(From OE-Core rev: 0c12f7fb3c2c42e5b633682bb1277b943ac19ea6)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
liberation-fonts: use the new fontcache.bbclass

This will add the proper postinst/postrm scriptlets.

[YOCTO #2599]

(From OE-Core rev: 94b53e5f996a09b9f1f73d0f90b65261a76c0cbe)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
image.bbclass: add a proper error message if hook script fails

(From OE-Core rev: 5e737d3c6e6546c1368e804f4c45ab25d8791ea3)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: add libexecdir to configure call

This address the following when libexecdir is not set to /usr/libexec

WARNING: QA Issue: qemu: Files/directories were installed but not shipped
  /usr/libexec
  /usr/libexec/qemu-bridge-helper
  /usr/libexec/.debug
  /usr/libexec/.debug/qemu-bridge-helper

(From OE-Core rev: e2fa821033785a44f80002eafac73b7e110023ce)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: Explicitly disable bluez, its not in DEPENDS

(From OE-Core rev: d5745cdc01f7d21999c5983bae5983072e3e8f30)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu: don't ignore libexecdir in configure

This allow the relocation of libexecdir to be done correctly
for the qemu-brigde-helper.

(From OE-Core rev: 945c8f5c687ec61c312209e075edc402f6272186)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
qemu_git: Drop unnecessary FILESDIR setting

(From OE-Core rev: 8afa069778aea414856a9f538171d9ab1a2e1dd8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
autoconf: update runtime dependencies

Update autoconf runtime dependencies on perl and perl modules. And
remove RDEPENDS for nativesdk because the nativesdk-autoconf has same
dependencies with autoconf.

Then fixes autoreconf runs failed both on target and toolchain.

Bump up PR.

[Yocto 3100]

(From OE-Core rev: 19a4d6498b262a53456f43fabb66d821014d2656)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bison: Fix gplv2 version to work with recent gettext

(From OE-Core rev: 4b132d440ed97053dbef5a4deeb39e37e1167def)

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

Remove the RDEPENDS for nativesdk because the nativesdk-automake also
needs perl modules.

Add dependencies perl-module-thread-queue and perl-module-threads.

Remove redundant dependencies that they are already required by autoconf
and autoconf is required by automake.

In this removed list, "-->" present "required by":

  perl-module-cwd --> perl-module-file-path --> autoconf
  perl-module-dynaloader --> perl-module-xsloader --> perl-module-fcntl
    			--> perl-module-file-stat --> autoconf
  perl-module-exporter-heavy --> perl-module-exporter --> autoconf
  perl-module-constant --> autoconf
  perl-module-errno --> autoconf
  perl-module-file-basename --> autoconf
  perl-module-file-compare --> autoconf
  perl-module-file-copy --> autoconf
  perl-module-file-glob --> autoconf
  perl-module-file-spec-unix --> perl-module-file-spec
    			    --> perl-module-io-file --> autoconf
  perl-module-file-stat --> autoconf
  perl-module-getopt-long --> autoconf
  perl-module-io --> perl-module-IO-handle --> perl-module-IO-seekable
    		--> perl-module-io-file --> autoconf
  perl-module-io-file --> autoconf
  perl-module-posix --> autoconf

Bump up PR.

(From OE-Core rev: cd15622712c517dc72242c1066ca6eb4bc5094a8)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
opkg-utils: Add needed python modules as RDEPENDS

(From OE-Core rev: ec4553832251615cee65e01e3fd261f5c7863b2e)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
opkg-utils: bump SRCREV to latest

(From OE-Core rev: 29da69b1d6f986ff186a7e97cb2e1d41cc7c2349)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
perl: fix dependecies

This patch fixes 2 problems.

The first one is that when run "perl -V" on target, it fails with lack
of some .pm files. So add these perl module files to package perl itself
to fix this failure.

The second problem is that package nativesdk-perl-modules doesn't depends
on the single perl modules.

In the .bb file, dependencies of perl-modules are set by:

RRECOMMENDS_perl-modules = "${@d.getVar('PACKAGES', True)...}"

The PACKAGES would be reset by do_split_packages since:

PACKAGES_DYNAMIC = "perl-module-*"
PACKAGES_DYNAMIC_virtclass-nativesdk = "nativesdk-perl-module-*"

Then:
1) The target perl-modules RRECOMMENDS on perl-module-*, this is what
   we expect.

2) But the nativesdk-perl-modules doesn't RRECOMMENDS on
   nativesdk-perl-module-*, this is not what we expect.

The value of PACKAGES after do_split_packages has been set correctly (it
contains the nativesdk-perl-module-* packages)

But the:

RRECOMMENDS_perl-modules = "${@d.getVar('PACKAGES', True)...}"

doesn't work correctly for nativesdk, the

d.getVar('RRECOMMENDS_perl-modules', True)

doesn't get the new value of the PACKAGES, it gets the value of PACKAGES
before the do_split_packages.

This patch will fix the problem.

(From OE-Core rev: d50be1876f7a41822ef7e73207fdf8cccd39e400)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
PACKAGES_DYNAMIC: use regexp not glob

* bitbake uses PACKAGES_DYNAMIC as regexp
  ^ could make matching faster (and it will be more clear that we're expecting regexp not glob)
  * made all those last '-' optional, use .* (or nothing)

(From OE-Core rev: 2f3ebdfa5f42dae51063b043cc4b0fbe20b40064)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
PACKAGES_DYNAMIC: use += instead of = in most cases

* to keep ${PN}-locale from
  bitbake.conf:PACKAGES_DYNAMIC = "^${PN}-locale-.*"

(From OE-Core rev: 73252b16b501c0986b0ca0895e4534895a9ba3db)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
perl: Fix perl module dependency issues

With the move of the strict/vars/config/warnings modules to the main perl
recipe, we need to RPROVIDE those modules to ensure that package dependencies
on those modules continue to work correctly.

(From OE-Core rev: fe88ae8605f22d9075e4200159aa66605ec36587)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
perl: update dependencies among modules

Run autoreconf fails because it uses several perl modules and they
requires other perl modules. So update these dependencies for:
  perl-module-exporter
  perl-module-file-glob
  perl-module-file-path
  perl-module-file-spec
  perl-module-file-stat
  perl-module-io-file
  perl-module-io-handle
  perl-module-io-seekable
  perl-module-posix

And RDEPENDS rules in file perl-rdepends_5.14.2.inc don't work for
nativesdk perl module packages. Replace all "perl" with "${PN}" in the
file to fix that.

In nativesdk.bbclass it calls
oe.classextend.NativesdkClassExtender().map_packagevars() to map package
vars include var RDEPENDS. In map_packagevars():

  for pkg in (self.d.getVar("PACKAGES", True).split() + [""]):

the value of var "PACKAGES" may not be calculated correctly, so for
all the nativesdk packages created by

  PACKAGES_DYNAMIC_virtclass-nativesdk += "^nativesdk-perl-module-.*"

dependencies are wrong.

This is similar with 51cbb5ae76a22d465e2f6c5ef923ec2682624e3b.

Bump up PR.

(From OE-Core rev: c1f1368a680ae596e4d974a2cbbd253abc5118f8)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>