]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agollvm,mesa: Upgrade to upcoming 8.0.0 release
Khem Raj [Sat, 2 Feb 2019 19:43:26 +0000 (11:43 -0800)]
llvm,mesa: Upgrade to upcoming 8.0.0 release

License-Update: Copyright year updates from 2017-2019

Refresh patches to apply on new version

mesa move dep to the llvm release to 8.0
Needs to happen along with llvm upgrade always

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsolv: Drop now uneeded musl patch
Randy MacLeod [Fri, 1 Feb 2019 21:16:28 +0000 (16:16 -0500)]
libsolv: Drop now uneeded musl patch

Drop the musl specific fopencookie patches since musl
added support for fopencookie in:
   06184334 implement the fopencookie extension to stdio
in December 2017 so it has been in musl since v1.1.19.
There was no change in libsolv's configure log when building
with musl and these patches dropped.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool: add --all option to check-upgrade-status
Ross Burton [Fri, 1 Feb 2019 17:08:39 +0000 (17:08 +0000)]
devtool: add --all option to check-upgrade-status

The default behaviour is to show just recipes needing upgrades, but for
automated reports showing all recipes can be useful.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsolv: upgrade 0.7.2 -> 0.7.3
Alejandro del Castillo [Fri, 1 Feb 2019 17:06:55 +0000 (11:06 -0600)]
libsolv: upgrade 0.7.2 -> 0.7.3

from NEWS:

- selected bug fixes:
  * fixed a couple of null pointer derefs and potential memory
    leaks
  * made disfavoring recommended packages work if strong recommends
    is enabled
  * no longer disable infarch rules when they don't conflict with
    the job
- new features:
  * do favor evaluation before pruning allowing to (dis)favor
    specific package versions

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperl: add dependencies for optional modules
Alexander Kanavin [Fri, 1 Feb 2019 15:20:50 +0000 (16:20 +0100)]
perl: add dependencies for optional modules

Particularly the LSB test suite was failing due to missing crypt() support.

[YOCTO #13160]

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperl: update perl-cross to 1.2.2
Alexander Kanavin [Fri, 1 Feb 2019 15:20:49 +0000 (16:20 +0100)]
perl: update perl-cross to 1.2.2

This allows us to drop the build race fixes.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoe2fsprogs: fix file system generation with large files
Ross Burton [Fri, 1 Feb 2019 13:09:39 +0000 (13:09 +0000)]
e2fsprogs: fix file system generation with large files

When copying files into the file system the file offset was being truncated to a
signed 32-bit value, so any files that are larger than 2^31 bytes were the right
size, but no content after that point.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oeqa/runtime/cases/gi.py: fix deprecation warning
Alexander Kanavin [Fri, 1 Feb 2019 12:58:54 +0000 (13:58 +0100)]
lib/oeqa/runtime/cases/gi.py: fix deprecation warning

With newest Python, the following is printed:

PyGIDeprecationWarning: GObject.markup_escape_text is deprecated; use GLib.markup_escape_text instead)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysprof: inherit gsettings
Ovidiu Panait [Fri, 1 Feb 2019 09:26:19 +0000 (11:26 +0200)]
sysprof: inherit gsettings

Fix the following error when launching sysprof:
$ sysprof
GLib-GIO-ERROR **: Settings schema 'org.gnome.sysprof2' is not installed

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoruby.inc: Add dependency on readline-native
Manjukumar Matha [Thu, 31 Jan 2019 22:21:26 +0000 (14:21 -0800)]
ruby.inc: Add dependency on readline-native

Add dependency on readline-native to fix the following issue

uninitialized constant Logfile
|       Check ext/fiddle/mkmf.log for more details.
| readline:
|       Could not be configured. It will not be installed.
|
build/tmp/work/x86_64-linux/ruby-native/2.5.1-r0/ruby-2.5.1/ext/readline/extconf.rb:62:
Neither readline nor libedit was found
|       Check ext/readline/mkmf.log for more details.
| *** Fix the problems, then remove these directories and try again if
you want.

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowebkitgtk: Fix build with clang/libc++ >= 7.0.0
Khem Raj [Thu, 31 Jan 2019 06:50:15 +0000 (22:50 -0800)]
webkitgtk: Fix build with clang/libc++ >= 7.0.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdnf: Fix build with clang/libc++
Khem Raj [Thu, 31 Jan 2019 06:50:14 +0000 (22:50 -0800)]
libdnf: Fix build with clang/libc++

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibproxy: Fix build with clang/libc++
Khem Raj [Thu, 31 Jan 2019 06:50:13 +0000 (22:50 -0800)]
libproxy: Fix build with clang/libc++

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxinput-calibrator: Fix build with clang/libc++
Khem Raj [Thu, 31 Jan 2019 06:50:12 +0000 (22:50 -0800)]
xinput-calibrator: Fix build with clang/libc++

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agompeg2dec: Fix global symbol tests
Khem Raj [Thu, 31 Jan 2019 06:50:11 +0000 (22:50 -0800)]
mpeg2dec: Fix global symbol tests

