]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
3 years agorust: fix issue building cross-canadian tools for aarch64 on x86_64
Peter Bergin [Wed, 29 Jun 2022 08:06:36 +0000 (10:06 +0200)] 
rust: fix issue building cross-canadian tools for aarch64 on x86_64

Commit bd36593ba3db758b3eacc974e48468a665967961 did introduce a
regression when building package rust-cross-canadian-aarch64
on a x86_64 host. This commit will fix that configuration.

Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobinutils : CVE-2019-1010204
Pgowda [Wed, 29 Jun 2022 05:24:39 +0000 (10:54 +0530)] 
binutils : CVE-2019-1010204

Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2a4fc266dbf77ed7ab83da16468e9ba627b8bc2d]

Signed-off-by: Pgowda <pgowda.cve@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pycryptodome: upgrade 3.14.1 -> 3.15.0
wangmy [Wed, 29 Jun 2022 03:26:38 +0000 (11:26 +0800)] 
python3-pycryptodome: upgrade 3.14.1 -> 3.15.0

Changelog:
=========

New features
------------
    Add support for curves Ed25519 and Ed448, including export and import of keys.
    Add support for EdDSA signatures.
    Add support for Asymmetric Key Packages (RFC5958) to import private keys.

Resolved issues
---------------
    GH#620: for Crypto.Util.number.getPrime , do not sequentially scan numbers searching for a prime.

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 agopython3-numpy: upgrade 1.22.4 -> 1.23.0
wangmy [Wed, 29 Jun 2022 03:26:37 +0000 (11:26 +0800)] 
python3-numpy: upgrade 1.22.4 -> 1.23.0

Changelog:
==========
The NumPy 1.23.0 release continues the ongoing work to improve the
handling and promotion of dtypes, increase the execution speed, clarify
the documentation, and expire old deprecations. The highlights are:

    Implementation of loadtxt in C, greatly improving its performance.
    Exposing DLPack at the Python level for easy data exchange.
    Changes to the promotion and comparisons of structured dtypes.
    Improvements to f2py.

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 agopython3-dbusmock: upgrade 0.28.0 -> 0.28.1
wangmy [Wed, 29 Jun 2022 03:24:06 +0000 (11:24 +0800)] 
python3-dbusmock: upgrade 0.28.0 -> 0.28.1

Changelog:
==========
Again works on RHEL/CentOS 8 (0.27 broke there), now in CI
Avoid glib GI dependency for main dbusmock, for running in virtualenv

(From OE-Core rev: f56350997a8e4678d14abe798d6eb2356b061147)

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 agopython3-certifi: upgrade 2022.5.18.1 -> 2022.6.15
wangmy [Wed, 29 Jun 2022 03:24:05 +0000 (11:24 +0800)] 
python3-certifi: upgrade 2022.5.18.1 -> 2022.6.15

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 agopython3-babel: upgrade 2.10.1 -> 2.10.3
wangmy [Wed, 29 Jun 2022 03:24:04 +0000 (11:24 +0800)] 
python3-babel: upgrade 2.10.1 -> 2.10.3

