]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
3 years agoget_module_deps3.py: Check attribute '__file__'
Leon Anavi [Wed, 2 Nov 2022 19:18:00 +0000 (21:18 +0200)] 
get_module_deps3.py: Check attribute '__file__'

Check if the module object has attribute '__file__' to fix and
avoid errors like:

AttributeError: module '_abc' has no attribute '__file__'. Did you mean: '__name__'?

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agovalgrind: update to 3.20.0
Qiu, Zheng [Wed, 2 Nov 2022 14:41:59 +0000 (10:41 -0400)] 
valgrind: update to 3.20.0

Changes in this update includes:
* The option "--vgdb-stop-at=event1,event2,..." accepts the new value
  abexit. This indicates to invoke gdbserver when your program exits
  abnormally (i.e. with a non zero exit code).
* Fix Rust v0 name demangling.
* The Linux rseq syscall is now implemented as (silently) returning
  ENOSYS.
* Add FreeBSD syscall wrappers for __specialfd and __realpathat.
* Remove FreeBSD dependencies on COMPAT10, which fixes compatibility
  with HardenedBSD
* The option --enable-debuginfod=<no|yes> [default: yes] has been added
  on Linux.
* More DWARF5 support as generated by clang14.

Drop the patch 0001-Fix-drd-tests-shared_timed_mutex.cpp.patch which was
merged upstream.

ptest result:
System   Pass  Fail  Skip
x86-64   717   0     20

Signed-off-by: Zheng Qiu <zheng.qiu@windriver.com>
Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoweston: update 10.0.2 -> 11.0.0
Pablo Saavedra Rodi?o [Wed, 2 Nov 2022 12:26:58 +0000 (13:26 +0100)] 
weston: update 10.0.2 -> 11.0.0

Highlights for this release:

- Continued work on color management infrastructure:
  In Weston 11, if you enable the tentative, experimental and WIP color
  management option, Weston will not only blend in linear light, but
  you can also set up a monitor ICC profile and Weston will do some
  kind of color mapping from sRGB to that profile. Furthermore, you can
  configure a monitor into HDR mode and deliver HDR characteristics from
  weston.ini to the monitor, but Weston will *not* produce proper HDR
  content yet, meaning the display is incorrect.
- Various RDP improvements.
- Performance improvements in the DRM backend.
- Support for the wp_single_pixel_buffer_v1 protocol.
- weston_buffer refactoring.
- Groundwork for running multiple backends at the same time (e.g. KMS + RDP)
  and for multi-GPU support in the DRM backend. This is not supported
  yet, but may be in a future release.

Breaking changes for users:

- The cms-static and cms-colord plugins are now deprecated.
- A number of features have been removed from desktop-shell: multiple
  workspaces, zoom, exposay.
- wl_shell support has been removed (superseded by xdg-shell).
- The fbdev backend has been removed (superseded by KMS).
- weston-launch and launcher-direct have been removed (superseded by libseat).
- The weston-info and weston-gears clients have been removed (weston-info is
  superseded by wayland-info).
- The KMS max-bpc property is now set by default. If you experience black
  screens with (faulty) monitors, try lowering it in weston.ini.
- Weston will now abort when running out of memory. Weston is not suitable
  for memory constrained environments.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolttng-modules: upgrade 2.13.5 -> 2.13.7
Richard Purdie [Wed, 2 Nov 2022 09:26:49 +0000 (09:26 +0000)] 
lttng-modules: upgrade 2.13.5 -> 2.13.7

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopatchelf: upgrade 0.15.0 -> 0.16.1
Richard Purdie [Wed, 2 Nov 2022 09:26:48 +0000 (09:26 +0000)] 
patchelf: upgrade 0.15.0 -> 0.16.1

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocargo-update-recipe-crates: small improvements
Martin Jansa [Wed, 2 Nov 2022 08:12:07 +0000 (09:12 +0100)] 
cargo-update-recipe-crates: small improvements

* use 4 spaces
* avoid trailing space
* add CARGO_LOCK_SRC_DIR to allow searching outside ${S}
* use BPN in output filename
* First I've used CARGO_LOCK_SRC_DIR as relative to ${S}, because that's what CARGO_SRC_DIR
  in cargo.bbclass is using:
  meta/classes-recipe/cargo.bbclass:CARGO_SRC_DIR ??= ""
  meta/classes-recipe/cargo.bbclass:MANIFEST_PATH ??= "${S}/${CARGO_SRC_DIR}/Cargo.toml"

  but change to absolute path (defaulting to ${S}) as requested by Alex:
  11:44 < kanavin> JaMa, would prefer CARGO_LOCK_SRC_DIR ??= "${S}"
  11:46 < kanavin> otherwise looks good

* I've resolved my usecase for CARGO_LOCK_SRC_DIR by changing
  S back to ${WORKDIR}/git and using CARGO_SRC_DIR to select
  the right subdirectory to be built, because the Cargo.toml
  in this subdirectory was also referencing other subdirectories
  with relative path:
  https://github.com/solana-labs/solana-program-library/blob/88b147506d5b9515f3a4762421a0b8c309188dc9/token/cli/Cargo.toml#L30
  so including all Cargo.lock files in whole ${WORKDIR}/git
  seems like reasonable approach

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-sphinx: upgrade 5.2.3 -> 5.3.0
Tim Orling [Wed, 2 Nov 2022 03:18:30 +0000 (20:18 -0700)] 
python3-sphinx: upgrade 5.2.3 -> 5.3.0

https://www.sphinx-doc.org/en/master/changes.html#release-5-3-0-released-oct-16-2022

Release 5.3.0 (released Oct 16, 2022)

