]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
3 years agokernel.bbclass: Use KERNEL_IMAGEDEST instead of hardcoded boot path
Alessio Igor Bogani [Fri, 1 Apr 2022 11:26:41 +0000 (13:26 +0200)] 
kernel.bbclass: Use KERNEL_IMAGEDEST instead of hardcoded boot path

The behaviour doesn't change because KERNEL_IMAGEDEST is defined as
'boot' in the same file (line 215).

Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopopt: add ptest
Simone Weiss [Fri, 1 Apr 2022 14:46:29 +0000 (16:46 +0200)] 
popt: add ptest

Add a ptest for popt to core-image-ptest-all. Provide a patch to popt to
adopt the test format to "simple test" and a script for running the test.
All tests passed on a trial run.

Signed-off-by: Simone Weiss <simone.weiss@elektrobit.com>
Signed-off-by: David Niederpruem <david.niederpruem@elektrobit.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-jinja2: Correct HOMEPAGE
Peter Kjellerstedt [Fri, 1 Apr 2022 21:58:20 +0000 (23:58 +0200)] 
python3-jinja2: Correct HOMEPAGE

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglib-2.0: Backport patches C++ variant of g_atomic_int_compare_and_exchange()
Khem Raj [Fri, 1 Apr 2022 14:41:14 +0000 (07:41 -0700)] 
glib-2.0: Backport patches C++ variant of g_atomic_int_compare_and_exchange()

This fixes a regression when glib-2.0 was used with clang.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodepmodwrapper: Use nonarch_base_libdir for depmod.d
Saul Wold [Thu, 31 Mar 2022 22:21:53 +0000 (15:21 -0700)] 
depmodwrapper: Use nonarch_base_libdir for depmod.d

This ensure that when depmod-native runs we can find the correct
exclude.conf information, in this case adding .debug to ignore
the .debug kernell modules. The kmod utilities like depmod can use
either /etc/depmod.d or /lib/depmod.d. The kmod recipe is installing
the existing search.conf to /lib/depmod.d (nonarch_base_lib)

When the busybox modutils are used, /lib/depmod.d is not used, so
it's safe add the exclude.conf file to /lib/depmod.d.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokmod: Add an exclude directive to depmod
Saul Wold [Thu, 31 Mar 2022 22:21:52 +0000 (15:21 -0700)] 
kmod: Add an exclude directive to depmod

This adds a new configuration directive to depmod that causes
depmod to exclude a give path entry like .debug.

kernel-dbg provides the modules .debug/<module>.ko files and
when installed either directly or when dbg-pkgs are selected
this can cause depmod to fail.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobusybox: Exclude .debug from depmod
Saul Wold [Thu, 31 Mar 2022 22:21:51 +0000 (15:21 -0700)] 
busybox: Exclude .debug from depmod

As with the kmod version of depmod, exclude .debug from being
searched. Since busybox does not use the depmod.d and any
configuration file option is ignored we just hardcode it.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomeson: Robustify compiler detection logic
Khem Raj [Thu, 31 Mar 2022 22:29:00 +0000 (15:29 -0700)] 
meson: Robustify compiler detection logic

meson would fail to detect compiler type in some rare care where
specific substring '-xt' is detected in compiler --version output and
it so happens that this string can be generated by clang --version if
clang is installed into a directory containing 'xt-' in its name. with
recipe specific sysroots, this is quite likely to happen in OE build
system as we are seeing the issue with newly proposed gnome-text-editor
recipe

https://lists.openembedded.org/g/openembedded-devel/topic/90150031#96301

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3: update to 3.10.4
Oleksandr Kravchuk [Thu, 31 Mar 2022 21:57:51 +0000 (23:57 +0200)] 
python3: update to 3.10.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest: generalise test_devtool_virtual_kernel_modify
Ross Burton [Thu, 31 Mar 2022 18:29:15 +0000 (19:29 +0100)] 
oeqa/selftest: generalise test_devtool_virtual_kernel_modify

Generalise this test so that it works on more than qemux86-64:

- Don't edit a file in arch/x86 to cause a rebuild, instead use init/
- Look for the edits in the build tree, as the deployed kernel could be
  of any type (zImage/bzImage/etc) and edits may be in the compressed
  part.

Also remove redundant checks on the result of runCmd(), as this will
raise AssertionError exceptions itself so the explicit asserts will
never trigger.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: use self.td instead of get_bb_var to save on bitbake calls
Ross Burton [Thu, 31 Mar 2022 18:29:14 +0000 (19:29 +0100)] 
oeqa/selftest/wic: use self.td instead of get_bb_var to save on bitbake calls

When a test case starts, self.td is populated with all the variables in
the data store.  Typically this can be used instead of get_bb_var(),
which saves a bitbake call per variable lookup.

The only catch is that in parallel runs the build directory is moved
after td is populated, so paths in the build directory are wrong: these
still need to be fetched in the test.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: use os.path.join to join paths
Ross Burton [Thu, 31 Mar 2022 18:29:13 +0000 (19:29 +0100)] 
oeqa/selftest/wic: use os.path.join to join paths

