]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agokernel.bbclass: Give sanity check function an opt-out variable
California Sullivan [Tue, 28 Feb 2017 01:02:43 +0000 (17:02 -0800)]
kernel.bbclass: Give sanity check function an opt-out variable

Having no opt-out method and adding the task to linux-yocto.inc was
causing issues. For example, linux-yocto-dev would often fail because
it uses AUTOREV with no way to dynamically change the PV.

Add a variable to turn off the sanity check, allowing an easy opt out,
and set the opt-out variable in linux-yocto-dev, fixing the issue with
AUTOREV.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage.bbclass: Add SHLIB detection support for mingw targets
Nathan Rossi [Tue, 21 Feb 2017 13:17:28 +0000 (23:17 +1000)]
package.bbclass: Add SHLIB detection support for mingw targets

Add support to detect dll files as shared objects as well as process
Windows .dll and .exe files to determine the runtime libraries
dependencies.

This implementation is sufficient to detect and map runtime library
dependencies between packages. And does not implement any version naming
conventions that might apply for .dll files (e.g. lib*-x.dll).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoupdate-alternatives.bbclass: Disable for mingw32 targets
Nathan Rossi [Tue, 21 Feb 2017 13:17:28 +0000 (23:17 +1000)]
update-alternatives.bbclass: Disable for mingw32 targets

When building for mingw32 targets (e.g. nativesdk cross compiling for
windows), disable the dependency on update-alternatives as the Windows
platform does not support symlinks or package management.

This avoids the complex (partly non-buildable for mingw32) dependency
chain virtual/update-alternatives -> opkg-utils -> python -> ...

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoautotools.bbclass: delete the extra varflag set for autotools_copy_aclocals
Dengke Du [Thu, 2 Mar 2017 05:39:31 +0000 (00:39 -0500)]
autotools.bbclass: delete the extra varflag set for autotools_copy_aclocals

The autotools_copy_aclocals has been droped, so the varflag set for that should
be removed.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoptest.bbclass: use BPN in PTEST_PATH for multilib
Jackie Huang [Thu, 23 Feb 2017 08:08:30 +0000 (16:08 +0800)]
ptest.bbclass: use BPN in PTEST_PATH for multilib

Use BPN instead of PN in PTEST_PATH for multilib builds,
or we get two directories for a package in libdir which
doesn't make sense, e.g.