Changelog
=========
    Fallback count=”other” format in format_currency() (#872)

    Fix get_period_id() with dayPeriodRule across 0:00 (#871)

    Add support for b and B period symbols in time format (#869)

    chore(docs/typo): Fixes a minor typo in a function comment (#864)

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 agopython3-importlib-metadata: upgrade 4.11.4 -> 4.12.0
wangmy [Wed, 29 Jun 2022 03:24:03 +0000 (11:24 +0800)] 
python3-importlib-metadata: upgrade 4.11.4 -> 4.12.0

License-Update:
  Add text content of “http://www.apache.org/licenses/LICENSE-2.0" to LICENSE

Changelog:
===========
py-93259: Now raise ValueError when None or an empty string are passed to
Distribution.from_name (and other callers).

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 agopython3-chardet: upgrade 4.0.0 -> 5.0.0
wangmy [Wed, 29 Jun 2022 03:24:02 +0000 (11:24 +0800)] 
python3-chardet: upgrade 4.0.0 -> 5.0.0

This release is the first release of chardet that no longer supports Python < 3.6.

License-Update: Adjust document format, change "St" to "Street"

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 agobuildstats.bbclass: correct sampling of system stats
Aryaman Gupta [Wed, 22 Jun 2022 19:21:05 +0000 (15:21 -0400)] 
buildstats.bbclass: correct sampling of system stats

The last time of sampling would be updated within the SystemStats class
but not re-recorded into the datastore, leading to multiple samples being
collected in the same second in the sample function of buildstats.py.
Fix this to collect and store only one sample per second within a
certain tolerance to deal with variation in the arrival time.

This fix elimates the spikiness of sampled data, in cases where the difference
between the current and the last sample is taken. Previously, since many
samples per second were recorded, certain types of data would result in a
very small elapsed time and hence a small numerical difference. For example,
the CPU usage from /proc/stat is a running total of usage and taking the
difference between data collected 0.1 seconds apart would result in usage
appearing lower than it actually was.

Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopybootchartgui: render cpu and io pressure
Aryaman Gupta [Wed, 22 Jun 2022 19:21:04 +0000 (15:21 -0400)] 
pybootchartgui: render cpu and io pressure

Add two new, separate charts showing the avg10 and delta
total pressure over time for the CPU and IO resources. The height of
the avg10 data in each chart represents the percentage of time "some"
task was delayed over the specific resource during the last 10
seconds of the build. The height of the delta total data in each chart
represents the total time "some" task was delayed since the last sample
was collected. If the reduced_proc_pressure data is not present in the
buildstats log, then the new charts are not shown at all rather than
being present but unpopulated.

Note that the delta total graphs may appear "spikey",
oscillating from high values to low. This behaviour is fixed in a
subsequent commit.

Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildstats.py: enable collection of /proc/pressure data
Aryaman Gupta [Wed, 22 Jun 2022 19:21:03 +0000 (15:21 -0400)] 
buildstats.py: enable collection of /proc/pressure data

The Linux pressure monitoring system helps determine when system resources
are being overutilized by measuring how contended the CPU, IO and memory are.
This information can be found under /proc/pressure/ which contains 3 files -
cpu, memory and io. In each of the files, the format is as follows:
some avg10=70.24 avg60=68.52 avg300=69.91 total=3559632828
full avg10=57.59 avg60=58.06 avg300=60.38 total=3300487258

The "some" state of a given resource represents when one or more tasks are delayed
on that resource whereas the "full" state represents when all the tasks are
delayed. Currently, we only collect data from the "some" state but the
"full" data can simply be appended to the log files if neccessary.
The "avg10", "avg60" and "avg300" fields represent the average percentage
of time runnable tasks were delayed in the last 10, 60 or 300 seconds
respectively. The "total" field represents the total time, in microseconds,
that some runnable task was delayed on a resource.
More information can be found at:
https://www.kernel.org/doc/html/latest/accounting/psi.html
and in the source code under kernel/sched/psi.c

This commit adds functionality to collect and log the "some" CPU, memory and IO
pressure. The "avg10", "avg60" and "avg300" fields are logged without change.
In place of the "total" field, the difference between the current "total" and
the previous sample's "total" is logged, allowing the measurement of pressure
in between each polling interval, as was done for /proc/stat data. The log files
are stored in:
<build_name>/tmp/buildstats/<build_time>/reduced_proc_pressure/{cpu,io,memory}.log
mirroring the directory structure of /proc/pressure. If the /proc/pressure
directory does not exist or the resource files can't be read/opened, the
reduced_proc_pressure directory is not created.

Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agostrace: Drop redundant oe_runmake parameter
niko.mauno@vaisala.com [Thu, 23 Jun 2022 16:43:55 +0000 (19:43 +0300)] 
strace: Drop redundant oe_runmake parameter

PARALLEL_MAKE is now honored in ptest.bbclass, so drop redundant
parameter from oe_runmake call.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobitbake.conf: Change -dev RDEPENDS to RRECOMMENDS
Richard Purdie [Fri, 24 Jun 2022 22:48:09 +0000 (23:48 +0100)] 
bitbake.conf: Change -dev RDEPENDS to RRECOMMENDS

Switch the default DEPENDS for ${PN}-dev to be a RRECOMMENDS instead. This
takes advantage of a change to complmentary package globbing to not follow
RRECOMMENDS and means and SDK for an image with both openssh and dropbear
compoments will now build successfully.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobitbake.conf/recipes: Introduce add DEV_PKG_DEPENDENCY to change RDEPENDS:${PN}-dev
Richard Purdie [Fri, 24 Jun 2022 22:46:34 +0000 (23:46 +0100)] 
bitbake.conf/recipes: Introduce add DEV_PKG_DEPENDENCY to change RDEPENDS:${PN}-dev

There is a pattern that several recipes need to break the dependency of ${PN}-dev
on ${PN}, most often as ${PN} may be be empty. Add a new variable to parameterise
this and allow it to be changed more easily.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopackage_manager: Change complementary package handling to not include soft dependencies
Ross Burton [Fri, 24 Jun 2022 15:31:04 +0000 (16:31 +0100)] 
package_manager: Change complementary package handling to not include soft dependencies

We've some long standing bugs where the RDEPENDS from -dev packages causes
problems, e.g. dropbear and openssh components on an image working fine together
but then the SDK failing to build as the main openssh and dropbear packages
conflict with each other (pulled in by openssh-dev and dropbear-dev).

We propose changing the behavour of complementary package installation to
ignore RRECOMMENDS. If we then change the ${PN}-dev dependency on ${PN}
to a RRECOMMENDS, we can avoid many of the issues people run into yet still
have the desired behaviour of ${PN}-dev pulling in ${PN}.

This therefore changes the package manager code so that it doesn't follow
RRECOMMENDS for completementary package globs.

[RP: Added deb support]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopackagegroup-core-ssh-dropbear: Add openssh-sftp-server recommendation
Richard Purdie [Fri, 24 Jun 2022 13:41:44 +0000 (14:41 +0100)] 
packagegroup-core-ssh-dropbear: Add openssh-sftp-server recommendation

Seems sad to have to do this but openssh is moving to use sftp instead
of scp to move files. This means scp from Fedora 36 will no longer be
able to move files to/from a dropbear based image. This breaks a number
of our key QA tests and I suspect will cause users pain too.

The sftp server from openssh is small (200kb uncompressed) and standalone
so adding it to the packagegroup seems to be the best way to preserve user
sanity. If people really don't want it, they can just use dropbear instead
of the packageground.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopango: exclude 1.9x versions which are 2.x pre-releases.
Alexander Kanavin [Mon, 27 Jun 2022 09:49:51 +0000 (11:49 +0200)] 
pango: exclude 1.9x versions which are 2.x pre-releases.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoat: take tarballs from debian
Alexander Kanavin [Mon, 27 Jun 2022 09:49:50 +0000 (11:49 +0200)] 
at: take tarballs from debian

The original site went down, and at is more or less
maintained in Debian anyway; the tarballs are identical in name
and content.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-hatch-vcs: fix upstream version check
Alexander Kanavin [Mon, 27 Jun 2022 09:49:49 +0000 (11:49 +0200)] 
python3-hatch-vcs: fix upstream version check

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonpm: use npm_registry to cache package
Enrico Scholz [Thu, 19 May 2022 10:05:56 +0000 (12:05 +0200)] 
npm: use npm_registry to cache package

With nodejs 16, the simple 'npm cache add' approach does not work
anymore because its fetcher implementation downloads also meta
information from the registry.

We have to generate these information and add them to the cache.
There is no direct support in 'npm' for task so we have to implement
it manually.

This implementation consists of a openembedded python module (in
oe-core) and a nodejs version specific helper (in oe-meta).

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolib:npm_registry: initial checkin
Enrico Scholz [Thu, 19 May 2022 10:05:55 +0000 (12:05 +0200)] 
lib:npm_registry: initial checkin

Helper module to:

- generate meta information from package.json content.  This data has
  a format as provided by https://registry.npmjs.org

- put this meta information and the corresponding tarball in the
  nodejs cache.  This uses an external, nodejs version specific helper
  script (oe-npm-cache) shipped in oe-meta

To avoid further nodejs version dependencies, future versions of this
module might omit the caching completely and serve meta information
and tarball by an http server.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonpm: disable 'audit' + 'fund'
Enrico Scholz [Thu, 19 May 2022 10:05:54 +0000 (12:05 +0200)] 
npm: disable 'audit' + 'fund'

'audit' can cause extra network traffic; 'fund' is not needed.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonpm: take 'version' directly from 'package.json'
Enrico Scholz [Thu, 19 May 2022 10:05:53 +0000 (12:05 +0200)] 
npm: take 'version' directly from 'package.json'

We know the content of 'package.json' from earlier patches; there is
no need to parse the tarball name to extract the version.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonpm: return content of 'package.json' in 'npm_pack'
Enrico Scholz [Thu, 19 May 2022 10:05:52 +0000 (12:05 +0200)] 
npm: return content of 'package.json' in 'npm_pack'

We have to read 'package.json' to calculate the name of the tarball.
This content is interesting for later patches.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonpm: replace 'npm pack' call by 'tar czf'
Enrico Scholz [Thu, 19 May 2022 10:05:51 +0000 (12:05 +0200)] 
npm: replace 'npm pack' call by 'tar czf'

'npm pack' is a maintainer tool which tries to execute 'prepare'
and similar scripts.  This fails usually in OE because it requires
completely installed 'node_modules'.

Earlier nodejs versions supported an undocumented 'ignore-scripts'
option.  This has been removed in nodejs 16.

We could patch 'package.json' and remove the unwanted scripts.  But
this might complicate local workflows (applying patches) and installed
packages will contain the modified 'package.json'.

Instead of, package it manually by 'tar czf'.  As a sideeffect,
'do_configure' is running much faster now.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocoreutils: Tweak packaging variable names for coreutils-dev
Richard Purdie [Fri, 24 Jun 2022 22:48:31 +0000 (23:48 +0100)] 
coreutils: Tweak packaging variable names for coreutils-dev

PACKAGES uses ${PN}-dev so be consistent with the addition to the
variable to avoid weird variable conflicts.

The flags variable used here is messy, key expansion and overrides are
not supported by flags. The plain variable access does happen to work
though, so leave it as is for now and note.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-cryptography: Cleanup DEPENDS/RDEPENDS
Alex Kiernan [Sun, 26 Jun 2022 11:42:39 +0000 (12:42 +0100)] 
python3-cryptography: Cleanup DEPENDS/RDEPENDS

idna was removed in 3.1, asn1crypto in 2.8, six in 3.3.1; setuptools
never appears to have been a runtime requirement. With these removed the
recipe both builds and passes ptest:

  ===== 2824 passed, 52 skipped, 85319 subtests passed in 3932.89s (1:05:32) =====

Also drop redundant ${PYTHON_PN}-setuptools-rust-native DEPENDS as this
comes from python_setuptools3_rust.bbclass.

Signed-off-by: Alex Kiernan <alexk@zuma.ai>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoopensbi: Update to v1.1
Thomas Perrot [Sun, 26 Jun 2022 18:15:19 +0000 (20:15 +0200)] 
opensbi: Update to v1.1

This release has:
* SBI PMU improvements
* RISC-V AIA v0.3.0 draft support
* Simple external interrupt handling framework
* Xilinx UART-Lite driver
* RISC-V privilege specification v1.12 support
* RISC-V Svpbmt extension support
* RISC-V Smstateen extension support
* RISC-V Sstc extension support
* RISC-V privilege specification version detection
* Platform callback to populate HART extensions
* Compile time C arrays support
* Probing FDT based drivers using compile time C arrays
* SBI HSM improvements
* Allwinner D1 platform support
* Trap redirection improvements related to [m|h]tinst CSR
* SBI v1.0 specification support

Overall, this release mainly adds support for various RISC-V ISA
extensions ratified in December 2021 along with other improvements.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobase.bbclass: Correct the test for obsolete license exceptions
Peter Kjellerstedt [Sat, 25 Jun 2022 15:52:23 +0000 (17:52 +0200)] 
base.bbclass: Correct the test for obsolete license exceptions

The test for obsolete licenses used in INCOMPATIBLE_LICENSE_EXCEPTIONS
tried to match the "<package>:<license>" tuples with the obsolete
licenses and thus never matched anything.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoudev-extraconf: fix some systemd automount issues
Ming Liu [Thu, 23 Jun 2022 19:01:27 +0000 (21:01 +0200)] 
udev-extraconf: fix some systemd automount issues

The '.include' syntax has been dropped from latest systemd releases,
we need drop the systemd-udevd.service here, introduce a postinst
function to add "MountFlags=shared" to systemd-udevd.service.

Also lsblk binary is being called in mount.sh automount_systemd
function, add it to RDEPENDS.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoelfutils/flex: Disable parallel make ptest compile
Richard Purdie [Sat, 25 Jun 2022 07:18:19 +0000 (08:18 +0100)] 
elfutils/flex: Disable parallel make ptest compile

The recent change enabling parallel make for ptest compile/install caused
autobuilder failures in these two recipes. Disable parallel make here
for now until someone can debug the race and get it fixed (preferably
upstream).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agounzip: Port debian fixes for two CVEs
Richard Purdie [Fri, 24 Jun 2022 16:51:23 +0000 (17:51 +0100)] 
unzip: Port debian fixes for two CVEs

Add two fixes from debian for two CVEs. From:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010355

I wans't able to get the reproducers to work but the added error
checking isn't probably a bad thing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/runtime/scp: Disable scp test for dropbear
Richard Purdie [Fri, 24 Jun 2022 13:12:10 +0000 (14:12 +0100)] 
oeqa/runtime/scp: Disable scp test for dropbear

Fedora is switching to use sftp as the backend for scp. This means the
scp test fails on Fedora 36 hosts with a dropbear target as dropbear
doesn't support sftp. This change is in the upstream openssh code, other
distros have not yet changed the default but probably will follow.

The easiest way to resolve test failures in dropbear images is to stop
testing this against dropbear as it is no longer expected to work and will
likely spread as the change filters through other distros.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/sdk: drop the nativesdk-python 2.x test
Alexander Kanavin [Wed, 22 Jun 2022 10:33:12 +0000 (12:33 +0200)] 
oeqa/sdk: drop the nativesdk-python 2.x test

Python 2.x has been EOL for a while, and so this test
never runs.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosanity.bbclass: Add ftps to accepted URI protocols for mirrors sanity
David Bagonyi [Thu, 23 Jun 2022 03:44:18 +0000 (03:44 +0000)] 
sanity.bbclass: Add ftps to accepted URI protocols for mirrors sanity

Signed-off-by: David Bagonyi <david.bagonyi@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agovalgrind: Drop redundant oe_runmake parameter
niko.mauno@vaisala.com [Wed, 22 Jun 2022 19:16:15 +0000 (22:16 +0300)] 
valgrind: Drop redundant oe_runmake parameter

PARALLEL_MAKE is now honored in ptest.bbclass, so drop redundant
parameter from oe_runmake call.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agoptest.bbclass: Honor PARALLEL_MAKE, PARALLEL_MAKEINST
niko.mauno@vaisala.com [Wed, 22 Jun 2022 19:16:13 +0000 (22:16 +0300)] 
ptest.bbclass: Honor PARALLEL_MAKE, PARALLEL_MAKEINST

Since oe_runmake wrapper doesn't by default involve PARALLEL_MAKE
outside do_compile() nor PARALLEL_MAKEINST outside do_install(),
enable parallellized make by default when oe_runmake is invoked from
do_compile_ptest() or do_install_ptest() by declaring wrapper task
specific EXTRA_OEMAKE overrides in fashion similar to do_compile and
do_install overrides in meta/conf/bitbake.conf.

Parallel make can still be disabled by resetting bbclass specific
PTEST_PARALLEL_MAKE and PTEST_PARALLEL_MAKEINST variables in recipe
e.g. if a race issue needs to be avoided without modifying source code.

Tested by issuing following command sequence on a 32-core build host:

  $ bitbake -c clean util-linux && bitbake --skip-setscene -c compile util-linux && time bitbake --skip-setscene -c compile_ptest_base util-linux

and found that before this change the result was

  real 0m34.684s
  user 0m0.753s
  sys 0m0.131s

and after this change

  real 0m9.868s
  user 0m0.749s
  sys 0m0.150s

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agoinsane.bbclass: host-user-contaminated: Correct per package home path
Ahmed Hossam [Wed, 22 Jun 2022 15:28:59 +0000 (17:28 +0200)] 
insane.bbclass: host-user-contaminated: Correct per package home path

The current home path that is compared against is incorrect as it is missing the
package name, this patch adds it.

[YOCTO #14553]

Signed-off-by: Ahmed Hossam <Ahmed.Hossam@opensynergy.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agokernel-uboot.bbclass: Use vmlinux.initramfs when INITRAMFS_IMAGE_BUNDLE set
Raju Kumar Pothuraju [Wed, 22 Jun 2022 11:07:34 +0000 (16:37 +0530)] 
kernel-uboot.bbclass: Use vmlinux.initramfs when INITRAMFS_IMAGE_BUNDLE set

vmlinux file doesnot have the initramfs image when INITRAMFS_IMAGE_BUNDLE was set.
Use vmlinux.initramfs in uboot_prep_kimage when INITRAMFS_IMAGE_BUNDLE set
based on the implementation in kernel.bbclass do_bundle_initramfs function,
https://github.com/openembedded/openembedded-core/blob/master/meta/classes/kernel.bbclass#L316-L317
to be able to use proper linux.bin file in creation of fitImage.

Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agosystemd: update upstream status of merged patches
Pavel Zhukov [Wed, 22 Jun 2022 10:26:14 +0000 (12:26 +0200)] 
systemd: update upstream status of merged patches

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agollvm: add PACKAGECONFIG[optviewer]
Luca Ceresoli [Wed, 22 Jun 2022 16:05:14 +0000 (18:05 +0200)] 
llvm: add PACKAGECONFIG[optviewer]

Currently the CMake configuration for llvm finds the python pygments and
pyyaml if they are installed on the host. This makes builds
non-reproducible across different machines, some having those modules
installed and some others not.

This has been causing a 'reproducible' failure on one of the autobuilders:

  AssertionError: The following deb packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/deb/./core2-64/llvm-dev_14.0.4-r0_amd64.deb
  The following ipk packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/ipk/./core2-64/llvm-dev_14.0.4-r0_core2-64.ipk
  The following rpm packages are missing or different and not in exclusion list: /home/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB/tmp/deploy/rpm/./core2_64/llvm-dev-14.0.4-r0.core2_64.rpm

Fix by adding an explicit PACKAGECONFIG to control the
LLVM_HAVE_OPT_VIEWER_MODULES option in CMake. If unset, it forces CMake to
ignore pygments and pyyaml, no matter it they are available on the host. If
set, it DEPENDS on the pygments and pyyaml modules so that CMake will find
and use them.

Based on suggestions from Stefan and Markus -- thanks.

Proposed-by: "Stefan Herbrechtsmeier" <stefan.herbrechtsmeier-oss@weidmueller.com>
Proposed-by: "Markus Volk" <f_l_k@t-online.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agostrace: upgrade 5.17 -> 5.18
wangmy [Wed, 22 Jun 2022 07:48:49 +0000 (15:48 +0800)] 
strace: upgrade 5.17 -> 5.18

0001-landlock-update-expected-string.patch
removed since it's not available in 5.18.

skip-load.patch
refreshed for new version.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosbc: upgrade 1.5 -> 2.0
wangmy [Wed, 22 Jun 2022 07:48:48 +0000 (15:48 +0800)] 
sbc: upgrade 1.5 -> 2.0

0001-sbc_primitives-Fix-build-on-non-x86.patch
revmoed since it's included in 2.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-dbusmock: upgrade 0.27.5 -> 0.28.0
wangmy [Wed, 22 Jun 2022 07:48:47 +0000 (15:48 +0800)] 
python3-dbusmock: upgrade 0.27.5 -> 0.28.0

Changelog:
===========
    Drop unmaintained and broken accountsservice template
    testcase: Throw an error when spawning a well-known name that exists
    mockobject: Allow sending signals with extra details

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibproxy: upgrade 0.4.17 -> 0.4.18
wangmy [Wed, 22 Jun 2022 07:48:46 +0000 (15:48 +0800)] 
libproxy: upgrade 0.4.17 -> 0.4.18

determinism.patch
removed since it's included in 0.4.18.

Changelog:
=========
    build: Allow configuration of sysconfig module
    config_envvar: Add environment variable for pacrunner debugging
    build: disable mozjs by default
    python: Support Python 3.10 and above
    Add Duktape pacrunner module
    config_kde: Compute list of config file locations ourselves
    cpmfog_gnome3: Add gnome-wayland to permitted DESKTOP_SESSION

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokbd: upgrade 2.5.0 -> 2.5.1
wangmy [Wed, 22 Jun 2022 07:37:50 +0000 (15:37 +0800)] 
kbd: upgrade 2.5.0 -> 2.5.1

Changelog:
==========
keymaps:
-------
    Fix pt-latin1 failing to load due to euro2 include.

tests:
--------
    The tests do not depend on the data in srcdir/data.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobind: upgrade 9.18.3 -> 9.18.4
wangmy [Wed, 22 Jun 2022 07:37:49 +0000 (15:37 +0800)] 
bind: upgrade 9.18.3 -> 9.18.4

Changelog:
==========
[func]          Don't try to process DNSSEC-related and ZONEMD records
                in catz. [GL #3380]

[func]          Add some more dnssec-policy checks to detect weird
                policies. [GL #1611]

[test]          Add new set of unit test macros and move the unit
                tests under single namespace in /tests/. [GL !6243]

[func]          Key timing options for 'dnssec-settime' and related
                utilities now accept "UNSET" times as printed by
                'dnssec-settime -p'. [GL #3361]

[bug]           When the fetches-per-server quota was adjusted
                because of an authoritative server timing out more
                or less frequently, it was incorrectly set to 1
                rather than the intended value.  This has been
                fixed. [GL #3327]

[bug]           Only write key files if the dnssec-policy keymgr has
                changed the metadata. [GL #3302]

[func]          Key timing options for 'dnssec-keygen' and
                'dnssec-settime' now accept times as printed by
                'dnssec-settime -p'. [GL !2947]

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoalsa-ucm-conf: upgrade 1.2.7 -> 1.2.7.1
wangmy [Wed, 22 Jun 2022 07:37:48 +0000 (15:37 +0800)] 
alsa-ucm-conf: upgrade 1.2.7 -> 1.2.7.1

Configuration
 - mt8195_demo: fix the HDMI device name
 - USB-Audio: ALC1220 - add support for Gigabyte TRX40 Aorus Pro WiFi Rev 1.2
 - ucm2: MediaTek: mt8195-demo: Add Initial support
 - ucm2: rk3399-gru-sound: Add missing symlink from conf.d tree
 - USB-Audio: Optimize regex for realtek-alc4080
 - USB-Audio: Add ALC4080 ID for Asus Z690-I Gaming Wifi
 - ucm2 profile for MOTU M4 interface
 - ucm2: Rockchip/max98090: add symlink to VEYRON-I2S
 - ucm2: Rockchip/max98090: add JackControl and PlaybackVolume
 - Added basic support for ALC4082 on ASUS ROG Maximus Z690 Hero.
 - ucm2: direct profile - allow to override the card name
 - ucm2 profile for Behringer Flow8
 - Steinberg UR44: fix the direction for steinberg_ur44_mono_in
 - Steinberg UR44: fix the Line2 channel mapping (2nd)
 - Steinberg UR44: fix the Line2 channel mapping

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoalsa-plugins: upgrade 1.2.6 -> 1.2.7.1
wangmy [Wed, 22 Jun 2022 07:37:47 +0000 (15:37 +0800)] 
alsa-plugins: upgrade 1.2.6 -> 1.2.7.1

Changelog:
==========
Jack PCM plugin
 - jack: use program_invocation_short_name
 - jack: implement pcm operation sw_params

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoalsa-lib: upgrade 1.2.7 -> 1.2.7.1
wangmy [Wed, 22 Jun 2022 07:37:46 +0000 (15:37 +0800)] 
alsa-lib: upgrade 1.2.7 -> 1.2.7.1

Changelog:
=========
Core
 - Release v1.2.7.1
 - conf: Use ino64_t to save and compare inode numbers
Control API
 - control: eld - fix the decoding for older hw
I/O API
 - output: include stdarg.h
PCM API
 - pcm: dmix - Add error handler for `fgets`
Use Case Manager API
 - ucm: list also hardware configs (hw:X) in uc_mgr_scan_master_configs() fcn
Configuration
 - conf: Use ino64_t to save and compare inode numbers

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-requests: upgrade 2.27.1 -> 2.28.0
Alexander Kanavin [Tue, 21 Jun 2022 20:16:37 +0000 (22:16 +0200)] 
python3-requests: upgrade 2.27.1 -> 2.28.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agox264: upgrade to latest revision
Alexander Kanavin [Tue, 21 Jun 2022 20:16:36 +0000 (22:16 +0200)] 
x264: upgrade to latest revision

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowireless-regdb: upgrade 2022.04.08 -> 2022.06.06
Alexander Kanavin [Tue, 21 Jun 2022 20:16:35 +0000 (22:16 +0200)] 
wireless-regdb: upgrade 2022.04.08 -> 2022.06.06

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosudo: upgrade 1.9.10 -> 1.9.11p2
Alexander Kanavin [Tue, 21 Jun 2022 20:16:34 +0000 (22:16 +0200)] 
sudo: upgrade 1.9.10 -> 1.9.11p2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopuzzles: upgrade to latest revision
Alexander Kanavin [Tue, 21 Jun 2022 20:16:33 +0000 (22:16 +0200)] 
puzzles: upgrade to latest revision

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibrsvg: upgrade 2.54.3 -> 2.54.4
Alexander Kanavin [Tue, 21 Jun 2022 20:16:32 +0000 (22:16 +0200)] 
librsvg: upgrade 2.54.3 -> 2.54.4

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodos2unix: upgrade 7.4.2 -> 7.4.3
Alexander Kanavin [Tue, 21 Jun 2022 20:16:31 +0000 (22:16 +0200)] 
dos2unix: upgrade 7.4.2 -> 7.4.3

License-Update: copyright years

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodiffoscope: upgrade 215 -> 216
Alexander Kanavin [Tue, 21 Jun 2022 20:16:30 +0000 (22:16 +0200)] 
diffoscope: upgrade 215 -> 216

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibdrm: update 2.4.110 -> 2.4.111
Alexander Kanavin [Tue, 21 Jun 2022 20:16:29 +0000 (22:16 +0200)] 
libdrm: update 2.4.110 -> 2.4.111

libkms option dropped by upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoell: update 0.50 -> 0.51
Alexander Kanavin [Tue, 21 Jun 2022 20:16:28 +0000 (22:16 +0200)] 
ell: update 0.50 -> 0.51

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: update 1.18.2 -> 1.18.3
Alexander Kanavin [Tue, 21 Jun 2022 20:16:27 +0000 (22:16 +0200)] 
go: update 1.18.2 -> 1.18.3

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolttng-modules: update 2.13.3 -> 2.13.4
Alexander Kanavin [Tue, 21 Jun 2022 20:16:26 +0000 (22:16 +0200)] 
lttng-modules: update 2.13.3 -> 2.13.4

Drop backports; one of them (0009) is present only
on the master branch and not on 2.13 branch, and so
stays in the recipe.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovulkan: upgrade 1.3.211.0 -> 1.3.216.0
Alexander Kanavin [Tue, 21 Jun 2022 20:16:25 +0000 (22:16 +0200)] 
vulkan: upgrade 1.3.211.0 -> 1.3.216.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-setuptools: update 62.3.2 -> 62.5.0
Alexander Kanavin [Tue, 21 Jun 2022 20:16:24 +0000 (22:16 +0200)] 
python3-setuptools: update 62.3.2 -> 62.5.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-numpy: update 1.22.3 -> 1.22.4
Alexander Kanavin [Tue, 21 Jun 2022 20:16:23 +0000 (22:16 +0200)] 
python3-numpy: update 1.22.3 -> 1.22.4

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: update 22.0.3 -> 22.1.2
Alexander Kanavin [Tue, 21 Jun 2022 20:16:22 +0000 (22:16 +0200)] 
mesa: update 22.0.3 -> 22.1.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoperf: sort-pmuevents: really keep array terminators
Lucas Stach [Tue, 21 Jun 2022 17:02:44 +0000 (19:02 +0200)] 
perf: sort-pmuevents: really keep array terminators

Commit e1382583cd50 ("perf: sort-pmuevents: don't drop elements") tried
to fix a case where the array terminator elements were dropped from the
sorted list breaking the build, but it only worked for the case where
the terminator is the only element of the array. When the array has other
elements the terminator will still be silently dropped, causing invalid
memory accesses at runtime when the perf utility iterates over the array.

Fix this by treating any unmatched entry as an array terminator and also
add a comment to make it a little more clear how things are ending up at
the right position in the sorted list.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowic: fix WicError message
Martin Jansa [Tue, 21 Jun 2022 14:10:10 +0000 (16:10 +0200)] 
wic: fix WicError message

* add missing % to print the values instead of:
  | INFO: Build artifacts not found, exiting.
  | INFO:   (Please check that the build artifacts for the machine
  | INFO:    selected in local.conf actually exist and that they
  | INFO:    are the correct artifacts for the image (.wks file)).
  |
  | ERROR: ("The artifact that couldn't be found was %s:\n  %s", 'kernel-dir', '/OE/build/deploy/images/qemux86-64')

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibffi: fix native build being not portable
Maxime Roussin-Bélanger [Tue, 21 Jun 2022 14:26:19 +0000 (10:26 -0400)] 
libffi: fix native build being not portable

Without `--with-gcc-arch=generic` libffi looks up the cpuid to automatically determine
which mtune/march to use. This makes the native sstate-cache unuseable since it's
possible to have a newer cpu building the recipe and the library being pulled from
another older cpu which doesn't have the instruction.

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-jsonschema: upgrade 4.5.1 -> 4.6.0
Ross Burton [Tue, 21 Jun 2022 13:10:11 +0000 (14:10 +0100)] 
python3-jsonschema: upgrade 4.5.1 -> 4.6.0

Switch the build system from setuptools to hatch.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-hatch-vcs: add new recipe
Ross Burton [Tue, 21 Jun 2022 13:10:10 +0000 (14:10 +0100)] 
python3-hatch-vcs: add new recipe

This recipe (a VCS plugin for Hatch) is needed by the new
python3-jsonschema to build.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoAdd python3-hatchling (from meta-oe)
Ross Burton [Tue, 21 Jun 2022 13:10:09 +0000 (14:10 +0100)] 
Add python3-hatchling (from meta-oe)

Recipes in core are now needing to use the Hatch build system, so
move the hatchling recipe and class from meta-oe to oe-core.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoAdd python3-pathspec (from meta-python)
Ross Burton [Tue, 21 Jun 2022 13:10:08 +0000 (14:10 +0100)] 
Add python3-pathspec (from meta-python)

This is a dependency of the Hatch build system, to be added as
python3-hatchling.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoAdd python3-editables (from meta-python)
Ross Burton [Tue, 21 Jun 2022 13:10:07 +0000 (14:10 +0100)] 
Add python3-editables (from meta-python)

This is a dependency of the Hatch build system, to be added as
python3-hatchling.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoudev-extraconf/mount.sh: ignore lvm in automount
Muhammad Hamza [Tue, 21 Jun 2022 05:09:37 +0000 (10:09 +0500)] 
udev-extraconf/mount.sh: ignore lvm in automount

Failure message is shown in boot logs when trying to
mount lvm as automounter does not handle cases where
lvm is mounted. This simply skips lvm while automounting
to avoid failure message in boot logs.

Signed-off-by: Ansar Rasool <ansar_rasool@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agoudev-extraconf: force systemd-udevd to use shared MountFlags
Muhammad Hamza [Mon, 20 Jun 2022 13:52:58 +0000 (18:52 +0500)] 
udev-extraconf: force systemd-udevd to use shared MountFlags

Automounting does not work cleanly in case systemd as well as
udev rules are being used simultaneously and in most cases
race conditions and unknown behavior can come up.
In case we're running on top of systemd we need to make sure
that systemd-udevd knows that udev is in play as well and
mounting should be done using shared flags. Also as we're
using mount from sources other than systemd-mount in current
scripts this is the most manageable fix to automounting
problems.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agoudev-extraconf/mount.sh: only mount devices on hotplug
Muhammad Hamza [Mon, 20 Jun 2022 13:17:56 +0000 (18:17 +0500)] 
udev-extraconf/mount.sh: only mount devices on hotplug

fdisk from util-linux (2.31.1) and above allows the user to
manipulate an already mounted device. In order to achieve this
functionality it issues a BLKRRPART (block device re-read part)
ioctl and in response the kernel generates remove/change/add
events if the device is not mounted (manually unmounted etc)
which are caught and processed by udev. This causes our auto-mounter
to remount everything because it does not keep track and things
go out of control.
Differentiating between types of remove events such as the one
described above (generated by BLKRRPART) and one where the device
is physically plugged out is only possible using the DEVPATH variable
which is cleaned up only when the device is actually plugged-out.
This fixes the above anomaly by only mounting a device in add event
which is cleaned up properly (tmp cache deleted) in the remove event
or is not present in the tmp cache while making use of the DEVPATH
variable during the remove action.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agoudev-extraconf/mount.sh: save mount name in our tmp filecache
Muhammad Hamza [Mon, 20 Jun 2022 13:17:55 +0000 (18:17 +0500)] 
udev-extraconf/mount.sh: save mount name in our tmp filecache

Doing this will allow to fetch the exact name created by the
auto-mounter during the remove action where depending on the
scenario utilities such as the blkid might not be usable due
to actual device not being present on the system.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agoudev-extraconf/mount.sh: add LABELs to mountpoints
Muhammad Hamza [Tue, 21 Jun 2022 09:05:12 +0000 (14:05 +0500)] 
udev-extraconf/mount.sh: add LABELs to mountpoints

This alters the mountpoints such that if a device has a LABEL or
a PARTLABEL, it will be mounted at e.g.:

  /run/media/$LABEL-<device-node>
  /run/media/$PARTLABEL-<device-node>
  /run/media/rootfs-sda2

otherwise the device will be mounted at e.g.:

  /run/media/<device-node>
  /run/media/sda1

The <device-node> appended with LABEL or PARTLABEL makes sure that
the mountpoint is unique, therefore, avoids overlapping mounts.

Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agosystemd: Rebase patches on v251
Pavel Zhukov [Tue, 21 Jun 2022 07:08:00 +0000 (09:08 +0200)] 
systemd: Rebase patches on v251

Drop patches which are not needed anymore.
Rebase musl specific patches to aboid fuzz warnings

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agosystemd: Add missed sys/file.h includes for musl
Pavel Zhukov [Tue, 21 Jun 2022 07:07:58 +0000 (09:07 +0200)] 
systemd: Add missed sys/file.h includes for musl

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agosigning-keys: fix RDEPENDS to signing-keys-dev
Federico Pellegrin [Sun, 19 Jun 2022 15:24:17 +0000 (17:24 +0200)] 
signing-keys: fix RDEPENDS to signing-keys-dev

Specific provider (ie. RPM or IPK) does "provide" just itself as a
package to the system. This will cause the "-dev" package, which
refers to the generic signing-keys and not the provider specific,
to miss the dependency.

Error case (RPM) when populating sdk:

Error:
 Problem: conflicting requests
  - nothing provides signing-keys = 1.0-r0 needed by signing-keys-dev-1.0-r0.noarch
(try to add '--skip-broken' to skip uninstallable packages)

Examining signing-keys-rpm packages in PROVIDES we have indeed:
signing-keys-rpm = 1.0-r0

But in signing-keys-dev: in REQUIRES:
signing-keys-1.0-r0

This MR will fix the situation by removing the RDEPENDS for
the -dev package

Signed-off-by: Federico Pellegrin <fede@evolware.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
3 years agopython3: fix a race condition in the test_socket.testSockName test
Ross Burton [Fri, 17 Jun 2022 12:48:20 +0000 (13:48 +0100)] 
python3: fix a race condition in the test_socket.testSockName test

This test uses find_unused_port() which is inherently racey, so retry
it a few times before failing.

[ YOCTO #14840 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agosystemd: add packageconfig for sysext
Peter Bergin [Fri, 17 Jun 2022 12:56:19 +0000 (14:56 +0200)] 
systemd: add packageconfig for sysext

Currently the sysext binary is packaged in systemd-utils and
the service systemd-sysext.service in systemd package. Add a
PACKAGECONFIG for sysext to actively choose if it is going to
be installed or not, default off. If installed it will be added
to systemd package.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoinitramfs-framework: move storage mounts to actual rootfs
Muhammad Hamza [Fri, 17 Jun 2022 05:50:22 +0000 (10:50 +0500)] 
initramfs-framework: move storage mounts to actual rootfs

Operations such as mkfs fail on devices that are not
switched to the actual rootfs before switch_root is
called. The kernel interprets these devices as still
being used even after unmounting and errors such as
below are seen when the target is fully booted

root@v1000:~# umount /dev/sdb1
root@v1000:~# mkfs.ext4 /dev/sdb1
mke2fs 1.43.8 (1-Jan-2018)
/dev/sdb1 contains a ext4 file system
        last mounted on Wed Nov 28 07:33:54 2018
Proceed anyway? (y,N) y
/dev/sdb1 is apparently in use by the system; will not make a filesystem here!

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-magic: upgrade 0.4.26 -> 0.4.27
Xu Huan [Fri, 17 Jun 2022 01:37:50 +0000 (09:37 +0800)] 
python3-magic: upgrade 0.4.26 -> 0.4.27

Changes to 0.4.27:
  - remove spurious pyproject.toml that breaks source builds

Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3: upgrade 3.10.4 -> 3.10.5
Xu Huan [Fri, 17 Jun 2022 01:37:49 +0000 (09:37 +0800)] 
python3: upgrade 3.10.4 -> 3.10.5

0001-Don-t-search-system-for-headers-libraries.patch
refreshed for new version.

Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoerofs-utils: upgrade 1.4 -> 1.5
wangmy [Thu, 16 Jun 2022 01:35:54 +0000 (09:35 +0800)] 
erofs-utils: upgrade 1.4 -> 1.5

0001-fsck-main.c-add-missing-include.patch
removed since it's included in 1.5.

License-Update: license switch to GPL-2.0+ OR Apache-2.0
                for better 3rd-party integration.

Changelog:
==========
* This release includes the following updates:
   - (fsck.erofs) support filesystem extraction (Igor Ostapenko);
   - support ztailpacking inline feature for compressed files (Yue Hu);
   - (dump.erofs) support listing directories;
   - more liberofs APIs (including iterate APIs) (me, Kelvin Zhang);
   - use mtime to allow more control over the timestamps (David Anderson);
   - switch to GPL-2.0+ OR Apache-2.0 dual license for liberofs;
   - various bugfixes and cleanups;

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 agomesa: backport a patch to support compositors without zwp_linux_dmabuf_v1 again
Martin Jansa [Wed, 15 Jun 2022 20:21:08 +0000 (22:21 +0200)] 
mesa: backport a patch to support compositors without zwp_linux_dmabuf_v1 again

* the same will be needed for kirkstone

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-pyasn1: Eliminated ptest deprecation warnings
Yulong (Kevin) Liu [Wed, 15 Jun 2022 19:41:27 +0000 (12:41 -0700)] 
python3-pyasn1: Eliminated ptest deprecation warnings

Eliminated the ptest deprecation warnings for the error:
    DeprecationWarning: _int_ returned non-int (type SizedInteger).
    The ability to return an instance of a strict subclass of int is deprecated,
    and may be removed in a future version of Python.
       return SizedInteger(value).setBitLength(len(value))

Patch from git upstream repo:
   https://github.com/etingof/pyasn1/commit/db8f1a7930c6b5826357646746337dafc983f953

Signed-off-by: Yulong (Kevin) Liu <yulong.liu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: systemd-systemctl: Support instance conf files during enable
Nick Potenski [Wed, 15 Jun 2022 19:32:19 +0000 (14:32 -0500)] 
systemd: systemd-systemctl: Support instance conf files during enable

Add ability to parse instance-specific conf files when
enabling an instance of a templated unit during postinstall.

Signed-off-by: Nick Potenski <nick.potenski@garmin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorootfs-postcommands.bbclass: correct comments
Michael Opdenacker [Wed, 15 Jun 2022 18:36:04 +0000 (20:36 +0200)] 
rootfs-postcommands.bbclass: correct comments

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest/cve_check: add tests for Ignored and partial reports
Marta Rybczynska [Wed, 15 Jun 2022 13:21:48 +0000 (15:21 +0200)] 
oeqa/selftest/cve_check: add tests for Ignored and partial reports

Add testcases for partial reports with CVE_CHECK_REPORT_PATCHED and
Ignored CVEs.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocve-check: add support for Ignored CVEs
Marta Rybczynska [Wed, 15 Jun 2022 13:20:11 +0000 (15:20 +0200)] 
cve-check: add support for Ignored CVEs

Ignored CVEs aren't patched, but do not apply in our configuration
for some reason. Up till now they were only partially supported
and reported as "Patched".

This patch adds separate reporting of Ignored CVEs. The variable
CVE_CHECK_REPORT_PATCHED now manages reporting of both patched
and ignored CVEs.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorunqemu: add QB_KERNEL_CMDLINE
Raju Kumar Pothuraju [Wed, 15 Jun 2022 13:10:24 +0000 (18:40 +0530)] 
runqemu: add QB_KERNEL_CMDLINE

runqemu auto generating the KERNEL_CMDLINE values and specifying using
-append option to qemu boot command which will lead to override the
kernel_cmdline/bootargs which are specified in DTB when using -dtb option.
Add new macro QB_KERNEL_CMDLINE to specify not to add the runqemu
generated KERNEL_CMDLINE values instead use which are in the DTB if
value defined as 'none'.
Add provision to override bootargs using # runqemu bootparams="root=/dev/ram0"

Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolinux-firmware: upgrade 20220509 -> 20220610
Dmitry Baryshkov [Wed, 15 Jun 2022 10:04:15 +0000 (13:04 +0300)] 
linux-firmware: upgrade 20220509 -> 20220610

Drop 0001-Makefile-replace-mkdir-by-install.patch merged upstream.

License-Update: additional files
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agostress-ng: upgrade 0.14.01 -> 0.14.02
wangmy [Wed, 15 Jun 2022 08:19:52 +0000 (16:19 +0800)] 
stress-ng: upgrade 0.14.01 -> 0.14.02

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 agopiglit: upgrade to latest revision
wangmy [Wed, 15 Jun 2022 08:19:51 +0000 (16:19 +0800)] 
piglit: upgrade to latest revision

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 agomusl-obstack: upgrade 1.1 -> 1.2
wangmy [Wed, 15 Jun 2022 08:16:03 +0000 (16:16 +0800)] 
musl-obstack: upgrade 1.1 -> 1.2

Changelog:
=========
Use obstack.c and obstack.h from gcc-10.2.0 libiberty.
Add AC_CONFIG_HEADERS to configure.ac and make ./bootstrap.sh create config.h.in.

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>