]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
4 years agogdb: upgrade 10.1 -> 10.2
wangmy [Wed, 28 Apr 2021 08:59:29 +0000 (16:59 +0800)]
gdb: upgrade 10.1 -> 10.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoprservice: Use new connect API
Paul Barker [Wed, 28 Apr 2021 09:51:32 +0000 (10:51 +0100)]
prservice: Use new connect API

The new prserv connect() function decouples the code in oe-core from the
exact classes and implementation details used within bitbake. This
allows us to more easily switch over to a new asyncrpc based prservice.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoreproducible_build.bbclass: Enable -Wdate-time
Khem Raj [Wed, 28 Apr 2021 20:38:13 +0000 (13:38 -0700)]
reproducible_build.bbclass: Enable -Wdate-time

This will help identifying packages using __TIME__, __DATE__ and
__TIMESTAMP__ macros in code, its a warning from the compiler and the
packages which use -Werror will break the build with this and where they
don't we will atleast have a warning in the build logs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc-runtime: Fix __FILE__ related reproducablity issues
Khem Raj [Wed, 28 Apr 2021 20:14:40 +0000 (13:14 -0700)]
gcc-runtime: Fix __FILE__ related reproducablity issues

libstdc++ uses assertion macros which use __FILE__ macros and

  if (__builtin_expect(!bool(_Condition), false))                      \
    std::__replacement_assert(__FILE__, __LINE__, __PRETTY_FUNCTION__, \
                              #_Condition)

This ends up using absolute paths into build tree for the cases where
the charconv header is used, therefore replace the file prefix paths
with on-target paths to make them build dir independent

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoltp: Filter out -ffile-prefix-map
Khem Raj [Wed, 28 Apr 2021 22:41:09 +0000 (15:41 -0700)]
ltp: Filter out -ffile-prefix-map

ffile-prefix-map is also needed for reproduble builds and when
introduced can be handled

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopenssl: Filter out -ffile-prefix-map as well
Khem Raj [Wed, 28 Apr 2021 22:41:10 +0000 (15:41 -0700)]
openssl: Filter out -ffile-prefix-map as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibid3tag: Filter -ffile-prefix-map too
Khem Raj [Thu, 29 Apr 2021 02:50:56 +0000 (19:50 -0700)]
libid3tag: Filter -ffile-prefix-map too

helps when compiler has -ffile-prefix-map flag which helps
reproducibility as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibjpeg-turbo: Use --reproducible option for nasm
Khem Raj [Thu, 29 Apr 2021 02:50:57 +0000 (19:50 -0700)]
libjpeg-turbo: Use --reproducible option for nasm

This ensures that nasm version and timestamps do but appear in build
outputs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoltp: Replace musl patches with do_patch[postfuncs]
Petr Vorel [Wed, 28 Apr 2021 19:17:36 +0000 (21:17 +0200)]
ltp: Replace musl patches with do_patch[postfuncs]

MUSL related build fixes are not going to be upstreamed.  They just not
compile broken files, thus replace them with upstream solution for CI:
just deleting files for musl (easier to maintain).

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomesa: upgrade 21.0.2 -> 21.0.3
wangmy [Thu, 29 Apr 2021 01:58:13 +0000 (09:58 +0800)]
mesa: upgrade 21.0.2 -> 21.0.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopatchelf: Fix note section alignment issues
Richard Purdie [Sat, 1 May 2021 16:10:21 +0000 (17:10 +0100)]
patchelf: Fix note section alignment issues

Improve note section normalization was added to patchelf in recent versions
however if fails if there are two note sections which aren't sized to match
section alignment. Tweak the code to account for section alignment.

This fixes patchelf failures on the autobuilder, particularly to ccache-native.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibxcrypt: Update to 4.4.19 release and fix symbol version issues
Richard Purdie [Fri, 30 Apr 2021 09:35:02 +0000 (10:35 +0100)]
libxcrypt: Update to 4.4.19 release and fix symbol version issues

This patch upgrades to the 4.4.19 release and replaces a configure patch
from "libxcrypt: fix sporadic failures in nativesdk-libxcrypt-compat" with
a fix to avoid leading spaces in CFLAGS causing failures.

The license changed a few filenames listed in the license but the overall
license remains unchanged.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobuildstats.bbclass: collect data in the same file.
Sakib Sajal [Tue, 27 Apr 2021 21:19:08 +0000 (17:19 -0400)]
buildstats.bbclass: collect data in the same file.

Previously "at interval" and "on failure" logs were collected
in separate files. Collect both types of logging in the same
file for better analysis.

Introduced new variable which allows different set of commands
to be run by the different logging, interval or failure. The
variables are BB_LOG_HOST_STAT_CMDS_INTERVAL and
BB_LOG_HOST_STAT_CMDS_FAILURE respecteviely.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocore-image-multilib-example: base on weston, and not sato
Alexander Kanavin [Fri, 23 Apr 2021 18:02:52 +0000 (20:02 +0200)]
core-image-multilib-example: base on weston, and not sato

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/selftest: transition to weston images
Alexander Kanavin [Fri, 23 Apr 2021 18:02:51 +0000 (20:02 +0200)]
oeqa/selftest: transition to weston images

For readonly rootfs tests core-image-weston
is appended; everywhere else it replaces core-image-sato.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/core/tests/test_data.py: use weston image instead of sato
Alexander Kanavin [Fri, 23 Apr 2021 18:02:50 +0000 (20:02 +0200)]
oeqa/core/tests/test_data.py: use weston image instead of sato

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocore-image-weston: add sdk/ptest images
Alexander Kanavin [Fri, 23 Apr 2021 18:02:48 +0000 (20:02 +0200)]
core-image-weston: add sdk/ptest images

This is the first step towards rebasing the AB matrix from sato to
weston; the eventual goal is to keep sato only in core-image-sato
image.

The broader rationale is that X11 is effectively deprecated technology
at this point with only minimal maintenance; standalone X server will not
be developed any further, and all attention currently is towards making
it work well under Wayland.

I believe YP should be defaulting to Wayland and not X11.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolicense_image.bbclass: Fix symlink to generic license files
Reto Schneider [Mon, 26 Apr 2021 21:27:57 +0000 (23:27 +0200)]
license_image.bbclass: Fix symlink to generic license files

Link to the canonical filename of a license as only this one exists.

Fixes commit 670fe71dd18ea675f35581db4a61fda137f8bf00
[license_image.bbclass: use canonical name for license files].

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolicense_image.bbclass: Detect broken symlinks
Reto Schneider [Mon, 26 Apr 2021 21:27:56 +0000 (23:27 +0200)]
license_image.bbclass: Detect broken symlinks

Find and report symlinks which point to a non-existing file.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooe-time-dd-test.sh: collect cooker log when timeout is exceeded
Sakib Sajal [Mon, 26 Apr 2021 19:51:59 +0000 (15:51 -0400)]
oe-time-dd-test.sh: collect cooker log when timeout is exceeded

Collect the last 30 lines from the cooker.log
whenever the timeout is exceeded.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognutls: Point to staging area for finding seccomp libs and includes
Khem Raj [Mon, 26 Apr 2021 18:06:15 +0000 (11:06 -0700)]
gnutls: Point to staging area for finding seccomp libs and includes

This ensures that if libseccomp is installed on build host then it does
not resort to use it.

Fixes
checking for libseccomp... (cached) yes
checking how to link with libseccomp... /usr/lib/libseccomp.so

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemurunner: Add support for qmp commands
Saul Wold [Mon, 26 Apr 2021 14:45:10 +0000 (07:45 -0700)]
qemurunner: Add support for qmp commands

This adds support for the Qemu Machine Protocol [0] extending
the current dump process for Host and Target. The commands are
added in the testimage.bbclass.

Currently, we setup qemu to stall until qmp gets connected and
sends the initialization and continue commands, this works
correctly. If the UNIX Socket does not exist, we wait an timeout
to ensure to socket file is created.

With this version, the monitor_dumper is created in OEQemuTarget
but then set in OESSHTarget as that's where we get the SSH failure
happens. Python's @property is used to create a setter/getter type
of setup in OESSHTarget to get overridden by OEQemuTarget.

By default the data is currently dumped to files for each command in
TMPDIR/log/runtime-hostdump/<date>_qmp/unknown_<seq>_qemu_monitor as
this is the naming convenstion in the dump.py code.

We use the qmp.py from qemu, which needs to get installed in the
recipe-sysroot-native of the target image.

[0] https://github.com/qemu/qemu/blob/master/docs/interop/qmp-spec.txt

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu-system-native: install qmp python module
Saul Wold [Mon, 26 Apr 2021 14:45:09 +0000 (07:45 -0700)]
qemu-system-native: install qmp python module

The qmp python module supports the Qemu Machine Protocol [0].
This module needs to be installed in a known location so the
qemurunner python script can find the qmp module.

This change causes it to be installed in the recipe-sysroot-native
of the target image and that directory can be added to the python
sys.path that needs to use the qmp.py module.

[0] https://github.com/qemu/qemu/blob/master/docs/interop/qmp-spec.txt

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc-cross-canadian: Install LTO linker plugin to BFD searchable location
Khem Raj [Sun, 25 Apr 2021 19:08:28 +0000 (12:08 -0700)]
gcc-cross-canadian: Install LTO linker plugin to BFD searchable location

This helps binutils provided tools ar/ranlib/nm to find the LTO linker
plugin automatically as well which makes it equivalent to gcc-ar/gcc-nm/gcc-ranlib

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc-cross: Install linker LTO plugin for binutils tools
Khem Raj [Sun, 25 Apr 2021 19:08:29 +0000 (12:08 -0700)]
gcc-cross: Install linker LTO plugin for binutils tools

This will ensure that ar/ranlib/nm can load the lto linker plugin like
gcc-ar, gcc-nm, gcc-ranlib does, this will let the behaviour match
between gcc wrappers for these tools, this should help LTO builds for
packages

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobitbake.conf: Use gcc-nm as default NM
Khem Raj [Sun, 25 Apr 2021 19:08:27 +0000 (12:08 -0700)]
bitbake.conf: Use gcc-nm as default NM

This ensures linker LTO plugin is loaded correctly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc-target: Create a LTO plugin symlink in bfd-plugins directory
Khem Raj [Sun, 25 Apr 2021 19:08:26 +0000 (12:08 -0700)]
gcc-target: Create a LTO plugin symlink in bfd-plugins directory

This directory is scanned by binutils provided ar,ranlib,nm for plugins
that it can load automatically, putting liblto_plugin.so in their means
we do not need gcc-ar, gcc-nm, gcc-ranlib particularly as normal
ar/ranlib/nm tools will work equally well as they can now use this
linker plugin by default

This also mean we can revert back to using ar/ranlib/nm as default
providers for AR/NM/RANLIB on target

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodefault-distrovars.inc: Remove seccomp for riscv32
Khem Raj [Mon, 26 Apr 2021 01:20:22 +0000 (18:20 -0700)]
default-distrovars.inc: Remove seccomp for riscv32

libseccomp needs too be ported to rv32 first

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorsync: fix CVE-2020-14387
Chen Qi [Sun, 25 Apr 2021 05:32:52 +0000 (13:32 +0800)]
rsync: fix CVE-2020-14387

Backport patch to fix CVE-2020-14387.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodefault-distrovars.inc: Add seccomp to DISTRO_FEATURES_DEFAULT
Armin Kuster [Sat, 24 Apr 2021 15:56:39 +0000 (15:56 +0000)]
default-distrovars.inc: Add seccomp to DISTRO_FEATURES_DEFAULT

Since xattr is included, seccomp should be too

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoapt: Fix build on musl when seccomp is enabled
Khem Raj [Sun, 25 Apr 2021 16:01:00 +0000 (09:01 -0700)]
apt: Fix build on musl when seccomp is enabled

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoapt: Disable libseccomp
Richard Purdie [Sun, 25 Apr 2021 16:55:19 +0000 (17:55 +0100)]
apt: Disable libseccomp

This isn't in DEPENDS and isn't configured. It can detect the library when
pulled in via other dependencies meaning the build isn't deterministic.

Ultimately this could become a PACKAGECONFIG. It doesn't build on musl
so disable it for now until someone fixes and sorts this out properly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: Enable seccomp if FEATURE is set
Armin Kuster [Sat, 24 Apr 2021 15:56:35 +0000 (15:56 +0000)]
qemu: Enable seccomp if FEATURE is set

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosystemd: Enable seccomp if FEATURE is set
Armin Kuster [Sat, 24 Apr 2021 15:56:37 +0000 (15:56 +0000)]
systemd: Enable seccomp if FEATURE is set

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognutls: Enable seccomp if FEATURE is set
Armin Kuster [Sat, 24 Apr 2021 15:56:36 +0000 (15:56 +0000)]
gnutls: Enable seccomp if FEATURE is set

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibseccomp: Fix reproducibility issue
Richard Purdie [Sun, 25 Apr 2021 16:55:03 +0000 (17:55 +0100)]
libseccomp: Fix reproducibility issue

Rather than installing libtool wrapper scripts which won't work on target
and aren't reproducible, use the real binaries.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibseccomp: Add MAINTAINERS entry and HOMEPAGE
Richard Purdie [Sat, 24 Apr 2021 16:56:04 +0000 (17:56 +0100)]
libseccomp: Add MAINTAINERS entry and HOMEPAGE

Add entries for the migrated recipe to passify the various checks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibseccomp: move recipe from meta-security to core
Armin Kuster [Sat, 24 Apr 2021 15:56:34 +0000 (15:56 +0000)]
libseccomp: move recipe from meta-security to core

ptest results:
Regression Test Summary
 tests run: 1404
 tests skipped: 369
 tests passed: 1402
 tests failed: 2
 tests errored: 154

Add feature_check so that the other recipes who can take
advantage of this funtionality can enable it.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-firmware: Package RSI 911x WiFi firmware
Marek Vasut [Fri, 12 Mar 2021 20:57:36 +0000 (21:57 +0100)]
linux-firmware: Package RSI 911x WiFi firmware

The RSI 911x WiFi firmware is already part of the linux-firmware
repository, package it to make it easily available.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoyocto-check-layer: Avoid bug when iterating and autoadding dependencies
Richard Purdie [Sat, 24 Apr 2021 14:23:54 +0000 (15:23 +0100)]
yocto-check-layer: Avoid bug when iterating and autoadding dependencies

If iterating a layer with multiple components and auto-adding dependencies
the tests can break since layers are never removed and order isn't guaranteed
to account for that.

Fix this by resetting the layer list back to the original list each time
before auto-adding the dependencies in each case.

This fixes scanning of meta-openembedded in particular where the sublayers
may not be added in order of minimal dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibssh2: fix build failure with option no-ecdsa
Stefan Ghinea [Fri, 23 Apr 2021 17:18:26 +0000 (20:18 +0300)]
libssh2: fix build failure with option no-ecdsa

libssh2 fails at do_compile if
DEPRECATED_CRYPTO_FLAGS = "no-ecdsa" is set in recipe:

../src/.libs/libssh2.so: undefined reference to
`LIBSSH2_KEX_METHOD_EC_SHA_HASH_CREATE_VERIFY'

References:
https://github.com/libssh2/libssh2/issues/549

Upstream patches:
https://github.com/libssh2/libssh2/commit/1f76151c92e1b52e9c24ebf06adc77fbd6c062bc

Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopyyaml: Add missing HOMEPAGE
Richard Purdie [Sat, 24 Apr 2021 13:50:57 +0000 (14:50 +0100)]
pyyaml: Add missing HOMEPAGE

Add a HOMEPAGE to the new recipe to avoid sanity test failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-pyyaml: Add recipe
Khem Raj [Fri, 23 Apr 2021 20:03:59 +0000 (13:03 -0700)]
python3-pyyaml: Add recipe

This is migrated from meta-python

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-jinja2: Enable ptests
Khem Raj [Fri, 23 Apr 2021 20:03:58 +0000 (13:03 -0700)]
python3-jinja2: Enable ptests

Needed dependencies on toml and pytest and unixadmin
are in core now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-markupsafe: Enable ptests
Khem Raj [Fri, 23 Apr 2021 20:03:57 +0000 (13:03 -0700)]
python3-markupsafe: Enable ptests

pytest is now in OE-Core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-docutils: Upgrade to 0.17.1
Khem Raj [Fri, 23 Apr 2021 20:03:56 +0000 (13:03 -0700)]
python3-docutils: Upgrade to 0.17.1

This was in meta-python for a while so merge the changes here
and  upgrade, once applied, delete from meta-python

License-Change: Deleted legacy stylesheets from LICENSE [1]
                Updated URI for BSD-2 [2]

[1] https://sourceforge.net/p/docutils/code/8487/
[2] https://sourceforge.net/p/docutils/code/8554/

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcr: fix one parallel build failure
Changqing Li [Fri, 23 Apr 2021 09:43:07 +0000 (17:43 +0800)]
gcr: fix one parallel build failure

ui/gcr-live-search.c includes gcr/gcr-marshal.h. Because missing
dependency, following error occurred intermittently during doing parallel
build:

 -o ui/libgcr-ui-3.so.1.0.0.p/gcr-live-search.c.o -c ../gcr-3.38.1/ui/gcr-live-search.c
../gcr-3.38.1/ui/gcr-live-search.c:32:10: fatal error: gcr/gcr-marshal.h: No such file or directory
   32 | #include "gcr/gcr-marshal.h"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agounzip: use optimization from bitbake
Mikko Rapeli [Thu, 22 Apr 2021 14:41:14 +0000 (17:41 +0300)]
unzip: use optimization from bitbake

Build with bitbake default optimizations, e.g. O2,
instead of custom O3. Reduces unzip binary package
size from 304401 to 283921 bytes, and enables building
with Os to even further reduce binary size if needed
and configured for the whole system.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix CVE-2021-20257
Sakib Sajal [Fri, 23 Apr 2021 04:45:05 +0000 (00:45 -0400)]
qemu: fix CVE-2021-20257

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix CVE-2021-3416
Sakib Sajal [Fri, 23 Apr 2021 04:45:04 +0000 (00:45 -0400)]
qemu: fix CVE-2021-3416

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix CVE-2021-3409
Sakib Sajal [Fri, 23 Apr 2021 04:45:03 +0000 (00:45 -0400)]
qemu: fix CVE-2021-3409

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix CVE-2021-20221
Sakib Sajal [Fri, 23 Apr 2021 04:45:02 +0000 (00:45 -0400)]
qemu: fix CVE-2021-20221

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix CVE-2020-29443
Sakib Sajal [Fri, 23 Apr 2021 04:45:01 +0000 (00:45 -0400)]
qemu: fix CVE-2020-29443

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix CVE-2021-20181
Sakib Sajal [Fri, 23 Apr 2021 04:45:00 +0000 (00:45 -0400)]
qemu: fix CVE-2021-20181

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel-yocto.bbclass: chdir to ${WORKDIR} for do_kernel_checkout
Kai Kang [Fri, 23 Apr 2021 03:29:04 +0000 (11:29 +0800)]
kernel-yocto.bbclass: chdir to ${WORKDIR} for do_kernel_checkout

It chdirs to ${S} at the beginning of task do_kernel_checkout. Then it
removes ${S} when it still resides in ${S}. It may fail to run the task
do_kernel_checkout when bitbake is called by third-part wrapper script.
So chdir to ${WORKDIR} by default for do_kernel_checkout. And it will
chdir to ${S} afterwards in task do_kernel_checkout.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocmake.bbclass: remove ${B} before cmake_do_configure
Kai Kang [Fri, 23 Apr 2021 03:29:03 +0000 (11:29 +0800)]
cmake.bbclass: remove ${B} before cmake_do_configure

It is fallible to remove ${B} in directory ${B} itself. And it does fail
when call bitbake by third-party wrapper script.

Use flag 'cleandirs' to remove ${B} first if build out of source tree.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolz4: use CFLAGS from bitbake
Mikko Rapeli [Thu, 22 Apr 2021 14:41:52 +0000 (17:41 +0300)]
lz4: use CFLAGS from bitbake

Currently lz4 uses it's own defaults which include O3 optimization.
Switch from O3 to bitbake default O2 reduces binary package size
from 467056 to 331888 bytes. Enables also building with Os if needed.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoperl: fix startperl configuration option for perl-native
Paulo Cesar Zaneti [Mon, 19 Apr 2021 13:55:55 +0000 (10:55 -0300)]
perl: fix startperl configuration option for perl-native

Unlike vanilla Perl "Configure" script, perl-cross "configure" does not
derive "startperl" from "bin". It instead derives from "perlpath".

This patch aims to fix "startperl" configuration option for perl-native by
correctly setting "perlpath" on perl-cross "configure" script.

It also changes do_install_append_class-native task to comply with
cpan_do_install task.

Signed-off-by: Paulo Cesar Zaneti <paulo.zaneti@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agollvm: Upgrade to LLVM 12 release
Khem Raj [Thu, 22 Apr 2021 16:04:32 +0000 (09:04 -0700)]
llvm: Upgrade to LLVM 12 release

Drop backported patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowpebackend-fdo: upgrade 1.8.2 -> 1.8.3
wangmy [Thu, 22 Apr 2021 07:59:10 +0000 (15:59 +0800)]
wpebackend-fdo: upgrade 1.8.2 -> 1.8.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoboost: upgrade 1.75.0 -> 1.76.0
wangmy [Thu, 22 Apr 2021 07:58:24 +0000 (15:58 +0800)]
boost: upgrade 1.75.0 -> 1.76.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotiff: upgrade 4.2.0 -> 4.3.0
wangmy [Thu, 22 Apr 2021 07:54:06 +0000 (15:54 +0800)]
tiff: upgrade 4.2.0 -> 4.3.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-cython: upgrade 0.29.22 -> 0.29.23
wangmy [Thu, 22 Apr 2021 07:54:05 +0000 (15:54 +0800)]
python3-cython: upgrade 0.29.22 -> 0.29.23

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomtools: upgrade 4.0.26 -> 4.0.27
wangmy [Thu, 22 Apr 2021 07:54:03 +0000 (15:54 +0800)]
mtools: upgrade 4.0.26 -> 4.0.27

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopenssh: upgrade 8.5p1 -> 8.6p1
wangmy [Thu, 22 Apr 2021 07:54:04 +0000 (15:54 +0800)]
openssh: upgrade 8.5p1 -> 8.6p1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibsolv: upgrade 0.7.18 -> 0.7.19
zhengruoqin [Thu, 22 Apr 2021 16:01:45 +0000 (00:01 +0800)]
libsolv: upgrade 0.7.18 -> 0.7.19

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibical: upgrade 3.0.9 -> 3.0.10
zhengruoqin [Thu, 22 Apr 2021 16:01:28 +0000 (00:01 +0800)]
libical: upgrade 3.0.9 -> 3.0.10

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibhandy: upgrade 1.2.0 -> 1.2.1
zhengruoqin [Thu, 22 Apr 2021 16:00:47 +0000 (00:00 +0800)]
libhandy: upgrade 1.2.0 -> 1.2.1

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibedit: upgrade 20210216-3.1 -> 20210419-3.1
zhengruoqin [Thu, 22 Apr 2021 16:00:18 +0000 (00:00 +0800)]
libedit: upgrade 20210216-3.1 -> 20210419-3.1

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomusl: Update to latest master
Khem Raj [Thu, 22 Apr 2021 05:43:49 +0000 (22:43 -0700)]
musl: Update to latest master

changelog [1]

aad50fcd fix regression in dl_iterate_phdr reporting of modules with no TLS
0ea78a64 nscd: fall back gracefully on kernels without AF_UNIX support
95a540e1 mallocng/aligned_alloc: check for malloc failure
2c00f95c make epoll_[p]wait a cancellation point
521b4d27 fix dl_iterate_phdr dlpi_tls_data reporting to match spec
122002f0 remove no-longer-needed special case handling in popen
8ef9d46f use internal malloc for posix_spawn file actions objects
cfdfd5ea don't fail to map library/executable with zero-length segment maps
e48e99c1 suppress isascii() macro for C++
b129cd86 guard against compilers failing to handle setjmp specially by default
3309e2d7 aarch64/bits/mman.h: add PROT_MTE from linux v5.10
44331150 aarch64/bits/hwcap.h: add HWCAP2_MTE from linux v5.10
42aa19a0 add aarch64/bits/mman.h with PROT_BTI from linux v5.8
b7554b5e aarch64/bits/hwcap.h: add HWCAP2_BTI from linux v5.8
87b8f148 signal.h: add MTE specific SIGSEGV codes from linux v5.10
19239cde sys/prctl.h: add MTE related constants from linux v5.10
8b29f023 elf.h: add NT_ARM_TAGGED_ADDR_CTRL from linux v5.10
d7210f0c sys/mman.h: add MAP_HUGE_16KB from linux v5.10
a7456524 sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10
54ca1cc7 sys/membarrier.h: add new constants from linux v5.10
fd285f9d bits/syscall.h: add process_madvise from linux v5.10
49b6df3d fix error return value for cuserid
cc577d0e fix misuse of getpwuid_r in cuserid
a75283d7 cuserid: don't return truncated results
ef137da6 cuserid: support invocation with a null pointer argument

[1] https://git.musl-libc.org/cgit/musl/log/\?qt\=range\&q\=e5d2823631bbfebacf48e1a34ed28f28d7cb2570..aad50fcd791e009961621ddfbe3d4c245fd689a3

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agovalgrind: Enable drd/tests/bar_bad* ptest
Yi Fan Yu [Tue, 20 Apr 2021 23:13:15 +0000 (16:13 -0700)]
valgrind: Enable drd/tests/bar_bad* ptest

Revert some of 7f7d2fa18267090891754d976cbc3e628324d3dd

Was not able to reproduce the reported non-deterministic failure.
(ran 20 times on qemux86-64 on a relatively isolated machine)
it might be related to the AB-INT issues,
but it seems to only affect ARM builders now.

Also no action taken by upstream valgrind to fix
https://bugs.kde.org/show_bug.cgi?id=430321

Let it run on AB to see if failure was fixed by uprev to 3.17.0.
if not, we can gather more data from the AB failure.

[YOCTO #14051]

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agore2c: Upgrade 2.0.3 -> 2.1.1
Yi Fan Yu [Tue, 20 Apr 2021 21:50:26 +0000 (17:50 -0400)]
re2c: Upgrade 2.0.3 -> 2.1.1

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogo: Use dl.google.com for SRC_URI
Khem Raj [Tue, 20 Apr 2021 18:28:38 +0000 (11:28 -0700)]
go: Use dl.google.com for SRC_URI

golang.org/dl is resolving to this anyway

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobinutils: Fix linking failures when using dwarf-5
Khem Raj [Tue, 20 Apr 2021 18:28:37 +0000 (11:28 -0700)]
binutils: Fix linking failures when using dwarf-5

Since GCC 11 will switch to dwarf-5 as default, this patch will be
required soon

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agometa/lib/oeqa/core/tests/cases/timeout.py: add a testcase for the previous fix
Alexander Kanavin [Tue, 20 Apr 2021 17:32:59 +0000 (19:32 +0200)]
meta/lib/oeqa/core/tests/cases/timeout.py: add a testcase for the previous fix

This is the sequence that didn't properly operate:

- a test case that skips and isn't executed
- a second test case that is skipped via a dependency decorator, and sets a timeout
- a third test case that takes longer than the timeout from the second
test case

Without the fix, the timeout is not cleared, and the third test case is
erroneously aborted. With the fix, the timeout is cleared and the third
test case is able to complete.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa: tear down oeqa decorators if one of them raises an exception in setup
Alexander Kanavin [Tue, 20 Apr 2021 17:32:58 +0000 (19:32 +0200)]
oeqa: tear down oeqa decorators if one of them raises an exception in setup

Some of the decorators need proper cleanup, such as OETimeout
which sets a signal handler that needs to be cleared via teardown.
If this is not done then the signal gets called later with unpredictable effects.

This can be seen if there's a test that is skipped via a decorator and sets a timeout
at the same time: the timeout isn't cleared, and is invoked later in a
completely unrelated context. The test case for this is added in the
next commit.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston: fix build failure due to race condition
Chen Qi [Wed, 21 Apr 2021 04:43:58 +0000 (21:43 -0700)]
weston: fix build failure due to race condition

The wayland.c actually include 'xdg-shell-client-protocol.h' instead of
the server one, so fix it. Otherwise, it's possible to get build failure
due to race condition.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorpm: Upgrade to 4.16.1.3
Mingli Yu [Wed, 21 Apr 2021 01:58:50 +0000 (09:58 +0800)]
rpm: Upgrade to 4.16.1.3

Fixes some security vulnerabilities such as CVE-2021-3421 and
CVE-2021-20271.

Rebase 0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch
to avoid fuzz warnings.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoofono: prevent using bundled ell headers and fix build with ell-0.39
Martin Jansa [Wed, 21 Apr 2021 11:07:56 +0000 (13:07 +0200)]
ofono: prevent using bundled ell headers and fix build with ell-0.39

* -I../ofono-1.31 is included when building drivers/mbimmodem/mbim.c and then
  ell.h will happily include ell/util.h from there:

  # 1 "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/ofono/1.31-r0/recipe-sysroot/usr/include/ell/ell.h" 1 3 4
  # 23 "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/ofono/1.31-r0/recipe-sysroot/usr/include/ell/ell.h" 3 4
  # 1 "../ofono-1.31/ell/util.h" 1 3 4
  # 26 "../ofono-1.31/ell/util.h" 3 4
  # 1 "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/ofono/1.31-r0/recipe-sysroot/usr/include/string.h" 1 3 4
  # 26 "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/ofono/1.31-r0/recipe-sysroot/usr/include/string.h" 3 4
  # 1 "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/ofono/1.31-r0/recipe-sysroot/usr/include/bits/libc-header-start.h" 1 3 4
  # 27 "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/ofono/1.31-r0/recipe-sysroot/usr/include/string.h" 2 3 4

* and it gets more interesting because unlikely() macro was dropped from ell/util.h in:
  https://git.kernel.org/pub/scm/libs/ell/ell.git/commit/?id=2a682421b06e41c45098217a686157f576847021
  and ofono builds from git (which doesn't bundle ell) were failing with:

drivers/mbimmodem/mbim-message.c: In function 'message_iter_next_entry_valist':
drivers/mbimmodem/mbim-message.c:504:8: warning: implicit declaration of function 'unlikely' [-Wimplicit-function-declaration]
  504 |    if (unlikely(indent > MAX_NESTING))
      |        ^~~~~~~~
...
x86_64-webos-linux-libtool: link: x86_64-webos-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0/recipe-sysroot -I/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0/recipe-sysroot/usr/include/dbus-1.0 -I/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0/recipe-sysroot/usr/lib/dbus-1.0/include -I/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0/recipe-sysroot/usr/include/glib-2.0 -I/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0/recipe-sysroot/usr/lib/glib-2.0/include -DOFONO_PLUGIN_BUILTIN -DPLUGINDIR=\"/usr/lib/ofono/plugins\" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0=/usr/src/debug/ofono/1.31+gitAUTOINC+0db662bd6b-r0 -fdebug-prefix-map=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0=/usr/src/debug/ofono/1.31+gitAUTOINC+0db662bd6b-r0 -fdebug-prefix-map=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0/recipe-sysroot= -fdebug-prefix-map=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/ofono/1.31+gitAUTOINC+0db662bd6b-r0/recipe-sysroot-native= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o unit/test-mbim unit/test-mbim.o drivers/mbimmodem/mbim-message.o drivers/mbimmodem/mbim.o  -lell
drivers/mbimmodem/mbim-message.c:1389: error: undefined reference to 'unlikely'
drivers/mbimmodem/mbim-message.c:1255: error: undefined reference to 'unlikely'
drivers/mbimmodem/mbim-message.c:514: error: undefined reference to 'unlikely'
drivers/mbimmodem/mbim-message.c:504: error: undefined reference to 'unlikely'
collect2: error: ld returned 1 exit status

  while build from 1.31 tarball was passing OK, because using this older
  bundled ell/util.h

  delete bundled ell as we always enable external ell to make sure this
  doesn't happen again and fix mbimmodem to build with ell-0.39

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/selftest/bblayers: Add test case for bitbake-layers layerindex-show-depends
Diego Sueiro [Wed, 21 Apr 2021 15:25:15 +0000 (16:25 +0100)]
oeqa/selftest/bblayers: Add test case for bitbake-layers layerindex-show-depends

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodefault-distrovars.inc: add debuginfod to default DISTRO_FEATURES
Alexander Kanavin [Mon, 19 Apr 2021 09:00:43 +0000 (11:00 +0200)]
default-distrovars.inc: add debuginfod to default DISTRO_FEATURES

Obtaining debug information by having it served automatically via http
is far more pleasant than messing about with debugfs and gdbserver or
transferring and installing -dbg packages by hand.

I believe we should follow the desktop distros and have it enabled
out of the box. Please see the following commit for the description
of how it works.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoelfutils: Make 64bit time_t fix generic
Khem Raj [Wed, 21 Apr 2021 19:28:17 +0000 (12:28 -0700)]
elfutils: Make 64bit time_t fix generic

Apply it always since more than x32 needs it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoelfutils: adjust ptests for correct debuginfod testing
Alexander Kanavin [Tue, 20 Apr 2021 12:05:49 +0000 (14:05 +0200)]
elfutils: adjust ptests for correct debuginfod testing

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoelfutils: correct debuginfod builds on x32
Alexander Kanavin [Tue, 20 Apr 2021 12:05:48 +0000 (14:05 +0200)]
elfutils: correct debuginfod builds on x32

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibpam: make volatile files created successfully
Changqing Li [Tue, 20 Apr 2021 08:22:15 +0000 (16:22 +0800)]
libpam: make volatile files created successfully

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/manual/bsp-hw.json : remove Test_if_usb_hid_device_works_well_after_resume_from_...
Teoh Jay Shen [Thu, 22 Apr 2021 01:11:44 +0000 (09:11 +0800)]
oeqa/manual/bsp-hw.json : remove Test_if_usb_hid_device_works_well_after_resume_from_suspend_state manual test

Remove the Test_if_usb_hid_device_works_well_after_resume_from_suspend_state test as it was replaced by the new automated runtime oeqa/runtime/cases/usb_hid.py.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/manual/bsp-hw.json :remove Check_if_RTC_(Real_Time_Clock)_can_work_correctly...
Teoh Jay Shen [Thu, 22 Apr 2021 01:11:43 +0000 (09:11 +0800)]
oeqa/manual/bsp-hw.json :remove Check_if_RTC_(Real_Time_Clock)_can_work_correctly manual test

Remove the Check_if_RTC_(Real_Time_Clock)_can_work_correctly test as it was replaced by the new automated runtime oeqa/runtime/cases/rtc.py.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/manual/bsp-hw.json : remove click_terminal_icon_on_X_desktop manual test
Teoh Jay Shen [Thu, 22 Apr 2021 01:11:42 +0000 (09:11 +0800)]
oeqa/manual/bsp-hw.json : remove click_terminal_icon_on_X_desktop manual test

Remove the click_terminal_icon_on_X_desktop test as it was replaced by the new automated runtime oeqa/runtime/cases/terminal.py.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/manual/bsp-hw.json : remove standby and Test_if_LAN_device_works_well_after_resu...
Teoh Jay Shen [Thu, 22 Apr 2021 01:11:41 +0000 (09:11 +0800)]
oeqa/manual/bsp-hw.json : remove standby and Test_if_LAN_device_works_well_after_resume_from_suspend_state manual test

Remove standby and Test_if_LAN_device_works_well_after_resume_from_suspend_state test as they was replaced by the new automated runtime oeqa/runtime/cases/suspend.py.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/manual/bsp-hw.json : remove ethernet_static_ip_set_in_connman and ethernet_get_I...
Teoh Jay Shen [Thu, 22 Apr 2021 01:11:40 +0000 (09:11 +0800)]
oeqa/manual/bsp-hw.json : remove ethernet_static_ip_set_in_connman and ethernet_get_IP_in_connman_via_DHCP manual test

Remove ethernet_static_ip_set_in_connman and ethernet_get_IP_in_connman_via_DHCP test as they was replaced by the new automated runtime oeqa/runtime/cases/ethernet_ip_connman.py.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/manual/bsp-hw.json : remove boot_from_runlevel_3 and boot_from_runlevel_5 manual...
Teoh Jay Shen [Thu, 22 Apr 2021 01:11:39 +0000 (09:11 +0800)]
oeqa/manual/bsp-hw.json : remove boot_from_runlevel_3 and boot_from_runlevel_5 manual test

Remove boot_from_runlevel_3 and boot_from_runlevel_5 test as they was replaced by the new automated runtime oeqa/runtime/cases/runlevel.py.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopatchelf: Backport fix from upstream for note section overlap error
Richard Purdie [Tue, 20 Apr 2021 14:13:53 +0000 (15:13 +0100)]
patchelf: Backport fix from upstream for note section overlap error

Backport a patch from upstream to fix an error:
patchelf: cannot normalize PT_NOTE segment: non-contiguous SHT_NOTE sections

seen on our ubuntu1604 autobuilder worker.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston: Drop loading xwayland.so module
Khem Raj [Wed, 21 Apr 2021 21:40:51 +0000 (14:40 -0700)]
weston: Drop loading xwayland.so module

This module is no longer installed by x11 instead it uses a stand along
server for xwayland, as a result when xwayland is enabled in
packageconfig in weston then it fails to load xwayland.so during runtime

Fixes

[21:07:12.-100663296] Old Xwayland module loading detected: Please use --xwayland command line option or set xwayland=true in the [core] section in weston.ini
[21:07:12.-100663296] Loading module '/usr/lib/libweston-9/xwayland.so'
[21:07:12.-100663296] Failed to load module: /usr/lib/libweston-9/xwayland.so: cannot open shared object file: No such file or directory
[21:07:12.-100663296] Destroying fbdev output.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoxwayland: add opengl to REQUIRED_DISTRO_FEATURES
Martin Jansa [Thu, 22 Apr 2021 07:37:33 +0000 (09:37 +0200)]
xwayland: add opengl to REQUIRED_DISTRO_FEATURES

* it depends on libepoxy which has this restriction
* fixes:
  ERROR: Nothing PROVIDES 'libepoxy' (but openembedded-core/meta/recipes-graphics/xwayland/xwayland_21.1.1.bb DEPENDS on or otherwise requires it)
  libepoxy was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
  ERROR: Nothing RPROVIDES 'xwayland' (but openembedded-core/meta/recipes-graphics/xwayland/xwayland_21.1.1.bb RDEPENDS on or otherwise requires it)
  No eligible RPROVIDERs exist for 'xwayland'
  NOTE: Runtime target 'xwayland' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['xwayland']
  ERROR: Nothing RPROVIDES 'xwayland-dev' (but openembedded-core/meta/recipes-graphics/xwayland/xwayland_21.1.1.bb RDEPENDS on or otherwise requires it)
  No eligible RPROVIDERs exist for 'xwayland-dev'
  NOTE: Runtime target 'xwayland-dev' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['xwayland-dev']

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-update-db-native: skip on empty cpe23Uri
Konrad Weihmann [Thu, 22 Apr 2021 16:48:27 +0000 (18:48 +0200)]
cve-update-db-native: skip on empty cpe23Uri

Recently an entry in the NVD DB appeared that looks like that
{'vulnerable': True, 'cpe_name': []}.
As besides all the vulnerable flag no data is present we would get
a KeyError exception on acccess.
Use get method on dictionary and return if no meta data is present
Also quit if the length of the array after splitting is less than 6

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorunqemu: Ensure we cleanup snapshot files after image run
Richard Purdie [Thu, 22 Apr 2021 09:54:49 +0000 (10:54 +0100)]
runqemu: Ensure we cleanup snapshot files after image run

We need to cleanup snapshot files if we make a copy of them to ensure
the tmpfs doesn't run out of space. There is already NFS code needing
this so make it a generic code path.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto/5.10: fix arm defconfig warnings
Bruce Ashfield [Tue, 20 Apr 2021 12:31:26 +0000 (08:31 -0400)]
linux-yocto/5.10: fix arm defconfig warnings

A recent fix to the kern-tools promoted some previously unseen
issues to warnings. This commit fixes them by tagging some BT
options as non-hardware so they won't generate warnings if they
don't appear in the final .config. These are sub BT options and
shouldn't warn when/if their controlling option is disabled by
a fragment.

    40a967b115f base: exclude some BT options as non-hardware

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto/5.4: fix arm defconfig warnings
Bruce Ashfield [Tue, 20 Apr 2021 12:30:53 +0000 (08:30 -0400)]
linux-yocto/5.4: fix arm defconfig warnings

A recent fix to the kern-tools promoted some previously unseen
issues to warnings. This commit fixes them by tagging some BT
options as non-hardware so they won't generate warnings if they
don't appear in the final .config. These are sub BT options and
shouldn't warn when/if their controlling option is disabled by
a fragment.

    d7fd0213b75 base: exclude some BT options as non-hardware

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto/5.4: update to v5.4.112
Bruce Ashfield [Mon, 19 Apr 2021 00:06:32 +0000 (20:06 -0400)]
linux-yocto/5.4: update to v5.4.112

Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:

    8f55ad4daf00 Linux 5.4.112
    ea42fd91d304 Revert "cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath."
    7ee5bde3164c net: ieee802154: stop dump llsec params for monitors
    b4042ecc12cb net: ieee802154: forbid monitor for del llsec seclevel
    e82f8b7713ab net: ieee802154: forbid monitor for set llsec params
    948a2817f71d net: ieee802154: fix nl802154 del llsec devkey
    b3a105e15cd6 net: ieee802154: fix nl802154 add llsec key
    4097afd93df7 net: ieee802154: fix nl802154 del llsec dev
    7d32fc7964d6 net: ieee802154: fix nl802154 del llsec key
    8f4c815c74f4 net: ieee802154: nl-mac: fix check on panid
    38ea2b3ed00f net: mac802154: Fix general protection fault
    6e7098f56c83 drivers: net: fix memory leak in peak_usb_create_dev
    32e2f9a708e1 drivers: net: fix memory leak in atusb_probe
    0a790ad1358b net: tun: set tun->dev->addr_len during TUNSETLINK processing
    ed13df88c6d5 cfg80211: remove WARN_ON() in cfg80211_sme_connect
    628ac886dfba net: sched: bump refcount for new action in ACT replace mode
    3dbafee8426f dt-bindings: net: ethernet-controller: fix typo in NVMEM
    f4c5968da773 clk: socfpga: fix iomem pointer cast on 64-bit
    35ba6d9240ee RAS/CEC: Correct ce_add_elem()'s returned values
    f666ad4f8d87 RDMA/addr: Be strict with gid size
    44d03319fe77 RDMA/cxgb4: check for ipv6 address properly while destroying listener
    3ca5345db92c net/mlx5: Fix PBMC register mapping
    798d94a274fb net/mlx5: Fix placement of log_max_flow_counter
    9716aac17419 net: hns3: clear VF down state bit before request link status
    9dd7092d1a96 openvswitch: fix send of uninitialized stack memory in ct limit reply
    731abf396e37 net: openvswitch: conntrack: simplify the return expression of ovs_ct_limit_get_default_limit()
    d0aab59f0993 perf inject: Fix repipe usage
    d3343a35d108 s390/cpcmd: fix inline assembly register clobbering
    c88fa8d4f994 workqueue: Move the position of debug_work_activate() in __queue_work()
    14060454cdb9 clk: fix invalid usage of list cursor in unregister
    bedda47d5dce clk: fix invalid usage of list cursor in register
    b3717885865c net: macb: restore cmp registers on resume path
    c61fe6b7e21f scsi: ufs: core: Fix wrong Task Tag used in task management request UPIUs
    81fddc7be649 scsi: ufs: core: Fix task management request completion timeout
    f6abec1a3172 scsi: ufs: Use blk_{get,put}_request() to allocate and free TMFs
    a8d2d45c70c7 scsi: ufs: Avoid busy-waiting by eliminating tag conflicts
    c5efc9d26c84 scsi: ufs: Fix irq return code
    537a2449cc6f net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
    de8c5962bdae drm/msm: Set drvdata to NULL when msm_drm_init() fails
    e22ce1d21b42 i40e: Fix display statistics for veb_tc
    7c0d2372298f soc/fsl: qbman: fix conflicting alignment attributes
    c178e8a19937 net/rds: Fix a use after free in rds_message_map_pages
    73f88cc2bf5c net/mlx5: Don't request more than supported EQs
    029416e14be2 net/mlx5e: Fix ethtool indication of connector type
    1f3010fc3fe6 ASoC: sunxi: sun4i-codec: fill ASoC card owner
    db4600aa938c net: phy: broadcom: Only advertise EEE for supported modes
    6aa7d2621b19 nfp: flower: ignore duplicate merge hints from FW
    bbbee59f4f32 net/ncsi: Avoid channel_monitor hrtimer deadlock
    c66b672a231c ARM: dts: imx6: pbab01: Set vmmc supply for both SD interfaces
    c991ca6a2c79 net:tipc: Fix a double free in tipc_sk_mcast_rcv
    200c8453287f cxgb4: avoid collecting SGE_QBASE regs during traffic
    e9bdd3e45f0e gianfar: Handle error code at MAC address change
    516c436ff5d6 can: bcm/raw: fix msg_namelen values depending on CAN_REQUIRED_SIZE
    ca443546f8d4 arm64: dts: imx8mm/q: Fix pad control of SD1_DATA0
    840a181729ac sch_red: fix off-by-one checks in red_check_params()
    accb27006595 amd-xgbe: Update DMA coherency values
    e472f6814ceb hostfs: fix memory handling in follow_link()
    613f35568a5d hostfs: Use kasprintf() instead of fixed buffer formatting
    fec47d458add i40e: Fix kernel oops when i40e driver removes VF's
    c0aacaa0a8f2 i40e: Added Asym_Pause to supported link modes
    f819977ad42c xfrm: Fix NULL pointer dereference on policy lookup
    bac7e764e5d5 ASoC: wm8960: Fix wrong bclk and lrclk with pll enabled for some chips
    b32969aaed1c ASoC: SOF: Intel: HDA: fix core status verification
    99b4e9af8f00 ASoC: SOF: Intel: hda: remove unnecessary parentheses
    540ddeed5c51 esp: delete NETIF_F_SCTP_CRC bit from features for esp offload
    a128e07b472b net: xfrm: Localize sequence counter per network namespace
    34659399e713 regulator: bd9571mwv: Fix AVS and DVFS voltage range
    d78e99dd4960 xfrm: interface: fix ipv4 pmtu check to honor ip header df
    7977d5fe3d5b net: dsa: lantiq_gswip: Configure all remaining GSWIP_MII_CFG bits
    249908ed36a8 net: dsa: lantiq_gswip: Don't use PHY auto polling
    910e785ba8de virtio_net: Add XDP meta data support
    0534f1f1bc76 i2c: turn recovery error on init to debug
    cafced041915 usbip: synchronize event handler with sysfs code paths
    37168011d427 usbip: vudc synchronize sysfs code paths
    06fedcc6870e usbip: stub-dev synchronize sysfs code paths
    6a435364b608 usbip: add sysfs_lock to synchronize sysfs code paths
    b02bded94b91 net: let skb_orphan_partial wake-up waiters.
    fd8a95d56050 net-ipv6: bugfix - raw & sctp - switch to ipv6_can_nonlocal_bind()
    b5e7653ffdd1 net: hsr: Reset MAC header for Tx path
    a9311be5f617 mac80211: fix TXQ AC confusion
    5a4f39f19e6f net: sched: sch_teql: fix null-pointer dereference
    2f5edf14f62a i40e: Fix sparse error: 'vsi->netdev' could be null
    b31d91e9e8c8 i40e: Fix sparse warning: missing error code 'err'
    599200ad44e7 net: ensure mac header is set in virtio_net_hdr_to_skb()
    158a9b815c54 bpf, sockmap: Fix sk->prot unhash op reset
    0242251d6a97 ethernet/netronome/nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx
    4a2933c88399 net: hso: fix null-ptr-deref during tty device unregistration
    ef2ccf84071f ice: Cleanup fltr list in case of allocation issues
    0df579b3de8c ice: Fix for dereference of NULL pointer
    1aecc5781101 ice: Increase control queue timeout
    9de1caa1103f batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field
    79407ae3475e ARM: dts: turris-omnia: configure LED[2]/INTn pin as interrupt pin
    9dfd74a8c015 parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers
    957d0308aa36 parisc: parisc-agp requires SBA IOMMU driver
    507c2009dc4c fs: direct-io: fix missing sdio->boundary
    f495bedb001b ocfs2: fix deadlock between setattr and dio_end_io_write
    52999a66c0b3 nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff
    75fd54ea1b60 ia64: fix user_stack_pointer() for ptrace()
    7a92396bf8dd gcov: re-fix clang-11+ support
    c2b3cf2c70d6 drm/i915: Fix invalid access to ACPI _DSM objects
    0e8f850e26b2 net: dsa: lantiq_gswip: Let GSWIP automatically set the xMII clock
    6649b5eda131 net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh
    a09acbb53934 xen/evtchn: Change irq_info lock to raw_spinlock_t
    aa0cff2e0751 nfc: Avoid endless loops caused by repeated llcp_sock_connect()
    404daa4d62a3 nfc: fix memory leak in llcp_sock_connect()
    41bc58ba0945 nfc: fix refcount leak in llcp_sock_connect()
    c89903c9eff2 nfc: fix refcount leak in llcp_sock_bind()
    12289d9840d6 ASoC: intel: atom: Stop advertising non working S24LE support
    c99780f782aa ALSA: hda/realtek: Fix speaker amp setup on Acer Aspire E1
    da8f3cc5771e ALSA: aloop: Fix initialization of controls
    8732c2df9d15 counter: stm32-timer-cnt: fix ceiling miss-alignment with reload register

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto-rt/5.10: update to -rt34
Bruce Ashfield [Mon, 19 Apr 2021 00:06:31 +0000 (20:06 -0400)]
linux-yocto-rt/5.10: update to -rt34

Integrating the following commit(s) to linux-yocto/5.10:

    ac98a75ef2bc net/xfrm: fixup 5.10.30 -stable merge

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>