$ ls /usr/lib/*coreutils
/usr/lib/coreutils:
libstdbuf.so

/usr/lib/lib32-coreutils:
ptest

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agono-static-libs: add missing leading space when using "_append"
Robert P. J. Day [Tue, 28 Feb 2017 10:12:57 +0000 (05:12 -0500)]
no-static-libs: add missing leading space when using "_append"

The assigned value clearly needs a leading space to be consistent with
standard "_append" usage.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoarch-mips: Fix tune configuration for mipsisa64r6el-n32-nf
Zubair Lutfullah Kakakhel [Thu, 2 Mar 2017 13:36:14 +0000 (13:36 +0000)]
arch-mips: Fix tune configuration for mipsisa64r6el-n32-nf

Big endian flag marked in a little endian configuration by mistake.
Remove it.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
Andre McCurdy [Fri, 27 Jan 2017 22:29:10 +0000 (14:29 -0800)]
bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature

USE_LDCONFIG could previously be set to 0 by distros which do not
require ldconfig or ld.so.conf on the target. Since more and more
recipes may need to respect that option, replace the ad-hoc variable
with a distro feature.

Distros which previously set:

  USE_LDCONFIG = "0"

Should now instead use:

  DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " ldconfig"

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoyocto-compat-layer.py: Add script to YP Compatible Layer validation
Aníbal Limón [Mon, 20 Feb 2017 21:12:49 +0000 (15:12 -0600)]
yocto-compat-layer.py: Add script to YP Compatible Layer validation

The yocto-compat-layer script serves as a tool to validate the alignament
of a layer with YP Compatible Layers Programme [1], is based on an RFC
sent to the ML to enable automatic testing of layers [2] that wants to
be YP Compatible.

The tool takes an layer (or set of layers) via command line option -l
and detects what kind of layer is distro, machine or software and then
executes a  set of tests against the layer in order to validate the
compatibility.

The tests currently implemented are:

common.test_readme: Test if a README file exists in the layer and isn't
    empty.
common.test_parse: Test for execute bitbake -p without errors.
common.test_show_environment: Test for execute bitbake -e without errors.
common.test_signatures: Test executed in BSP and DISTRO layers to review
    doesn't comes with recipes that changes the signatures.

bsp.test_bsp_defines_machines: Test if a BSP layers has machines
    configurations.
bsp.test_bsp_no_set_machine: Test the BSP layer to doesn't set
    machine at adding layer.

distro.test_distro_defines_distros: Test if a DISTRO layers has distro
    configurations.
distro.test_distro_no_set_distro: Test the DISTRO layer to doesn't set
    distro at adding layer.

Example of usage:

$ source oe-init-build-env
$ yocto-compat-layer.py LAYER_DIR

[YOCTO #10596]

[1] https://www.yoctoproject.org/webform/yocto-project-compatible-registration
[2] https://lists.yoctoproject.org/pipermail/yocto-ab/2016-October/001801.html

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: support xml report format
Markus Lehtonen [Thu, 23 Feb 2017 13:18:33 +0000 (15:18 +0200)]
build-perf-test-wrapper.sh: support xml report format

Add new command line option '-x' that enbles xml-formatted reports.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/runqemu: avoid overridden user input for bootparams
Dmitry Rozhkov [Tue, 21 Feb 2017 15:18:08 +0000 (17:18 +0200)]
scripts/runqemu: avoid overridden user input for bootparams

Currently runqemu hardcodes the "ip=" kernel boot parameter
when configuring QEMU to use tap or slirp networking. This makes
the guest system to have a network interface pre-configured
by kernel and causes systemd to fail renaming the interface
to whatever pleases it:

  Feb 21 10:10:20 intel-corei7-64 systemd-udevd[201]: Error changing
      net interface name 'eth0' to 'enp0s3': Device or resource busy,

Always append user input for kernel boot params after the ones
added by the script. This way user input has priority over runqemu's
default params.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/runqemu: Add always ttyS1 when no serial options are specified
Aníbal Limón [Thu, 16 Feb 2017 17:10:30 +0000 (11:10 -0600)]
scripts/runqemu: Add always ttyS1 when no serial options are specified

We always wants ttyS0 and ttyS1 in qemu machines (see SERIAL_CONSOLES),
if not serial or serialtcp options was specified only ttyS0 is created
and sysvinit shows an error trying to enable ttyS1:

     INIT: Id "S1" respawning too fast: disabled for 5 minutes

[YOCTO #10491]

(From OE-Core rev: 3a0efbbe6bb5a7f0fb3df0f6052b11e56788405f)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/lib/create_npm: handle Public Domain licenses
Anders Darander [Wed, 1 Mar 2017 17:20:01 +0000 (18:20 +0100)]
scripts/lib/create_npm: handle Public Domain licenses

Rewrite Public Domain as PD, as that's what the place holder in
meta/files/common_licenses is called.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/lib/create_npm: handle AND and OR in licenses
Anders Darander [Wed, 1 Mar 2017 17:20:00 +0000 (18:20 +0100)]
scripts/lib/create_npm: handle AND and OR in licenses

Handle npm packages with multiple licenses (AND and OR).
Prior to this, AND and OR were treated as licensed in their
own.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/lib/create_npm: rewrite see license in eula
Anders Darander [Wed, 1 Mar 2017 17:19:59 +0000 (18:19 +0100)]
scripts/lib/create_npm: rewrite see license in eula

Rewrite the 'SEE LICENSE IN EULA' to a single string (without
spaces), to avoid splitting the string later on.

(Otherwise, each word gets split, and assumed to be a license
on it's own.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/package.py: remove @ from package name
Anders Darander [Wed, 1 Mar 2017 17:19:57 +0000 (18:19 +0100)]
lib/oe/package.py: remove @ from package name

@ isn't allowed in package names. Angular2 packages often have
@ in their names.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocreate_npm.py: convert MIT/X11 to MIT
Anders Darander [Wed, 1 Mar 2017 17:19:56 +0000 (18:19 +0100)]
create_npm.py: convert MIT/X11 to MIT

Quite a few npm packages declare MIT/X11 as their license. This is equal to
a pure MIT license.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: add more targets to directdisk syslinux config
Ed Bartosh [Thu, 23 Feb 2017 14:22:04 +0000 (16:22 +0200)]
wic: add more targets to directdisk syslinux config

Added 3 new targets to directdisk-bootloader-config.cfg to
match hddimg syslinux config.

This is a preparation for dropping hddimg in favor of wic.

[YOCTO #11044]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: bootimg-pcbios: add support for syslinux vesamenu
Ed Bartosh [Thu, 23 Feb 2017 14:19:36 +0000 (16:19 +0200)]
wic: bootimg-pcbios: add support for syslinux vesamenu

Installed vesamenu.c32 and its dependencies to support
vesamenu ui in syslinux config.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError instead of calling logger.error
Ed Bartosh [Tue, 21 Feb 2017 15:12:35 +0000 (17:12 +0200)]
wic: raise WicError instead of calling logger.error

Replaced forgotten calls of logger.error with raising
WicError exception. Otherwise errors will be ignored.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: add WKS_FILE_DEPENDS variable
Ed Bartosh [Tue, 21 Feb 2017 15:09:10 +0000 (17:09 +0200)]
wic: add WKS_FILE_DEPENDS variable

This variable should be used to specify dependencies that
will be added to DEPENDS only if wic image build is 'active'
i.e. when 'wic' is in IMAGE_FSTYPES.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: exec_native_cmd: fix undefined variable error
Ed Bartosh [Tue, 21 Feb 2017 10:01:59 +0000 (12:01 +0200)]
wic: exec_native_cmd: fix undefined variable error

Defined variable 'out' to fix this exception:
UnboundLocalError: local variable 'out' referenced before assignment

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: exec_native_cmd: improve debug message
Ed Bartosh [Tue, 21 Feb 2017 09:54:20 +0000 (11:54 +0200)]
wic: exec_native_cmd: improve debug message

Added search paths to the debug message to make it
easier to see where the native command is searched.

[YOCTO #11017]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use image recipe sysroot as default
Ed Bartosh [Tue, 21 Feb 2017 09:46:29 +0000 (11:46 +0200)]
wic: use image recipe sysroot as default

Switched from using wic-tools recipe sysroot to using
image sysroot in wic script. This way is more logical
and consistent with the way wic uses other artifacts.

[YOCTO #11017]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use 2 sysroots to find native executable
Ed Bartosh [Tue, 21 Feb 2017 09:37:17 +0000 (11:37 +0200)]
wic: use 2 sysroots to find native executable

Currently there is no way to specify a dependency on native
tools for wic without modifying wic-tools recipe. Obvious
way to make it more flexible is to use image sysroot and
wic-tools together to find an executable.

Modified run_native_cmd to use image and wic-tools sysroots
to find native executable.

[YOCTO #11017]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: pluginbase: use global dictionary
Ed Bartosh [Thu, 16 Feb 2017 10:53:30 +0000 (12:53 +0200)]
wic: pluginbase: use global dictionary

Made PluginMeta to populate global PLUGINS dictionary that
is accessed by PluginMgr. This should make the code more
understandable as PluginMgr don't need to get data directly
from PlugnMeta attribute.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move PluginMgr class to pluginbase
Ed Bartosh [Wed, 15 Feb 2017 19:24:38 +0000 (21:24 +0200)]
wic: move PluginMgr class to pluginbase

As PluginMgr class contains only one method it's
better to move it to pluginbase to have all plugin
related APIs in one module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: plugin: cache results in get_plugins
Ed Bartosh [Wed, 15 Feb 2017 18:42:30 +0000 (20:42 +0200)]
wic: plugin: cache results in get_plugins

Store results of PluginMgr.get_plugins to avoid
loading plugins more than once.

This should speed up finding plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove PluginMgr.get_plugin_methods
Ed Bartosh [Wed, 15 Feb 2017 18:13:41 +0000 (20:13 +0200)]
wic: remove PluginMgr.get_plugin_methods

Call methods directly instead of getting them with
get_plugin_methods and then calling.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: throw exception if required API is not implemented
Ed Bartosh [Wed, 15 Feb 2017 17:50:45 +0000 (19:50 +0200)]
wic: throw exception if required API is not implemented

Throw WicError if do_create method of imager plugin is
not implemented.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: pluginbase: use python 3 metaclass syntax
Ed Bartosh [Wed, 15 Feb 2017 17:43:30 +0000 (19:43 +0200)]
wic: pluginbase: use python 3 metaclass syntax

Used more readable syntax to specify metaclass for
the base plugin classes.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: reimplement PluginMgr.get_plugins
Ed Bartosh [Wed, 15 Feb 2017 16:47:03 +0000 (18:47 +0200)]
wic: reimplement PluginMgr.get_plugins

Removed all private methods and complicated logic.
Put all code to get plugins into get_plugins method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: reimplement PluginMgr.get_plugin_methods
Ed Bartosh [Wed, 15 Feb 2017 12:58:22 +0000 (14:58 +0200)]
wic: reimplement PluginMgr.get_plugin_methods

Simplified the implementation of get_plugin_methods:
- get rid of looping over the dicrtionary, used access by key instead
- get rid of filling a dictionary that passed as a parameter

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove PluginMgr.get_source_plugins
Ed Bartosh [Wed, 15 Feb 2017 12:24:17 +0000 (14:24 +0200)]
wic: remove PluginMgr.get_source_plugins

Used get_plugins('source') instead of get_source_plugins to
unify and simplify API to get plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use PluginMgr directly
Ed Bartosh [Wed, 15 Feb 2017 12:16:38 +0000 (14:16 +0200)]
wic: use PluginMgr directly

Instead of making a singleton object of PluginMgr class
it's simpler to use PluginMgr class directly as any class
is a singleton.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move WicError to lib/wic/__init__.py
Ed Bartosh [Tue, 14 Feb 2017 22:07:14 +0000 (00:07 +0200)]
wic: move WicError to lib/wic/__init__.py

Removed unused exceptions from error.py
Moved definition of WicError to lib/wic/__init__.py

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError instead of ImageError and CreatorError
Ed Bartosh [Tue, 14 Feb 2017 21:47:06 +0000 (23:47 +0200)]
wic: raise WicError instead of ImageError and CreatorError

There is no need to raise special exceptions. Raising
WicError should be enough.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError in wic plugins
Ed Bartosh [Tue, 14 Feb 2017 21:07:35 +0000 (23:07 +0200)]
wic: raise WicError in wic plugins

Replaced sys.exit with raising WicError in wic plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError in core modules
Ed Bartosh [Tue, 14 Feb 2017 20:21:38 +0000 (22:21 +0200)]
wic: raise WicError in core modules

Replaced sys.exit with raising WicError in the core wic modules.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError in main module
Ed Bartosh [Tue, 14 Feb 2017 20:00:48 +0000 (22:00 +0200)]
wic: raise WicError in main module

Replaced sys.exit with raising WicError in main module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move errors module
Ed Bartosh [Tue, 14 Feb 2017 19:31:05 +0000 (21:31 +0200)]
wic: move errors module

Moved from lib/wic/utils/ to lib/wic as this is a core module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove msger module
Ed Bartosh [Tue, 14 Feb 2017 18:44:59 +0000 (20:44 +0200)]
wic: remove msger module

Removed custom logger module msger as it's replaced
by wic logger.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic logger in wic source plugins
Ed Bartosh [Tue, 14 Feb 2017 18:13:46 +0000 (20:13 +0200)]
wic: use wic logger in wic source plugins

Replaced msger with wic logger in wic source plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic logger in imager direct plugin
Ed Bartosh [Tue, 14 Feb 2017 17:08:15 +0000 (19:08 +0200)]
wic: use wic logger in imager direct plugin

Replaced msger with wic logger in the direct plugin.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic logger in core modules
Ed Bartosh [Tue, 14 Feb 2017 16:54:32 +0000 (18:54 +0200)]
wic: use wic logger in core modules

Replaced msger with wic logger in the core wic modules.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: setup logging in the main wic module
Ed Bartosh [Tue, 14 Feb 2017 16:48:54 +0000 (18:48 +0200)]
wic: setup logging in the main wic module

Set up wic logger using standerd logging module.
This is going to replace custom msger module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agocryptodev: update to handle 4.10 kernel API
Ross Burton [Fri, 3 Mar 2017 16:06:32 +0000 (16:06 +0000)]
cryptodev: update to handle 4.10 kernel API

8 years agogcc-runtime: Add libmpx supprt for x86
Richard Purdie [Fri, 24 Feb 2017 18:48:18 +0000 (10:48 -0800)]
gcc-runtime: Add libmpx supprt for x86

Enabling building the Intel Memory Protection Extension library for x86.

Leave this disabled in musl builds as it doesn't build there yet.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto-dev: add virtio fragment for virtio targets
Bruce Ashfield [Mon, 27 Feb 2017 03:10:04 +0000 (22:10 -0500)]
linux-yocto-dev: add virtio fragment for virtio targets

Other linux-yocto recipes have the virtio fragment added to qemu* targets.
If you plan on booting a kernel with qemu, we need these options .. or
things like the virtual disk won't be present.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibc-headers: introduce 4.10 and set as default
Bruce Ashfield [Mon, 27 Feb 2017 03:10:03 +0000 (22:10 -0500)]
libc-headers: introduce 4.10 and set as default

The 4.10 kernel has been released, so we can bump our libc-headers
to match.

We also drop the 4.9 headers, since we only want one variant in the
tree.

Tested against glibc and muslc core-image* variants.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: introduce 4.10 recipes
Bruce Ashfield [Mon, 27 Feb 2017 03:10:02 +0000 (22:10 -0500)]
linux-yocto: introduce 4.10 recipes

The 4.10 kernel has been released, so we introduce the linux-yocto
variant.

This version supercedes the 4.4 and 4.8 versions in the tree, leaving us
with 4.1 (LTSI), 4.9 (LTS) and 4.10 (most recent) as the three active
versions.

Build tested against all qemu variants, core-image-kernel-dev + sato,
with musl and glibc as the C libraries.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestsdk: Fix lockfile patch
Richard Purdie [Fri, 3 Mar 2017 12:20:17 +0000 (12:20 +0000)]
testsdk: Fix lockfile patch

In the previous lock removal patch I mixed up the two tasks and broke sdk
testing. Fix this by removing locks for both sdk and extsdk.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_ext_sdk: Merge auto.conf into local.conf
Richard Purdie [Fri, 3 Mar 2017 11:13:00 +0000 (11:13 +0000)]
populate_ext_sdk: Merge auto.conf into local.conf

auto.conf is included before local.conf. Instead of keeping them separate, merge
them into the extsdk local.conf. As it happens we can do this quite neatly, more
neatly than the current code IMO and it makes the configuration easier for the end
user to understand too.

This means auto.conf is then available for the testsdk code to use for testing
purposes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_ext_sdk: Append to SSTATE_MIRRORS
Richard Purdie [Fri, 3 Mar 2017 11:12:09 +0000 (11:12 +0000)]
populate_ext_sdk: Append to SSTATE_MIRRORS

We need to appent to SSTATE_MIRRORS in case other areas of code are also
setting the variable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestsdk: Drop lockfile usage
Richard Purdie [Fri, 3 Mar 2017 10:58:49 +0000 (10:58 +0000)]
testsdk: Drop lockfile usage

We should be able to test sdks in parallel. As far as I can tell, this
restriction crept in for no good reason, based on locks that testimage used
for the non-qemu case.

Therefore remove the lock and allow sdks to test in parallel.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext/devtool: Ensure dependencies for test_extend_autotools_recipe_creation...
Richard Purdie [Fri, 3 Mar 2017 10:57:49 +0000 (10:57 +0000)]
oeqa/sdkext/devtool: Ensure dependencies for test_extend_autotools_recipe_creation are present

test_extend_autotools_recipe_creation needs libxml2 so ensure this is
installed/present as it may not be in the minimal eSDK case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: Allow whitespace only mirror entries
Richard Purdie [Fri, 3 Mar 2017 00:12:49 +0000 (00:12 +0000)]
sanity: Allow whitespace only mirror entries

Forcing the use of "\n" in mirror variables is pointless, we can just require that
there are pairs of values. With the bitbake restriction relaxed, we can relax
the sanity check too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestsdk: Use auto.conf instead of local.conf to set SSTATE_MIRROR
Richard Purdie [Thu, 2 Mar 2017 15:24:45 +0000 (15:24 +0000)]
testsdk: Use auto.conf instead of local.conf to set SSTATE_MIRROR

The local.conf file can get overritten and changed by the SDK so (ab)use
auto.conf instead to ensure our configuration tweaks get applied.

Also ensure we append to any other configured SSTATE_MIRROR variable
that already exists.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa-estsdk-toolchain: use WORKDIR instead of D to hold locked-sigs
Ross Burton [Thu, 2 Mar 2017 14:16:05 +0000 (14:16 +0000)]
meta-estsdk-toolchain: use WORKDIR instead of D to hold locked-sigs

do_locked_sigs() uses ${D} to hold a file as input to the sstate staging code.
Generally this isn't a problem as it happens after packaging, but sometimes (if
the recipe is rebuild, perhaps) do_package() will see the file inside ${D} and
fail because there is an uninstalled file.

Solve this by using a directory under ${WORKDIR} so it can't be packaged.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocore-image-lsb-sdk: Lower IMAGE_OVERHEAD_FACTOR
Richard Purdie [Wed, 1 Mar 2017 23:07:15 +0000 (23:07 +0000)]
core-image-lsb-sdk: Lower IMAGE_OVERHEAD_FACTOR

We're on the margin of the 4GB size limit for certain image types with
this configuration. This is a temporary workaround to avoid total
failures whilst we figure out better ways to save space. On such a
large image, the standard 1.3 is large and 1.2 is reasonable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext: don't skip tests if there isn't a toolchain
Ross Burton [Wed, 1 Mar 2017 12:13:50 +0000 (12:13 +0000)]
oeqa/sdkext: don't skip tests if there isn't a toolchain

Skipping the tests if a toolchain wasn't installed out of the box (for example,
a minimal eSDK) doesn't make sense as the first thing the tests should do is
install a toolchain.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext/devtool: use finally instead of repeating cleanup
Ross Burton [Wed, 1 Mar 2017 12:21:34 +0000 (12:21 +0000)]
oeqa/sdkext/devtool: use finally instead of repeating cleanup

Use the finally: block to always to cleanup.

Now that the test harness in testsdk.bbclass has monkey-patched
CalledProcessException to display the output we don't need to do that in the
test case.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: add output to subprocess exceptions
Ross Burton [Wed, 1 Mar 2017 12:07:44 +0000 (12:07 +0000)]
oeqa: add output to subprocess exceptions

Out of the box subprocess.CalledProcessError.__str__() just displays the command
and exit code, which isn't very useful for debugging.

Add a function to oeqa.utils.subprocesstweak to monkey-patch __str__() so that
it can also display the value of stdout and stderr.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/esdk/devtool: clean setUpClass/tearDownClass
Ross Burton [Wed, 1 Mar 2017 12:17:27 +0000 (12:17 +0000)]
oeqa/esdk/devtool: clean setUpClass/tearDownClass

These methods are class not instance methods, so the argument should be cls not
self.

Also don't put variables into cls that we don't need there.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest: Drop http sstate sharing
Richard Purdie [Wed, 1 Mar 2017 15:16:44 +0000 (15:16 +0000)]
oeqa/selftest: Drop http sstate sharing

Using httpServer from python for sharing sstate is known to be buggy, it can't
cope with the number/type of requests coming from bitbake and quietly fails
to share files.

This causes intermittent build failures which are hard to debug. We can
use a file:// url for the sstate mirror instead, removing the need for
the http server.

The sdk-update test is simply dropped since the SDK is never published
to this location and hence it would never have any update. Its equiavalent
to pointing at an empty web server. There is a better eSDK update test in
testsdk so rather than improve this one, lets drop it and concentrate on
the one there.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: Allow generation of meta-extsdk-toolchain even for minimal SDKs
Richard Purdie [Wed, 1 Mar 2017 14:47:50 +0000 (14:47 +0000)]
populate_sdk_ext: Allow generation of meta-extsdk-toolchain even for minimal SDKs

If you build a minimal eSDK currently, you don't build meta-extesdk-toolchain
even if you will have built most of its dependencies. This means when you try
and install a toolchain into the eSDK, it fails, breaking our automated testing
of the eSDK.

Therefore add the dependency unconditionally even when a minimal eSDK is being
built and allow the automated testing to work.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext/context: Work around broken dependency checks to get sdk tests running
Richard Purdie [Wed, 1 Mar 2017 14:45:46 +0000 (14:45 +0000)]
oeqa/sdkext/context: Work around broken dependency checks to get sdk tests running

This is admitted a bit of a hack but it does allow a number of significant sdk
tests to run successfully and hence improves testing of eSDK which is good.

I'm therefore proposing we do this until we come up with a better solution
since the current lack of testing is worrying and would have caught other issues
had it been present.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqs/sdk*/case: Use universal_newlines for subprocess calls
Richard Purdie [Wed, 1 Mar 2017 11:03:56 +0000 (11:03 +0000)]
oeqs/sdk*/case: Use universal_newlines for subprocess calls

