]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agopackage_manager.py: fix the message used to catch failing postinsts from dnf
Alexander Kanavin [Wed, 21 Nov 2018 13:57:27 +0000 (14:57 +0100)]
package_manager.py: fix the message used to catch failing postinsts from dnf

Latest dnf versions have tweaked it.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibcomps: add a patch to fix the missing crc32 symbol error under musl
Alexander Kanavin [Wed, 21 Nov 2018 13:57:26 +0000 (14:57 +0100)]
libcomps: add a patch to fix the missing crc32 symbol error under musl

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodnf: update to 4.0.4
Alexander Kanavin [Wed, 21 Nov 2018 13:57:25 +0000 (14:57 +0100)]
dnf: update to 4.0.4

License-Update: spelling fixes

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsolv: update to 0.7.1
Alexander Kanavin [Wed, 21 Nov 2018 13:57:24 +0000 (14:57 +0100)]
libsolv: update to 0.7.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibrepo: update to 1.9.2
Alexander Kanavin [Wed, 21 Nov 2018 13:57:23 +0000 (14:57 +0100)]
librepo: update to 1.9.2

expat dependency has been replaced by libxml

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorpm: update to 4.14.2.1
Alexander Kanavin [Wed, 21 Nov 2018 13:57:22 +0000 (14:57 +0100)]
rpm: update to 4.14.2.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdnf: update to 0.22.0
Alexander Kanavin [Wed, 21 Nov 2018 13:57:21 +0000 (14:57 +0100)]
libdnf: update to 0.22.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa/icecc.bbclass: Update system blacklists
Joshua Watt [Tue, 20 Nov 2018 20:04:16 +0000 (14:04 -0600)]
meta/icecc.bbclass: Update system blacklists

Updates the system blacklists to include packages that are known to have
problems compiling under icecream

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa/icecc.bbclass: Move system blacklist to variables
Joshua Watt [Tue, 20 Nov 2018 20:04:15 +0000 (14:04 -0600)]
meta/icecc.bbclass: Move system blacklist to variables

The system blacklists are moved to variables which are ignore when
hashing. This prevents changes to the blacklists from causing all
taskhashes to change (and thus rebuild).

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxcb-proto: use python3native to have reproducible pyc files
Ross Burton [Tue, 20 Nov 2018 15:18:44 +0000 (15:18 +0000)]
xcb-proto: use python3native to have reproducible pyc files

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agojson-glib: add ptest
Ross Burton [Tue, 20 Nov 2018 15:17:45 +0000 (15:17 +0000)]
json-glib: add ptest

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibinput: 1.12.1 -> 1.12.3
Ross Burton [Tue, 20 Nov 2018 11:12:53 +0000 (11:12 +0000)]
libinput: 1.12.1 -> 1.12.3

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoharfbuzz: upgrade 1.9.0 -> 2.1.3
Ross Burton [Tue, 20 Nov 2018 11:12:52 +0000 (11:12 +0000)]
harfbuzz: upgrade 1.9.0 -> 2.1.3

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: Use a legal bad address for mips in setrlimit05.c
Hongzhi.Song [Tue, 20 Nov 2018 09:42:51 +0000 (01:42 -0800)]
ltp: Use a legal bad address for mips in setrlimit05.c

This testcase fails on mips32. The process is killed by SIGBUS which
is not as expect.

This is because:
((void *)-1) is not a legal bad address which causes the process
killed by SIGBUG on mips.

'tst_get_bad_addr()' returns an address that should works on mips
and other arches.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: Delete unneeded patch for FNM_EXTMATCH
Daniel Díaz [Mon, 19 Nov 2018 22:07:20 +0000 (16:07 -0600)]
ltp: Delete unneeded patch for FNM_EXTMATCH

The patch in question was reworked, merged and released by
upstream version 20180926, as commit 822ad2043379.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers.inc: add libmodulemd entry
Alexander Kanavin [Mon, 19 Nov 2018 15:39:48 +0000 (16:39 +0100)]
maintainers.inc: add libmodulemd entry

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibmodulemd: add a new recipe
Alexander Kanavin [Mon, 19 Nov 2018 15:08:05 +0000 (16:08 +0100)]
libmodulemd: add a new recipe

This is a hard requirement of the new libdnf versions.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/testsdk: Split implementation into classes
Joshua Watt [Mon, 19 Nov 2018 18:11:13 +0000 (12:11 -0600)]
classes/testsdk: Split implementation into classes

Splits the SDK test implementation into configurable Python classes. The
classes used for the normal and extensible SDKs are
${TESTSDK_CLASS_NAME} and ${TESTSDKEXT_CLASS_NAME} respectively.