Rewrite the public symbol check to verify the shared libraries, to check for
more things, and to avoid duplication; fixes make check on ARM

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Update to 2.29 release
Khem Raj [Thu, 31 Jan 2019 18:11:44 +0000 (10:11 -0800)]
glibc: Update to 2.29 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoupdate-alternatives: try to update FILES_${PN} when renaming a file
André Draszik [Wed, 16 Jan 2019 12:51:16 +0000 (12:51 +0000)]
update-alternatives: try to update FILES_${PN} when renaming a file

When using update-alternatives, FILES_${PN} must be
referencing the new name after update-alternatives has
renamed files.

This is more or less OK when having static lists of files to
be packaged into a package, but makes it quite hard to
dynamically generate FILES_${PN}, e.g. using do_split_packages(),
as in that case we can not easily modify what goes into
FILES_${PN}, because that list is based on filenames as seen
at the time do_split_packages() is executing.

Of couse one could explicitly specify the (renamed) file(s)
in the recipe, but that contradicts the intended usage of
do_split_packages().

Instead, if FILES_${PN} contains the file name as it was pre
renaming, we here modify this to reflect the new name.

This will allow usage of do_split_packages() to populate
FILES_${PN}.

[YOCTO #13058]

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoupdate-alternatives: convert file renames to PACKAGE_PREPROCESS_FUNCS
André Draszik [Wed, 16 Jan 2019 12:51:15 +0000 (12:51 +0000)]
update-alternatives: convert file renames to PACKAGE_PREPROCESS_FUNCS

At the moment, the update-alternatives file renaming is
happening right after copying into PKGD during packaging
time using an _append OVERRIDE to the copy function
perform_packagecopy().

This is not really readable and hard to maintain.

Additionally, this makes it impossible to e.g. populate
PACKAGES dynamically using do_split_packages() and still
do update-alternatives - update-alternatives file renaming
requires the PACKAGES variable to have been fully populated
to work correctly. On the other hand, do_split_packages()
can only execute after perform_packagecopy(), as it needs
PKGD populated; so it's impossible to insert
do_split_packages() early enough in a deterministic way in
this use-case.

As there doesn't seem to be a reason not to, convert
this to a proper function and use PACKAGE_PREPROCESS_FUNCS
instead - after all, that's what this is meant for.

No other classes or recipes in oe-core or meta-openembededd
seem to have a hard requirement on update-alterantives
executing before any other PACKAGE_PREPROCESS_FUNCS, so
this should be perfectly fine.

The only implication is that if compress_doc is inherited,
compressed man-page file names will end up being, e.g.
    eject.1.util-linux.gz
  or
    eject.1.gz.util-linux
based on the include of compress_doc.bbclass vs.
update-alternatives.bbclass order, but the symlink created
(alternative name) will always be correct.

This solves both problems:
* the code is easier to read / follow
* the above described use-case can be accomodated easily

[YOCTO #13058]

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: remove minix remnants
André Draszik [Wed, 16 Jan 2019 12:51:12 +0000 (12:51 +0000)]
util-linux: remove minix remnants

While commit fc66762d7c11 ("util-linux: Disable minix support.")
(or e88cee8cc31d in poky) removed most of the bits, there are
still references to minix remaining.

Remove them.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: remove erroneous patch (qsort_r)
André Draszik [Wed, 16 Jan 2019 12:51:11 +0000 (12:51 +0000)]
util-linux: remove erroneous patch (qsort_r)

The patch in question is patching the code to use
qsort() instead of qsort_r(), without adopting the
compare function. This is a major issue, because
the compare function as written is evaluating /
accessing a third argument, which is not passed
with this OE patch, causing access to random
memory.

Given this patch was added so as to support (old)
linux (host) distros which might not provide
qsort_r(), according to the git history, and given
these days util-linux detects availability of
qsort_r() during configure phase, and given musl
builds (which doesn't provide qsort_r() either)
work without problem, the right solution is to
simply drop this invalid patch.

Do so.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: simplify version upgrades (MAJOR_VERSION)
André Draszik [Wed, 16 Jan 2019 12:51:10 +0000 (12:51 +0000)]
util-linux: simplify version upgrades (MAJOR_VERSION)

There doesn't appear to be a need to manually and
explicitly specificy the major version (for the
download URL), it can be deduced easily from PV.

Do so.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/ptest: Ensure OOM errors are logged
Richard Purdie [Wed, 30 Jan 2019 22:01:23 +0000 (22:01 +0000)]
oeqa/runtime/ptest: Ensure OOM errors are logged

Currently processed being killed by the OOM killer may not be spotted by
ptest-runner. After we complete the tests, check the logs and report if there
were any. This ensures the user is aware of OOM conditions affecting the
ptest results.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocore-image-sato-sdk-ptest: Increase qemu memory to 1GB
Richard Purdie [Wed, 30 Jan 2019 22:00:59 +0000 (22:00 +0000)]
core-image-sato-sdk-ptest: Increase qemu memory to 1GB

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython2-manifest: Add missing xmlrpclib.py
Richard Purdie [Thu, 31 Jan 2019 16:28:55 +0000 (16:28 +0000)]
python2-manifest: Add missing xmlrpclib.py

The manifest creation bug that was masking this file was fixed, rerun and add
the missing file to fix:

  File "/usr/lib64/python2.7/SimpleXMLRPCServer.py", line 102, in <module>
    import xmlrpclib
ImportError: No module named xmlrpclib

[YOCTO #12814]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibusb1: Add udev support
Alistair Francis [Tue, 29 Jan 2019 23:10:12 +0000 (23:10 +0000)]
libusb1: Add udev support

I don't see circular dependencies anymore between libusb1 and udev, so
enable udev support for libusb1.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperl: add testdepends for ssh
Armin Kuster [Wed, 30 Jan 2019 15:16:36 +0000 (07:16 -0800)]
perl: add testdepends for ssh

fixes:

 DEBUG: [Running]$ ssh -l root -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR 192.168.7.4 export PATH=/usr/sbin:/sbin:/usr/bin:/bin; perl -e '$_="Uryyb, jbeyq"; tr/a-zA-Z/n-za-mN-ZA-M/;print'
| DEBUG: time: 1548816904.4024463, endtime: 1548817204.397057
| DEBUG: Partial data from SSH call: ssh: connect to host 192.168.7.4 port 22: Connection refused

for master/thud/sumo

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibgpg-error: Bump to version 1.35
Alistair Francis [Wed, 30 Jan 2019 17:00:13 +0000 (17:00 +0000)]
libgpg-error: Bump to version 1.35

The file src/gpg-error.h.in SHA changed as some new funtion definitions
were added to the header file and the copyright year was updated to
include 2019.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovte: allow building vte-native with gcc 4.8
Alexander Kanavin [Wed, 30 Jan 2019 10:59:43 +0000 (11:59 +0100)]
vte: allow building vte-native with gcc 4.8

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibjpeg-turbo: fix nativesdk build in same way as native builds are
Alexander Kanavin [Wed, 30 Jan 2019 10:59:36 +0000 (11:59 +0100)]
libjpeg-turbo: fix nativesdk build in same way as native builds are

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoatk: disable gobject-introspection for nativesdk
Alexander Kanavin [Wed, 30 Jan 2019 10:59:34 +0000 (11:59 +0100)]
atk: disable gobject-introspection for nativesdk

We do not support g-i for nativesdk, neverthless atk tries and fails.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogtk+3: remove the gtk-icon-utils-native recipe
Alexander Kanavin [Wed, 30 Jan 2019 10:59:25 +0000 (11:59 +0100)]
gtk+3: remove the gtk-icon-utils-native recipe

As we are now build native gtk+3, it already provides the necessary utilities.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogtk+3: enable native/nativesdk variant
Alexander Kanavin [Wed, 30 Jan 2019 10:59:24 +0000 (11:59 +0100)]
gtk+3: enable native/nativesdk variant

Host-assisted GL in Qemu in theory works with both SDL
and GTK; in practice SDL shows an empty screen. This
prepares the switchover of graphical qemu to use
native gtk, which also provides a neat set of menus to
control the emulator.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodefault-providers: set mesa as default provider for nativesdk-mesa
Alexander Kanavin [Wed, 30 Jan 2019 10:59:27 +0000 (11:59 +0100)]
default-providers: set mesa as default provider for nativesdk-mesa

The alternative is mesa-gl, but it lacks all of the bits that make
accelerated qemu possible.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: enable native and nativesdk variants
Alexander Kanavin [Wed, 30 Jan 2019 10:59:26 +0000 (11:59 +0100)]
mesa: enable native and nativesdk variants

Note that only the most minimal necessary subset of mesa is built;
particularly we don't build any drivers as that is offloaded
to the GL implementation provided by the host.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: fix multilib file install conflicts
Xulin Sun [Tue, 29 Jan 2019 07:31:22 +0000 (15:31 +0800)]
openssl: fix multilib file install conflicts

To avoid issue like below if run "bitbake lib32-core-image-minimal"
with series userspace packages(LAMP,krb5...) added.

Add multilib_script support for openssl's c_rehash which is a perl script.

Error: Transaction check error:
  file /usr/bin/c_rehash conflicts between attempted installs of
  lib32-openssl-bin-1.1.1-r0.armv7at2hf_neon and openssl-bin-1.1.1-r0.aarch64

Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokeymaps: tighten package write dependency
Jonas Bonn [Tue, 29 Jan 2019 07:24:42 +0000 (08:24 +0100)]
keymaps: tighten package write dependency

The dependency on systemd-systemctl-native is only needed if _both_
systemd and sysvinit are in play.

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobase-files: filesystems serves no real purpose
Jonas Bonn [Tue, 29 Jan 2019 07:24:41 +0000 (08:24 +0100)]
base-files: filesystems serves no real purpose

mount can generally figure out the filesystem type from the superblock;
otherwise, /proc/filesystems is a more correct fallback than
/etc/filesystems and presumably always available.

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodbus: volatiles are only needed by sysvinit configuration
Jonas Bonn [Tue, 29 Jan 2019 07:24:40 +0000 (08:24 +0100)]
dbus: volatiles are only needed by sysvinit configuration

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: systemd and sysvinit are not mutually exclusive
Jonas Bonn [Tue, 29 Jan 2019 07:24:39 +0000 (08:24 +0100)]
glibc: systemd and sysvinit are not mutually exclusive

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe-git-proxy: Avoid resolving NO_PROXY against local files
Jan Kiszka [Tue, 29 Jan 2019 16:48:35 +0000 (17:48 +0100)]
oe-git-proxy: Avoid resolving NO_PROXY against local files

NO_PROXY may contain * elements, and if we are unlucky (or want to match
all hosts with *), we will pick up local files rather than doing the
match in match_host. Quoting helps here.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopkgdata.py: avoid target-sdk-dummy-provides to mess things up
Chen Qi [Wed, 30 Jan 2019 02:56:24 +0000 (10:56 +0800)]
pkgdata.py: avoid target-sdk-dummy-provides to mess things up

Sometimes we meet the following failure for the test_lookup_recipe
test case.

  AssertionError: 'zlib\nbusybox is in the RPROVIDES of target-sdk-provid[32 chars]ummy' != 'zlib\nbusybox'
    zlib
  + busybox- busybox is in the RPROVIDES of target-sdk-provides-dummy:
  - target-sdk-provides-dummy

This is because target-sdk-provides-dummy rprovides busybox.

So clean things up to avoid failure.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Add seq to HOSTTOOLS
Jacob Kroon [Tue, 29 Jan 2019 22:32:55 +0000 (23:32 +0100)]
bitbake.conf: Add seq to HOSTTOOLS

This fixes detecting available signals when configuring perl.
(cnf/configure_sigs.sh)

Without this, running aclocal prints warnings about missing signals,
which can be further demonstraded by running

  perl -le 'print for keys %SIG'

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest-runner: Upgrade to 2.3.1
Aníbal Limón [Wed, 30 Jan 2019 17:14:32 +0000 (11:14 -0600)]
ptest-runner: Upgrade to 2.3.1

Changeset,

05b112b utils.c: Print DURATION after ERROR
acb5efb utils.c: run_child redirect stderr to stdout
e1062f7 ptest-runner: make DEFAULT_DIRECTORY be able to be defined when compiling

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/logparser: Various misc cleanups
Richard Purdie [Tue, 29 Jan 2019 16:52:18 +0000 (16:52 +0000)]
oeqa/logparser: Various misc cleanups

Get rid of further unneeded code complications:

* value mappings we could just direct use
* ftools when we can write files easily ourself
* test result status filtering we don't use
* variable overwriting module imports

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/logparser: Improve results handling
Richard Purdie [Tue, 29 Jan 2019 15:08:58 +0000 (15:08 +0000)]
oeqa/logparser: Improve results handling

Merge the results handling into the ptest log parser as a seperate
method.

Drop the weird "pass.skip.fail." prefix to the results filename, its
just bizarre.

Drop the code turning a list into a regex then searching the regex for
an item, "x in y" is perfectly capable.

Use a dict, sort the keys as needed and drop the list sorting code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/logparser: Add in support for duration, exitcode and logs by section
Richard Purdie [Tue, 29 Jan 2019 14:22:07 +0000 (14:22 +0000)]
oeqa/utils/logparser: Add in support for duration, exitcode and logs by section

Allow parsing of the ptest duration, exit code and timeout keywords
from the logs, returning data on each section.

Also include the logs broken out per section.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/logparser: Reform the ptest results parser
Richard Purdie [Tue, 29 Jan 2019 13:24:45 +0000 (13:24 +0000)]
oeqa/logparser: Reform the ptest results parser

Now we have a dedicated ptest parser, merge in the remaining ptest
specific pieces to further clarify and simplify the code, moving to
a point where we can consider extending/enhancing it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/logparser: Further simplification/clarification
Richard Purdie [Tue, 29 Jan 2019 13:00:41 +0000 (13:00 +0000)]
oeqa/logparser: Further simplification/clarification

Rename the paster to be ptest specific and apply some further cleanups
to the code to simplify and clarify what its doing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/logparser: Simplify ptest log parsing code
Richard Purdie [Tue, 29 Jan 2019 12:08:26 +0000 (12:08 +0000)]
oeqa/utils/logparser: Simplify ptest log parsing code

logparser is only used by ptest. Its slightly overcomplicated as it was
intended to be reusable but wasn't. Simplify it as a dedicated parser is
likely to me more readable and maintainable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/ptest: Avoid traceback for tests with no section
Richard Purdie [Tue, 29 Jan 2019 11:54:01 +0000 (11:54 +0000)]
oeqa/runtime/ptest: Avoid traceback for tests with no section

Some tests end up without a section, avoid tracebacks trying to use
None as a string in that case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopixbufcache.bbclass: remove a dependency loop introduced by enabling gtk+3-native
Alexander Kanavin [Mon, 28 Jan 2019 12:46:35 +0000 (13:46 +0100)]
pixbufcache.bbclass: remove a dependency loop introduced by enabling gtk+3-native

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoshared-mime-info: update the database also in native builds
Alexander Kanavin [Mon, 28 Jan 2019 12:46:34 +0000 (13:46 +0100)]
shared-mime-info: update the database also in native builds

Otherwise glib-compile-resources fails when building gtk+3-native.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibepoxy: enable native/nativesdk variants
Alexander Kanavin [Mon, 28 Jan 2019 12:46:37 +0000 (13:46 +0100)]
libepoxy: enable native/nativesdk variants

libepoxy is a requirement of virglrenderer. Note that we strip
RPATH from the library, as this allows fall-through to the host
GL implementation, instead of attempting (and failing) to use
mesa-native.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa: add native and nativesdk variants to various recipes to enable gtk+3-native...
Alexander Kanavin [Mon, 28 Jan 2019 12:46:36 +0000 (13:46 +0100)]
meta: add native and nativesdk variants to various recipes to enable gtk+3-native/nativesdk

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-firmware: split out liquidio firmware
Ross Burton [Mon, 28 Jan 2019 16:25:28 +0000 (16:25 +0000)]
linux-firmware: split out liquidio firmware

Part of this firmware is a pre-built Linux kernel, so it's both huge (25MB) and
triggers binary security scanners as the kernel is 3.10.87.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-firmware: recommend split up packages
Ross Burton [Mon, 28 Jan 2019 16:25:27 +0000 (16:25 +0000)]
linux-firmware: recommend split up packages

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/icecc: Add ICECC_REMOTE_CPP variable
Joshua Watt [Mon, 28 Jan 2019 14:55:00 +0000 (08:55 -0600)]
classes/icecc: Add ICECC_REMOTE_CPP variable

Newer versions of Icecream (1.2) add support for remotely pre-processing
files, controllable with the ICECC_REMOTE_CPP environment variable.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/manual/sdk.json: Updated toolchain tarball to core-image-sato
sangeeta jain [Mon, 28 Jan 2019 08:11:15 +0000 (16:11 +0800)]
oeqa/manual/sdk.json: Updated toolchain tarball to core-image-sato

Manual test step for SDK is updated. Previously toolchain was "poky-glibc-x86_64-core-image-sato-sdk<type-arch>-toolchain-<release-version>.sh"
But toochain for core-image-sato-sdk is not available in releases after 2.1, hence changed it to "poky-glibc-x86_64-core-image-sato-<type-arch>-toolchain-<release-version>.sh

Other less significant update is to add exepcted result in intermediate test steps.

Signed-off-by: sangeeta jain <sangeeta.jain@intel.com>
"poky-glibc-x86_64-core-image-sato-<type-arch>-toolchain-<release-version>.sh"

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/manual: Add manual runtime 'compliance' testcases to json
Sudhir Sharma [Mon, 28 Jan 2019 07:33:28 +0000 (15:33 +0800)]
oeqa/manual: Add manual runtime 'compliance' testcases to json

Added json file for compliance test cases to the manual runtime tests

Signed-off-by: Sudhir Sharma <sudhirx.sharma@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: Update recent CVE patches
Richard Purdie [Mon, 28 Jan 2019 13:57:44 +0000 (13:57 +0000)]
systemd: Update recent CVE patches

* Added CVE tag, Upstream-Status tag and Sign-off-by tags.
* Removed the verification of the entry length in the header
* Squashed CVE-2018-16865 patches into one
* CVE-2018-16866 patch now taken from systemd-stable and includes
  an additional heap buffer overflow fix.

Signed-off-by: Marcus Cooper <marcusc@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovalgrind: Dont strip off -mcpu
Khem Raj [Fri, 25 Jan 2019 03:36:37 +0000 (19:36 -0800)]
valgrind: Dont strip off -mcpu

Defsault armtunes do not include -march any longer we habe -mcpu
only, therefore to select right ISA we need to keep mcpu

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarm-tunes: Remove -march option if mcpu is already added
Khem Raj [Sun, 27 Jan 2019 20:56:15 +0000 (12:56 -0800)]
arm-tunes: Remove -march option if mcpu is already added

tune files which inherit the arch definitions already define appropriate
-mcpu option, which is equivalent of right -march and -mtune combination
and is preferred since gcc is getting stricter and stricter with option
check semantics and can now find incompatible -march and -mcpu options
better with every release. It does internal feature consistency check
and if it finds out discrepency between what -mcpu would expand to as
compared to -march it will flag the options to be incompatible, for
naked eye it sounds wrong but gcc would translate -mcpu to a given
-march internally and it might not match to what we set in these arch
files.

The effects are quite subtle, where this can result in configure test
failing to compile due to these incompatible options and a feature
option getting disabled for a recipe for no reason.

e.g. with gcc9 which can now detect that -mcpu=cortex-a5 and
-march=armv7-a are incompatible, many features in libstdc++ ends up
disabled due to configure check failures e.g. size_t size, ptrdiff_t
sizes, which inturn results in compiling libstdc++ with unwanted
disabled features.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoChange default debug split to make separate source packages
Joshua Watt [Fri, 25 Jan 2019 19:47:45 +0000 (13:47 -0600)]
Change default debug split to make separate source packages

Changes the default PACKAGE_DEBUG_SPLIT_STYLE to generate separate
source and debug packages. SDKIMAGE_FEATURES is updated to include the
source packages so that there is not change for the SDK contents.

[YOCTO #12931]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtool: Fix ignoring compiler-rt libs
Khem Raj [Sat, 26 Jan 2019 21:41:59 +0000 (13:41 -0800)]
libtool: Fix ignoring compiler-rt libs

This is a limitation of libtool where it is not aware of compiler-rt
being a compiler internal library, this patch fixes it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperl: drop lost patch
Ruslan Bilovol [Sat, 26 Jan 2019 12:58:00 +0000 (14:58 +0200)]
perl: drop lost patch

Commit 68552c353255 "perl: remove the previous version of the recipe"
dropped 0001-Makefile.SH-Pod-Simple-requires-Getopt-Long.patch
from recipe, but left the patch itself in source tree.
Remove this patch since nobody uses it.

Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosubversion: drop lost patch
Ruslan Bilovol [Sat, 26 Jan 2019 12:57:59 +0000 (14:57 +0200)]
subversion: drop lost patch

Commit 5bb47984af79 "subversion: 1.9.7 -> 1.10.0" dropped
serf.m4-Regex-modified-to-allow-D-in-paths.patch
from recipe, but left the patch itself in source tree.
Remove this patch since nobody uses it.

Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconnman: drop lost patch
Ruslan Bilovol [Sat, 26 Jan 2019 12:57:58 +0000 (14:57 +0200)]
connman: drop lost patch

Commit 85b76e52d206 "connman: update to 1.36" dropped
0001-inet-Add-prefixlen-to-iproute_default_function.patch
from recipe, but left the patch itself in source tree.
Remove this patch since nobody uses it.

Cc: Oleksandr Kravchuk <dev@sashko.rv.ua>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodhcp: drop lost patch
Ruslan Bilovol [Sat, 26 Jan 2019 12:57:57 +0000 (14:57 +0200)]
dhcp: drop lost patch

Commit 7cb42ae87ef9 "dhcp: update 4.4.1" dropped
0008-tweak-to-support-external-bind.patch
from recipe, but left the patch itself in source tree.
Remove this patch since nobody uses it.

Cc: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobind: drop lost patch
Ruslan Bilovol [Sat, 26 Jan 2019 12:57:56 +0000 (14:57 +0200)]
bind: drop lost patch

Commit "c37207d0aca5 bind: update to ESV version 9.11.3" dropped
0001-build-use-pkg-config-to-find-libxml2.patch
from recipe, but left the patch itself in source tree.
Remove this patch since nobody uses it.

Cc: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng: drop lost patch
Ruslan Bilovol [Sat, 26 Jan 2019 12:57:55 +0000 (14:57 +0200)]
lttng: drop lost patch

Commit "f63965c0f9fc lttng: uprev to 2.10.7" dropped
0001-Fix-btrfs-Remove-unnecessary-fs_info-parameter.patch
from recipe, but left the patch itself in source tree.
Remove this patch since nobody uses it.

Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/patch.py: Fix applying a directory as a patch
Tomasz Dziendzielski [Fri, 25 Jan 2019 19:55:33 +0000 (20:55 +0100)]
lib/oe/patch.py: Fix applying a directory as a patch

If a SRC_URI content ends with '.patch' bitbake is
trying to apply it as it's a patch file.

It causes that if we use git repository for 'patch' package
the bare clone is extracted to a directory
(i.e. build/downloads/git2/git.mirror.org.patch/) which is considered
to be a patch file, so patch.py tries to apply that directory as a patch
which ends up with a failure.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/patch.py: Fix the function comment
Tomasz Dziendzielski [Sat, 26 Jan 2019 11:36:10 +0000 (12:36 +0100)]
lib/oe/patch.py: Fix the function comment

If it's not a patch the function returns nothing.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage: Add pkg_postinst_ontarget to PACKAGEVARS
Richard Purdie [Thu, 10 Jan 2019 22:16:15 +0000 (22:16 +0000)]
package: Add pkg_postinst_ontarget to PACKAGEVARS

Changes to pkg_postinst_ontarget were not triggering rebuilds, this fixes
that.

[YOCTO #13127]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofontconfig: Update upstream status of patch
Richard Purdie [Fri, 25 Jan 2019 15:17:14 +0000 (15:17 +0000)]
fontconfig: Update upstream status of patch

The patch is now a backport as it was merged upstream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Add DEBUG_BUILD to vardeps
Robert Yang [Thu, 24 Jan 2019 06:53:12 +0000 (22:53 -0800)]
bitbake.conf: Add DEBUG_BUILD to vardeps

Otherwise the recipe would not be rebuilt when enable/disable DEBUG_BUILD.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonative.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD
Robert Yang [Thu, 24 Jan 2019 06:53:11 +0000 (22:53 -0800)]
native.bbclass/cross.bbclass: No strip sysroot when DEBUG_BUILD

This makes dbg work for native tools, and makes debug native tools problem
easier, otherwise, there is no symbol since trippped.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake-native: Add --enable-ccache to configure options
Robert Yang [Thu, 24 Jan 2019 06:57:28 +0000 (14:57 +0800)]
cmake-native: Add --enable-ccache to configure options

cmake-native requires --enable-ccache to enable ccache, target recipe doesn't
need this since it is already handled by cmake.bbclass.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoccache: Fix Segmentation fault error when gcc -o /dev/null
Robert Yang [Thu, 24 Jan 2019 06:57:32 +0000 (14:57 +0800)]
ccache: Fix Segmentation fault error when gcc -o /dev/null

Fixed:
$ export CCACHE_DEBUG=1
$ ccache gcc -c hello.c -o /dev/null

Segmentation fault (core dumped)

This is because failed to open /dev/null.foo (Permission denied), check file
stream before write to it can fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoccache: 3.5 -> 3.6
Robert Yang [Thu, 24 Jan 2019 06:57:31 +0000 (14:57 +0800)]
ccache: 3.5 -> 3.6

* Rebased 0002-dev.mk.in-fix-file-name-too-long.patch and sent it to upstream,
  and got merged.
* The LIC_FILES_CHKSUM is changed because of year updated.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool: add a command to print an overall list of recipes that can be updated
Alexander Kanavin [Wed, 23 Jan 2019 16:17:44 +0000 (17:17 +0100)]
devtool: add a command to print an overall list of recipes that can be updated

A sample portion of the output:

$ devtool check-upgrade-status
...
NOTE: acpid                     2.0.30          2.0.31          Ross Burton <ross.burton@intel.com>
NOTE: u-boot-fw-utils           2018.11         2019.01         Marek Vasut <marek.vasut@gmail.com> d3689267f92c5956e09cc7d1baa4700141662bff
NOTE: u-boot-tools              2018.11         2019.01         Marek Vasut <marek.vasut@gmail.com> d3689267f92c5956e09cc7d1baa4700141662bff
NOTE: u-boot                    2018.11         2019.01         Marek Vasut <marek.vasut@gmail.com> d3689267f92c5956e09cc7d1baa4700141662bff
NOTE: bind                      9.11.5          9.13.5          Armin Kuster <akuster808@gmail.com>  cannot be updated due to: 9.11 is LTS 2021
NOTE: iproute2                  4.19.0          4.20.0          Changhyeok Bae <changhyeok.bae@lge.com>
NOTE: ofono                     1.25            1.27            Ross Burton <ross.burton@intel.com>
NOTE: wpa-supplicant            2.6             2.7             Changhyeok Bae <changhyeok.bae@lge.com>
NOTE: base-passwd               3.5.29          3.5.45          Anuj Mittal <anuj.mittal@intel.com>  cannot be updated due to: Version 3.5.38 requires cdebconf for update-passwd utility
NOTE: busybox                   1.29.2          1.30.0          Andrej Valek <andrej.valek@siemens.com>
NOTE: dbus-test                 1.12.10         1.12.12         Chen Qi <Qi.Chen@windriver.com>
NOTE: dbus                      1.12.10         1.12.12         Chen Qi <Qi.Chen@windriver.com>
NOTE: glib-2.0                  2.58.0          2.58.3          Anuj Mittal <anuj.mittal@intel.com>
NOTE: glib-networking           2.54.1          2.58.0          Anuj Mittal <anuj.mittal@intel.com>
...

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/reciputils.py: parallelize upstream version checks
Alexander Kanavin [Wed, 23 Jan 2019 16:17:43 +0000 (17:17 +0100)]
lib/oe/reciputils.py: parallelize upstream version checks

Previously this was done via bitbake tasks, and when this
was rewritten to a for loop, performance sufered significantly:
from 90 seconds to about 12 minutes for oe-core. This change
restores the previous run time, and makes it possible
to perform such checks with command line utilities in an
interactive way.

Implementation note: we have to create a copy of the recipe
data, as Tinfoil API can't be used from multiple threads
and only allows one process to access the data at a time.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokmscube: make gstreamer dependency optional
Alexander Kanavin [Wed, 23 Jan 2019 16:17:42 +0000 (17:17 +0100)]
kmscube: make gstreamer dependency optional

This in particular saves build times for virgl oe-selftest.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokmscube: update to latest commit, switch over to meson
Alexander Kanavin [Wed, 23 Jan 2019 16:17:41 +0000 (17:17 +0100)]
kmscube: update to latest commit, switch over to meson

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage.bbclass: add support for passing runqemu params
Alexander Kanavin [Wed, 23 Jan 2019 16:17:40 +0000 (17:17 +0100)]
testimage.bbclass: add support for passing runqemu params

This is particularly useful when setting up GL tests.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake: do not look into native sysroot in the nativesdk environment
Alexander Kanavin [Wed, 23 Jan 2019 16:17:39 +0000 (17:17 +0100)]
cmake: do not look into native sysroot in the nativesdk environment

I am not sure why we do this in the first place, but it is causing
cmake to erroneously pick up items from the native sysroot
when building for the target and the target item is missing, for example:

https://autobuilder.yoctoproject.org/typhoon/#/builders/59/builds/198/steps/7/logs/step2c

Note that for executable programs this variable is not referred to,
as set by
 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
in the same file.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/package_manager: turn postinst_intercept warnings into failures for nativesdk
Alexander Kanavin [Wed, 23 Jan 2019 16:17:38 +0000 (17:17 +0100)]
lib/oe/package_manager: turn postinst_intercept warnings into failures for nativesdk

The few cases where they failed should be now all fixed. The only allowed
exception is when building mingw32 SDKs, as there is currently no support for running
postinst_intercepts through wine.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemuwrapper-cross: check qemu usermode only when building a target package
Alexander Kanavin [Wed, 23 Jan 2019 16:17:37 +0000 (17:17 +0100)]
qemuwrapper-cross: check qemu usermode only when building a target package

When building nativesdk- package, MACHINE_FEATURES do not apply as they are
specified only for target machines, not ones hosting the sdk.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofontcache: fix postinst for nativesdk case
Alexander Kanavin [Wed, 23 Jan 2019 16:17:36 +0000 (17:17 +0100)]
fontcache: fix postinst for nativesdk case

Both installing the binary into the correct place, and passing that place
to postinst_intercept were missing.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.19: riscv: enable serial
Bruce Ashfield [Wed, 23 Jan 2019 19:11:14 +0000 (14:11 -0500)]
linux-yocto/4.19: riscv: enable serial

Integrating the following configuration change for riscv serial:

  Author: Alistair Francis <Alistair.Francis@wdc.com>
  Date:   Tue Jan 22 18:55:04 2019 +0000

    qemuriscv64: Enable the 8250 serial driver

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest-runner: pass libdir to DEFAULT_DIRECTORY when compiling
Li Zhou [Tue, 22 Jan 2019 09:00:27 +0000 (17:00 +0800)]
ptest-runner: pass libdir to DEFAULT_DIRECTORY when compiling

Ptest data are installed to PTEST_PATH ?= "${libdir}/${BPN}/ptest".
When libdir isn't "/usr/lib", it will cause "No ptests found" error
when running "ptest-runner" command. Here pass libdir to
DEFAULT_DIRECTORY when compiling to avoid that error.

Need update ptest-runner source code to get the new commit:
<ptest-runner: make DEFAULT_DIRECTORY be able to be defined when compiling>

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeSDK.py: unset BBPATH and BUILDDIR to avoid eSDK failure
Chen Qi [Tue, 22 Jan 2019 09:09:50 +0000 (17:09 +0800)]
eSDK.py: unset BBPATH and BUILDDIR to avoid eSDK failure

When executing eSDK test case, the following error appears.

  WARNING: attempting to use the extensible SDK in an environment
      set up to run bitbake - this may lead to unexpected
   results. Please source this script in a new shell session
   instead.

  FileExistsError: [Errno 17] File exists: '/.../tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/selftest-esdk-fcuyzsqu/tmp/sysroots/x86_64/bin/pigz' -> '/.../tmp/hosttools/pigz'

So unset these two vars to avoid messing things up.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoruntime/ksample.py: correct a syntax and perfect item about architecture
Hongzhi.Song [Wed, 23 Jan 2019 07:14:28 +0000 (02:14 -0500)]
runtime/ksample.py: correct a syntax and perfect item about architecture

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeSDK.py: avoid error in tearDownClass due to race condistion
Chen Qi [Thu, 24 Jan 2019 09:33:01 +0000 (17:33 +0800)]
eSDK.py: avoid error in tearDownClass due to race condistion

When removing the temporary directory, it's possible that bitbake.lock
file is removed by bitbake during the cleanup. And this leads to the
following error.

  FileNotFoundError: [Errno 2] No such file or directory: 'bitbake.lock'

So add a check to remove this file before cleaning up the temporary
directory.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofontconfig: Fix define for HAVE_POSIX_FADVISE
Robert Yang [Thu, 24 Jan 2019 07:03:42 +0000 (15:03 +0800)]
fontconfig: Fix define for HAVE_POSIX_FADVISE

Otherwise, there would be build errors in the following 2 cases:
* define HAVE_POSIX_FADVISE
Or:
* undef HAVE_POSIX_FADVISE

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackagegroup.bbclass: Set INHIBIT_DEFAULT_DEPS
Robert Yang [Thu, 24 Jan 2019 07:01:06 +0000 (15:01 +0800)]
packagegroup.bbclass: Set INHIBIT_DEFAULT_DEPS

It doesn't need them since no compile happens.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-runtime: Add --cache-file to EXTRA_OECONF
Robert Yang [Thu, 24 Jan 2019 07:00:02 +0000 (23:00 -0800)]
gcc-runtime: Add --cache-file to EXTRA_OECONF

This can save configure time since it runs configure multiple times:
$ time bitbake gcc-runtime -cconfigure
  60s -> 54s

  Saved 6s

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoncurses: Add --cache-file to EXTRA_OECONF
Robert Yang [Thu, 24 Jan 2019 07:00:01 +0000 (23:00 -0800)]
ncurses: Add --cache-file to EXTRA_OECONF

This can save configure time since it runs configure multiple times:
$ time bitbake ncurses-native -cconfigure
  35s -> 25s

  Saved 10s

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogettext: Add --cache-file to EXTRA_OECONF
Robert Yang [Thu, 24 Jan 2019 07:00:00 +0000 (23:00 -0800)]
gettext: Add --cache-file to EXTRA_OECONF

This can save configure time since it runs configure multiple times:
$ time bitbake gettext-native -cconfigure
  2m22s -> 2m2s

  Saved 20s

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: Security fix CVE-2018-16866
Marcus Cooper [Thu, 24 Jan 2019 12:43:41 +0000 (13:43 +0100)]
systemd: Security fix CVE-2018-16866

Affects < v240

Signed-off-by: Marcus Cooper <marcusc@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: Security fix CVE-2018-16865
Marcus Cooper [Thu, 24 Jan 2019 12:43:40 +0000 (13:43 +0100)]
systemd: Security fix CVE-2018-16865

Affects < v240

Signed-off-by: Marcus Cooper <marcusc@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>