This removes the need for some of the ugly decode calls with hardcoded
locales.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext: Ensure we run a deterministic set of tests
Richard Purdie [Wed, 1 Mar 2017 10:59:13 +0000 (10:59 +0000)]
oeqa/sdkext: Ensure we run a deterministic set of tests

The directory list of sdk tests to run can vary so this code effectively selects
a random set of SDK tests to run in the eSDK. We want to attemp all the SDK tests
so remove the element selection.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool/sdk: Run build-sysroots after installing new things
Richard Purdie [Wed, 1 Mar 2017 01:13:34 +0000 (01:13 +0000)]
devtool/sdk: Run build-sysroots after installing new things

After running sdk-install we need to ensure that the standalone sysroots are
updated as done when the eSDK is originally built. Add such a call so this
happens automatically and the envrionment scripts in the SDK work correctly
after updates.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestsdk: Handle minimal eSDK and avoid download costs
Richard Purdie [Wed, 1 Mar 2017 01:12:10 +0000 (01:12 +0000)]
testsdk: Handle minimal eSDK and avoid download costs

When using a minimal eSDK, testing currently fails as the sdk isn't
populated. We therefore setup the eSDK under test to point at local
sstate and execute a command to ensure the toolchain is populated
since most of the tests depend on this being present.