* #10759: LaTeX: add latex_table_style and support the 'booktabs',
  'borderless', and 'colorrows' styles. (thanks to Stefan
          Wiehler for initial pull requests #6666, #6671)

* #10840: One can cross-reference including an option value like
  `--module=foobar`, `--module[=foobar]` or `--module foobar`.
          Patch by Martin Liska.

* #10881: autosectionlabel: Record the generated section label to the
  debug log.

* #10268: Correctly URI-escape image filenames.

* #10887: domains: Allow sections in all the content of all object
  description directives (e.g. py:function). Patch by Adam
          Turner

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-zipp: upgrade 3.9.0 -> 3.10.0
Tim Orling [Wed, 2 Nov 2022 03:18:28 +0000 (20:18 -0700)] 
python3-zipp: upgrade 3.9.0 -> 3.10.0

https://github.com/jaraco/zipp/blob/main/CHANGES.rst#v3100

v3.10.0

* zipp is now a package.

https://github.com/jaraco/zipp/blob/main/CHANGES.rst#v391

v3.9.1

* Removed 'print' expression in test_pickle.
* bpo-43651: Apply io.text_encoding on Python 3.10 and later.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-pytz: upgrade 2022.4 -> 2022.6
Tim Orling [Wed, 2 Nov 2022 03:18:27 +0000 (20:18 -0700)] 
python3-pytz: upgrade 2022.4 -> 2022.6

https://launchpad.net/pytz/+announcement/30743

pytz 2022.6, containing the 2022f IANA database, has been released.
There are no code changes.

https://launchpad.net/pytz/+announcement/30736

pytz 2022.5 has been released containing the IANA 2022e database
release. There are no code changes.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-more-itertools: upgrade 8.14.0 -> 9.0.0
Tim Orling [Wed, 2 Nov 2022 03:18:26 +0000 (20:18 -0700)] 
python3-more-itertools: upgrade 8.14.0 -> 9.0.0

https://github.com/more-itertools/more-itertools/blob/master/docs/versions.rst#900

9.0.0

* Potentially breaking changes
  - `grouper` no longer accepts an integer as its first
    argument. Previously this raised a DeprecationWarning.
  - `collate` has been removed. Use the built-in
    `heapq.merge` instead.
  - `windowed` now yields nothing when its iterable is
     empty.

* This library now advertises support for Python 3.7+.

* New functions
  - `constrained_batches`
  - `batched` (from the Python itertools docs)
  - `polynomial_from_roots` (from the Python itertools
     docs)
  -`sieve` (from the Python itertools docs)

* Other changes
  - Some documentation issues were fixed (thanks to nanouasyn)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-hypothesis: upgrade 6.56.1 -> 6.56.4
Tim Orling [Wed, 2 Nov 2022 03:18:25 +0000 (20:18 -0700)] 
python3-hypothesis: upgrade 6.56.1 -> 6.56.4

https://hypothesis.readthedocs.io/en/latest/changes.html#v6-56-4

6.56.4 - 2022-10-28

* This patch updates some docs, and depends on exceptiongroup 1.0.0 final
  to avoid a bug in the previous version.

6.56.3 - 2022-10-17

* This patch teaches text() to rewrite a few more filter predicates (issue
  #3134). You’re unlikely to notice any change.

6.56.2 - 2022-10-10

* This patch updates our vendored list of top-level domains, which is used
  by the provisional domains() strategy, and fixes some incorrect examples
  in the docs for mutually_broadcastable_shapes().

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-pytest-subtests: upgrade 0.8.0 -> 0.9.0
Tim Orling [Wed, 2 Nov 2022 03:18:24 +0000 (20:18 -0700)] 
python3-pytest-subtests: upgrade 0.8.0 -> 0.9.0

https://github.com/pytest-dev/pytest-subtests/blob/main/CHANGELOG.rst#090-2022-10-28

0.9.0 (2022-10-28)

* Python 3.11 is officially supported.
* Dropped support for Python 3.6.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-pytest: upgrade 7.1.3 -> 7.2.0
Tim Orling [Wed, 2 Nov 2022 03:18:23 +0000 (20:18 -0700)] 
python3-pytest: upgrade 7.1.3 -> 7.2.0

https://docs.pytest.org/en/stable/changelog.html#pytest-7-2-0-2022-10-23

Excerpt from upstream release notes:

Deprecations

* #10012: Update pytest.PytestUnhandledCoroutineWarning to a
  deprecation; it will raise an error in pytest 8.

* #10396: pytest no longer depends on the py library. pytest provides
  a vendored copy of py.error and py.path modules but will use
          the py library if it is installed. If you need other py.* modules,
          continue to install the deprecated py library separately, otherwise it
          can usually be removed as a dependency.

* #4562: Deprecate configuring hook specs/impls using
 attributes/marks.

         Instead use pytest.hookimpl() and pytest.hookspec(). For more
         details, see the docs.

* #9886: The functionality for running tests written for nose has been
 officially deprecated.

        This includes:

        Plain setup and teardown functions and methods: this might catch
        users by surprise, as setup() and teardown() are not pytest idioms, but
        part of the nose support.

        Setup/teardown using the @with_setup decorator.

        For more details, consult the deprecation docs.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-psutil: upgrade 5.9.2 -> 5.9.3
Tim Orling [Wed, 2 Nov 2022 03:18:22 +0000 (20:18 -0700)] 
python3-psutil: upgrade 5.9.2 -> 5.9.3

https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#593

2022-10-18

Enhancements

* 2040, [macOS]: provide wheels for arm64 architecture. (patch by
  Matthieu Darbois)

Bug fixes

* 2116, [macOS], [critical]: `psutil.net_connections`_ fails with
  RuntimeError.
* 2135, [macOS]: Process.environ() may contain garbage data. Fix
  out-of-bounds read around sysctl_procargs. (patch by Bernhard
  Urban-Forster)
* 2138, [Linux], [critical]: can't compile psutil on Android due to
  undefined ethtool_cmd_speed symbol.
* 2142, [POSIX]: net_if_stats() 's flags on Python 2 returned unicode
  instead of str. (patch by Matthieu Darbois)
* 2147, [macOS] Fix disk usage report on macOS 12+. (patch by Matthieu
  Darbois)
* 2150, [Linux] Process.threads() may raise NoSuchProcess. Fix race
  condition. (patch by Daniel Li)
* 2153, [macOS] Fix race condition in
  test_posix.TestProcess.test_cmdline. (patch by Matthieu Darbois)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-cryptography{-vectors}: 38.0.1 -> 38.0.3
Tim Orling [Wed, 2 Nov 2022 03:18:21 +0000 (20:18 -0700)] 
python3-cryptography{-vectors}: 38.0.1 -> 38.0.3

38.0.3 - 2022-11-01

* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL
  3.0.7, which resolves CVE-2022-3602 and CVE-2022-3786.

38.0.2 - 2022-10-11 (YANKED)

Attention!

This release was subsequently yanked from PyPI due to a regression in
OpenSSL.

* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL
  3.0.6.

https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#3803---2022-11-01

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-bcrypt: upgrade 4.0.0 -> 4.0.1
Tim Orling [Wed, 2 Nov 2022 03:18:20 +0000 (20:18 -0700)] 
python3-bcrypt: upgrade 4.0.0 -> 4.0.1

* Refresh python3-bcrypt-crates.inc

Upstream release notes[1]:

* We now build PyPy manylinux wheels.
* Fixed a bug where passing an invalid salt to checkpw could result in
  a pyo3_runtime.PanicException. It now correctly raises a ValueError.

[1] https://github.com/pyca/bcrypt/#401

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolinux-yocto-dev: add qemuarmv5
Jon Mason [Wed, 2 Nov 2022 00:24:38 +0000 (20:24 -0400)] 
linux-yocto-dev: add qemuarmv5

qemuarmv5 passes testimage on with the linux-yocto-dev kernel.  Add it
to the compatible machines list for that recipe.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agobluez5: Point hciattach bcm43xx firmware search path to /lib/firmware
Marek Vasut [Tue, 1 Nov 2022 21:34:46 +0000 (22:34 +0100)] 
bluez5: Point hciattach bcm43xx firmware search path to /lib/firmware

Currently the hciattach bcm43xx firmware loader looks up the firmware
blob in /etc/firmware . Change this to /lib/firmware instead, so that
the path is consistent with Linux kernel which also looks up firmware
for the WiFi part in /lib/firmware .

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agorust: submit a rewritten version of crossbeam_atomic.patch upstream
Alexander Kanavin [Tue, 1 Nov 2022 20:10:44 +0000 (21:10 +0100)] 
rust: submit a rewritten version of crossbeam_atomic.patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agogo: update 1.19.2 -> 1.19.3
Sakib Sajal [Tue, 1 Nov 2022 18:52:45 +0000 (14:52 -0400)] 
go: update 1.19.2 -> 1.19.3

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoarchiver: avoid using machine variable as it breaks multiconfig
Jose Quaresma [Fri, 14 Oct 2022 15:22:46 +0000 (16:22 +0100)] 
archiver: avoid using machine variable as it breaks multiconfig

STAGING_KERNEL_DIR uses the MACHINE name so it breaks the multiconfig
and in this cases it will run the shared recipes twice, one for each
machine.

STAGING_KERNEL_DIR it's been introduced in commit 5487dee2e1

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest/archiver: Add multiconfig test for shared recipes
Jose Quaresma [Fri, 14 Oct 2022 15:22:45 +0000 (16:22 +0100)] 
oeqa/selftest/archiver: Add multiconfig test for shared recipes

Test that the shared recipes in original mode with diff enabled works in multiconfig,
otherwise it will not build when using the same TMP dir.

The test can be run with:

oe-selftest -r archiver.Archiver.test_archiver_multiconfig_shared_unpack_and_patch

| oe-selftest - INFO - test_archiver_multiconfig_shared_unpack_and_patch (archiver.Archiver)
| oe-selftest - INFO -  ... ok
| oe-selftest - INFO - ----------------------------------------------------------------------
| oe-selftest - INFO - Ran 1 test in 52.948s
| oe-selftest - INFO - OK
| oe-selftest - INFO - RESULTS:
| oe-selftest - INFO - RESULTS - archiver.Archiver.test_archiver_multiconfig_shared_unpack_and_patch: PASSED (49.98s)
| oe-selftest - INFO - SUMMARY:
| oe-selftest - INFO - oe-selftest () - Ran 1 test in 52.948s
| oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobc: Add ptest.
Yan Xinkuan [Mon, 31 Oct 2022 23:55:11 +0000 (07:55 +0800)] 
bc: Add ptest.

Add ptest for OSS 'bc' by using 'bc' in the system to do calculation jobs according to the .b files from the source file.

Test example as below:
......
.00673400673400673400
“PASS: bc/div.b”
99836408603283573660347145562829683495827909199408566065153345558783\
9427595471.89114392327665123852
“PASS: bc/exp.b”
length(b)= 1406
“PASS: bc/fact.b”
......

If bc runs the .b files and does not crash, it would 'PASS', otherwise 'FAIL'.

Tested in qemux86-64, with kvm enabled, test cost 12 secs, so it should be a fast test.

Thanks to Ross Burton and Alexander Kanavin for the professional guidance.

Signed-off-by: Yan Xinkuan <yanxk.fnst@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-common.bbclass: use built-in rust targets for -native builds
Alexander Kanavin [Tue, 1 Nov 2022 09:17:09 +0000 (10:17 +0100)] 
rust-common.bbclass: use built-in rust targets for -native builds

Rust targets have the form of 'arch-unknown-linux-gnu' while
oe's native targets are 'arch-linux-gnu', e.g. omit the vendor.

The effect this has on rust-native builds is that rust first builds
itself as stage0 for arch-unknown-linux-gnu, then builds itself
again for arch-unknown-linux-gnu, then finally uses the compiler
from second step to 'cross-compile' a compiler for 'arch-linux-gnu'.

This last step is really not necessary, and we could save 4 minutes
out of 12 if it is eliminated. Which is what this patch does
by setting the target directly to 'arch-unknown-linux-gnu'; rust's
build system then shortcuts the build process after the second step.

Given a working rust-native will be needed as early as possible in a
typical yocto build (e.g. when in a not too distant future making a
useful kernel will not be possible without rust), producing it faster
is important.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/runtime/dnf: rewrite test_dnf_installroot_usrmerge
Ross Burton [Tue, 1 Nov 2022 16:29:05 +0000 (16:29 +0000)] 
oeqa/runtime/dnf: rewrite test_dnf_installroot_usrmerge

This test doesn't get exercised on the autobuilder and so it was broken:
specifically some of the ln commands silently fail and the chroot isn't
usable.

Rewrite the test case to correctly construct a chroot so the test can
pass.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/target/ssh: add ignore_status argument to run()
Ross Burton [Tue, 1 Nov 2022 16:29:04 +0000 (16:29 +0000)] 
oeqa/target/ssh: add ignore_status argument to run()

The underlying _run() method has an ignore_status argument and can
either return the exit code or raise an exception if it is non-zero.

Add the same argument to the run() method so that test cases can change
this value. It currently defaults to True as that is the existing
behaviour, but a follow-up patch will change this to False as test cases
should fail on errors unless told otherwise.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-mako: upgrade 1.2.2 -> 1.2.3
Tim Orling [Tue, 1 Nov 2022 15:08:57 +0000 (08:08 -0700)] 
python3-mako: upgrade 1.2.2 -> 1.2.3

Released: Thu Sep 22 2022
* bug

 - [bug] [lexer]

   * Fixed issue in lexer in the same category as that of #366 where the regexp
     used to match an end tag didn’t correctly organize for matching characters
     surrounded by whitespace, leading to high memory / interpreter hang if a
     closing tag incorrectly had a large amount of unterminated space in it.
     Credit to Sebastian Chnelik for locating the issue.

    As Mako templates inherently render and directly invoke arbitrary Python
    code from the template source, it is never appropriate to create templates
    that contain untrusted input.

    References: #367

[1] https://docs.makotemplates.org/en/latest/changelog.html#change-1.2.3
[2] https://github.com/sqlalchemy/mako/issues/366
[3] https://github.com/sqlalchemy/mako/issues/367

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoopenssl: Upgrade 3.0.5 -> 3.0.7
Ed Tanous [Tue, 1 Nov 2022 17:03:10 +0000 (10:03 -0700)] 
openssl: Upgrade 3.0.5 -> 3.0.7

OpenSSL 3.0.5 includes a HIGH level security vulnerability [1].

Upgrade the recipe to point to 3.0.7.

CVE-2022-3358 is reported fixed in 3.0.6, so drop the patch for that as
well.

[1] https://www.openssl.org/news/vulnerabilities.html

Fixes CVE-2022-3786 and CVE-2022-3602: X.509 Email Address Buffer Overflows
https://www.openssl.org/blog/blog/2022/11/01/email-address-overflows/

Signed-off-by: Ed Tanous <edtanous@google.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogptfdisk: remove warning message from target system
Peter Bergin [Mon, 31 Oct 2022 21:10:12 +0000 (22:10 +0100)] 
gptfdisk: remove warning message from target system

A recent change in libuuid made warning when running
sgdisk. Backport patch from upstream to silent warning.

The warning:
    "Warning! Unable to generate a proper UUID! Creating an improper one as a last
     resort! Windows 7 may crash if you save this partition table!"

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 agogo: update 1.19 -> 1.19.2
Alexander Kanavin [Mon, 31 Oct 2022 15:56:02 +0000 (16:56 +0100)] 
go: update 1.19 -> 1.19.2

Drop stack-protector.patch as issue fixed upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoexpat: upgrade to 2.5.0
Ross Burton [Mon, 31 Oct 2022 15:19:10 +0000 (15:19 +0000)] 
expat: upgrade to 2.5.0

Includes a fix for CVE-2022-43680.

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 agovim: upgrade 9.0.0614 -> 9.0.0820
Tim Orling [Mon, 31 Oct 2022 14:16:43 +0000 (07:16 -0700)] 
vim: upgrade 9.0.0614 -> 9.0.0820

Includes fixes for CVE-2022-3705
https://nvd.nist.gov/vuln/detail/CVE-2022-3705

For a short list of important changes, see:
https://www.arp242.net/vimlog/

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibffi: submit patch upstream
Alexander Kanavin [Mon, 31 Oct 2022 11:47:19 +0000 (12:47 +0100)] 
libffi: submit patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: submit patch upstream
Alexander Kanavin [Mon, 31 Oct 2022 11:47:18 +0000 (12:47 +0100)] 
go: submit patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoovmf: correct patches status
Alexander Kanavin [Mon, 31 Oct 2022 11:47:17 +0000 (12:47 +0100)] 
ovmf: correct patches status

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoargp-standalone: replace with a maintained fork
Alexander Kanavin [Mon, 31 Oct 2022 11:47:16 +0000 (12:47 +0100)] 
argp-standalone: replace with a maintained fork

Remove two patches as issues fixed upstream,
submit the third one.

License-Update: argp.h is an import from glibc and
has been refreshed to the latest version. It's still
lgpl 2.1.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokea: submit patch upstream
Alexander Kanavin [Mon, 31 Oct 2022 11:47:15 +0000 (12:47 +0100)] 
kea: submit patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocmake: drop qt4 patches
Alexander Kanavin [Mon, 31 Oct 2022 11:47:14 +0000 (12:47 +0100)] 
cmake: drop qt4 patches

Qt4 has been dead for a very long time now.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolttng-tools: submit determinism.patch upstream
Alexander Kanavin [Mon, 31 Oct 2022 11:47:13 +0000 (12:47 +0100)] 
lttng-tools: submit determinism.patch upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotcl: correct upstream version check
Alexander Kanavin [Mon, 31 Oct 2022 11:47:12 +0000 (12:47 +0100)] 
tcl: correct upstream version check

Sourceforge does not report the latest version reliably.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotcl: correct patch status
Alexander Kanavin [Mon, 31 Oct 2022 11:47:11 +0000 (12:47 +0100)] 
tcl: correct patch status

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogroff: submit patches upstream
Alexander Kanavin [Mon, 31 Oct 2022 11:47:10 +0000 (12:47 +0100)] 
groff: submit patches upstream

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-cryptography: convert to cargo-update-recipe-crates class
Alexander Kanavin [Mon, 31 Oct 2022 11:47:09 +0000 (12:47 +0100)] 
python3-cryptography: convert to cargo-update-recipe-crates class

This allows semi-automated updates to the list of crates, which
is far too awkward to maintain by hand, particularly on version updates.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-bcrypt: convert to use cargo-update-recipe-crates class.
Alexander Kanavin [Mon, 31 Oct 2022 11:47:08 +0000 (12:47 +0100)] 
python3-bcrypt: convert to use cargo-update-recipe-crates class.

The component has been reimplemented in rust, and comes
with a large list of dependencies in Cargo.toml/Cargo.lock.

Rather than list them by hand, use a file generated with
cargo-update-recipe-crates class.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocargo-update-recipe-crates.bbclass: add a class to generate SRC_URI crate lists from...
Alexander Kanavin [Mon, 31 Oct 2022 11:47:07 +0000 (12:47 +0100)] 
cargo-update-recipe-crates.bbclass: add a class to generate SRC_URI crate lists from Cargo.lock

For better or worse, more and more rust components are appearing that do
not include their dependencies in tarballs (or git trees), and rely on cargo
to fetch them. On the other hand, bitbake does not use cargo (and quite possible
won't ever be able to), and relies on having each item explicitly listed in SRC_URI
with a crate:// prefix. This however creates a problem of both making such lists in
the first place and updating them when a recipe is updated to a newer version.

So this class can be used to perform such updates by implementing a task that does it;
the next commit shows the outcome for python3-bcrypt (which has been tested to work
and produce a successful build).

Note: the python script relies on tomllib library, which appears in Python 3.11 and
does not exist in earlier versions - I've tested this by first updating python to 3.11-rc2
in oe-core.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocurl: Update 7.85.0 to 7.86.0
Robert Joslyn [Mon, 31 Oct 2022 03:06:26 +0000 (20:06 -0700)] 
curl: Update 7.85.0 to 7.86.0

Feature and security update. Fixes the following CVEs:

 - CVE-2022-32221
 - CVE-2022-35260
 - CVE-2022-42915
 - CVE-2022-42916

Release notes: https://curl.se/changes.html#7_86_0

Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocargo_common.bbclass: Fix typos
Alex Kiernan [Sun, 30 Oct 2022 17:38:14 +0000 (17:38 +0000)] 
cargo_common.bbclass: Fix typos

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiproute2: upgrade 5.19.0 -> 6.0.0
Changhyeok Bae [Fri, 28 Oct 2022 19:56:59 +0000 (19:56 +0000)] 
iproute2: upgrade 5.19.0 -> 6.0.0

Two patches are in upstream.

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoethtool: upgrade 5.19 -> 6.0
Changhyeok Bae [Fri, 28 Oct 2022 19:32:56 +0000 (19:32 +0000)] 
ethtool: upgrade 5.19 -> 6.0

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocreate-spdx.bbclass: remove unused SPDX_INCLUDE_PACKAGED
Michael Opdenacker [Fri, 28 Oct 2022 16:18:26 +0000 (18:18 +0200)] 
create-spdx.bbclass: remove unused SPDX_INCLUDE_PACKAGED

[YOCTO #14948]

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agowic: swap partitions are not added to fstab
ciarancourtney [Fri, 28 Oct 2022 12:30:50 +0000 (13:30 +0100)] 
wic: swap partitions are not added to fstab

- Regression in 7aa678ce804c21dc1dc51b9be442671bc33c4041

Signed-off-by: Ciaran Courtney <ciaran.courtney@activeenergy.ie>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agosanity: check for GNU tar specifically
Ross Burton [Fri, 28 Oct 2022 15:23:53 +0000 (16:23 +0100)] 
sanity: check for GNU tar specifically

We need the system tar to be GNU tar, as we reply on --xattrs.  Some
distributions may be using libarchive's tar binary, which is definitely
not as featureful, so check for this and abort early with a clear
message instead of later with mysterious errors.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3: update 3.10.6 -> 3.11.0
Alexander Kanavin [Thu, 27 Oct 2022 20:16:11 +0000 (22:16 +0200)] 
python3: update 3.10.6 -> 3.11.0

The semaphore fix has landed and is available from 3.11 onwards:
https://github.com/python/cpython/commit/1ee0f94d16f150356a4b9b0a39d44ba1d2d5b9fc

Drop 0001-Mitigate-the-race-condition-in-testSockName.patch
as it is merged upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoquilt: backport a patch to address grep 3.8 failures
Alexander Kanavin [Thu, 27 Oct 2022 20:16:10 +0000 (22:16 +0200)] 
quilt: backport a patch to address grep 3.8 failures

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolibxslt: upgrade 1.1.35 -> 1.1.37
Alexander Kanavin [Thu, 27 Oct 2022 20:16:09 +0000 (22:16 +0200)] 
libxslt: upgrade 1.1.35 -> 1.1.37

Drop the no longer supported option.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolibsoup: upgrade 3.0.7 -> 3.2.0
Alexander Kanavin [Thu, 27 Oct 2022 20:16:08 +0000 (22:16 +0200)] 
libsoup: upgrade 3.0.7 -> 3.2.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolttng-modules: upgrade 2.13.4 -> 2.13.5
Alexander Kanavin [Thu, 27 Oct 2022 20:16:07 +0000 (22:16 +0200)] 
lttng-modules: upgrade 2.13.4 -> 2.13.5

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoshadow: update 4.12.1 -> 4.12.3
Alexander Kanavin [Thu, 27 Oct 2022 20:16:06 +0000 (22:16 +0200)] 
shadow: update 4.12.1 -> 4.12.3

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-jsonschema: upgrade 4.9.1 -> 4.16.0
Alexander Kanavin [Thu, 27 Oct 2022 20:16:05 +0000 (22:16 +0200)] 
python3-jsonschema: upgrade 4.9.1 -> 4.16.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-hatch-fancy-pypi-readme: add a recipe
Alexander Kanavin [Thu, 27 Oct 2022 20:16:04 +0000 (22:16 +0200)] 
python3-hatch-fancy-pypi-readme: add a recipe

This is a new dependency of python3-jsonschema.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopython3-dbus: upgrade 1.2.18 -> 1.3.2
Alexander Kanavin [Thu, 27 Oct 2022 20:16:03 +0000 (22:16 +0200)] 
python3-dbus: upgrade 1.2.18 -> 1.3.2

Convert to meson.

License-Update: clarifications about https://reuse.software/ compliancy

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agojquery: upgrade 3.6.0 -> 3.6.1
Alexander Kanavin [Thu, 27 Oct 2022 20:16:02 +0000 (22:16 +0200)] 
jquery: upgrade 3.6.0 -> 3.6.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocmake: update 3.24.0 -> 3.24.2
Alexander Kanavin [Thu, 27 Oct 2022 20:16:01 +0000 (22:16 +0200)] 
cmake: update 3.24.0 -> 3.24.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoovmf: upgrade edk2-stable202205 -> edk2-stable202208
Alexander Kanavin [Thu, 27 Oct 2022 20:16:00 +0000 (22:16 +0200)] 
ovmf: upgrade edk2-stable202205 -> edk2-stable202208

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agopinentry: update 1.2.0 -> 1.2.1
Alexander Kanavin [Thu, 27 Oct 2022 20:15:59 +0000 (22:15 +0200)] 
pinentry: update 1.2.0 -> 1.2.1

libcap support dropped upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolibxft: update 2.3.4 -> 2.3.6
Alexander Kanavin [Thu, 27 Oct 2022 20:15:58 +0000 (22:15 +0200)] 
libxft: update 2.3.4 -> 2.3.6

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agowayland-utils: update 1.0.0 -> 1.1.0
Alexander Kanavin [Thu, 27 Oct 2022 20:15:57 +0000 (22:15 +0200)] 
wayland-utils: update 1.0.0 -> 1.1.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agovulkan: update 1.3.216.0 -> 1.3.224.1
Alexander Kanavin [Thu, 27 Oct 2022 20:15:56 +0000 (22:15 +0200)] 
vulkan: update 1.3.216.0 -> 1.3.224.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agostress-ng: update 0.14.03 -> 0.14.06
Alexander Kanavin [Thu, 27 Oct 2022 20:15:55 +0000 (22:15 +0200)] 
stress-ng: update 0.14.03 -> 0.14.06

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agohdparm: update 9.64 -> 9.65
Alexander Kanavin [Thu, 27 Oct 2022 20:15:54 +0000 (22:15 +0200)] 
hdparm: update 9.64 -> 9.65

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agogrep: update 3.7 -> 3.8
Alexander Kanavin [Thu, 27 Oct 2022 20:15:53 +0000 (22:15 +0200)] 
grep: update 3.7 -> 3.8

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agollvm: update 14.0.6 -> 15.0.1
Alexander Kanavin [Thu, 27 Oct 2022 20:15:52 +0000 (22:15 +0200)] 
llvm: update 14.0.6 -> 15.0.1

'Release' type follows standard practice elsewhere in core, particularly rust-llvm as well.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agognu-config: update to latest revision
Alexander Kanavin [Thu, 27 Oct 2022 20:15:50 +0000 (22:15 +0200)] 
gnu-config: update to latest revision

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agounfs3: correct upstream version check
Alexander Kanavin [Thu, 27 Oct 2022 20:15:49 +0000 (22:15 +0200)] 
unfs3: correct upstream version check

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agocmake-native: Fix host tool contamination
Bernhard Rosenkränzer [Thu, 27 Oct 2022 19:47:49 +0000 (21:47 +0200)] 
cmake-native: Fix host tool contamination

[v2 hopefully fixes the From: mangling by the ML, no functional changes]

Trying to build cmake-native on a host system where curl was built with cmake
(resulting in CURLConfig.cmake and friends, which do not use the same naming
schemes expected by cmake-native's build process, being installed to a system
wide cmake directory like /usr/lib64/cmake/CURL) results in undefined
references to all libcurl symbols.

The problem is that cmake-native sees and uses the system wide
/usr/lib64/cmake/CURL/CURLConfig.cmake, which defines CURL::libcurl and
CURL::curl as opposed to setting ${CURL_LIBRARIES} as expected by
cmake-native.

find_package(CURL) (cmake-native's CMakeLists.txt, line 478) succeeds, but
incorrectly uses the system wide CURLConfig.cmake, resulting
CMAKE_CURL_LIBRARIES to be set to an empty string (cmake-native's
CMakeLists.txt, line 484), causing the cmake-native build to miss -lcurl.

The simplest fix is to let cmake know the right value for
CURL_LIBRARIES. Making it -lcurl should always work with libcurl-native
in recipe-sysroot-native.

[YOCTO #14951]

Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agotiff: fix a typo for CVE-2022-2953.patch
Qiu, Zheng [Thu, 27 Oct 2022 17:47:07 +0000 (13:47 -0400)] 
tiff: fix a typo for CVE-2022-2953.patch

The CVE number in the patch is a typo. CVE-2022-2053 is not related to
libtiff. So fix it.

Signed-off-by: Zheng Qiu <zheng.qiu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomirrors.bbclass: use shallow tarball for binutils-native
Etienne Cordonnier [Fri, 28 Oct 2022 07:58:05 +0000 (09:58 +0200)] 
mirrors.bbclass: use shallow tarball for binutils-native

This is useful e.g. when using meta-clang, which introduces a dependency to binutils-native, and then a
full tarball of binutils is fetched additionally to a shallow tarball.

The original BB_GIT_SHALLOW lines were added because of https://www.mail-archive.com/yocto@lists.yoctoproject.org/msg08752.html

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: add support to build on ppc64le
Andrew Geissler [Thu, 6 Oct 2022 20:23:39 +0000 (15:23 -0500)] 
go: add support to build on ppc64le

Verified by building on a ppc64le based system

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-fitimage: skip FDT section creation for applicable symlinks
Ahmad Fatoum [Wed, 26 Oct 2022 13:22:19 +0000 (15:22 +0200)] 
kernel-fitimage: skip FDT section creation for applicable symlinks

When building a FIT image with device trees, each device tree lands in a
FIT section and is referenced by a FIT configuration node.

FIT images however also allow referencing the same device tree from
multiple configurations. This can be useful to reduce FIT image size
while staying compatible with existing bootloaders. Allow
kernel-fitimage.bbclass users to take advantage of this by mapping
each symlink to a regular device tree included in the FIT to a
configuration that references a common device tree section.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agokernel-fitimage: mangle slashes to underscores as late as possible
Ahmad Fatoum [Wed, 26 Oct 2022 13:22:18 +0000 (15:22 +0200)] 
kernel-fitimage: mangle slashes to underscores as late as possible

This introduces no functional change, but will come in handy in a later
commit where a file lookup will have us using the device tree name. If
we keep it like it's now, we will lose the information whether an
underscore is an original underscore or a mangled slash.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolighttpd: upgrade 1.4.66 -> 1.4.67
wangmy [Tue, 11 Oct 2022 08:58:49 +0000 (16:58 +0800)] 
lighttpd: upgrade 1.4.66 -> 1.4.67

Changelog:
=============
  * Update comment about TCP_INFO on OpenBSD
  * [mod_ajp13] fix crash with bad response headers (fixes #3170)
  * [core] handle RDHUP when collecting chunked body
  * [core] tweak streaming request body to backends
  * [core] handle ENOSPC with pwritev() (#3171)
  * [core] manually calculate off_t max (fixes #3171)
  * [autoconf] force large file support (#3171)
  * [multiple] quiet coverity warnings using casts
  * [meson] add license keyword to project declaration

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 agorust: install rustfmt for riscv32 as well
Alexander Kanavin [Tue, 25 Oct 2022 18:44:27 +0000 (20:44 +0200)] 
rust: install rustfmt for riscv32 as well

With the above rust arch fixes it builds just fine.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-target-config: match riscv target names with what rust expects
Alexander Kanavin [Tue, 25 Oct 2022 18:44:26 +0000 (20:44 +0200)] 
rust-target-config: match riscv target names with what rust expects

Official rust risc-v targets are prefixed with riscv32gc- and riscv64gc-:
https://doc.rust-lang.org/nightly/rustc/platform-support.html

Particularly crossbeam-utils make important build time decisions
for atomics based on those names, and so we need to match ours
with official targets.

On the other hand, the actual definitions for those targets do not
use the 'gc' suffix in 'arch' and 'llvm-target' fields, and so we
need to follow that too, to avoid cryptic mismatch errors from rust-llvm:
https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/riscv32gc_unknown_linux_gnu.rs

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoqemu: backport the fix for CVE-2022-3165
Ross Burton [Tue, 25 Oct 2022 15:34:49 +0000 (16:34 +0100)] 
qemu: backport the fix for CVE-2022-3165

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 agotiff: fix a number of CVEs
Ross Burton [Tue, 25 Oct 2022 15:21:45 +0000 (16:21 +0100)] 
tiff: fix a number of CVEs

Backport fixes from upstream for the following CVEs:
- CVE-2022-3599
- CVE-2022-3597
- CVE-2022-3626
- CVE-2022-3627
- CVE-2022-3570
- CVE-2022-3598

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 agomesa: update 22.2.0 -> 22.2.2
Markus Volk [Mon, 24 Oct 2022 15:06:08 +0000 (17:06 +0200)] 
mesa: update 22.2.0 -> 22.2.2

- add a PACKAGECONFIG for perfetto support

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoopenssl: Fix SSL_CERT_FILE to match ca-certs location
Richard Purdie [Wed, 26 Oct 2022 21:03:29 +0000 (22:03 +0100)] 
openssl: Fix SSL_CERT_FILE to match ca-certs location

In OE-Core d6b15d1e70b99185cf245d829ada5b6fb99ec1af,
"openssl: export necessary env vars in SDK", the value added for
SSL_CERT_FILE was in conflict with the value used elsewhere, such as
in buildtools. This makes them match and fixes buildtools testsdk
failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Rework signing to remove interdependencies
Sean Anderson [Fri, 21 Oct 2022 23:37:26 +0000 (19:37 -0400)] 
u-boot: Rework signing to remove interdependencies

The U-Boot signing code is a bit of a mess. The problem is that mkimage
determines the public keys to embed into a device tree based on an image
that it is signing. This results in all sorts of contortions: U-Boot has to
be available to the kernel recipe so that it can have the correct public
keys embedded. Then, the signed U-Boot has to be made available to U-Boot's
do_deploy. This same dance is then repeated for SPL. To complicate matters,
signing for U-Boot and U-Boot SPL is optional, so the whole process must be
seamlessly integrated with a non-signed build.

The complexity and interdependency of this process makes it difficult to
extend. For example, it is not possible to install a signed U-Boot binary
into the root filesystem. This is first because u-boot:do_install must run
before linux:do_assemble_fitimage, which must run before u-boot:do_deploy.
But aside from infrastructure issues, installing a signed U-Boot also can't
happen, because the kernel image might have an embedded initramfs
(containing the signed U-Boot).

However, all of this complexity is accidental. It is not necessary to embed
the public keys into U-Boot and sign the kernel in one fell swoop. Instead,
we can sign the kernel, stage it, and sign the staged kernel again to embed
the public keys into U-Boot [1]. This twice-signed kernel serves only to
provide the correct parameters to mkimage, and does not have to be
installed or deployed. By cutting the dependency of
linux:do_assemble_fitimage on u-boot:do_install, we can drastically
simplify the build process, making it much more extensible.

The process of doing this conversion is a bit involved, since the U-Boot
and Linux recipes are so intertwined at the moment. The most major change
is that uboot-sign is no longer inherited by kernel-fitimage. Similarly,
all U-Boot-related tasks have been removed from kernel-fitimage. We add a
new step to the install task to stage the kernel in /sysroot-only. The
logic to disable assemble_fitimage has been removed. We always assemble it,
even if the final fitImage will use a bundled initramfs, because U-Boot
will need it.

On the U-Boot side, much of the churn stems from multiple config support.
Previously, we took a fairly ad-hoc approach to UBOOT_CONFIG and
UBOOT_MACHINE, introducing for loops wherever we needed to deal with them.
However, I have chosen to use a much more structured approach. Each task
which needs to use the build directory uses the following pseudocode:

do_mytask() {
if ${UBOOT_CONFIG}; then
for config, type in zip(${UBOOT_CONFIG}, ${UBOOT_MACHINE}); do
cd ${config}
mytask_helper ${type}
done
else
cd ${B}
mytask_helper ""
fi
}

By explicitly placing the work in mytask_helper, we make it easier to
ensure that everything is covered, and we also allow bbappends files to
more easily extend the task (as otherwise they would need to reimplement
the loop themselves).

[1] It doesn't particularly matter what we sign. Any FIT will do, but I
chose the kernel's because we already went to the trouble of setting it up
with the correct hashes and signatures. In the future, we could create a
"dummy" image and sign that instead, but it would probably have to happen
in the kernel recipe anyway (so we have access to the appropriate
variables).

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agouboot-sign: Split off kernel-fitimage variables
Sean Anderson [Fri, 21 Oct 2022 23:37:25 +0000 (19:37 -0400)] 
uboot-sign: Split off kernel-fitimage variables

In preparation for the next commit, split off several

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agouboot-sign: Use bitbake variables directly
Sean Anderson [Fri, 21 Oct 2022 23:37:24 +0000 (19:37 -0400)] 
uboot-sign: Use bitbake variables directly

uboot_fitimage_assemble is called from one place with the same
arguments. Instead of using shell variables as intermediaries, simplify
the function by using the bitbake variables directly. Removing a layer
of indirection makes it easier to determine what values are being
substituted in. Some variables can't be fully converted, but they will
be addressed in the a few commits.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agokernel-fitimage: Use KERNEL_OUTPUT_DIR where appropriate
Sean Anderson [Fri, 21 Oct 2022 23:37:23 +0000 (19:37 -0400)] 
kernel-fitimage: Use KERNEL_OUTPUT_DIR where appropriate

We have a specific variable for the path to the boot directory. Use it
instead of open-coding this path.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agokernel: Clear SYSROOT_DIRS instead of replacing sysroot_stage_all
Sean Anderson [Fri, 21 Oct 2022 23:37:22 +0000 (19:37 -0400)] 
kernel: Clear SYSROOT_DIRS instead of replacing sysroot_stage_all

Replacing sysroot_stage_all by a no-op recipe makes it difficult for
bbappends to stage files intentionally. Instead, just clear
SYSROOT_DIRS, allowing other bbappends to easily add new directories.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agouboot-sign: Fix using wrong KEY_REQ_ARGS
Sean Anderson [Fri, 21 Oct 2022 23:37:21 +0000 (19:37 -0400)] 
uboot-sign: Fix using wrong KEY_REQ_ARGS

When generating our SPL-verifying certificate, we use FIT_KEY_REQ_ARGS,
which is intended for the U-Boot-verifying certificate. Instead, use
UBOOT_FIT_KEY_REQ_ARGS.

Fixes: 0e6b0fefa0 ("u-boot: Use a different Key for SPL signing")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agogit: upgrade 2.37.3 -> 2.38.1
Tim Orling [Mon, 24 Oct 2022 17:07:20 +0000 (10:07 -0700)] 
git: upgrade 2.37.3 -> 2.38.1

Fixes CVE-2022-39260

Git v2.38.1 Release Notes
=========================

This release merges the security fix that appears in v2.30.6; see
the release notes for that version for details.

Excerpt from 2.30.6 release notes:

 * CVE-2022-39260:
   An overly-long command string given to `git shell` can result in
   overflow in `split_cmdline()`, leading to arbitrary heap writes and
   remote code execution when `git shell` is exposed and the directory
   `$HOME/git-shell-commands` exists.

   `git shell` is taught to refuse interactive commands that are
   longer than 4MiB in size. `split_cmdline()` is hardened to reject
   inputs larger than 2GiB.

Credit for finding CVE-2022-39260 goes to Kevin Backhouse of GitHub.
The fix was authored by Kevin Backhouse, Jeff King, and Taylor Blau.

For 2.38.0 changes, see:
https://github.com/git/git/blob/master/Documentation/RelNotes/2.38.0.txt

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoxserver-xorg: backport fixes for CVE-2022-3550 and CVE-2022-3551
Ross Burton [Mon, 24 Oct 2022 15:07:45 +0000 (16:07 +0100)] 
xserver-xorg: backport fixes for CVE-2022-3550 and CVE-2022-3551

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoxserver-xorg: ignore CVE-2022-3553 as it is XQuartz-specific
Ross Burton [Mon, 24 Oct 2022 15:07:44 +0000 (16:07 +0100)] 
xserver-xorg: ignore CVE-2022-3553 as it is XQuartz-specific

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agolibx11: apply the fix for CVE-2022-3554
Ross Burton [Mon, 24 Oct 2022 15:07:43 +0000 (16:07 +0100)] 
libx11: apply the fix for CVE-2022-3554

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agokernel-yocto: improve fatal error messages of symbol_why.py
Jose Quaresma [Mon, 24 Oct 2022 11:32:16 +0000 (11:32 +0000)] 
kernel-yocto: improve fatal error messages of symbol_why.py

Improve the fatal error message of the yocto-kernel-tools symbol_why.py
and shows the command that generate the error as it can help understand
the root cause of the error.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoos-release: add HOMEPAGE and link to documentation
Mikko Rapeli [Mon, 24 Oct 2022 09:32:24 +0000 (12:32 +0300)] 
os-release: add HOMEPAGE and link to documentation

It's important to use standard variable names in the
/etc/os-release file. Otherwise reporting version etc
details requires custom modifications in various tools.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
3 years agoos-release: replace DISTRO_CODENAME with VERSION_CODENAME
Mikko Rapeli [Mon, 24 Oct 2022 09:32:23 +0000 (12:32 +0300)] 
os-release: replace DISTRO_CODENAME with VERSION_CODENAME

Latter is the /etc/os-release standard to report distro codenames
like "langdale".

https://www.freedesktop.org/software/systemd/man/os-release.html#VERSION_CODENAME=

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>