]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
7 years agoperf: depend on native versions of bison and flex
Denys Dmytriyenko [Wed, 10 Jan 2018 05:09:00 +0000 (00:09 -0500)] 
perf: depend on native versions of bison and flex

Explicitly depend on bison-native and flex-native for deterministic builds,
as those are required for the build:

| Makefile.config:129: *** Error: flex is missing on this system, please install it.  Stop.
| Makefile.perf:205: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:68: recipe for target 'all' failed
| make: *** [all] Error 2

| Makefile.config:133: *** Error: bison is missing on this system, please install it.  Stop.
| Makefile.perf:205: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:68: recipe for target 'all' failed
| make: *** [all] Error 2

In most cases, those dependencies come indirectly via toolchain dependencies,
specifically binutils-cross, which pulls both bison-native and flex-native.
Different setups, such as with external toolchain, would expose this problem,
since correct dependency is not marked explicitly.

The change is build-tested on all qemu architectures.

(From OE-Core rev: 5f4b54a234ad7a859db8a1e23c6892a8b3bc1b52)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogrub-efi: Fix DEPENDS
Richard Purdie [Thu, 11 Jan 2018 23:21:09 +0000 (23:21 +0000)] 
grub-efi: Fix DEPENDS

We need to append to DEPENDS else the dependencies on bison/flex-native
are lost, potentially resulting in build failures.