At the same time, add in a link to DL_DIR through own-mirrors so
that tests which fetch source (e.g. the kernel module one) can
use the local stash. This cuts test execution of the kernel module
test from 2000s to 120s.

We did try using DL_DIR directly but that causes uninative issues
requiring other workarounds so own-mirrors is neater.

Together these fixes unbreak eSDK testing on the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext/devtool: rename recipe name to match upstream
Ross Burton [Wed, 22 Feb 2017 09:54:36 +0000 (09:54 +0000)]
oeqa/sdkext/devtool: rename recipe name to match upstream

Call the generated recipe librdfa instead of bb-example to make it clearer what
is happening.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Upgrade 1.11.1 -> 2.0.0, separate libweston
Jussi Kukkonen [Wed, 22 Feb 2017 14:43:05 +0000 (16:43 +0200)]
weston: Upgrade 1.11.1 -> 2.0.0, separate libweston

* Drop two patches that are upstream. Rebase other patches.
* Separate libweston into its own package, modify the recipe
  as needed because files have changed location.
* Remove "--disable-rpi-compositor": the backend does not exist
  anymore.

Libweston is already at version 2 and is likely to have new major
versions. The versions should be parallel installable (but weston
itself will not be).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowayland: Upgrade 1.12.0 -> 1.13.0
Jussi Kukkonen [Wed, 22 Feb 2017 13:23:02 +0000 (15:23 +0200)]
wayland: Upgrade 1.12.0 -> 1.13.0

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoruby: upgrade 2.3.3 -> 2.4.0
Leonardo Sandoval [Tue, 21 Feb 2017 17:03:55 +0000 (11:03 -0600)]
ruby: upgrade 2.3.3 -> 2.4.0