Instead of using string concatenation, use os.path.join.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: rearrange tests
Ross Burton [Thu, 31 Mar 2022 18:29:12 +0000 (19:29 +0100)] 
oeqa/selftest/wic: rearrange tests

Split the tests into further classes: one which exercises the CLI and
doesn't need to build images at all, and another which is just the
tests that manipulate existing images.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: cleanup WicTestCase.setUpLocal
Ross Burton [Thu, 31 Mar 2022 18:29:11 +0000 (19:29 +0100)] 
oeqa/selftest/wic: cleanup WicTestCase.setUpLocal

Use os.path.join to construct paths, and invoke bitbake once instead of
three times.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/oescripts: refactor skipping logic
Ross Burton [Thu, 31 Mar 2022 18:29:10 +0000 (19:29 +0100)] 
oeqa/selftest/oescripts: refactor skipping logic

OEScriptTests currently skips if cairo isn't present, and does a build
of core-image-minimal.  This is only required for the
OEPybootchartguyTests tests, so move that logic there so that the
OEListPackageconfigTests run even if cairo isn't available.

This leaves OEScriptTests as a simple class containing the scripts_dir
assignment, which can then be reused by other tests to avoid code
duplication.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa: rationalise skipifqemu decorators
Ross Burton [Thu, 31 Mar 2022 18:29:09 +0000 (19:29 +0100)] 
oeqa: rationalise skipifqemu decorators

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest: tag tests that use runqemu
Ross Burton [Thu, 31 Mar 2022 18:29:08 +0000 (19:29 +0100)] 
oeqa/selftest: tag tests that use runqemu

There may be environments or machines which don't have working runqemu,
so tag all of the tests which use runqemu() so that they can be skipped.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/core/decorators/data: improve has_* logic
Ross Burton [Thu, 31 Mar 2022 18:29:07 +0000 (19:29 +0100)] 
oeqa/core/decorators/data: improve has_* logic

has_feature() should be splitting the feature string into substrings and
then looking for membership instead of looking for simple substrings.

has_machine() should be using equality instead of substrings.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest: remove unused imports
Ross Burton [Thu, 31 Mar 2022 18:29:06 +0000 (19:29 +0100)] 
oeqa/selftest: remove unused imports

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/core/utils/misc: remove redundant file
Ross Burton [Thu, 31 Mar 2022 18:29:05 +0000 (19:29 +0100)] 
oeqa/core/utils/misc: remove redundant file

This file dates back to 2016. Half of the functions have never been used,
the rest are used in one place and have now been replaced.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agotestimage: inline updateTestData()
Ross Burton [Thu, 31 Mar 2022 18:29:04 +0000 (19:29 +0100)] 
testimage: inline updateTestData()

updateTestData() is just a simple loop that is only used here, so just
inline it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/core/decorator: remove redundant code
Ross Burton [Thu, 31 Mar 2022 18:29:03 +0000 (19:29 +0100)] 
oeqa/core/decorator: remove redundant code

There's no need to wrap *tags in a potential list, as *tags will always
be a tuple.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/runtime/decorator/package.py: remove use of strToSet
Ross Burton [Thu, 31 Mar 2022 18:29:02 +0000 (19:29 +0100)] 
oeqa/runtime/decorator/package.py: remove use of strToSet

There's no need to use a series of over-generalised functions to just
wrap a string in a tuple.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/buildoptions: set PACKAGE_CLASSES in test_arch_work_dir_and_export_source
Ross Burton [Thu, 31 Mar 2022 18:29:01 +0000 (19:29 +0100)] 
oeqa/selftest/buildoptions: set PACKAGE_CLASSES in test_arch_work_dir_and_export_source

test_arch_work_dir_and_export_source uses the archiver to generate SRPMS,
so explicitly set PACKAGE_CLASSES to ensure that package_rpm is used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: add more arch-specific annotations
Ross Burton [Thu, 31 Mar 2022 18:29:00 +0000 (19:29 +0100)] 
oeqa/selftest/wic: add more arch-specific annotations

Some tests which are marked as x86-specific will actually work on
aarch64 (e.g. use EFI), whilst some other tests really are x86-specific
(e.g. use syslinux).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: don't hardcode kernel image type in test_wic_rm
Ross Burton [Thu, 31 Mar 2022 18:28:59 +0000 (19:28 +0100)] 
oeqa/selftest/wic: don't hardcode kernel image type in test_wic_rm

Don't assume bzImage, resepct KERNEL_IMAGETYPE.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: clean up only_for_arch decorator
Ross Burton [Thu, 31 Mar 2022 18:28:58 +0000 (19:28 +0100)] 
oeqa/selftest/wic: clean up only_for_arch decorator

There's no need to pass a recipe name when determining the target
architecture, there's no need to cap the size of the lru_cache as it
will only have one entry, and __name__ is set by @wraps.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: remove redundant asserts
Ross Burton [Thu, 31 Mar 2022 18:28:57 +0000 (19:28 +0100)] 
oeqa/selftest/wic: remove redundant asserts

By default bitbake() will raise an assertion if it fails, so there's no
need to wrap it in a further assert.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/wic: use os.rename instead of bb.utils.rename
Ross Burton [Thu, 31 Mar 2022 18:28:56 +0000 (19:28 +0100)] 
oeqa/selftest/wic: use os.rename instead of bb.utils.rename

