]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
7 years agoimage: Expand PV to avoid AUTOREV parsing failures
Richard Purdie [Mon, 8 Jan 2018 17:41:27 +0000 (17:41 +0000)] 
image: Expand PV to avoid AUTOREV parsing failures

Currently, setting PV to include SRCPV for build-appliance results in:

bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was
${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher
failure: Fetch command export ftp_proxy="http://proxy.yocto.io:5187/"; export
FTP_PROXY="http://proxy.yocto.io:5187/"; export PATH="${TMPDIR}/work/
qemux86_64-poky-linux/build-appliance-image/fetcheravoidrecurse-r0/
recipe-sysroot-native/usr/bin/python3-native:${TMPDIR}/work/
qemux86_64-poky-linux/build-appliance-image/fetcheravoidrecurse-r0/
recipe-sysroot-native/usr/bin/python3-native:${TMPDIR}/work/
qemux86_64-poky-linux/build-appliance-image/fetcheravoidrecurse-r0/
recipe-sysroot-native/usr/bin/python3-native:/home/pokybuild/
yocto-autobuilder/yocto-worker/buildtools/build/scripts:${TMPDIR}/
work/qemux86_64-poky-linux/build-appliance-image/fetcheravoidrecurse-r0/
recipe-sysroot-native/usr/bin/x86_64-poky-linux:${TMPDIR}/work/
qemux86_64-poky-linux/build-appliance-image/fetcheravoidrecurse-r0/
recipe-sysroot/usr/bin/crossscripts:${TMPDIR}/work/qemux86_64-poky-linux/
build-appliance-image/fetcheravoidrecurse-r0/recipe-sysroot-native/usr/sbin:
${TMPDIR}/work/qemux86_64-poky-linux/build-appliance-image/
fetcheravoidrecurse-r0/recipe-sysroot-native/usr/bin:${TMPDIR}/work/
qemux86_64-poky-linux/build-appliance-image/fetcheravoidrecurse-r0/
recipe-sysroot-native/sbin:${TMPDIR}/work/qemux86_64-poky-linux/
build-appliance-image/fetcheravoidrecurse-r0/recipe-sysroot-native/bin:/home/
pokybuild/yocto-autobuilder/yocto-worker/buildtools/build/bitbake/bin:${TMPDIR}
/hosttools"; export HOME="/home/pokybuild"; git -c core.fsyncobjectfiles=0
ls-remote git://git.yoctoproject.org/poky  failed with exit code 127, output:
/bin/sh: 1: git: not found

This is because PV is being expanded when TMPDIR is unset.

Expand PV in advance to avoid this problem.

(From OE-Core rev: 9ca2fad2e569597f460e6bcbbd96077c8b8cfce9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomanifest.py: sort package list
Michael Blättler [Mon, 8 Jan 2018 07:42:38 +0000 (08:42 +0100)] 
manifest.py: sort package list

The entries of the created manifest file are always in a
different order. To ensure a deterministic build output
the entries are ordered alphabetically.

(From OE-Core rev: f3b753943d0c886a2a158247d2ea02867f3c0dae)

Signed-off-by: Michael Blättler <michael.blaettler@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomultilib.bbclass: remove invalid PACKAGE_INSTALL
Robert Yang [Mon, 8 Jan 2018 09:33:05 +0000 (17:33 +0800)] 
multilib.bbclass: remove invalid PACKAGE_INSTALL

The PACKAGE_INSTALL is only used by image recipe, the previous code had
handled it in "if bb.data.inherits_class('image', d)", handle it again
doesn't make any sense (there is no PACKAGE_INSTALL for non-image
recipe), so remove it.

(From OE-Core rev: 6b25c76da51180da7c97308d5f8f5558c68cdca3)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosstate.bbclass: sstate_hardcode_path(): fix for multilib
Robert Yang [Mon, 8 Jan 2018 09:33:00 +0000 (17:33 +0800)] 
sstate.bbclass: sstate_hardcode_path(): fix for multilib

It only substituted staging_target for target recipe which didn't work
for multilib, for example, postinst-useradd-lib32-polkit:

* No multilib:
  PATH=/path/to/tmp-glibc/work/core2-64-wrs-linux/polkit/0.113-r0/recipe-sysroot-native/bin
  staging_target=/path/to/tmp-glibc/work/core2-64-wrs-linux/polkit/0.113-r0/recipe-sysroot
  The PATH would be substituted to:
  FIXMESTAGINGDIRTARGET-native/bin
  Not the funny "-native/bin", this works well.

* When multilib:
  PATH=/path/to/tmp-glibc/work/core2-32-wrsmllib32-linux/lib32-polkit/0.113-r0/recipe-sysroot-native/bin
  staging_target=/path/to/tmp-glibc/work/core2-32-wrsmllib32-linux/lib32-polkit/0.113-r0/lib32-recipe-sysroot
  Now staging_target endswith "/lib32-recipe-sysroot", so it can't
  replace '/recipe-sysroot-native' in PATH , so PATH can't be fixed, and
  there would be build errors when building multilib + rm_work, for
  example:
  chown: invalid user: ‘polkitd:root’

Substitute staging_host for target recipe can fix the problem, now all
of native, cross and target need substitute staging_host, so we can
simply the code a little.

(From OE-Core rev: 087510795331fa21ff52f103269087c06b1660fa)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agonativesdk/sdk: Update sdk dummy providers
Richard Purdie [Tue, 9 Jan 2018 11:20:31 +0000 (11:20 +0000)] 
nativesdk/sdk: Update sdk dummy providers

When we migrated rpm v5 -> v4, we lost the ability to drop "per file"
dependencies from the rpm backend for things like "/bin/bash" and
"/usr/bin/env" which meant the sdks were becomming 'bloated'.

This restores the functionality using a dummy package, similarly to
the way the buildtools perl issue was addressed. It also removes
the non-functional old code so as not to confuse people in future.

I ran into this problem trying to filter dependencies to only rpms
a build directly depends upon and it turns out we have some determinism issues
in this area so this is something key to fix.

(From OE-Core rev: 9d490dc01dcedb216129b22cbe17a6c99efc4f5c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_deb: Handle / in dependency name
Richard Purdie [Tue, 9 Jan 2018 11:22:54 +0000 (11:22 +0000)] 
package_deb: Handle / in dependency name

We can end up with / in dependency names from file dependencies but the
deb format doesn't allow this. Filter the names to allow such dependencies
to work. Names have to start with an alphanumeric digit so also handle this.

This allows for future handling of "per file" dependencies similarly to
the rpm backend, bring parity to the functionality of the backends.

(From OE-Core rev: fc08972688d784f561c8be88d3100d6baaf22070)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibcroco: enable nativesdk builds
Ross Burton [Mon, 8 Jan 2018 15:52:41 +0000 (15:52 +0000)] 
libcroco: enable nativesdk builds

(From OE-Core rev: cc1d2b00403be93bbf1f7c5e55f9b8afdd2a73ce)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoavahi: remove explicit avahi-dev RDEPENDS
Ross Burton [Mon, 8 Jan 2018 15:53:19 +0000 (15:53 +0000)] 
avahi: remove explicit avahi-dev RDEPENDS

These were added to the avahi-dev package back in 2011 before avahi-ui existed
at all.  The problem of GTK+ being pulled in via avahi-dev was finally solved
with the avahi-ui split, so these explicit (and by being manually maintained,
incomplete) dependencies can be removed.

This also results in gettext-dev being removed from the dependency tree (the
gettext library API is provided by glibc/musl), which means that for a standard
image we don't need to build target gettext at all anymore.

(From OE-Core rev: 00ae3e03185f1044f3610dc7ba7da7bd3beb868a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agom4: merge two .inc files
Ross Burton [Mon, 8 Jan 2018 12:48:48 +0000 (12:48 +0000)] 
m4: merge two .inc files

Now that oe-core only has one copy of m4, there's no need to maintain two inc
files.

(From OE-Core rev: a67391afd7fe8b7dc40e49c66cfd6250a077361c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agonative/cross: remove redundant DEPENDS_GETTEXT assignment
Ross Burton [Mon, 8 Jan 2018 11:12:41 +0000 (11:12 +0000)] 
native/cross: remove redundant DEPENDS_GETTEXT assignment

DEPENDS_GETTEXT defaults to gettext-native, so there's no need to set it again
in these classes.

(From OE-Core rev: 5e4b1915e7a5a94d410c5292b5ed2f447c82b18a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopango: don't wipe EXTRA_AUTORECONF
Ross Burton [Mon, 8 Jan 2018 11:04:46 +0000 (11:04 +0000)] 
pango: don't wipe EXTRA_AUTORECONF

This was added in 2007 to solve unspecified build errors, but the autotools
support has improved a lot since then and nothing breaks with it removed.

(From OE-Core rev: 8b5243a7771f728fd34a7466ab24e9ff98d20d84)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobison: remove pointless gettext-minimal-native DEPENDS
Ross Burton [Mon, 8 Jan 2018 11:08:44 +0000 (11:08 +0000)] 
bison: remove pointless gettext-minimal-native DEPENDS

In native builds USE_NLS is set to 'no' so the gettext class will handle adding
gettext-minimal-native to DEPENDS.

(From OE-Core rev: ab49d1c03ba3e473a0da6a800d00b2ceba8e855a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobison: remove obsolete patch
Ross Burton [Mon, 8 Jan 2018 11:08:44 +0000 (11:08 +0000)] 
bison: remove obsolete patch

m4.patch was added before 2005 (history isn't in git, only BitKeeper) and
doesn't appear to be needed anymore.

Also add a comment to clarify why acpaths is required.

(From OE-Core rev: 1ef90df9c5cc628c885897027d8c5ec6f318d68e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopsmisc: improve autopoint-enabling
Ross Burton [Fri, 5 Jan 2018 16:39:11 +0000 (16:39 +0000)] 
psmisc: improve autopoint-enabling

Instead of globally clearing EXTRA_AUTORECONF (which by default currently
contains --exclude=autopoint) use _remove to selectively remove the piece we
care about.

(From OE-Core rev: 93fe0f5044d30407c9afc69cbb570a82b6c82e5d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: fetch2/__init__: Disable pseudo in runfetchcmd()
Peter Kjellerstedt [Thu, 20 Feb 2014 14:55:51 +0000 (15:55 +0100)] 
bitbake: fetch2/__init__: Disable pseudo in runfetchcmd()

If a fetcher, e.g., git, is run when pseudo is active it will think it
is running as root. If it in turn uses ssh (as git does), ssh too will
think it is running as root. This will cause it to try to read root's
ssh configuration from /root/.ssh which will fail. If ssh then needs to
ask for credentials it will hang indefinitely as there is nowhere for it
to ask the user for them (and even if there was it would not access the
correct private keys).

The solution to the above is to temporarily disable pseudo while
executing any fetcher commands. There should be no reason for them to be
executed under pseudo anyway so this should not be a problem.

RP Ammendum:

We finally did get more information about how to reproduce this problem,
something needs to trigger bb.fetch2.get_srcrev() in a pseudo context,
for example when AUTOREV is in use or the recipe doesn't have a defined
SRCREV. That SRC_URI needs to be using protocol=ssh. This would trigger
an ls-remote of the remote repo and if that happens under pseudo, the
wrong ssh credentials may be attempted which can hang.

[YOCTO #12464]

(Bitbake rev: ceaca281cafa662aa2385b95641bce309dce843d)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: events: Drop unused cfg property
Richard Purdie [Sun, 7 Jan 2018 11:56:25 +0000 (11:56 +0000)] 
bitbake: events: Drop unused cfg property

The cfg property on events doesn't add much, all code appears to access
"data" at this point. Remove it to clean up the interface.

(Bitbake rev: bd4b9e4460b60f142c3bf346fb04e360e512eaee)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoicu-dbg: improve reproducibility
Juro Bystricky [Sun, 7 Jan 2018 16:59:18 +0000 (08:59 -0800)] 
icu-dbg: improve reproducibility

Make sure build host references do not end up being compiled in the image.
This only affects libicutu and icu-dbg.

(From OE-Core rev: e9dfe7eb7f61b909ae7d034e80cfbebc1fad018b)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoperl-ptest: various fixes
Juro Bystricky [Sun, 7 Jan 2018 16:56:08 +0000 (08:56 -0800)] 
perl-ptest: various fixes

Improve reproducibility: Remove all build host references from
distributed files.

Do not package non-linux OS related files.
Also remove some additional files not needed by run-ptest. (There are
probably still more files that can be removed, but as long as they
don't leak build host references they are harmless).

Fix the expected checksum of MakeMaker/lib/ExtUtils/Liblist/Kid.pm
to match the one expected: We modified the file, but did not
recalculate/update the file checksum accordingly.
(This fixes the only failing test.)

(From OE-Core rev: 497b28d9ff0c094768462991709bfb19efa0fa56)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoperl-dbg: improve reproducibility
Juro Bystricky [Sun, 7 Jan 2018 16:56:07 +0000 (08:56 -0800)] 
perl-dbg: improve reproducibility

Remove various build host references scattered within
comments in numerous files that are distributed in the package.

(From OE-Core rev: a924ea675de846f9582a9a6a9b334be1f74f826d)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibunwind: Disable documentation explicitly
Richard Purdie [Sun, 7 Jan 2018 16:59:40 +0000 (16:59 +0000)] 
libunwind: Disable documentation explicitly

We don't have latex2man in HOSTTOOLs so documentaion is never built but this
dependency does cause problems on older releases like morty, pre-HOSTTOOLS.
Document the configuration explicitly in master.

(From OE-Core rev: 95a5ab819df324e7ec8068bb3575e55cad022e3a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto: update genericx86* SRCREVs for v4.12
Anuj Mittal [Thu, 28 Dec 2017 02:59:45 +0000 (10:59 +0800)] 
linux-yocto: update genericx86* SRCREVs for v4.12

Bump to stable kernel release v4.12.18.

(From meta-yocto rev: 11245b435230808e899e475e620b25b44599cd06)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto: update genericx86* SRCREVs for v4.9
Anuj Mittal [Thu, 28 Dec 2017 02:59:44 +0000 (10:59 +0800)] 
linux-yocto: update genericx86* SRCREVs for v4.9

Bump to stable kernel release v4.9.65.

(From meta-yocto rev: 074666026257a11dc5c24b16fbd3cb732fdc32d6)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto: update genericx86* SRCREVs for v4.4
Anuj Mittal [Thu, 28 Dec 2017 02:59:43 +0000 (10:59 +0800)] 
linux-yocto: update genericx86* SRCREVs for v4.4

Bump to stable kernel release v4.4.93.

(From meta-yocto rev: d34f1b28d08c3943b1b30944b4e79e193d0a8237)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa-yocto-bsp: bump to the latest linux stable kernel for the non-x86 BSPs
Kevin Hao [Sat, 23 Dec 2017 12:40:02 +0000 (20:40 +0800)] 
meta-yocto-bsp: bump to the latest linux stable kernel for the non-x86 BSPs

Bump to the latest stable kernel for 4.4, 4.9 and 4.12.

(From meta-yocto rev: f77e7b8c816742fbf5790f11997746958c593f1e)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer: use a patch instead of sed to fix gtk-doc makefiles
Ross Burton [Wed, 20 Dec 2017 13:03:03 +0000 (13:03 +0000)] 
gstreamer: use a patch instead of sed to fix gtk-doc makefiles

seds can get stale without warning and repeated application can cause problems,
so move the gtk-doc seds into a patch.

(From OE-Core rev: a704411ab0f1e5f8cbf57ff54b36d60ccaf0d223)

(From OE-Core rev: e0a4e78b879eeacff8ef6803c1345056abf018e7)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibproxy: Rely on cmake.bbclass to put cmake package files in dev package
Mike Crowe [Sat, 6 Jan 2018 20:09:03 +0000 (20:09 +0000)] 
libproxy: Rely on cmake.bbclass to put cmake package files in dev package

cmake.bbclass now ensures that ${datadir}/cmake ends up in the dev package,
so this recipe doesn't need to do so itself.

(From OE-Core rev: bb70e05e709d1e1bb1e2a490d1de244fba703f54)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibical: Rely on cmake.bbclass to put cmake package files in dev package
Mike Crowe [Sat, 6 Jan 2018 20:09:02 +0000 (20:09 +0000)] 
libical: Rely on cmake.bbclass to put cmake package files in dev package

cmake.bbclass now ensures that ${libdir}/cmake ends up in the dev package,
so this recipe doesn't need to do so itself.

(From OE-Core rev: 24ff3202f9177bc9f2186404ca7abda01d09580f)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowaffle: Rely on cmake.bbclass to put cmake package files in dev package
Mike Crowe [Sat, 6 Jan 2018 20:09:01 +0000 (20:09 +0000)] 
waffle: Rely on cmake.bbclass to put cmake package files in dev package

cmake.bbclass now ensures that ${libdir}/cmake and ${datadir}/cmake end up
in the dev package, so this recipe doesn't need to do so itself.

(From OE-Core rev: f6b4f06c5b11860f02b896286471b5cbb57b66ae)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agovulkan: Rely on cmake.bbclass to put cmake package files in dev package
Mike Crowe [Sat, 6 Jan 2018 20:09:00 +0000 (20:09 +0000)] 
vulkan: Rely on cmake.bbclass to put cmake package files in dev package

cmake.bbclass now ensures that ${libdir}/cmake ends up in the dev package,
so this recipe doesn't need to do so itself.

(From OE-Core rev: d860e2f36f3561532972edd04062392a40a0c8d6)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibsolv: Rely on cmake.bbclass to put cmake package files in dev package
Mike Crowe [Sat, 6 Jan 2018 20:08:59 +0000 (20:08 +0000)] 
libsolv: Rely on cmake.bbclass to put cmake package files in dev package

cmake.bbclass now ensures that ${datadir}/cmake ends up in the dev package,
so this recipe doesn't need to do so itself.

(From OE-Core rev: f8f260aae265c682e404b0e89615fb6ef5b76601)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocmake: Always put cmake package files in -dev packages
Mike Crowe [Sat, 6 Jan 2018 20:08:58 +0000 (20:08 +0000)] 
cmake: Always put cmake package files in -dev packages

Various recipes that inherit cmake contain FILES_${PN}-dev magic to add the
generated package files to their -dev packages. Since this is a standard
feature of cmake, we might as well teach cmake.bbclass to do this itself so
those recipes can be simpler.

(From OE-Core rev: d91dc4666683a96e9d03cbbd21b8a546f9069c93)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/fetch: Allow bit/bitbake-selftest to function correctly
Richard Purdie [Sun, 7 Jan 2018 11:48:43 +0000 (11:48 +0000)] 
bitbake: tests/fetch: Allow bit/bitbake-selftest to function correctly

Without this the paths to git-make-shallow are incorrect and cause test
failures if bitbake isn't executed from cwd or PATH.

(Bitbake rev: 643eacb162b8710330ef292bfda21cfeab97f95c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/event: tests: Add event classes test class
Jair Gonzalez [Wed, 16 Aug 2017 20:59:41 +0000 (15:59 -0500)] 
bitbake: tests/event: tests: Add event classes test class

This change adds EventClassesTest class to bb/tests/event.py,
including 47 new test cases for the public interfaces of the
bitbake event and related helper classes.

[YOCTO #10773]

(Bitbake rev: ee5fe4431713b8a29bdb424a29460965374b3234)

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/event: Remove empty assignments from event tests
Jair Gonzalez [Tue, 15 Aug 2017 22:37:55 +0000 (17:37 -0500)] 
bitbake: tests/event: Remove empty assignments from event tests

Remove assignments from non-returning calls.

(Bitbake rev: a8cac827dd15227a3940ea25c673d91b5e2c2a75)

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/event: Add test for bb.event.worker_fire
Jair Gonzalez [Tue, 15 Aug 2017 00:19:05 +0000 (19:19 -0500)] 
bitbake: tests/event: Add test for bb.event.worker_fire

Test the triggering of bb.event.worker_fire callback.

(Bitbake rev: daa59a2057c811b20d75235526ac6c2079ac6e10)

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/event: Include tests for event filtering features
Jair Gonzalez [Mon, 14 Aug 2017 21:04:19 +0000 (16:04 -0500)] 
bitbake: tests/event: Include tests for event filtering features

This change includes unit tests for the following functions,
helper class and methods in bitbake.event:

- set_eventfilter(func)
- set_UIHmask(handlerNum, level, debug_domains, mask)
- getName(e)
- class UIEventFilter(object)
    def __init__(self, level, debug_domains)
    def update(self, eventmask, level, debug_domains)
    def filter(self, event)

[YOCTO #10773]

(Bitbake rev: 4a19dde704fd0bf262ea991ef530f991a4897d31)

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogitignore: ignore documentation build products
Sascha Silbe [Fri, 15 Dec 2017 19:16:42 +0000 (20:16 +0100)] 
gitignore: ignore documentation build products

There are several different manuals by now, all of which produce
output. The "eclipse" directory might even have been present the last
time .gitignore was updated.

Ignore the files and directories that can be generated during "make
DOC=<directory>" as well as "make DOC=<directory> pdf". While at it,
make sure the patterns only match for the top-level documentation
directory.

Signed-off-by: Sascha Silbe <x-yo17@se-silbe.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager.py: remove obsolete MULTILIB_ARCHS
Robert Yang [Tue, 31 Oct 2017 07:51:16 +0000 (15:51 +0800)] 
package_manager.py: remove obsolete MULTILIB_ARCHS

It had been removed since 2011:

commit b774bf44ef004276da12a83ebd69715c00b596ac
Author: Lianhao Lu <lianhao.lu@intel.com>
Date:   Tue Aug 16 16:26:49 2011 +0800

    package(_ipk).bbclass: opkg using ALL_MULTILIB_PACKAGE_ARCHS

(From OE-Core rev: e03cfb5a04e359c0bacb002dc80f3348301445d3)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager.py: print running dnf command
Robert Yang [Tue, 31 Oct 2017 05:48:56 +0000 (13:48 +0800)] 
package_manager.py: print running dnf command

This can make debug easier, for example, makes it easy to run the
command mannually.

(From OE-Core rev: 220b912237da78d257c5310bd07db89489afede1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomultilib.bbclass: remove unneeded bb.data.inherits_class()
Robert Yang [Tue, 31 Oct 2017 08:10:22 +0000 (16:10 +0800)] 
multilib.bbclass: remove unneeded bb.data.inherits_class()

It is duplicated to previous.

(From OE-Core rev: 1309b800fbc48bc6a3b7864eb7827b24f855ddac)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomultilib.bbclass: remove obsolete DEFAULTTUNE_ML_
Robert Yang [Tue, 31 Oct 2017 08:30:03 +0000 (16:30 +0800)] 
multilib.bbclass: remove obsolete DEFAULTTUNE_ML_

It had been dropped by:
commit 65581c68d130fa74d703f6c3c92560e053857ac7
Author: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Date:   Mon Feb 13 16:44:48 2017 +0200

    rootfs_rpm.bbclass: migrate image creation to dnf

(From OE-Core rev: 38df1653da65a8a4e5f84b369b699307d5b4fc4f)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agovolatile-binds: use PN to replace hardcode name
Robert Yang [Thu, 2 Nov 2017 07:53:57 +0000 (15:53 +0800)] 
volatile-binds: use PN to replace hardcode name

Otherwise it doesn't work since SYSTEMD_SERVICE_volatile-binds is not defined
when multilib.

(From OE-Core rev: ccdc709655470af942afccda879e6f8484bebc5e)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomultilib_global.bbclass: fix indent
Robert Yang [Tue, 31 Oct 2017 09:24:28 +0000 (17:24 +0800)] 
multilib_global.bbclass: fix indent

(From OE-Core rev: 52f121a726da573c90e5857caff95e50b01ea02a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooe/copy_buildsystem.py: make sure layer exists
Robert Yang [Sun, 15 Oct 2017 19:51:24 +0000 (03:51 +0800)] 
oe/copy_buildsystem.py: make sure layer exists

It had a problem when nested layer before, e.g.:
layer_a/layer_b/

And when layer_b is handled before layer_a, then layer_a dir existed, so
it would be treated as already handled, which was wrong, check
conf/layer.conf can fix the problem.

(From OE-Core rev: 2eaefa0c3ae589111266c7d6822428ad910415f4)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopopulate_sdk_ext.bbclass: don't rename layers when failed
Robert Yang [Sun, 15 Oct 2017 19:30:43 +0000 (03:30 +0800)] 
populate_sdk_ext.bbclass: don't rename layers when failed

The previous code:
os.rename(sdkbasepath, temp_sdkbasepath)
try:
    foo
finally:
    os.rename(temp_sdkbasepath, sdkbasepath)

always renamed the path, it made the debug harder when error happened.
drop the "try: finally" makes the debug easier.

(From OE-Core rev: 32126512349d65f0dbc31196c4ec6e1a1147cf5e)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotestsdk.bbclass: add a newline after own-mirrors
Robert Yang [Thu, 12 Oct 2017 06:28:47 +0000 (23:28 -0700)] 
testsdk.bbclass: add a newline after own-mirrors

Otherwise it would generate lines like the following when multilib:
INHERIT += "own-mirrors"SSTATE_MIRRORS += " \n file://.* file:///path/to/../share/sstate-cache/PATH"

(From OE-Core rev: 65b2a0e1ba7e176f3e405ed8968665660fc414d3)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging.bbclass: make subprocess.check_output() capture stderr
Robert Yang [Tue, 10 Oct 2017 08:54:12 +0000 (01:54 -0700)] 
staging.bbclass: make subprocess.check_output() capture stderr

This is very useful for debugging. The similar to testsdk.bbclass.

(From OE-Core rev: de30b61b87047f61de4629f8e5bd87598de7fd0c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopulseaudio: change pulse to be a system group
Jackie Huang [Fri, 5 Jan 2018 02:56:49 +0000 (10:56 +0800)] 
pulseaudio: change pulse to be a system group

pulse is added as a system user, so the group 'pulse' is
meant to be a system group as well, which is the same with
other distros like ubuntu/centos.

(From OE-Core rev: 1bd599eae46127115ecf5c45c70d7f60d1209c94)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomaintainers.inc: add missing entries for gst-validate, gst-examples and meson
Alexander Kanavin [Fri, 5 Jan 2018 15:53:40 +0000 (17:53 +0200)] 
maintainers.inc: add missing entries for gst-validate, gst-examples and meson

(From OE-Core rev: ad9a2ed069d6521710a73f942ea59ef91846f681)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibpcre2: add packages for 16-bit and 32-bit code unit support
Stefan Müller-Klieser [Fri, 5 Jan 2018 15:31:54 +0000 (16:31 +0100)] 
libpcre2: add packages for 16-bit and 32-bit code unit support

The packages loosely follow the debian package names. In that way more
projects, e.g. Qt5 for 16-bit, are able use system libraries. This does
not change the existing default package.

(From OE-Core rev: 5ce6409fd588605648a51bd2f5825fd9ae147f79)

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: Set AUTOREV to have a vardepvalue
Richard Purdie [Fri, 5 Jan 2018 15:14:35 +0000 (15:14 +0000)] 
bitbake.conf: Set AUTOREV to have a vardepvalue

If you have a recipe which does not include SRCPV in PV but does set
SRCREV = "${AUTOREV}" and you run do_fetch, then change the repo to a
new commit then run do_unpack, do_unpack will fail since the new commit
doesn't exist in the repo that was fetched.

The problem is the revision chosen is not represented in the do_fetch
task hash. It if were, the fetch would rerun first and the commit would be
present. It works when PV includes SRCPV since that does contain the chosen
commit from the AUTOREV.

The solution is to include the SRCPV value into the representation of AUTOREV
used for checksum calculation purposes.

Add a selftest for this issue.

(From OE-Core rev: 7b8ee9285a197784d51e339f1603240f49435846)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodebian.bbclass: add a note when a package is renamed
Ross Burton [Fri, 5 Jan 2018 13:06:22 +0000 (13:06 +0000)] 
debian.bbclass: add a note when a package is renamed

To make it easier to debug problems with renaming caused by debian.bbclass,
explicitly log when packages are renamed.

(From OE-Core rev: 2c27df943035b4df7c5d0be1ab8d0f4f3a31f4d2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolz4: remove ptest changes
Ross Burton [Fri, 5 Jan 2018 13:06:16 +0000 (13:06 +0000)] 
lz4: remove ptest changes

This recipe installs the test suite by copying the entire build tree into
/usr/share/ptest, which is both wasteful and breaks packaging as lz4-ptest then
gets renamed by debian.bbclass to liblz4.

(From OE-Core rev: b1ef094bc0bba54bd54b03c0a3c082d9b6025895)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogst-validate: disable gtk-doc API documentation
Ross Burton [Fri, 5 Jan 2018 13:06:08 +0000 (13:06 +0000)] 
gst-validate: disable gtk-doc API documentation

When the gtk-doc API documentation is enabled (via the api-documentation DISTRO_FEATURE, typically) this recipe fails to build:

  WORKDIR/build/docs/validate/gst-validate-scan: line 117:
  WORKDIR/build/docs/validate/.libs/lt-gst-validate-scan:
  No such file or directory

Forcibly disable the gtk-doc for now.

(From OE-Core rev: 5d221ff20dffb2e119047f931e270b5a0ebf2ae1)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/runtime/buildcpio: Use our own mirror for source
Richard Purdie [Fri, 5 Jan 2018 16:09:47 +0000 (16:09 +0000)] 
oeqa/runtime/buildcpio: Use our own mirror for source

We see occasional network glitches which break this test. Use our own
mirror (which has a .gz instead of .bz2) to avoid the errors, we're not
trying to test network connectivity.

(From OE-Core rev: 038d7270aef0cccf87d50a117160c58261beb9b9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolocal.conf.sample: Weakly set BB_DISKMON_DIRS
Richard Purdie [Sat, 6 Jan 2018 10:02:10 +0000 (10:02 +0000)] 
local.conf.sample: Weakly set BB_DISKMON_DIRS

For various reasons we need to be able to set and override this from
auto.conf on our test infrastructure. We have tried forcing the variable
but this then breaks other selftests. In the interests of not complicating
things further and needing to modify the tests across releases, weaken
the default assignment.

(From meta-yocto rev: be0a707eea3f0015eb7e2df2d1fd07164c2a627d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogst-player: Upgrade, rename to gst-examples
Jussi Kukkonen [Thu, 4 Jan 2018 13:12:36 +0000 (15:12 +0200)] 
gst-player: Upgrade, rename to gst-examples

Switch to using current repository, switch to meson (following
upstream), rename the recipe like upstream.

Add a patch to install the player binaries.

(From OE-Core rev: ac695195077dd12e41f6104e5cc77ec2cf03af11)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosysprof: convert to meson build
Alexander Kanavin [Thu, 4 Jan 2018 13:12:35 +0000 (15:12 +0200)] 
sysprof: convert to meson build

Drop autotools-specific patches.

Rename polkit packageconfig option to sysprofd as 'polkit' does not
at all match what is happening.

Remove --enable-compiler-warnings, as the equivalent in meson
could not be found.

(From OE-Core rev: 2c2684c8338bf4bb9f08951a3fdd0ee194a88db4)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibinput: convert to meson build
Alexander Kanavin [Thu, 4 Jan 2018 13:12:34 +0000 (15:12 +0200)] 
libinput: convert to meson build

Drop libunwind option, as it is only used if tests are enabled
(and they're unconditionally not enabled).

(From OE-Core rev: 77119831bebfcb6fbb77f5f71351666dd99483e9)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibepoxy: convert to meson build
Alexander Kanavin [Thu, 4 Jan 2018 13:12:33 +0000 (15:12 +0200)] 
libepoxy: convert to meson build

Add a patch to work around absence of dlvsym() on musl
(wasn't previously a problem as autotools weren't building tests by default)

(From OE-Core rev: aaa523e87c73abc2cf8cf3ea55d9e2c6789d3b9a)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agojson-glib: convert to meson build
Alexander Kanavin [Thu, 4 Jan 2018 13:12:32 +0000 (15:12 +0200)] 
json-glib: convert to meson build

Note that meson flags for gobject introspection and gtk-doc
appear to be non-standardized; going forward we should devise
a common way to deal with it.

gettext inherit is removed, as there is no equivalent functionality
in meson; NLS bits are always built and installed.

(From OE-Core rev: 3d63c2cd2e8da0206297c69cdbdbf2688c13a9be)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomeson: Port pkgconfig-native patch to 0.44.0
Ricardo Ribalda Delgado [Thu, 4 Jan 2018 13:12:38 +0000 (15:12 +0200)] 
meson: Port pkgconfig-native patch to 0.44.0

The update to 0.44.0 did not add this patch required for qt builds.

(From OE-Core rev: 2aa0400c629e5d63ab6e70be32efa23b77a92eae)

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomeson: export native env only for native build
Martin Kelly [Thu, 4 Jan 2018 13:12:37 +0000 (15:12 +0200)] 
meson: export native env only for native build

Although the meson crossfile should take care of setting the right cross
environment for a target build, meson slurps any set CFLAGS, CXXFLAGS,
LDFLAGS, and CPPFLAGS from the environment and injects them into the
build (see mesonbuild/environment.py:get_args_from_envvars for details).

This means that we are seeing native CFLAGS, CXXFLAGS, LDFLAGS, and
CPPFLAGS in the target build, which is wrong and causes build failures
when target and native have libraries in common (the linker gets
confused and bails).

That said, we *do* need to set certain vars for all builds so that meson
can find the right build tools. Without this, meson will fail during its
sanity checking step because it will determine the build tools to be
unrunnable since they output target instead of native artifacts.

The solution to all of this is to set CC, CXX, LD, and AR globally to
the native tools while setting the other native vars *only* for the
native build. For target builds, these vars will get overridden by the
cross file as we expect.

(From OE-Core rev: de7ae028c65a978969b2e06fdc1a2d08bc141a5b)

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agognomebase.bbclass: allow a meson-specific version
Alexander Kanavin [Thu, 4 Jan 2018 13:12:31 +0000 (15:12 +0200)] 
gnomebase.bbclass: allow a meson-specific version

gnomebase.bbclass hardcodes the autotools inherit, so make it
configurable and allow meson to be specified instead.

(From OE-Core rev: 32c2faf394ba7bf75a7273fb9f5e58cc4ee3f3ad)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
[RP: patches tweaked to only need the one class]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc-runtime: improve reproducibility
Juro Bystricky [Thu, 4 Jan 2018 20:24:01 +0000 (12:24 -0800)] 
gcc-runtime: improve reproducibility

Remove various build host references from packages:

libstdc++
libstdc++-staticdev
gcc-runtime-dbg

The references are removoved by correctly setting various compiler
-fdebug-prefix-map settings. There are two main issues:
The default DEBUG_PREFIX_MAP variable references WORKDIR, however,
gcc sources are in a shared folder (work-shared)/
Additionally, DWARF info seems to store symlink names but gcc
seems to resolve symlink names referenced in -fdebug-prefix-map.

(From OE-Core rev: 04748af752b7f9d79ee4add67141d6c891f3bdbe)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython3-dev: improve reproducibility
Juro Bystricky [Thu, 4 Jan 2018 20:24:00 +0000 (12:24 -0800)] 
python3-dev: improve reproducibility

Remove remaining build host references from packaged files.

[#YOCTO 11472]

(From OE-Core rev: e21723bb9b6035714268eeab5f43e2d1cb798a0d)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoattr-doc: improve reproducibility
Juro Bystricky [Thu, 4 Jan 2018 20:24:02 +0000 (12:24 -0800)] 
attr-doc: improve reproducibility

Use gzip compression without timestamps in the metadata.
(Use gzip -n).

(From OE-Core rev: d322f3300e029addaca54755abf0728ac079569d)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoopenssl-ptest: improve reproducibility
Juro Bystricky [Thu, 4 Jan 2018 20:24:04 +0000 (12:24 -0800)] 
openssl-ptest: improve reproducibility

Remove buildhost references from Makefile and Configure.

(From OE-Core rev: 891e33f4ad0919f5b3be77cd63260121d62b6ee7)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosed-ptest: improve reproducibility
Juro Bystricky [Thu, 4 Jan 2018 20:24:03 +0000 (12:24 -0800)] 
sed-ptest: improve reproducibility

Remove build host references

(From OE-Core rev: bff3f0e7d96a95e6e6be1ea9b8ddebff53778c2f)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_rpm.bbclass: clamp timestamps
Juro Bystricky [Thu, 4 Jan 2018 20:01:13 +0000 (12:01 -0800)] 
package_rpm.bbclass: clamp timestamps

Improve binary reproducibility of RPM packages.
Ensure timestamps in RPM packages are not later than the value
of SOURCE_DATE_EPOCH. If SOURCE_DATE_EPOCH is not set,
timestamps are not clamped.

(From OE-Core rev: 225a7156d1fb2fbffadf38e4f4e491f053358082)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglib-2.0: Remove python3 modules when building for mingw
Alistair Francis [Wed, 3 Jan 2018 19:51:18 +0000 (11:51 -0800)] 
glib-2.0: Remove python3 modules when building for mingw

Commit "glib-2.0: Add python3 modules required by gdbus-codegen"
(26af3b4b33a34d7e53059b07236f9d5aae5e004a) broke the MinGW build of
QEMU. To fix the build remove the python3 RDEPENDS for gdbus-codegen
when targeting mingw.

(From OE-Core rev: 22495951d4caaaf1ead219be8cfad3311cebebff)

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogdb: fix build with x32
Anuj Mittal [Thu, 4 Jan 2018 02:33:47 +0000 (10:33 +0800)] 
gdb: fix build with x32

When compiling gdb for x32, it fails with errors:

|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c: In function 'const target_desc* get_ipa_tdesc(int)':
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:184:10: error: 'X86_TDESC_AVX512' was not declared in this scope
|     case X86_TDESC_AVX512:
|          ^~~~~~~~~~~~~~~~
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:184:10: note: suggested alternative: 'X86_TDESC_AVX'
|     case X86_TDESC_AVX512:
|          ^~~~~~~~~~~~~~~~
|          X86_TDESC_AVX
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:185:14: error: 'tdesc_x32_avx512_linux' was not declared in this scope
|       return tdesc_x32_avx512_linux;
|              ^~~~~~~~~~~~~~~~~~~~~~
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:185:14: note: suggested alternative: 'tdesc_x32_avx_linux'
|       return tdesc_x32_avx512_linux;
|              ^~~~~~~~~~~~~~~~~~~~~~
|              tdesc_x32_avx_linux
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c: In function 'void initialize_low_tracepoint()':
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:282:3: error: 'init_registers_x32_avx512_linux' was not declared in this scope
|   init_registers_x32_avx512_linux ();
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:282:3: note: suggested alternative: 'init_registers_x32_avx_linux'
|   init_registers_x32_avx512_linux ();
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|   init_registers_x32_avx_linux

Backport:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=f02fd7745d003d65fd3b981618e07b874b721d79

Fixes [YOCTO #12120]

(From OE-Core rev: 2557af944db081c1043f6052bc0f11e58022aeb7)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogobject-introspection: correct the --lib-dirs-envvar patch
Alexander Kanavin [Thu, 4 Jan 2018 13:58:45 +0000 (15:58 +0200)] 
gobject-introspection: correct the --lib-dirs-envvar patch

The first version introduced a new branch in if-else statement, and so
discarded the actions in the branch taken previously. This seemed
to have no adverse effect for now, but let's do it right.

(From OE-Core rev: b7be3aa46f676066ad05cf8192800ae184095838)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomaintainers.inc: assign python recipes to Derek Straka
Alexander Kanavin [Thu, 4 Jan 2018 13:58:44 +0000 (15:58 +0200)] 
maintainers.inc: assign python recipes to Derek Straka

(From OE-Core rev: 6072fa8b0d5c80d24e74510223838f7ccacbf3f1)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomaintainers.inc: remove python recipes no longer provided in oe-core
Alexander Kanavin [Thu, 4 Jan 2018 13:58:43 +0000 (15:58 +0200)] 
maintainers.inc: remove python recipes no longer provided in oe-core

(From OE-Core rev: 25a779e20dd0a65b36f268744b5f8b5b28b69f56)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoruntime/cases/ptest.py: fail when ptests fail on target
Alexander Kanavin [Thu, 4 Jan 2018 12:13:46 +0000 (14:13 +0200)] 
runtime/cases/ptest.py: fail when ptests fail on target

That's the whole point isn't it? Previously this testcase succeeded
even if some of the underlying on-target tests failed; the only way
to find out if anything was wrong was to manually inspect the logs.

(From OE-Core rev: 21b27d1e9d54d4aab412facff22cd5d3d77827a8)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotestimage.bbclass: add ptest to the list of runtime tests whenever possible
Alexander Kanavin [Thu, 4 Jan 2018 12:13:45 +0000 (14:13 +0200)] 
testimage.bbclass: add ptest to the list of runtime tests whenever possible

If no ptest packages are installed in the image, the test does nothing;
if ptest packages are installed in the image, then they should be
run without user having to enable that manually.

(From OE-Core rev: f57feab2727dca916744deb64825f3beaf07961d)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoruntime/cases/ptest.py: do not require ptest-pkgs in IMAGE_FEATURES; run only when...
Alexander Kanavin [Thu, 4 Jan 2018 12:13:44 +0000 (14:13 +0200)] 
runtime/cases/ptest.py: do not require ptest-pkgs in IMAGE_FEATURES; run only when ptest-runner is availalble;

Previously the test would execute only when all available ptests
for packages in the image were installed; some of those tests may
be broken, never finish, take a very long time or simply irrelevant
to the user who wants to check ptests of only a few specific packages,
and does so by listing them explicitly via IMAGE_INSTALL_append or similar.

Presence of ptest-runner means there is at least one ptest package installed
as they pull it in via a class dependency; ptest-runner is not generally
installed otherwise.

(From OE-Core rev: e07a2b9c2b08a465baeaaca86461e07817f84a52)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomeson: add a recipe and class from meta-oe
Alexander Kanavin [Thu, 4 Jan 2018 13:12:30 +0000 (15:12 +0200)] 
meson: add a recipe and class from meta-oe

The original recipe has been provided and improved by:

Ross Burton <ross.burton@intel.com>
Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Adam C. Foltzer <acfoltzer@galois.com>
Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Linus Svensson <linussn@axis.com>

I have added  patches to fix up gtk-doc and
gobject-introspection in cross-compilation environments,
and also change the order of linker arguments to replicate
autotools more closely (and fix linking errors in some corner
cases).

(From OE-Core rev: 1f8dea686cdfd6d360ba4a97f62d274c39eaeb8e)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosite/common: Allow ac_cv_path_SED to be overridden
Richard Purdie [Wed, 20 Dec 2017 17:09:47 +0000 (17:09 +0000)] 
site/common: Allow ac_cv_path_SED to be overridden

There are tools in the wild where we need this to be a full path, even
if that doesn't make sense in most other cases due to libtool issues.
Allow those cases to override the default value as currently its near
impossible to do so.

(From OE-Core rev: 65652f419a4c8578121f1f67d43f23ce4eae5a37)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoutils: Make get_multilib_datastore available from lib/oe
Richard Purdie [Wed, 20 Dec 2017 17:08:40 +0000 (17:08 +0000)] 
utils: Make get_multilib_datastore available from lib/oe

Currently we can't access this function from lib/oe as its a class function.
Move it to allow such access.

(From OE-Core rev: b241a666f2867ffa425f6d43763d7c3c17941dcf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc: malloc: Add missing arena lock in malloc_info
Zhixiong Chi [Mon, 27 Nov 2017 06:53:59 +0000 (22:53 -0800)] 
glibc: malloc: Add missing arena lock in malloc_info

There are the multiple process crashes seen while using malloc_info.
Obtain the size information while the arena lock is acquired, and only
print it later.

Backport patch from https://sourceware.org/git/gitweb.cgi?p=glibc.git;
h=7a9368a1174cb15b9f1d6342e0e10dd90dae238d

(From OE-Core rev: 7ecbb31fbaf1d056c9301166700e2967bd623489)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc: Upgrade to latest on 2.26 release
Khem Raj [Wed, 15 Nov 2017 03:02:09 +0000 (19:02 -0800)] 
glibc: Upgrade to latest on 2.26 release

For detailed view of changes see
https://github.com/kraj/glibc/compare/glibc-2.26...77f921dac17c5fa99bd9e926d926c327982895f7

Drop two upstreamed patches

(From OE-Core rev: e53bf781cdb896bdb02e69fdbfd0d144c5f39504)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc: fix C++ compile failures related to 'assert'
S. Lockwood-Childs [Wed, 3 Jan 2018 00:13:48 +0000 (16:13 -0800)] 
glibc: fix C++ compile failures related to 'assert'

* fixes "lambda-expression in unevaluated context" compile failures such as
  https://github.com/nlohmann/json/issues/705

* fixes "no match for 'operator==" compile failures such as
  https://bugzilla.redhat.com/show_bug.cgi?id=1482990

(From OE-Core rev: d9583296be58f02912abc4fd19f576b3f89107ff)

Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogobject-introspection: do not export LD_LIBRARY_PATH prior to running qemu
Alexander Kanavin [Wed, 3 Jan 2018 15:24:04 +0000 (17:24 +0200)] 
gobject-introspection: do not export LD_LIBRARY_PATH prior to running qemu

Latest g-i upstream adds target paths to this variable which breaks
qemu in various confusing ways.

Instead, the list of target library paths is exported to GIR_EXTRA_LIBS_PATH,
so that it can be picked up automatically by the qemu wrapper script
and given to qemu (manually setting this variable from various recipes
will be removed in a different patch).

Also, re-enable parts of g-i on mips64, as it is the same issue.

(From OE-Core rev: 58d31dddebbf7116e71bf45bd374a7a988f6016c)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: inherit distro_features_check
Robert Yang [Wed, 20 Dec 2017 01:53:13 +0000 (09:53 +0800)] 
systemd: inherit distro_features_check

Use distro_features_check so that we can have a uniform controller.

(From OE-Core rev: 9daf88713dedfb29fe926e18d76090a6b2582ac8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosysvinit: inherit distro_features_check
Robert Yang [Wed, 20 Dec 2017 01:53:12 +0000 (09:53 +0800)] 
sysvinit: inherit distro_features_check

Use distro_features_check so that we can have a uniform controller.

(From OE-Core rev: 658c59c90092f15c026fa3c72399f481c7241f65)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage_types.bbclass: use stat to get sparse file's size
Robert Yang [Thu, 21 Dec 2017 02:02:22 +0000 (10:02 +0800)] 
image_types.bbclass: use stat to get sparse file's size

The "ls -s sparse_file"'s result is 0, use stat to replace of it.

(From OE-Core rev: 1b2ec7a04069a0af2d4164c24109a5fa2fd0b1f6)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocore/loader.py: fix regex to include all available test cases
Leonardo Sandoval [Thu, 14 Dec 2017 15:07:22 +0000 (07:07 -0800)] 
core/loader.py: fix regex to include all available test cases

Some test cases (eSDK.oeSDK*, runtime_test/*) does not match
with current regex, fix it accept all.

[YOCTO #12385]

(From OE-Core rev: 1ecf48fd286a77078451b67879a44f9c9dc7a894)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0: upgrade to version 1.12.4
Maxin B. John [Wed, 27 Dec 2017 09:53:51 +0000 (11:53 +0200)] 
gstreamer1.0: upgrade to version 1.12.4

The fourth 1.12 bug-fix release

(From OE-Core rev: 1d3959676ad975d71a3466c2c6bf2457f2982c3a)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-fitimage.bbclass: Fix bad image type replacement for microblaze
Manjukumar Matha [Wed, 3 Jan 2018 00:45:04 +0000 (16:45 -0800)] 
kernel-fitimage.bbclass: Fix bad image type replacement for microblaze

When using kernel-fitimage class with microblaze, the image type has to be
linux.bin not zImage. This patch fixes the bad image type replacement
for microblaze

(From OE-Core rev: 4e0903e2f71658d595ccb1fa9dddf0f73b373f7e)

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowebkitgtk: fix build with musl and x32
Anuj Mittal [Fri, 29 Dec 2017 02:00:12 +0000 (10:00 +0800)] 
webkitgtk: fix build with musl and x32

Make the x32 check generic to make it work with musl as well.

Fixes [YOCTO #12118]

(From OE-Core rev: dbd604ccf34e304769937b15051c047561de47f7)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd-boot: fix build with musl and x32
Anuj Mittal [Wed, 3 Jan 2018 01:48:52 +0000 (09:48 +0800)] 
systemd-boot: fix build with musl and x32

systemd-boot shouldn't be built for x32. Make sure that this is the
case when TCLIBC is set to something other than glibc.

Fixes [YOCTO #12122]

(From OE-Core rev: feed576321dcba2d75c067d6ee8b8dad817e9bba)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Thu, 4 Jan 2018 11:31:36 +0000 (11:31 +0000)] 
build-appliance-image: Update to master head revision

(From OE-Core rev: 55d3aeb2d82c907a9ecd35848353c6fcb1f1e45a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agou-boot: Add Upstream-Status line missed from merged patch
Richard Purdie [Tue, 2 Jan 2018 22:41:43 +0000 (22:41 +0000)] 
u-boot: Add Upstream-Status line missed from merged patch

(From OE-Core rev: ce8e782140eae9456e42c150fd1ff738b431e247)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomusl: Update to latest
Khem Raj [Tue, 12 Dec 2017 17:23:14 +0000 (09:23 -0800)] 
musl: Update to latest

These commits are added
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=eb03bde2f24582874cb72b56c7811bf51da0c817..4000b0107ddd7fe733fa31d4f078c6fcd35851d6

Key fix for malloc
https://git.musl-libc.org/cgit/musl/commit/?id=a71b46cfd289aa0ff829fc9a436c59c398f8326d

(From OE-Core rev: 8f889cdfc8eee9df896ac6e0bdd29be7e940f8f3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomusl: Disable thumb1 ISA
Andrea Adami [Wed, 15 Nov 2017 02:23:13 +0000 (18:23 -0800)] 
musl: Disable thumb1 ISA

thumb1 is unsupported see http://www.openwall.com/lists/musl/2017/10/20/10

Fix
[YOCTO #12336]

(From OE-Core rev: d29bd5571187cb30d25f3a885e9e61aa20dd6d7a)

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogdb: Upgrade to 8.0.1
Khem Raj [Sun, 12 Nov 2017 18:55:50 +0000 (10:55 -0800)] 
gdb: Upgrade to 8.0.1

Minor bugfix release, details are here
https://sourceware.org/ml/gdb-announce/2017/msg00004.html

(From OE-Core rev: 9339724de14c8bfc1baa71e4ed687410aed1a812)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobinutils: Convert SRC_URI and SRCREV to weak defines
Khem Raj [Sun, 12 Nov 2017 18:48:35 +0000 (10:48 -0800)] 
binutils: Convert SRC_URI and SRCREV to weak defines

This makes it easy to override them in bbappends

(From OE-Core rev: 99458d1fa170970e8a1aa04eeb0c86d3754fd988)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobinutils: update to 2.29.1
Armin Kuster [Sat, 11 Nov 2017 21:32:56 +0000 (13:32 -0800)] 
binutils: update to 2.29.1

update to 2.29.1 to fix the following missing CVEs:

CVE-2017-15939, CVE-2017-15938, CVE-2017-15225, CVE-2017-15025,
CVE-2017-15024, CVE-2017-15023, CVE-2017-15022, CVE-2017-15021,
CVE-2017-15020, CVE-2017-14974, CVE-2017-14940, CVE-2017-14939,
CVE-2017-14938, CVE-2017-14934, CVE-2017-14933, CVE-2017-14932,
CVE-2017-14930, CVE-2017-14745, CVE-2017-14729, CVE-2017-14529,
CVE-2017-14333, CVE-2017-14130, CVE-2017-14129, CVE-2017-14128,
CVE-2017-13757, CVE-2017-13716, CVE-2017-13710, CVE-2017-12967,
CVE-2017-12799, CVE-2017-12459, CVE-2017-12458, CVE-2017-12457,
CVE-2017-12456, CVE-2017-12455, CVE-2017-12454, CVE-2017-12453,
CVE-2017-12452, CVE-2017-12451, CVE-2017-12450, CVE-2017-12449,
CVE-2017-12448

see Changelogs for additional information

(From OE-Core rev: 53df200cb5edab04a7ab38b974f96281733fadb2)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>