Two LIC_FILES_CHKSUM checksums changed (COPYING and LEGAL) but LICENSE remains
the same.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibusb1: upgrade 1.0.20 -> 1.0.21
Leonardo Sandoval [Tue, 21 Feb 2017 17:20:44 +0000 (11:20 -0600)]
libusb1: upgrade 1.0.20 -> 1.0.21

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoffmpeg: use static package list
Andreas Oberritter [Thu, 16 Feb 2017 10:34:48 +0000 (11:34 +0100)]
ffmpeg: use static package list

Dynamic packaging isn't useful if every library needs to be
listed manually.

This also merges the -dev packages into a single ffmpeg-dev, as is typical.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinsane.bbclass: Add missing dependencies
Mariano Lopez [Tue, 21 Feb 2017 18:20:35 +0000 (12:20 -0600)]
insane.bbclass: Add missing dependencies

package_qa task requires some tools installed in sysroot; with
the introduction of recipe specific sysroot this task won't
have such tools installed if it's forced to run.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogenerate-manifest-2.7.py: fix python-tests rdepends
Ming Liu [Sun, 26 Feb 2017 08:05:11 +0000 (09:05 +0100)]
generate-manifest-2.7.py: fix python-tests rdepends

A potential flaw was introduced by commit a8dc4bc0:
[ python: fix python-tests rdepends ]