bb.utils.rename() only exists to handle moves across filesystems. As
these moves are within the same directory we can just use os.rename().

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/devtool: ensure Git username is set before upgrade tests
Ross Burton [Thu, 31 Mar 2022 18:28:55 +0000 (19:28 +0100)] 
oeqa/selftest/devtool: ensure Git username is set before upgrade tests

The 'devtool upgrade' tests fail if Git doesn't know the user's name or
email, so verify this before the tests start and skip if it is not.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoimage_types: hddimg and iso only work on x86
Ross Burton [Thu, 31 Mar 2022 18:28:54 +0000 (19:28 +0100)] 
image_types: hddimg and iso only work on x86

These image types use syslinux which is only available on x86, so only
add them to IMAGE_TYPES on x86.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agobuildtools-tarball: include nativesdk-python3-pyyaml
Ross Burton [Thu, 31 Mar 2022 18:28:53 +0000 (19:28 +0100)] 
buildtools-tarball: include nativesdk-python3-pyyaml

BitBake can optionally 'import yaml' if BB_LOGCONFIG specifies a yaml
file.  This is a 3rd party module, so that this works out of the box
when buildtools is used -- either explicitly via buildtools-tarball or
implicitly via eSDK --  we can add pyyaml to the buildtools.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoinitscripts: Clean up license handling/identifiers
Richard Purdie [Thu, 31 Mar 2022 11:51:31 +0000 (12:51 +0100)] 
initscripts: Clean up license handling/identifiers

The license is clear, add an SPDX license identification headers to the scripts
and drop the weird patch, we don't need it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agokeymaps: Clean up license handling
Richard Purdie [Thu, 31 Mar 2022 11:51:30 +0000 (12:51 +0100)] 
keymaps: Clean up license handling

The license is clear, add an SPDX license identification header to the script
and drop the weird patch, we don't need it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agomodutils-initscripts: Change license PD -> MIT
Richard Purdie [Thu, 31 Mar 2022 11:51:29 +0000 (12:51 +0100)] 
modutils-initscripts: Change license PD -> MIT

The file was originally added to OE here:
https://git.openembedded.org/openembedded/commit/modutils/files/modutils.sh?id=3b3989442075d0a4c6c32cb187de17d87bf65fbd

and the license added here as "PD":
https://git.openembedded.org/openembedded/commit/modutils/modutils-initscripts.oe?id=4f7d2b1b63d166e5de146d71e5c942419424446e

As "Public Domain", we can re-license it to MIT, which fits in with the rest of
our metadata and has an SPDX identifier, so lets do that and try and keep our
licenses simpler.

This also them removes the need for a weird license patch in SRC_URI.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agobase: Clean up module import compatibility code
Richard Purdie [Thu, 31 Mar 2022 11:01:51 +0000 (12:01 +0100)] 
base: Clean up module import compatibility code

This code was for old versions of bitbake which we're now long past. Drop it
and simplify the code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agobase: Don't add duplicates to sys.path
Richard Purdie [Thu, 31 Mar 2022 11:01:50 +0000 (12:01 +0100)] 
base: Don't add duplicates to sys.path

We can re-trigger this code and there is little point in stacking a ton of duplicate
paths which just waste time during searches for modules. This could in theory alter
layer module search order but that seems unlikely in common use.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocmake: support to create per-toolchain cmake file in SDK
Jagadeesh Krishnanjanappa [Thu, 31 Mar 2022 02:46:45 +0000 (02:46 +0000)] 
cmake: support to create per-toolchain cmake file in SDK

The patch creates ${MULTIMACH_TARGET_SYS}-toolchain.cmake file
at ${SDK_INSTALL_DIR}/sysroots/${SDK_SYS}/usr/share/cmake/, which is
per-toolchain CMake toolchain file containing arch-specific values
and independent of OE environment variables.
The file gets created after installing SDK toolchain installer
ined by running "bitbake -c populate_sdk <image>".