This allows SDK machines to override the classes used to implement the
tests. For the traditional SDK, a common "run()" function is provided by
the class (oeqa.sdk.testsdk.TestSDK), with several hook member functions
that can be overridden in child classes, making it easier to have
consistent behavior. The extensible SDK class
(oeqa.sdkext.testsdk.TestSDKEXT) also has a common "run()" function, but
no hooks have yet been added as there is not currently a known use case
for create derived classes.

These changes should be purely organizational; no functional changes
have been made to either the standard SDK or extensible SDK tests.

[YOCTO #13020]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoapt: Improve SRC_URI
Richard Purdie [Mon, 19 Nov 2018 15:38:23 +0000 (15:38 +0000)]
apt: Improve SRC_URI

Use PV and BPN in SRC_URI as a minor improvement.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopseudo: fix link of sqlite3 using pkg-config
Jens Rehsack [Sun, 18 Nov 2018 18:36:46 +0000 (19:36 +0100)]
pseudo: fix link of sqlite3 using pkg-config

If sqlite3 is built with FTS5 it uses log() from libm, it sqlite3 is built
with READLINE it uses tgetent from a curses lib and readline from libreadline,
if it is built using deflate from libz ... , but all that linkage is lost
if we manually statically link so explicitely extract extra static linking
options from pkg-config and force them into pseudo as well.

This commit obsoletes (so include the implicit revert)
    e39fec613d pseudo: fix link with new sqlite3

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosqlite3: Update 3.25.2 -> 3.25.3
Jens Rehsack [Sun, 18 Nov 2018 18:36:31 +0000 (19:36 +0100)]
sqlite3: Update 3.25.2 -> 3.25.3

Update SQLite3 from 3.25.2 to 3.25.3 to fix following issues:

* Disallow the use of window functions in the recursive part of a CTE.
* Fix the behavior of typeof() and length() on virtual tables.
* Strengthen defenses against deliberately corrupted database files.
* Fix a problem in the query planner that results when a row-value
  expression is used with a PRIMARY KEY with redundant columns.
* Fix the query planner so that it works correctly for IS NOT NULL
  operators in the ON clause of a LEFT JOIN with the
  SQLITE_ENABLE_STAT4 compile-time option.

Also introduce PACKAGECONFIG tunables to enable/disable e.g. index
and search functions to allow shrinking the library for very small
targets.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: backport fix to stop enabling ECN
Alex Kiernan [Sun, 18 Nov 2018 07:28:20 +0000 (07:28 +0000)]
systemd: backport fix to stop enabling ECN

>From upstream:

  Turning on ECN still causes slow or broken network on linux. Our tcp
  is not yet ready for wide spread use of ECN.

https://github.com/systemd/systemd/issues/9748

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo-target.inc: fix go not found while multilib enabled
Hongxu Jia [Mon, 19 Nov 2018 13:34:56 +0000 (08:34 -0500)]
go-target.inc: fix go not found while multilib enabled

Go binaries were installed to ${libdir}/go/bin, and create symlink
in ${bindir}, while enabling multilib, libdir was extended (such as
/usr/lib64), but BASELIB was not (still /lib), so use
baselib (such as /lib64)) to replace

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: port cross-compilation support to meson
Alexander Kanavin [Mon, 19 Nov 2018 14:55:42 +0000 (15:55 +0100)]
gobject-introspection: port cross-compilation support to meson

Also add a missing libdl dependency to the native relocation patch,
which was not necessary with autotools.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: do not manipulate the environment when looking for python via pkg-config
Alexander Kanavin [Mon, 19 Nov 2018 14:55:41 +0000 (15:55 +0100)]
meson: do not manipulate the environment when looking for python via pkg-config

meson does it in a way that breaks oe builds (they export a bunch of PKG_CONFIG_ variables)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokexec-tools: update to 2.0.18
Armin Kuster [Mon, 19 Nov 2018 14:41:57 +0000 (06:41 -0800)]
kexec-tools: update to 2.0.18

Drop patch included
0001-kexec-fix-for-Unhandled-rela-relocation-R_X86_64_PLT.patch

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11: move hashes to inc
Armin Kuster [Mon, 19 Nov 2018 14:41:56 +0000 (06:41 -0800)]
libx11: move hashes to inc

This should help keep libx11 and libx11-diet in sync
by throwing an error when building

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11-diet: update to 1.6.7
Armin Kuster [Mon, 19 Nov 2018 14:41:55 +0000 (06:41 -0800)]
libx11-diet: update to 1.6.7

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: update to 3.40
Armin Kuster [Mon, 19 Nov 2018 14:41:54 +0000 (06:41 -0800)]
nss: update to 3.40

see: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.40_release_notes

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: update to 7.62.0
Armin Kuster [Mon, 19 Nov 2018 14:41:53 +0000 (06:41 -0800)]
curl: update to 7.62.0