It made python-tests RDEPENDS on python-modules which is correct, but
this should be done in generate-manifest-2.7.py, and re-generate the
manifest.

Fixed by adding this dependency in generate-manifest-2.7.py as well.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogenerate-manifest-3.5.py: add logic to generate native manifest
Ming Liu [Sun, 26 Feb 2017 07:44:45 +0000 (08:44 +0100)]
generate-manifest-3.5.py: add logic to generate native manifest

python3-native supposes to RPROVIDE all native packages as added in
generate-manifest-3.5.py, but it does not so far, this leads a problem
that sometimes bitbake cant find a runtime provider for a python3-*-native
when a new runtime dependency on it being required, this usualy happens
after a new native python3-* recipe is created or the old native python3-*
recipes are upgraded.

To avoid manually extending RPROVIDE every time when a new runtime
dependency is introduced, an argument '-n/--native' is added to the
manifest generator, allowing it create a native python3 manifest, with a
RPROVIDE line only, the RPROVIDE should contain all the sub-packages.

The generated python-native-3.5-manifest.inc is also added which is
included by python3-native recipe.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogenerate-manifest-2.7.py: add logic to generate native manifest
Ming Liu [Sun, 26 Feb 2017 07:39:19 +0000 (08:39 +0100)]
generate-manifest-2.7.py: add logic to generate native manifest