(From OE-Core rev: bead76b50dc60e1b6b39fa5b659a7af44ff91adc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc: Add missing flex-native dependency
Richard Purdie [Thu, 11 Jan 2018 16:49:49 +0000 (16:49 +0000)] 
gcc: Add missing flex-native dependency

This is needed for all stages of the cross/target/canadian compilers
and without it (and with indirect gcc dependencies disabled), the steps
fail. Add missing dependencies.

(From OE-Core rev: e7be4aedd4f1e23c596a8cae0437bc5c187787e5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-firmware: Bump revision to 65b1c68c
Otavio Salvador [Wed, 10 Jan 2018 17:31:29 +0000 (15:31 -0200)] 
linux-firmware: Bump revision to 65b1c68c

The bump includes following changes:

65b1c68 wl18xx: update firmware file 8.9.0.0.76
8650396 wl127x/wl128x: update firmwares
2eefafb rtlwifi: rtl8723de: Add firmware for new driver/device
4a77cab linux-firmware: DMC firmware for cannonlake v1.07
2567e09 nvidia: add GP108 signed firmware
2451bb2 linux-firmware: liquidio: add v1.7.0 vswitch firmware
7f93c9d brcm: add CYW4373 firmwares and Cypress license file
fdee922 linux-firmware: Update firmware patch for Intel Bluetooth 8260
9a843a1 linux-firmware: Update firmware file for Intel Bluetooth 8265
97339b3 linux-firmware: Add firmware file for Intel Bluetooth 9260
db9964e linux-firmware: Add firmware file for Intel Bluetooth 9560
e4252cf Revert commits a42f895c113d33041aff873d13b5
a42f895 linux-firmware: Update firmware patch for Intel Bluetooth 8260
c113d33 linux-firmware: Update firmware file for Intel Bluetooth 8265
041aff8 linux-firmware: Add firmware file for Intel Bluetooth 9260
73d13b5 linux-firmware: Add firmware file for Intel Bluetooth 9560
30946b9 amdgpu: add firmware for Raven
71a4800 amdgpu: update vega10 vce firmware
89c6211 linux-firmware: intel: Add Cannonlake audio firmware
b39260f nfp: add firmware for tc-flower
c752e24 nfp: change firmware directory layout
00a92a3 nfp: update firmware for Agilio CX SmartNICs
02d857e linux-firmware: DMC firmware for skylake v1.27
17e6288 brcm: update firmware for bcm4358
1841cec brcm: update firmware for bcm4356
b3f4e74 brcm: update firmware for bcm4354
cd86989 brcm: introduce firmware for bcm43430 revision 0
5ee46c2 brcm: update firmware for bcm4339
8e864c2 Mellanox: Add new mlxsw_spectrum firmware 13.1530.152
fd45000 WHENCE: Add missing entry for mlxsw_spectrum firmware
7f9bbc7 WHENCE: Fix typo in entry for iwlwifi-8265-34.ucode
284de20 s2255drv: f2255usb: firmware version 1.2.8
7c705a4 amdgpu: add new CP firmware for polaris chips
5582ca4 qed: Add firmware 8.33.1.0
e721933 qcom: add venus firmware files for v4.2
f36a8e2 qcom: add firmware files for Adreno a530
85313b4 iwlwifi: add firmware version 34 for new 9000 series
6c161c5 linux-firmware: liquidio: update firmware to v1.7.0
b964279 linux-firmware: intel: Update Geminilake audio firmware
c4276b6 iwlwifi: add firmware version 33 for new 9000 series
5a05332 iwlwifi: add new firmware version 34 for 8000C and 8265
1a5fd94 iwlwifi: update firmwares for 3160, 3168, 7260, 7265 and 7265D
796c912 iwlwifi: update firmwares for 3160, 3168, 7265D, 8000C and 8265
1156e62 linux-firmware: DMC firmware for kabylake v1.04
db3e185 linux-firmware: update Marvell PCIe-USB8997 firmware image
de81715 linux-firmware: GuC firmware for kabylake v9.39
434e712 linux-firmware: GuC firmware for Broxton v9.29
0aebd9f linux-firmware: GuC firmware for Skylake v9.33
de5b4c2 linux-firmware/i915: Add Cannonlake DMC version 1.06
8e7c787 linux-firmware/i915: Add Geminilake DMC version 1.04
e0494e9 linux-firmware: update Marvell PCIe-USB8997 firmware image
11db131 linux-firmware: update Marvell PCIe-USB8897-A2 firmware image

Included in those changes, two license checksums has been changed:

 - LICENCE.Netronome: minimal change dropping a word in license name;
 - WHENCE: adjustments due the new firmware versions;

(From OE-Core rev: 4facc572380daf5b7e6294b388a657fa0a44a6f2)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogettext: rationalise optional dependencies
Ross Burton [Wed, 10 Jan 2018 17:28:58 +0000 (17:28 +0000)] 
gettext: rationalise optional dependencies

gettext has optional dependencies on libxml2, glib, libcroco and libunistring.
If they're not available then gettext will use internal copies, but it can also
use system libraries.

For gettext-native and nativesdk-gettext continue to use the internal copies to
reduce the dependencies, but for target use the system shared libraries.

Also gettext 0.19.7 onwards swapped expat for libxm2, so remove the build
dependency on expat.

(From OE-Core rev: a82aa376a9229428ec25629e97a1efa56f0afae7)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglib-2.0: rationalise build dependencies
Ross Burton [Wed, 10 Jan 2018 17:28:57 +0000 (17:28 +0000)] 
glib-2.0: rationalise build dependencies

nativesdk-glib-2.0 doesn't build-depend on nativesdk-gettext, but all variations
need to depend on gettext-native as they need msgfmt (so gettext-minimal-native
isn't an option).

Also add virtual/libintl as glib explicitly needs this. Generally this is
provided by glibc but some platforms (such as MinGW) don't.

(From OE-Core rev: 8b0ca0cb54c91611213556bdb99316d5e7ac5b3b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agognupg: use native version for signing, rather than one provided by host
Alexander Kanavin [Wed, 10 Jan 2018 12:27:42 +0000 (14:27 +0200)] 
gnupg: use native version for signing, rather than one provided by host

Using host gpg has been problematic, and particularly this removes
the need to serialize package creation, as long as --auto-expand-secmem
is passed to gpg-agent, and gnupg >= 2.2.4 is in use
(https://dev.gnupg.org/T3530).

Sadly, gpg-agent itself is single-threaded, so in the longer run
we might want to seek alternatives:
https://lwn.net/Articles/742542/

(a smaller issue is that rpm itself runs the gpg fronted in a serial
fashion, which slows down the build in cases of recipes with very
large amount of packages, e.g. glibc-locale)

Note that sstate signing and verification continues to use host
gpg, as depending on native gpg would create circular dependencies.

[YOCTO #12022]

(From OE-Core rev: 08fef6198122fe79d4c1213f9a64b862162ed6cd)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agognupg: enable native version
Alexander Kanavin [Wed, 10 Jan 2018 12:27:41 +0000 (14:27 +0200)] 
gnupg: enable native version

(From OE-Core rev: 3945ddd6eea9d84f7b0f82c66e6d4512bc239bb2)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agognupg: upgrade to 2.2.4
Alexander Kanavin [Wed, 10 Jan 2018 12:27:40 +0000 (14:27 +0200)] 
gnupg: upgrade to 2.2.4

(From OE-Core rev: 745da1074a134f7d6a2110af100bdc65f031720b)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibgcrypt: upgrade to 1.8.2
Alexander Kanavin [Wed, 10 Jan 2018 12:27:39 +0000 (14:27 +0200)] 
libgcrypt: upgrade to 1.8.2

(From OE-Core rev: e84d96a1cd82333b290942b095b4a9a4457b444e)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>