Drop all CVE patches now included in update.

For details see: https://curl.haxx.se/changes.html

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptest
Richard Purdie [Mon, 19 Nov 2018 15:24:09 +0000 (15:24 +0000)]
lttng-tools: Upgrade 2.9.5 -> 2.10.5 and improve ptest

A backported patch was removed.

The kmod option changed format in the new version so was adjusted accordingly.

The ptest package was improved to resolve failures in the tests/unit/
directory but disabling attempts to rebuild the binaries on target.

Various ptest libtool script wrappers are now replaced with real binaries
and since the test suite knows about these paths for dymanic libraries,
we put links in place for those.

A data file needed by one of the tests is also copied in.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-tools: Improve ptest robustness
Richard Purdie [Mon, 19 Nov 2018 15:14:11 +0000 (15:14 +0000)]
lttng-tools: Improve ptest robustness

There are some fatal make errors that occur from the current ptest
for lttng-tools however since other tests are successful, those make
build failures were being ignored.

When upgrading, the order of test execution changed and the ptest failed
fatally straight away with the same errors.

Passing -k to make means it will try and run all the tests making the
test suite run more consistently over all lttng-tools versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonasm: Couple of recipe cleanups
Richard Purdie [Mon, 19 Nov 2018 15:28:49 +0000 (15:28 +0000)]
nasm: Couple of recipe cleanups

The do_install now matches that from autotools.bbclass.

Document that brokensep is still needed.

Use a better form of handling of aclocal.m4

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonasm: Upgrade 2.13.03 -> 2.14
Richard Purdie [Sat, 17 Nov 2018 17:19:41 +0000 (17:19 +0000)]
nasm: Upgrade 2.13.03 -> 2.14

The patches are all backports or have equivalent changes in the new
release so can be dropped.

Upstream reworked the install handling to use DESTDIR instead of INSTALLROOT
and we no longer need to create directories.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoofono: upgrade 1.24 -> 1.25
Ross Burton [Wed, 7 Nov 2018 14:22:25 +0000 (14:22 +0000)]
ofono: upgrade 1.24 -> 1.25

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomtools: upgrade 4.0.18 -> 4.0.19
Richard Purdie [Tue, 16 Oct 2018 04:11:52 +0000 (21:11 -0700)]
mtools: upgrade 4.0.18 -> 4.0.19

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibinput: upgrade 1.11.3 -> 1.12.1
Richard Purdie [Wed, 17 Oct 2018 00:05:22 +0000 (17:05 -0700)]
libinput: upgrade 1.11.3 -> 1.12.1

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibepoxy: upgrade 1.5.2 -> 1.5.3
Richard Purdie [Wed, 17 Oct 2018 01:42:52 +0000 (18:42 -0700)]
libepoxy: upgrade 1.5.2 -> 1.5.3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoat-spi2-core: upgrade 2.28.0 -> 2.30.0
Richard Purdie [Wed, 17 Oct 2018 01:55:27 +0000 (18:55 -0700)]
at-spi2-core: upgrade 2.28.0 -> 2.30.0

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-modules: upgrade 2.10.7 -> 2.10.8
Richard Purdie [Fri, 16 Nov 2018 21:42:03 +0000 (13:42 -0800)]
lttng-modules: upgrade 2.10.7 -> 2.10.8

Drop backported patch already applied upstream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-ust: upgrade 2.10.1 -> 2.10.2
Richard Purdie [Fri, 16 Nov 2018 22:10:18 +0000 (14:10 -0800)]
lttng-ust: upgrade 2.10.1 -> 2.10.2

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosubversion: upgrade 1.10.0 -> 1.11.0
Richard Purdie [Sat, 17 Nov 2018 13:07:02 +0000 (05:07 -0800)]
subversion: upgrade 1.10.0 -> 1.11.0

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoharfbuzz: upgrade 1.8.8->1.9.0
Hong Liu [Wed, 17 Oct 2018 00:40:16 +0000 (08:40 +0800)]
harfbuzz: upgrade 1.8.8->1.9.0

Upgrade harfbuzz from 1.8.8 to 1.9.0.

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoltp: Update to 20180926
Petr Vorel [Thu, 1 Nov 2018 17:47:18 +0000 (18:47 +0100)]
ltp: Update to 20180926

New patches
* 0001-statx-fix-compile-errors.patch

Rebased patches
* 0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch

Removed removed (accepted in upstream)
* 0041-cve-2017-5669-shmat-for-0-or-PAGESIZE-with-RND-flag-.patch
* 0042-fs-ftest-ftest06.c-Fix-too-small-name-string-and-rel.patch
* 0043-open-creat-skip-S_ISGID-check-on-files-created-by-no.patch