The changes are similar to meson-setup.py which is used to
create arch-specific
${SDK_INSTALL_DIR}/sysroots/${SDK_SYS}/usr/share/meson/*-meson.cross

[YOCTO #14644]

Tested-by: Jan Dorniak <jaskij@gmail.com>
Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoweston: Add a knob to control simple clients
Khem Raj [Wed, 30 Mar 2022 18:00:45 +0000 (11:00 -0700)] 
weston: Add a knob to control simple clients

Some graphics driver implementations ( e.g sgx ) do not yet support APIs from mesa
21.x, and some portions of weston simple clients depend on these APIs,
therefore introduce a way to specify all or a selection fo clients to
build

Fixes

clients/weston-simple-dmabuf-feedback.p/simple-dmabuf-
feedback.c.o: in function `create_dmabuf_buffer':
| simple-dmabuf-feedback.c:(.text+0x1076): undefined reference to `gbm_bo_get_fd_for_plane'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agogit: make expat and curl into PACKAGECONFIG items
Rasmus Villemoes [Wed, 30 Mar 2022 10:46:15 +0000 (12:46 +0200)] 
git: make expat and curl into PACKAGECONFIG items

It can be useful to use git on target (e.g. with some wrapper like
etckeeper for keeping track of changes to /etc), and for such cases,
it is likely one has no need for pulling from/pushing to http[s]
repositories. From the INSTALL file:

    - "libcurl" library ... If you do not use http:// or https://
      repositories, and do not want to put patches into an IMAP
      mailbox, you do not have to have them (use NO_CURL).

    - "expat" library; git-http-push uses it for remote lock
      management over DAV.  Similar to "curl" above, this is
      optional (with NO_EXPAT).

Setting --without-expat and --without-curl reduces the size of the
installed "git" package from 18M to 12M, in addition to avoiding
pulling those libraries into the rootfs.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomirrors: Add missing gitsm entries for yocto/oe mirrors
Richard Purdie [Wed, 30 Mar 2022 09:21:28 +0000 (10:21 +0100)] 
mirrors: Add missing gitsm entries for yocto/oe mirrors

The missing gitsm:// mappings looks like an oversight, add them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconvert-variable-renames: Fix typo in description
Simon Kuhnle [Wed, 30 Mar 2022 08:35:24 +0000 (10:35 +0200)] 
convert-variable-renames: Fix typo in description

Signed-off-by: Simon Kuhnle <simon.kuhnle@methodpark.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agogobject-introspection: fix default search path for girdir
Chen Qi [Wed, 30 Mar 2022 03:08:45 +0000 (20:08 -0700)] 
gobject-introspection: fix default search path for girdir

When running g-ir-scanner, we get the following error:

  Couldn't find include 'GObject-2.0.gir' (search path:
  '['/usr/lib64', 'gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0',
  '/usr/share/gir-1.0', '/usr/share/gir-1.0']')

This is because g-ir-tool-template.in is not setting girdir correctly.
It's using the prefix instead of the actual girdir.

Note that we don't get such error at do_rootfs time because the extra
directories are speicified. But we will get such error at runtime when
multilib is enabled.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocve-check: add coverage statistics on recipes with/without CVEs
Marta Rybczynska [Tue, 29 Mar 2022 12:54:32 +0000 (14:54 +0200)] 
cve-check: add coverage statistics on recipes with/without CVEs

Until now the CVE checker was giving information about CVEs found for
a product (or more products) contained in a recipe. However, there was
no easy way to find out which products or recipes have no CVEs. Having
no reported CVEs might mean there are simply none, but can also mean
a product name (CPE) mismatch.

This patch adds CVE_CHECK_COVERAGE option enabling a new type of
statistics. Then we use the new JSON format to report the information.
The legacy text mode report does not contain it.

This option is expected to help with an identification of recipes with
mismatched CPEs, issues in the database and more.

This work is based on [1], but adding the JSON format makes it easier
to implement, without additional result files.

[1] https://lists.openembedded.org/g/openembedded-core/message/159873

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocve-check: add json format
Marta Rybczynska [Tue, 29 Mar 2022 12:54:31 +0000 (14:54 +0200)] 
cve-check: add json format

Add an option to output the CVE check in a JSON-based format.
This format is easier to parse in software than the original
text-based one and allows post-processing by other tools.

Output formats are now handed by CVE_CHECK_FORMAT_TEXT and
CVE_CHECK_FORMAT_JSON. Both of them are enabled by default.

The JSON output format gets generated in a similar way to the
text format with the exception of the manifest: appending to
JSON arrays requires parsing the file. Because of that we
first write JSON fragments and then assemble them in one pass
at the end.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agozlib: backport the fix for CVE-2018-25032
Ross Burton [Tue, 29 Mar 2022 13:06:29 +0000 (14:06 +0100)] 
zlib: backport the fix for CVE-2018-25032

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-urllib3: upgrade 1.26.8 -> 1.26.9
wangmy [Tue, 29 Mar 2022 01:46:27 +0000 (09:46 +0800)] 
python3-urllib3: upgrade 1.26.8 -> 1.26.9

Changelog:
==========
- Changed urllib3[brotli] extra to favor installing Brotli libraries that are
  still receiving updates like brotli and brotlicffi instead of brotlipy.
  This change does not impact behavior of urllib3, only which dependencies are
  installed.
- Fixed a socket leaking when HTTPSConnection.connect() raises an exception.
- Fixed server_hostname being forwarded from PoolManager to HTTPConnectionPool
  when requesting an HTTP URL. Should only be forwarded when requesting an HTTPS URL.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-pytz: upgrade 2021.3 -> 2022.1
wangmy [Tue, 29 Mar 2022 01:30:58 +0000 (09:30 +0800)] 
python3-pytz: upgrade 2021.3 -> 2022.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-pytest-subtests: upgrade 0.6.0 -> 0.7.0
wangmy [Tue, 29 Mar 2022 01:26:55 +0000 (09:26 +0800)] 
python3-pytest-subtests: upgrade 0.6.0 -> 0.7.0

Changelog:
=========
Fixed support for pytest 7.0, and pytest>=7.0 is now required.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-pytest-runner: upgrade 5.3.1 -> 6.0.0
wangmy [Tue, 29 Mar 2022 01:18:24 +0000 (09:18 +0800)] 
python3-pytest-runner: upgrade 5.3.1 -> 6.0.0

Add dependency python3-distutils.

Changelog:
=========
- #49: Dropped workaround for older setuptools versions.
- Require Python 3.7.
- #58: Fixed syntax issue in changelog.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-jinja2: upgrade 3.0.3 -> 3.1.1
wangmy [Tue, 29 Mar 2022 01:02:20 +0000 (09:02 +0800)] 
python3-jinja2: upgrade 3.0.3 -> 3.1.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-imagesize: upgrade 1.2.0 -> 1.3.0
wangmy [Tue, 29 Mar 2022 00:54:00 +0000 (08:54 +0800)] 
python3-imagesize: upgrade 1.2.0 -> 1.3.0

Add dependency python3-xml.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-hypothesis: upgrade 6.39.2 -> 6.39.5
wangmy [Tue, 29 Mar 2022 00:39:40 +0000 (08:39 +0800)] 
python3-hypothesis: upgrade 6.39.2 -> 6.39.5

Changelog:
=========
Improve error detection and message when Hypothesis is
run on a Python implementation without support for "-0.0", which is
required for the "floats()" strategy but can be disabled by unsafe
compiler options (issue #3265).

If the "shrink" phase is disabled, stop the "generate" phase as
soon as an error is found regardless of the value of the
"report_multiple_examples" setting, since that's probably what you
wanted (issue #3244).

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-dbusmock: upgrade 0.26.1 -> 0.27.3
wangmy [Tue, 29 Mar 2022 00:33:38 +0000 (08:33 +0800)] 
python3-dbusmock: upgrade 0.26.1 -> 0.27.3

Changelog:
=========
packit: Fix file name to sync

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-asn1crypto: upgrade 1.4.0 -> 1.5.1
wangmy [Tue, 29 Mar 2022 00:23:49 +0000 (08:23 +0800)] 
python3-asn1crypto: upgrade 1.4.0 -> 1.5.1

License-Update: year updated to 2022

Changelog:
=========
- Handle RSASSA-PSS in keys.PrivateKeyInfo.bit_size and
  keys.PublicKeyInfo.bit_size
- Handle RSASSA-PSS in keys.PrivateKeyInfo.wrap and keys.PublicKeyInfo.wrap
- Updated docs for keys.PrivateKeyInfo.algorithm and
  keys.PublicKeyInfo.algorithm to reflect that they can return "rsassa_pss"

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agovolatile-binds: add recipe variable to allow disabling OverlayFS
Luca Boccassi [Mon, 28 Mar 2022 15:26:54 +0000 (16:26 +0100)] 
volatile-binds: add recipe variable to allow disabling OverlayFS

Use the new MOUNT_COPYBIND_AVOID_OVERLAYFS flag provided by mount-copybind.
When SELinux is enabled, processes accessing OverlayFS mounts will get a denial
if the process setting up the mount doesn't have all the permissions that
the accessor has.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-fitimage.bbclass: introduce FIT_SUPPORTED_INITRAMFS_FSTYPES
Ming Liu [Mon, 28 Mar 2022 14:15:51 +0000 (16:15 +0200)] 
kernel-fitimage.bbclass: introduce FIT_SUPPORTED_INITRAMFS_FSTYPES

It was found when a end user wants to build a squashfs type initramfs
into fitimage, it just fails without printing out any error or warning
messages, which is not right.

Introduce a FIT_SUPPORTED_INITRAMFS_FSTYPES variable to avoid
hard-coding the supported initramfs types, and it could be overridden
in config files. Also break the build when none of a supported
initramfs type is found.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-fitimage.bbclass: change 'echo' to 'bbnote'
Ming Liu [Mon, 28 Mar 2022 14:15:50 +0000 (16:15 +0200)] 
kernel-fitimage.bbclass: change 'echo' to 'bbnote'

Change 'echo' usages to 'bbnote' for better logging.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: Avoid regex warning by quoting correctly
Richard Purdie [Mon, 28 Mar 2022 12:29:22 +0000 (13:29 +0100)] 
create-spdx: Avoid regex warning by quoting correctly

create-spdx.bbclass:43: DeprecationWarning: invalid escape sequence \W
  lic_regex = re.compile(b'^\W*SPDX-License-Identifier:\s*([ \w\d.()+-]+?)(?:\s+\W*)?$', re.MULTILINE)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoqemu: backport fixes for CVE-2022-26353 and CVE-2022-26354
Ross Burton [Mon, 28 Mar 2022 10:46:39 +0000 (11:46 +0100)] 
qemu: backport fixes for CVE-2022-26353 and CVE-2022-26354

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogrub: ignore CVE-2021-46705
Ross Burton [Mon, 28 Mar 2022 10:26:48 +0000 (11:26 +0100)] 
grub: ignore CVE-2021-46705

This is specific to SUSE Linux.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosqlite3: upgrade 3.38.1 -> 3.38.2
wangmy [Mon, 28 Mar 2022 09:55:28 +0000 (17:55 +0800)] 
sqlite3: upgrade 3.38.1 -> 3.38.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomsmtp: upgrade 1.8.19 -> 1.8.20
wangmy [Mon, 28 Mar 2022 09:55:27 +0000 (17:55 +0800)] 
msmtp: upgrade 1.8.19 -> 1.8.20

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolttng-ust: upgrade 2.13.1 -> 2.13.2
wangmy [Mon, 28 Mar 2022 09:55:26 +0000 (17:55 +0800)] 
lttng-ust: upgrade 2.13.1 -> 2.13.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolttng-modules: upgrade 2.13.2 -> 2.13.3
wangmy [Mon, 28 Mar 2022 09:52:53 +0000 (17:52 +0800)] 
lttng-modules: upgrade 2.13.2 -> 2.13.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibsoup: upgrade 3.0.4 -> 3.0.5
wangmy [Mon, 28 Mar 2022 09:52:52 +0000 (17:52 +0800)] 
libsoup: upgrade 3.0.4 -> 3.0.5

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibevdev: upgrade 1.12.0 -> 1.12.1
wangmy [Mon, 28 Mar 2022 09:52:51 +0000 (17:52 +0800)] 
libevdev: upgrade 1.12.0 -> 1.12.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiproute2: upgrade 5.16.0 -> 5.17.0
wangmy [Mon, 28 Mar 2022 09:52:50 +0000 (17:52 +0800)] 
iproute2: upgrade 5.16.0 -> 5.17.0

0001-lib-fix-ax25.h-include-for-musl.patch
removed since it's included in 5.17.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglib-networking: upgrade 2.70.1 -> 2.72.0
wangmy [Mon, 28 Mar 2022 09:52:49 +0000 (17:52 +0800)] 
glib-networking: upgrade 2.70.1 -> 2.72.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodpkg: upgrade 1.21.2 -> 1.21.4
wangmy [Mon, 28 Mar 2022 09:49:41 +0000 (17:49 +0800)] 
dpkg: upgrade 1.21.2 -> 1.21.4

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodiffoscope: upgrade 207 -> 208
wangmy [Mon, 28 Mar 2022 09:49:40 +0000 (17:49 +0800)] 
diffoscope: upgrade 207 -> 208

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocronie: upgrade 1.5.7 -> 1.6.0
wangmy [Mon, 28 Mar 2022 09:49:39 +0000 (17:49 +0800)] 
cronie: upgrade 1.5.7 -> 1.6.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoatk: upgrade 2.36.0 -> 2.38.0
wangmy [Mon, 28 Mar 2022 09:49:38 +0000 (17:49 +0800)] 
atk: upgrade 2.36.0 -> 2.38.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoapt: upgrade 2.4.0 -> 2.4.3
wangmy [Mon, 28 Mar 2022 09:49:37 +0000 (17:49 +0800)] 
apt: upgrade 2.4.0 -> 2.4.3

0001-aptwebserver.cc-Include-array.patch
refreshed for new version.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agozstd: add libzstd package
Stefan Herbrechtsmeier [Mon, 28 Mar 2022 09:32:39 +0000 (11:32 +0200)] 
zstd: add libzstd package

Add a libzstd package to remove libstdc++ runtime dependency from
library users and reduce the dependencies and size of the library
package.

Add a lib package instead of a bin package to use a similar name as
other buildtools and be backward compatible.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoqemu: Disable for ppc32
Khem Raj [Mon, 28 Mar 2022 01:23:06 +0000 (18:23 -0700)] 
qemu: Disable for ppc32

qemu no longer supports building for ppc32 hosts, therefore reflect this
in recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3: Add a dependency on ncurses
Peter Kjellerstedt [Sun, 27 Mar 2022 05:50:51 +0000 (07:50 +0200)] 
python3: Add a dependency on ncurses

This avoids the following configuration error:

  The necessary bits to build these optional modules were not found:
  _curses               _curses_panel

which happens if the "readline" PACKAGECONFIG is disabled.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibdnf: Add a dependency on util-linux
Peter Kjellerstedt [Sun, 27 Mar 2022 01:47:18 +0000 (03:47 +0200)] 
libdnf: Add a dependency on util-linux

This avoids the following configuration error:

  -- Checking for module 'smartcols'
  --   No package 'smartcols' found
  CMake Error at .../usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
   A required package was not found

which happens if glib-2.0 is configured without the libmount
PACKAGECONFIG that otherwise depends on util-linux.

Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglib-2.0: Remove a leftover comment
Peter Kjellerstedt [Sun, 27 Mar 2022 01:37:57 +0000 (03:37 +0200)] 
glib-2.0: Remove a leftover comment

The system-pcre PACKAGECONFIG was removed in commit e359ee75 (glib-2.0:
update 2.68.4 -> 2.70.0), but a comment was left behind.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogrep: Fix build on ppc/musl
Khem Raj [Fri, 25 Mar 2022 20:54:15 +0000 (13:54 -0700)] 
grep: Fix build on ppc/musl

Backport a patch from libsigsegv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodiffutils: Fix build on ppc/musl
Khem Raj [Fri, 25 Mar 2022 20:54:14 +0000 (13:54 -0700)] 
diffutils: Fix build on ppc/musl

Backport a patch from libsigsegv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomount-copybind: add MOUNT_COPYBIND_AVOID_OVERLAYFS env var to skip OverlayFS
Luca Boccassi [Fri, 25 Mar 2022 18:40:32 +0000 (18:40 +0000)] 
mount-copybind: add MOUNT_COPYBIND_AVOID_OVERLAYFS env var to skip OverlayFS

In some cases we don't want to even attempt to set up OverlayFS, for
example because SELinux in enforcing mode would kill the process
attempting to use the mount. See:

https://lore.kernel.org/all/CA+FmFJBDwt52Z-dVGfuUcnRMiMtGPhK4cCQJ=J_fg0r3x-b6ng@mail.gmail.com/T/#mef98aa406324096d1889d3d467251f30456f403c

If MOUNT_COPYBIND_AVOID_OVERLAYFS=1 is set, skip directly to copy and
bind mount.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agomount-copybind: fix shellcheck warning
Luca Boccassi [Fri, 25 Mar 2022 18:40:31 +0000 (18:40 +0000)] 
mount-copybind: fix shellcheck warning

$ shellcheck meta/recipes-core/volatile-binds/files/mount-copybind

In meta/recipes-core/volatile-binds/files/mount-copybind line 54:
            mountcontext=",rootcontext=$(matchpathcon -n $mountpoint)"
                                                         ^---------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean:
            mountcontext=",rootcontext=$(matchpathcon -n "$mountpoint")"

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/runtime/context: remove duplicate sys.path entries when looking for modules
Ross Burton [Fri, 25 Mar 2022 12:29:10 +0000 (12:29 +0000)] 
oeqa/runtime/context: remove duplicate sys.path entries when looking for modules

sys.path can contain duplicate entries for each layer, which means that
the search in add_controller_list() will find the same name twice and
abort.

As duplicate directories should be harmless, remove any duplicates before
iterating through the entries.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolibrsvg: reenable nativesdk
Christian Eggers [Fri, 25 Mar 2022 06:52:26 +0000 (07:52 +0100)] 
librsvg: reenable nativesdk

Rust is now available for nativesdk. So the nativesdk build for librsvg
can be enabled again.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agorust-crosssdk: use ${RUST_LIBC} in ${PN}
Christian Eggers [Fri, 25 Mar 2022 06:52:25 +0000 (07:52 +0100)] 
rust-crosssdk: use ${RUST_LIBC} in ${PN}

TCLIBC is only valid for TARGET, not for HOST or NATIVESDK.
Fixes build of rust-crosssdk if TCLIBC is set to musl.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agomachine-sdk: clear ABIEXTENSION for class-crosssdk
Christian Eggers [Fri, 25 Mar 2022 06:52:24 +0000 (07:52 +0100)] 
machine-sdk: clear ABIEXTENSION for class-crosssdk

For nativesdk/crosssdk, we have no ABIEXTENSION. Fixes build of
rust-crosssdk if ABIEXTENSION is set toe something like "eabi".

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agorust-common: override RUST_LIBC for crosssdk
Christian Eggers [Fri, 25 Mar 2022 06:52:23 +0000 (07:52 +0100)] 
rust-common: override RUST_LIBC for crosssdk

For nativesdk/crosssdk, always glibc is used. Fixes build of
rust-crosssdk if TCLIBC is set to musl.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoglib-2.0: upgrade 2.70.4 -> 2.72.0
Christian Eggers [Fri, 25 Mar 2022 06:51:16 +0000 (07:51 +0100)] 
glib-2.0: upgrade 2.70.4 -> 2.72.0

- 0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch:
  dropped (integrated upstream)

News
====

* Bugs fixed:
 - #2620 g_time_zone_new_offset() assertion failure if offset >= 25 hours
 - #2538 Various unit test fixes
 - #2542 fuzzing: Fix test failure with G_DISABLE_ASSERT
 - #2547 gprintf: Fix a memory leak with an invalid format in g_vasprintf()
 - #2548 tests: Various fixes to gdbus-auth, gdbus-non-socket, gdbus-connection-flush, spawn-multithreaded tests
 - #2551 tests: More flaky test fixes to converter-stream and test-printf
 - #2552 gtlsconnection: fix typo in docs

* Translation updates:
 - Czech
 - French
 - Friulian
 - Hebrew
 - Hungarian
 - Italian
 - Kazakh
 - Polish
 - Romanian
 - Serbian
 - Swedish

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agomusl: Update to latest master
Khem Raj [Fri, 25 Mar 2022 06:33:24 +0000 (23:33 -0700)] 
musl: Update to latest master

brings following fixes

6d8a5157 fix invalid free of duplocale object when malloc has been replaced
760f5d7e fix __WORDSIZE on x32 sys/user.h
bdb54540 sys/ptrace.h: add PTRACE_GET_RSEQ_CONFIGURATION from linux v5.13
aa3bab6c sys/prctl.h: add PR_PAC_{SET,GET}_ENABLED_KEYS from linux v5.13
a8300f5d elf.h: add NT_ARM_PAC_ENABLED_KEYS from linux v5.13
dda21f10 netinet/in.h: add INADDR_DUMMY from linux v5.13
ee05b11b bits/syscall.h: add landlock syscalls from linux v5.13
1ee8109e netinet/tcp.h: add tcp_zerocopy_receive fields from linux v5.12
bc89c311 netinet/tcp.h: add TCP_NLA_* values up to linux v5.12
9ffd1454 s390x: add ptrace requests from linux v5.12
f7d3db5b bits/syscall.h: add mount_setattr from linux v5.12
e99c4258 signal.h: add new sa_flags from linux v5.11
993cccce signal.h: add SYS_USER_DISPATCH si_code value from linux v5.11
3dcbd896 signal.h: add si_code values for SIGSYS
30c8a145 netinet/tcp.h: add tcp zerocopy related changes from linux v5.11
b54f481f netinet/if_ether.h: add ETH_P_CFM from linux v5.11
c5ecaca7 sys/socket.h: add new SO_ socket options from linux v5.11
f35b99b3 sys/prctl.h: add PR_SET_SYSCALL_USER_DISPATCH from linux v5.11
b21f3ded bits/syscall.h: add epoll_pwait2 from linux v5.11
3aba2150 nice: return EPERM instead of EACCES
74a28a8a protect stack canary from leak via read-as-string by zeroing second byte
7c0c7a75 math: avoid runtime conversions of floating-point constants

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolibxml2: fix CVE-2022-23308 regression
Joe Slater [Thu, 24 Mar 2022 19:20:35 +0000 (12:20 -0700)] 
libxml2: fix CVE-2022-23308 regression

The fix for the CVE in 2.9.13 caused a regression which
was addressed after 2.9.13.  We import that patch here.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agooeqa/selftest/tinfoil: Fix intermittent event loss issue in test
Richard Purdie [Thu, 24 Mar 2022 17:37:25 +0000 (17:37 +0000)] 
oeqa/selftest/tinfoil: Fix intermittent event loss issue in test

We've been seeing occasional test failures on the autobuilder where
we don't see the expected events. It turns out this is due to
run_command being helpful and eating them if the server is fast and
the client slow. Adding a sleep into the run_command code makes the
failure consistent.

Use a new "handle_events" argument to allow us to handle all the
events which is what this test requires.

[YOCTO #14585]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agokernel.bbclass: avoid config changes based on the availability of pahole
Michael Olbrich [Thu, 24 Mar 2022 16:23:51 +0000 (17:23 +0100)] 
kernel.bbclass: avoid config changes based on the availability of pahole

CONFIG_PAHOLE_HAS_SPLIT_BTF shows up in the config only when pahole is
installed on the host system. As a result, the config changes depending on
whether pahole is installed or not.

Set PAHOLE=false to ensure that it is never found.

If this is actually needed in the future, then we can add an option for
it and create a host package for pahole.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
[afa: ported from PTXdist 0c0cec2288 to OE-core]
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoqemu: Depend on libepoxy instead of virtual/libgl
Khem Raj [Thu, 24 Mar 2022 16:13:35 +0000 (09:13 -0700)] 
qemu: Depend on libepoxy instead of virtual/libgl

- This abstracts on GL/GLES implementations
- Rename packageconfig to epoxy to match what code it doing underneath

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoperl: Add missing RDEPENDS
Richard Purdie [Thu, 24 Mar 2022 13:44:14 +0000 (13:44 +0000)] 
perl: Add missing RDEPENDS

This allows quilt-ptest to work in an otherwise bare image. Without
this there are broken modules.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolicense.bbclass: Remove the available_licenses() function
Peter Kjellerstedt [Wed, 23 Mar 2022 23:14:58 +0000 (00:14 +0100)] 
license.bbclass: Remove the available_licenses() function

It is no longer used in OE-Core.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocreate-spdx.bbclass: Simplify extraction of license text
Peter Kjellerstedt [Wed, 23 Mar 2022 23:14:57 +0000 (00:14 +0100)] 
create-spdx.bbclass: Simplify extraction of license text

There is no reason to first search for all available licenses using
avail_licenses() and then search through the same paths looking for
the actual license texts. Just look for the license texts directly
instead.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoweston: use same distro features for weston and westion-init
Joe Slater [Wed, 23 Mar 2022 18:18:53 +0000 (11:18 -0700)] 
weston: use same distro features for weston and westion-init

We want to avoid situations (like world builds) where
weston-init will build, but weston won't.  This could
cause "nothing RPROVIDES..." dependency errors.  We set
required distro features in a common include file.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoselftest/incompatible_lic: Remove references to AVAILABLE_LICENSES
Peter Kjellerstedt [Wed, 23 Mar 2022 16:14:57 +0000 (17:14 +0100)] 
selftest/incompatible_lic: Remove references to AVAILABLE_LICENSES

The AVAILABLE_LICENSES variable has been removed from OE-Core.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolibjitterentropy: upgrade 3.3.1 -> 3.4.0
wangmy [Tue, 22 Mar 2022 10:38:08 +0000 (18:38 +0800)] 
libjitterentropy: upgrade 3.3.1 -> 3.4.0

License-Update: year updated to 2022

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>