python-native supposes to RPROVIDE all native packages as added in
generate-manifest-2.7.py, but it does not so far, this leads a problem
that sometimes bitbake cant find a runtime provider for a python-*-native
when a new runtime dependency on it being required, this usualy happens
after a new native python-* recipe is created or the old native python-*
recipes are upgraded.

To give a example, the following commit is trying to address such a issue:
commit 4583cd1bb15306e8f0ab7bcd80732e6f35aa4533:
[ python-native: Make python-native also RPROVIDE python-unittest-native ]

To avoid manually extending RPROVIDE every time when a new runtime
dependency is introduced, an argument '-n/--native' is added to the
manifest generator, allowing it create a native python manifest, with a
RPROVIDE line only, the RPROVIDE should contain all the sub-packages.

The generated python-native-2.7-manifest.inc is also added which is
included by python-native recipe.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobase.bbclass: Fix OE_IMPORTS
Joshua Watt [Sun, 26 Feb 2017 21:58:19 +0000 (15:58 -0600)]
base.bbclass: Fix OE_IMPORTS

Udpate OE_IMPORTS to include oe.license because it is being used.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooelib/buildhistory.py: Add unittest for buildhistory_analysis
Humberto Ibarra [Mon, 27 Feb 2017 16:49:09 +0000 (10:49 -0600)]
oelib/buildhistory.py: Add unittest for buildhistory_analysis

The buildhistory_analysis module (in which buildhistory-diff is
based) was lacking unittest for its functions. Created selftest
module for this and a few testcases to cover basic cases.