Removed patches (different fix accepted in upstream)
* 0001-mmap15-mips64-return-EINVAL.patch

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-python: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:42 +0000 (19:42 +0200)]
gstreamer1.0-python: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-omx: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:41 +0000 (19:42 +0200)]
gstreamer1.0-omx: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-vaapi: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:40 +0000 (19:42 +0200)]
gstreamer1.0-vaapi: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-rtsp-server: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:39 +0000 (19:42 +0200)]
gstreamer1.0-rtsp-server: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-libav: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:38 +0000 (19:42 +0200)]
gstreamer1.0-libav: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugin-ugly: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:37 +0000 (19:42 +0200)]
gstreamer1.0-plugin-ugly: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugin-bad: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:36 +0000 (19:42 +0200)]
gstreamer1.0-plugin-bad: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugin-good: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:35 +0000 (19:42 +0200)]
gstreamer1.0-plugin-good: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugin-base: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:34 +0000 (19:42 +0200)]
gstreamer1.0-plugin-base: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0: upgrade to version 1.14.3
Carlos Rafael Giani [Wed, 26 Sep 2018 17:42:33 +0000 (19:42 +0200)]
gstreamer1.0: upgrade to version 1.14.3

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibva: update 2.2.0 -> 2.3.0
Anuj Mittal [Fri, 16 Nov 2018 10:13:00 +0000 (18:13 +0800)]
libva: update 2.2.0 -> 2.3.0

>From release notes:

    Bump VA-API version to 1.3.0 and libva to 2.3.0
    Add max frame size parameters for multiple pass case in legacy mode
    Add new BRC mode AVBR
    Add new interface for High Dynamic Range tone mapping
    Add missing enum to string conversions
    Add hevc subsets parameters structure
    Add Customized Noise Reduction (HVS) interfaces
    Add new BRC mode definition QVBR
    Add more complete colour properties for use in VPP

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosanity: Add check for WSL
Richard Purdie [Fri, 16 Nov 2018 10:28:10 +0000 (10:28 +0000)]
sanity: Add check for WSL

Users are starting to expect OE to work under WSL which it doesn't. Add a warning to
tell them about this up front and manage expectations.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage: Enable autorunning of the package manager testsuites
Richard Purdie [Fri, 16 Nov 2018 09:39:30 +0000 (09:39 +0000)]
testimage: Enable autorunning of the package manager testsuites

Now that the hangs in httpservice are fixed we can let these tests
auto skip as appropriate.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/httpserver: Rework to avoid hangs and improve logging
Richard Purdie [Fri, 16 Nov 2018 09:33:28 +0000 (09:33 +0000)]
oeqa/utils/httpserver: Rework to avoid hangs and improve logging

testimage.bbclass installs a SIGTERM handler which conflicts with the
use of multiprocessing here. This is paritcularly problematic if the http
service is terminated before its started and hence before its had a chance
to reset the default signal handler (as the code was written).

Instead, temporarily remove testimage's handler whilst forking the http process
which means the correct handler is installed and won't deadlock.

Also take the opportunity to add in some log messages about the server start
and shutdown so that future debugging is easier and its clearer what the code
is doing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage/testsdk/selftest: Avoid platform.distro_identifier deprecation warnings
Richard Purdie [Thu, 15 Nov 2018 14:38:19 +0000 (14:38 +0000)]
testimage/testsdk/selftest: Avoid platform.distro_identifier deprecation warnings

Use our own lsb function instead as used elsewhere by the codebase.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/concurrencytest: Avoid unclosed file warnings
Richard Purdie [Thu, 15 Nov 2018 14:35:41 +0000 (14:35 +0000)]
oeqa/concurrencytest: Avoid unclosed file warnings

Avoid an unclosed file per thread warning when running selftests concurrently
by closing the result stream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts: Remove deprecated imp module usage
Richard Purdie [Thu, 15 Nov 2018 15:04:02 +0000 (15:04 +0000)]
scripts: Remove deprecated imp module usage

The imp module is deprecated, port the code over to use importlib
as recently done for bb.utils as well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: skip known bugs in ptest
Chen Qi [Thu, 15 Nov 2018 02:02:28 +0000 (10:02 +0800)]
busybox: skip known bugs in ptest

Set SKIP_KNOWN_BUGS in run-ptest script to skip ptest cases which
are known to relate to some known bugs.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovalgrind: update upstream patch status
Randy MacLeod [Thu, 15 Nov 2018 17:36:23 +0000 (12:36 -0500)]
valgrind: update upstream patch status

Two recent patches are now marked as reported in the
valgrind bugzilla.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowic: bootimg-efi: add a title source parameter
Ming Liu [Wed, 14 Nov 2018 19:05:31 +0000 (20:05 +0100)]
wic: bootimg-efi: add a title source parameter

Sometimes the users might want to change the title showing on UEFI
booting screen, so far it's hard-coded to 'boot'.

There is not a easy way to customize it in current design, I tried
firstly with '--configfile', but that does not work with --use-uuid,
since the later option will generate a UUID and write it to boot
config, only when the former option is not enabled.

So a new source parameter 'titile' is added in this patch, it defaults
to 'boot' to be consistent with the original title.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage.bbclass: add a missing blank
Ming Liu [Wed, 14 Nov 2018 19:04:59 +0000 (20:04 +0100)]
image.bbclass: add a missing blank

When calling d.appendVarFlag, a blank is needed or else it could mess
up the later appended variables.

Reported-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/package_manager: Avoid race problems when calling list_pkgs()
Richard Purdie [Thu, 15 Nov 2018 11:28:11 +0000 (11:28 +0000)]
lib/oe/package_manager: Avoid race problems when calling list_pkgs()

list_pkgs() for rpm calls RpmPM() which would try and create a copy of the
package feed. This can be called for example from buildhistory whilst some
other task may be working on an SDK or image construction, causing the package
feed to disappear part way through an operation.

Avoid the need to copy the package index just to list the installed
packages, avoiding the race.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner.py: Fix python regex warnings
Richard Purdie [Wed, 14 Nov 2018 11:34:02 +0000 (11:34 +0000)]
oeqa/utils/qemurunner.py: Fix python regex warnings

Fix the warnings:

meta/lib/oeqa/utils/qemurunner.py:250: DeprecationWarning: invalid escape sequence \.
  ips = re.findall("((?:[0-9]{1,3}\.){3}[0-9]{1,3})", cmdline.split("ip=")[1])
meta/lib/oeqa/utils/qemurunner.py:343: DeprecationWarning: invalid escape sequence \-
  if re.search("root@[a-zA-Z0-9\-]+:~#", output):
poky/meta/lib/oeqa/utils/qemurunner.py:350: DeprecationWarning: invalid escape sequence \-
  if re.search("root@[a-zA-Z0-9\-]+:~#", output):
meta/lib/oeqa/utils/qemurunner.py:448: DeprecationWarning: invalid escape sequence \-
  if re.search("[a-zA-Z0-9]+@[a-zA-Z0-9\-]+:~#", data):

by correctly marking the regexs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/context: Replace deprecated imp module usage
Richard Purdie [Wed, 14 Nov 2018 11:32:49 +0000 (11:32 +0000)]
oeqa/selftest/context: Replace deprecated imp module usage

Avoid the warning:

meta/lib/oeqa/selftest/context.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

In this case importlib is a direct replacement.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooepydevshell-internal.py: decode only when readdata is valid
Changqing Li [Wed, 14 Nov 2018 09:46:03 +0000 (17:46 +0800)]
oepydevshell-internal.py: decode only when readdata is valid

fix below problem:
pydevshell raises exception when maximize the python shell window.
when click maximize, rlist of select return ready object, but the
pty.read is None, so throw exception of 'NoneType' object has no
attribute 'decode', change to only decode when readdata is valid.