[YOCTO #10727]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/core/loader.py: Avoid importing tests with built-ins name
Mariano Lopez [Mon, 27 Feb 2017 07:45:01 +0000 (07:45 +0000)]
oeqa/core/loader.py: Avoid importing tests with built-ins name

If importing a test with the same name as a built-in module,
it will silently import the built-in and check for tests in
built-in module. This happened with syslog module in debian
based machines, so add a raise to avoid this behavior.

[YOCTO #10978]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/core/loader.py: Give meaningful error when failed to load classes
Mariano Lopez [Mon, 27 Feb 2017 07:45:00 +0000 (07:45 +0000)]
oeqa/core/loader.py: Give meaningful error when failed to load classes

With this we get the class that is actually having the problem,
not just a TypeError with an unknown class causing the error.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowireless-tools: Update URLs
Jussi Kukkonen [Mon, 27 Feb 2017 14:14:12 +0000 (16:14 +0200)]
wireless-tools: Update URLs

wireless-tools is now hosted on
https://hewlettpackard.github.io/wireless-tools/Tools.html

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest: Optimize get_bb_var use
Mariano Lopez [Tue, 21 Feb 2017 14:33:08 +0000 (14:33 +0000)]
selftest: Optimize get_bb_var use

get_bb_var calls bitbake every time it is used and every call
would take about 7 seconds. There are tests that calls get_bb_var
several times when they can use get_bb_vars. Also there are tests
that calls it to fetch the same variable over and over again.

This will optimize the use of get_bb_var and get_bb_vars for a
little speed up in the tests.

[YOCTO #11037]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoperl-native: Remove usage of -fstack-protector=strong
Aníbal Limón [Thu, 1 Dec 2016 16:34:25 +0000 (10:34 -0600)]
perl-native: Remove usage of -fstack-protector=strong

Some distributions (like opensuse421) supported by the project
comes with older gcc releases, -fstack-protector=strong is supported
by GCC>=4.9.

This causes a build failure when install perl-native from a sstate that
comes from a machine supporting -fstack-protector=strong [1].

So disable usage of this flag in perl-native builds, this patch could
be removed when all supported distros comes with GCC>=4.9.

[YOCTO #10338]

[1] http://errors.yoctoproject.org/Errors/Details/109589/

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer: update to 1.10.4
Maxin B. John [Fri, 24 Feb 2017 16:07:08 +0000 (18:07 +0200)]
gstreamer: update to 1.10.4

bug-fix release:
 *) Various fixes for crashes, assertions, deadlocks and memory leaks on
fuzzed input files and in other situations (CVE-2017-5847, CVE-2017-5848)
 *) gst-libav was updated to ffmpeg 3.2.4, fixing a couple of CVEs

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoiproute2: upgrade to 4.10.0
Maxin B. John [Fri, 24 Feb 2017 16:07:07 +0000 (18:07 +0200)]
iproute2: upgrade to 4.10.0

4.9.0 -> 4.10.0

added the following patch to fix build with musl libc
 1) 0001-libc-compat.h-add-musl-workaround.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython3-pip: RDEPEND on python3-html.
Ismo Puustinen [Fri, 24 Feb 2017 15:32:58 +0000 (17:32 +0200)]
python3-pip: RDEPEND on python3-html.

Without this pip3 fails with "ImportError: No module named 'html'"

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotar: CVE-2016-6321
Sona Sarmadi [Fri, 24 Feb 2017 12:49:18 +0000 (13:49 +0100)]
tar: CVE-2016-6321

Skip members whose names contain "..".

Reference:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6321

Upstream patch:
http://git.savannah.gnu.org/cgit/tar.git/commit/?id=7340f67b9860ea0531c1450e5aa261c50f671

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuildstats.bbclass: Avoid index exception in /proc/PID/io parsing
Pavel Modilaynen [Fri, 24 Feb 2017 10:22:20 +0000 (11:22 +0100)]
buildstats.bbclass: Avoid index exception in /proc/PID/io parsing

There is some probability (depends on system load) to get empty
or line containing "0" as the last line while reading /proc/PID/io.
Avoid build failure by checking if line contains separator
":" before split.

Signed-off-by: Pavel Modilaynen <pavelmn@axis.com>
Signed-off-by: Daniel Lublin <daniel@lublin.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowebkitgtk: update to 2.14.5
Alexander Kanavin [Fri, 24 Feb 2017 08:42:30 +0000 (10:42 +0200)]
webkitgtk: update to 2.14.5

Remove a reference to WebKit/LICENSE, as the directory is not there anymore
(and the LICENSE file in it hasn't been moved somewhere else) - it was
a relic of webkit 1.x era.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemtap: update to 3.1
Alexander Kanavin [Fri, 24 Feb 2017 16:02:03 +0000 (18:02 +0200)]
systemtap: update to 3.1

Removed patches are in upstream.

Rebase monitor-option.patch and no-msgfmt-check.patch

Add support for python 3 probes
(this necessitates the 0001-Do-not-let-configure-write-a-python-location-into-th.patch
and the Add 0001-Install-python-modules-to-correct-library-dir.patch to
install python modules to correct destination).

Add perl to RDEPENDS to fix a QA warning about one of the installed files.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoltp: upgrade to 20170116
Dengke Du [Wed, 22 Feb 2017 10:04:50 +0000 (05:04 -0500)]
ltp: upgrade to 20170116

1. Upgrade ltp from 20160126 to 20170116.

2. Delete some patches because these have been integrated in upstream.

0001-ltp-Don-t-link-against-libfl.patch
0006-sendfile-Use-off64_t-instead-of-__off64_t.patch
0007-replace-SIGCLD-with-SIGCHLD.patch
0009-Guard-error.h-with-__GLIBC__.patch
0012-fsstress.c-Replace-__int64_t-with-int64_t.patch
0013-include-fcntl.h-for-getting-O_-definitions.patch
0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch
0015-mincore01-Rename-PAGESIZE-to-pagesize.patch
0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch
0017-replace-sigval_t-with-union-sigval.patch
0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch
0022-include-sys-types.h.patch
0029-trace_shed-Fix-build-with-musl.patch
0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch
0032-regen.sh-Include-asm-unistd.h-explicitly.patch
0037-containers-netns_netlink-Avoid-segmentation-fault.patch
0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch
0040-containers-userns05-use-unsigned-int-for-ns-id.patch

3. Add new patch based on Khem Raj's 0007-replace-SIGCLD-with-SIGCHLD.patch

0001-add-_GNU_SOURCE-to-pec_listener.c.patch

4. Add new patches fix building errors with musl:

0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch
0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch
0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch

   Add new patch fix building errors, when the distro is poky-lsb

0012-fix-faccessat01.c-build-fails-with-security-flags.patch

5. Modify some patches because the upstream contains changes, those patches
   maybe failed when they apply to the new version of ltp.

0011-Rename-sigset-variable-to-sigset1.patch
0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch
0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
0035-fix-test_proc_kill-hang.patch

6. Rename and modify this patch.

fcntl-fix-the-time-def-to-use-time_t.patch to
0039-fcntl-fix-the-time-def-to-use-time_t.patch

7. The new version of ltp add the checking for ksh and csh, we doesn't support
   ksh and csh in oe-core, so remove the checking files when the system executes
   do_install function.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoed: update to 1.14.1
Alexander Kanavin [Wed, 22 Feb 2017 14:51:08 +0000 (16:51 +0200)]
ed: update to 1.14.1

Revert to the upstream server, now that we can handle .lz files.
License checksum changes are due to copyright years.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolzip: add a recipe from meta-oe
Alexander Kanavin [Wed, 22 Feb 2017 14:51:07 +0000 (16:51 +0200)]
lzip: add a recipe from meta-oe

ed tarballs are now available only in .lz format, which saves them
an amazing 30 kilobytes over gz.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglib-2.0/glib.inc: If 'charset.alias' exists drop it
Nathan Rossi [Wed, 22 Feb 2017 05:58:57 +0000 (15:58 +1000)]
glib-2.0/glib.inc: If 'charset.alias' exists drop it

Delete the 'charset.alias' file during the do_install task if it exists.
This file is not shipped in any packages and on the targets that it is
generated (musl and mingw32) it is undesired.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglib-2.0/glib.inc: Only apply MLPREFIX renaming to class-target
Nathan Rossi [Wed, 22 Feb 2017 05:58:57 +0000 (15:58 +1000)]
glib-2.0/glib.inc: Only apply MLPREFIX renaming to class-target

When renaming the 'gio-querymodules' binary to prefix with the current
MLPREFIX, only do this for target packages where the MLPREFIX makes
sense. This skips renaming for nativesdk targets which have MLPREFIX set
to 'nativesdk-'.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>