[YOCTO #11875]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomodule.bbclass: Add INSTALL_FW_PATH for out-of-tree modules
Wes Lindauer [Wed, 14 Nov 2018 18:40:56 +0000 (13:40 -0500)]
module.bbclass: Add INSTALL_FW_PATH for out-of-tree modules

This same variable was added to the make line in kernel.bbclass in
0decf1cc1c35dd70f3b822e3b4291a810a319ba0. With the addition of the
usrmerge feature, out-of-tree modules could use this same variable.

Signed-off-by: Wes Lindauer <wesley.lindauer@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: Provide /bin/ash when usrmerge is enabled
Wes Lindauer [Wed, 14 Nov 2018 21:52:37 +0000 (16:52 -0500)]
busybox: Provide /bin/ash when usrmerge is enabled

When usrmerge is enabled, scripts that were explicitly using #!/bin/ash
will cause a QA Error like the following:

QA Issue: bar.sh contained in package foo requires /bin/ash,
but no providers found in RDEPENDS_foo? [file-rdeps].

It seems perfectly acceptable for scripts to use /bin/ash so provide
it along with /bin/sh.

Signed-off-by: Wes Lindauer <wesley.lindauer@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agochecklayer: generate locked-sigs.inc under builddir
Changqing Li [Thu, 15 Nov 2018 08:16:55 +0000 (16:16 +0800)]
checklayer: generate locked-sigs.inc under builddir

yocto-check-layer will find locked-sigs.inc under builddir,
but locked-sigs.inc is generated under current bitbake working
dir. if run yocto-check-layer outside builddir, we will met error
like "No such file or directory: *locked-sigs.inc". change to
run bitbake -S under builddir to fix this problem.

[YOCTO #12973]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogettext: fix CVE-2018-18751
Kai Kang [Wed, 14 Nov 2018 05:46:32 +0000 (00:46 -0500)]
gettext: fix CVE-2018-18751

Backport patch to fix CVE-2018-18751 for gettext. Because po-gram-gen.y
has been modified by fix-CVE-2018-18751.patch, it requires yacc which
provided by bison-native to re-create po-gram-gen.c. Please remove
bison-native from DEPENDS* when next upgrade.

Ref:
https://security-tracker.debian.org/tracker/CVE-2018-18751

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscons.bbclass: fix indention
Andreas Müller [Tue, 13 Nov 2018 10:17:29 +0000 (11:17 +0100)]
scons.bbclass: fix indention

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscons.bbclass: Force rebuild if necessary
Andreas Müller [Tue, 13 Nov 2018 10:17:28 +0000 (11:17 +0100)]
scons.bbclass: Force rebuild if necessary

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotcf-agent: Disable architecture-specific features for ARC
Alexey Brodkin [Mon, 12 Nov 2018 20:48:00 +0000 (23:48 +0300)]
tcf-agent: Disable architecture-specific features for ARC

There's no support of architecture-specific features for ARC
in tcf-agent, so disable non-generic stuff for now.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agox264: Disable asm on x86
Mingli Yu [Mon, 12 Nov 2018 09:27:42 +0000 (01:27 -0800)]
x264: Disable asm on x86

The previous commit as below only fixes the
textrel issue with musl on x86, update it also to
fix the issue such as with glibc on x86.
74ea4f280c1 x264: Disable asm on musl/x86

[YOCTO #11770]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorpcbind: 0.2.4 -> 1.2.5
Hongxu Jia [Tue, 13 Nov 2018 03:14:26 +0000 (11:14 +0800)]
rpcbind: 0.2.4 -> 1.2.5

- Drop backport fixes
  0001-rpcbind-pair-all-svc_getargs-calls-with-svc_freeargs.patch
  pmapproc_dump-Fixed-typo-in-memory-leak-patch.patch
  rpcbproc_callit_com-Stop-freeing-a-static-pointer.patch

- Do not manually move binaries from bindir to sbindir,
  the upstream already moved rpcbind from bin_PROGRAMS
  to sbin_PROGRAMS in Makefile.am
  https://git.linux-nfs.org/?p=steved/rpcbind.git;a=commitdiff;h=9afccfcd5ab350d6bc72622f3d1ccfb9e54652b0

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobluez5: add mesh dependency on ell
Peter A. Bigot [Tue, 13 Nov 2018 18:06:20 +0000 (12:06 -0600)]
bluez5: add mesh dependency on ell

Introduced at or before 5.50.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/commands: Avoid unclosed file warnings
Richard Purdie [Tue, 13 Nov 2018 22:43:25 +0000 (22:43 +0000)]
oeqa/utils/commands: Avoid unclosed file warnings

Avoid warnings such as:

meta/lib/oeqa/utils/commands.py:213: ResourceWarning: unclosed file <_io.BufferedReader name=4>
  return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/core/runner: Correctly markup regexs
Richard Purdie [Tue, 13 Nov 2018 22:41:38 +0000 (22:41 +0000)]
oeqa/core/runner: Correctly markup regexs

Avoid the warning "DeprecationWarning: invalid escape sequence \(" by marking
the regexs correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/loader: Fix deprecation warning
Richard Purdie [Tue, 13 Nov 2018 21:16:54 +0000 (21:16 +0000)]
oeqa/loader: Fix deprecation warning

Clean up the warning:
meta/lib/oeqa/core/loader.py:27: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  _failed_test_args = inspect.getargspec(unittest.loader._make_failed_test).args

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runner: Sort the test result output by result class
Richard Purdie [Tue, 13 Nov 2018 21:11:50 +0000 (21:11 +0000)]
oeqa/runner: Sort the test result output by result class

We want to see failures/errors listed last since this is the most easily
visible part of the log on consoles or autobuilder output and makes
human processing easier rather than having to scroll up and scan for
a single failure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runner: Always show a summary of success/fail/error/skip counts
Richard Purdie [Tue, 13 Nov 2018 21:10:43 +0000 (21:10 +0000)]
oeqa/runner: Always show a summary of success/fail/error/skip counts

Its useful to have the counts of success/failure/error/skipped at the end of the
results to allow for easier human reading of what happened.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolicense_image: Fix rootfs file ownership issues with COPY_LIC_DIRS
Richard Purdie [Tue, 13 Nov 2018 13:53:01 +0000 (13:53 +0000)]
license_image: Fix rootfs file ownership issues with COPY_LIC_DIRS

We need to set ownership of the license files after copying into the rootfs.
We also need to ensure we don't overwrite the rootfs files outside rootfs
generation, hence only write there when the new rootfs function parameter
is True.

[YOCTO #12961]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolocale: Allow usage of cross-localedef for ARC
Alexey Brodkin [Mon, 12 Nov 2018 22:43:51 +0000 (01:43 +0300)]
locale: Allow usage of cross-localedef for ARC

With this it's possible to build locale data for ARC
and not do it instead on the first boot.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackagegroup-core-sdk: Disable SANITIZERS for ARC
Alexey Brodkin [Mon, 12 Nov 2018 13:09:38 +0000 (16:09 +0300)]
packagegroup-core-sdk: Disable SANITIZERS for ARC

Sanitizers are not yet supported on ARC.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopkg-utils: Fix update-alternatives link relocation
Niko Mauno [Mon, 12 Nov 2018 17:30:08 +0000 (19:30 +0200)]
opkg-utils: Fix update-alternatives link relocation

Recently Debian-style support for link relocation was added to
'update-alternatives' script, but it fails under circumstances where
host rootfs root directory differs from target rootfs root directory
and two alternative packages provide a symbolic link with source
located in different directories.

An example of the case is busybox provided /bin/rev (symlinking to
/bin/busybox.nosuid) and util-linux provided /usr/bin/rev (symlinking
to /usr/bin/rev.util-linux) in which case following failure occurs
during image recipe's do_rootfs() task:

  ERROR: core-image-minimal-1.0-r0 do_rootfs: Postinstall scriptlets of ['util-linux'] have failed. If the intention is to defer them to first boot,
  then please place them into pkg_postinst_ontarget_${PN} ().
  Deferring to first boot via 'exit 1' is no longer supported.
  Details of the failure are in .../tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.
  ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs

Looking in log.do_rootfs file, following relevant lines can be observed:

  update-alternatives: renaming rev link from /bin/rev to /usr/bin/rev
  mv: cannot stat '/bin/rev': No such file or directory

Mitigate issue by applying patch which adds target root filesystem root
directory path prefix to failing 'mv' calls relevant variable references

Signed-off-by: Niko Mauno <niko.mauno@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage: Further cleanup DEFAULT_TEST_SUITES
Richard Purdie [Fri, 9 Nov 2018 09:59:19 +0000 (09:59 +0000)]
testimage: Further cleanup DEFAULT_TEST_SUITES

Now the test markup of the development tools tests is complete, this
can be further tweaked to auto run the correct tests.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/cases: Improve dependencies of kernel/gcc/build tests
Richard Purdie [Fri, 9 Nov 2018 09:55:40 +0000 (09:55 +0000)]
oeqa/runtime/cases: Improve dependencies of kernel/gcc/build tests

Mark up these tests as needing a compiler, make and kernel source code
as appropriate, the image feature requirements can then be retired.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage: Simplfy DEFAULT_TEST_SUITES logic
Richard Purdie [Thu, 8 Nov 2018 19:57:49 +0000 (19:57 +0000)]
testimage: Simplfy DEFAULT_TEST_SUITES logic

Now that the tests have correct markup to automatically determine which images
they can run against, clean up the default test suites logic to be simpler
and not image specific.

Some cleanup of the compiler tests still needs to be completed but this
is a good first step.

The only downside to this is more noise during testing as we now see
many skipped messages for simple images like core-image-minimal.

The auto type is being removed since it currently breaks badly due to the
socat mandatory inclusion from the meta-selftest layer which is a problem
which needs to be addressed seperately.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/cases: Improve test dependency information
Richard Purdie [Thu, 8 Nov 2018 19:55:17 +0000 (19:55 +0000)]
oeqa/runtime/cases: Improve test dependency information

Add the OEHasPackage decorator to a variety of tests so they determine
automatically if they should run against a given image.

To ensure tests can do this we need to move target operations such
as scp commands into the tests and out of the class startup/teardown.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: fix typo of unrecognised options: --disable-jitterntropy
Hongxu Jia [Sat, 10 Nov 2018 02:03:19 +0000 (10:03 +0800)]
rng-tools: fix typo of unrecognised options: --disable-jitterntropy

- Fix typo of `--disable-jitterntropy' in both of PACKAGECONFIG and configure --help

- Enable jitterntropy for musl

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers.inc: Add entry for libjitterentropy (copied from rng-tools)
Richard Purdie [Sat, 10 Nov 2018 11:34:23 +0000 (11:34 +0000)]
maintainers.inc: Add entry for libjitterentropy (copied from rng-tools)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibjitterentropy: add 2.1.2
Hongxu Jia [Fri, 9 Nov 2018 09:12:22 +0000 (17:12 +0800)]
libjitterentropy: add 2.1.2

>From the following kernel commit we know: Fedora has integrated the jitter
entropy daemon to work around slow boot problems, especially on VM's that
don't support virtio-rng

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81e69df38e2911b642ec121dec319fad2a4782f3

Do the same thing for Yocto.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: 5 -> 6.6
Hongxu Jia [Fri, 9 Nov 2018 09:12:21 +0000 (17:12 +0800)]
rng-tools: 5 -> 6.6

- Update SRC_URI, previously upstream is dead, latest update is 2014

- Drop read_error_msg.patch

- Rework do_configure and do_compile

- Enable jitterentropy

License-Update: Upstream changed, but license is still gplv2

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomachine/qemu*: fix kernel finish crng init more and more slowly
Hongxu Jia [Tue, 30 Oct 2018 02:22:49 +0000 (22:22 -0400)]
machine/qemu*: fix kernel finish crng init more and more slowly

Just adding `-device virtio-rng-pci' to the QEMU invocation will
add the device with a default host backend. As of QEMU 1.3+,
the default backend is to use the host's /dev/random as a
source of entropy. [1]

When the entropy pool is empty, reads from /dev/random will
block until additional environmental noise is gathered. [2]

For Yocto, if call runqemu frequently, it will consume lots
of host's /dev/random, and kernel finish crng init in guest get
more and more slowly.

Here are 4 times runqemu boot test:

[    3.464432] random: crng init done
[   20.874030] random: crng init done
[   23.583589] random: crng init done
[   23.858945] random: crng init done

Modify entropy source to /dev/urandom device on the host which
returns random bytes using a pseudorandom number generator seeded
from the entropy pool. Reads from this device do not block and
kernel finish crng init in guest will not delay.

Of course, the side effect is obviously, we lost the quality of
randomness, but the modification is only on runqemu script
rather than real embedded device, and it benefits oeqa efficiency
in which many cases call runqemu especially multiple oeqa builds
on one host.

After apply the fix:

[    3.364670] random: crng init done
[    4.619061] random: crng init done
[    3.403897] random: crng init done
[    3.450717] random: crng init done

[1] https://wiki.qemu.org/Features/VirtIORNG
[2] http://man7.org/linux/man-pages/man4/random.4.html

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: Fix crazy defaults
Hongxu Jia [Fri, 9 Nov 2018 08:54:21 +0000 (16:54 +0800)]
rng-tools: Fix crazy defaults

Since commit [f1dc9ac rng-tools: Fix crazy defaults] fixed
init based on sysvinit, this fix rngd.service based on systemd.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestsdk: fix skipped testcase output "UNKNOWN" status while multiprocess execution
Hongxu Jia [Fri, 9 Nov 2018 08:36:20 +0000 (00:36 -0800)]
testsdk: fix skipped testcase output "UNKNOWN" status while multiprocess execution

Usually skipped testcase output "SKIPPED"
[snip serial execution]
|RESULTS - buildgalculator.GalculatorTest.test_galculator - Testcase -1: SKIPPED (0.01s)
|RESULTS - python.PythonTest.test_python3 - Testcase -1: SKIPPED (0.01s)
[snip serial execution]

But if enable multiprocess execution, skipped testcase output "UNKNOWN" status
[snip enable multiprocess execution]
|RESULTS - buildgalculator.GalculatorTest.test_galculator - Testcase -1: UNKNOWN
|RESULTS - python.PythonTest.test_python3 - Testcase -1: UNKNOWN
[snip enable multiprocess execution]

Here is my investigation:

There is a class pairs TestProtocolClient and TestProtocolServer
provided by python3-subunit. The TestProtocolClient generates a
subunit stream of TestResult from a test run, and TestProtocolServer
parses the stream of subunit TestResult.

The class ProtocolTestCase is a unittest.TestCase adapter and it
uses TestProtocolServer to parse the stream of subunit TestResult.

In Yocto testsdk, it forks multiple processes to execute testcases
and use TestProtocolClient to generate TestResult stream; and then
it creates multiple threads to use ProtocolTestCase to parse stream
of subunit TestResult through pipe; finally it passes multiple
ProtocolTestCase as TestCase instance to main process and output
status result.

The problem point is TestProtocolServer parses `skip:' directive
after reading a `test:' directive. Without `test:' directive,
`skip:' directive will be ignored. All above requires SkipTest should
be raised inside a test method rather than setUpClass method.

Throwing SkipTest inside setUp works correctly

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibaio: Extend to native
Peter Kjellerstedt [Fri, 9 Nov 2018 21:08:17 +0000 (22:08 +0100)]
libaio: Extend to native

lvm2 currently requires libaio. So building lvm2-native will result in
the following error.

  ERROR: Required build target 'lvm2-native' has no buildable providers.
  Missing or unbuildable dependency chain was: ['lvm2-native', 'libaio-native']

Extend libaio to native to fix this issue.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>