]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
2 years agognu-efi: Fix build break on riscv64
Khem Raj [Sun, 30 Jul 2023 21:38:28 +0000 (14:38 -0700)] 
gnu-efi: Fix build break on riscv64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-wheel: upgrade 0.40.0 -> 0.41.0
Tim Orling [Sun, 30 Jul 2023 19:20:50 +0000 (12:20 -0700)] 
python3-wheel: upgrade 0.40.0 -> 0.41.0

https://wheel.readthedocs.io/en/stable/news.html

0.41.0 (2023-07-22)
* Added full support of the build tag syntax to wheel tags (you can now
  set a build tag like 123mytag)
* Fixed warning on Python 3.12 about onerror deprecation. (PR by Henry
  Schreiner)
* Support testing on Python 3.12 betas (PR by Ewout ter Hoeven)

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>
2 years agopython3-more-itertools: upgrade 9.1.0 -> 10.0.0
Tim Orling [Sun, 30 Jul 2023 19:03:27 +0000 (12:03 -0700)] 
python3-more-itertools: upgrade 9.1.0 -> 10.0.0

https://more-itertools.readthedocs.io/en/stable/versions.html

10.0.0
* Potentially breaking changes
  - Python 3.7 support was dropped, since it went EOL on 2023-06-27
  - batched() no longer issues a DeprecationWarning; it is now an alias
    for itertools.batched for Python 3.12+
  - batched() and matmul() now yield tuples instead of lists
* New functions
  - combination_with_replacement_index() (thanks to Schoyen)
  - nth_combination_with_replacement() (thanks to Schoyen)
  - polynomial_eval() (from the Python itertools docs)
  - polynomial_derivative() (from the Python itertools docs)
  - sum_of_squares() (from the Python itertools docs)
* Changes to existing functions
  - seekable() now has relative_seek method (thanks to karlb)
  - chunked_even() was optimized (thanks to elliotwutingfeng)
  - numeric_range() was optimized (thanks to eltoder)
  - duplicates_justseen(), pairwise(), partial_product(), and partition()
    were updated and optimized (thanks to pochmann)
  - unique_in_window() had its implementation updated (thanks to
    elliotwutingfeng)
  - iterate() now breaks when its func argument raises StopIteration (thanks
    to jrebiffe)
* Other changes
  - Some documentation and testing issues were fixed (thanks to lonnen and
    XuehaiPan)

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>
2 years agopython3-certifi: upgrade 2023.5.7 -> 2023.7.22
Tim Orling [Sun, 30 Jul 2023 18:48:27 +0000 (11:48 -0700)] 
python3-certifi: upgrade 2023.5.7 -> 2023.7.22

No changelog provided. Commits:

8fb96ed (tag: 2023.07.22) 2023.07.22
afe7722 Bump actions/setup-python from 4.6.1 to 4.7.0 (#230)
2038739 Bump dessant/lock-threads from 3.0.0 to 4.0.1 (#229)
44df761 Hash pin Actions and enable dependabot (#228)

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>
2 years agopython3-sphinx: upgrade 7.0.1 -> 7.1.1
Tim Orling [Sun, 30 Jul 2023 18:37:12 +0000 (11:37 -0700)] 
python3-sphinx: upgrade 7.0.1 -> 7.1.1

No longer need to set PYPI_PACKAGE, download is
now sphinx-${PV}.tar.gz not Sphinx-${PV}.tar.gz.

https://www.sphinx-doc.org/en/master/changes.html#release-7-1-1-released-jul-27-2023
https://www.sphinx-doc.org/en/master/changes.html#release-7-1-0-released-jul-24-2023

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>
2 years agobluez5: correct CVE status of ignored CVEs
Peter Marko [Mon, 31 Jul 2023 07:02:32 +0000 (09:02 +0200)] 
bluez5: correct CVE status of ignored CVEs

Rewrite of CVE_CHECK_IGNORE to CVE_STATUS contained copy+paste
problem changing CVE numbers.

CVE-2020-12352 -> CVE-2022-3563
CVE-2020-24490 -> CVE-2022-3637

CVE-2020-12352 is now for kernel only in NVD BD, so remove it.
CVE-2020-24490 is corrected in this commit.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocve-exclusion_6.1: correct typo in exclusion list name
Peter Marko [Mon, 31 Jul 2023 07:02:31 +0000 (09:02 +0200)] 
cve-exclusion_6.1: correct typo in exclusion list name

This will remove 6 CVEs which were already excluded before.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibarchive: ignore CVE-2023-30571
Peter Marko [Sat, 29 Jul 2023 18:21:48 +0000 (20:21 +0200)] 
libarchive: ignore CVE-2023-30571

This issue was reported and discusses under [1] which is linked in NVD CVE report.
It was already documented that some parts or libarchive are thread safe and some not.
[2] was now merged to document that also reported function is not thread safe.
So this CVE *now* reports thread race condition for non-thread-safe function.
And as such the CVE report is now invalid.

The issue is still not closed for 2 reasons:
* better document what is and what is not thread safe
* request to public if someone could make these functions thread safe
This should however not invalidate above statment about ignoring this CVE.

[1] https://github.com/libarchive/libarchive/issues/1876
[2] https://github.com/libarchive/libarchive/pull/1875

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomaintainers.inc: Modify email address
Andrej Valek [Sun, 30 Jul 2023 06:32:39 +0000 (08:32 +0200)] 
maintainers.inc: Modify email address

andrej.valek@siemens.com -> andrej.v@skyrain.eu

Signed-off-by: Andrej Valek <andrej.v@skyrain.eu>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolinux-firmware: split platform-specific Adreno shaders to separate packages
Dmitry Baryshkov [Thu, 27 Jul 2023 22:04:36 +0000 (01:04 +0300)] 
linux-firmware: split platform-specific Adreno shaders to separate packages

For newest Qualcomm platforms the firmware for the Adreno GPU consists
of two parts: platform-independent SQE/GMU/GPMU/PFP/PM4 and
platform-specific ZAP shader, which is used during the boot process. As
the platform-independent parts can be shared between different
platforms, split the platform-specific part to the separate package.

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>
2 years agolinux-firmware : Add firmware of RTL8822 serie
BELOUARGA Mohamed [Thu, 27 Jul 2023 19:06:54 +0000 (21:06 +0200)] 
linux-firmware : Add firmware of RTL8822 serie

RTL8822 is a serie of wireless modules that need firmwares to function correctly.
The linux firmware recipe does not have a package of these firmwares, and this commit add them.

Signed-off-by: BELOUARGA Mohamed <m.belouarga@technologyandstrategy.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogcr3: remove recipe
Markus Volk [Thu, 27 Jul 2023 11:38:07 +0000 (13:38 +0200)] 
gcr3: remove recipe

It will be added to meta-gnome

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>
2 years agoprocps: address failure with gettext 0.22
Alexander Kanavin [Thu, 27 Jul 2023 14:36:27 +0000 (16:36 +0200)] 
procps: address failure with gettext 0.22

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>
2 years agobuildtools-extended-tarball: install the full set of gconv modules
Alexander Kanavin [Thu, 27 Jul 2023 14:36:26 +0000 (16:36 +0200)] 
buildtools-extended-tarball: install the full set of gconv modules

The specific set was written to ensure vim builds reproducibly; this is
however prone to silent regressions (if vim adds more usage of iconv with
different encodings). Installing the full set also matches what standard
desktop distributions do, and thus meets expectations of upstream projects in general.

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>
2 years agouninative-tarball: install the full set of gconv modules
Alexander Kanavin [Thu, 27 Jul 2023 14:36:25 +0000 (16:36 +0200)] 
uninative-tarball: install the full set of gconv modules

msgfmt from gettext-native 0.22 is using iconv() to convert data to utf-8
from arbitrary source encodings (previous versions of gettext did not
do this conversion):
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=5412a4f79929004cb6db15d545e07dc953330e8d

As this is happening at build time, and the source encodings are specified by upstream projects
 in translation files, we need the full set to cover all of them.

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>
2 years agoglibc-locale: use stricter matching for metapackages' runtime dependencies
Alexander Kanavin [Thu, 27 Jul 2023 14:36:24 +0000 (16:36 +0200)] 
glibc-locale: use stricter matching for metapackages' runtime dependencies

This resolves two issues:

1. metapackages were depending on themselves (except -binaries which wouldn't match against 'glibc-binary').

2. for the nativesdk variant, due to a non-empty dependency list at parsing time caused by
issue 1, map_depends_variable() from meta/lib/oe/classextend.py was forcibly setting PACKAGES
to the initial parse-time value (e.g. missing the dynamically created packages). This meant that
three out of four nativesdk- metapackages were entireyly missing the dependencies on the
respective dynamic package sets.

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>
2 years agoepiphany: upgrade 43.1 -> 44.5
Alexander Kanavin [Thu, 27 Jul 2023 14:36:23 +0000 (16:36 +0200)] 
epiphany: upgrade 43.1 -> 44.5

With this version, epiphany has transitioned to gtk4,
and requires webkit built with gtk4 support (there is no choice,
it's a hard break). Adjust the webkit recipe accordingly.

There's also a new requirement for gcr 4.x and libadwaita.

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>
2 years agolibadwaita: add recipe from meta-gnome
Alexander Kanavin [Thu, 27 Jul 2023 14:36:22 +0000 (16:36 +0200)] 
libadwaita: add recipe from meta-gnome

This is a requirement of latest epiphany 44.x.

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>
2 years agosudo: update 1.9.13p3 -> 1.9.14p2
Alexander Kanavin [Thu, 27 Jul 2023 14:36:21 +0000 (16:36 +0200)] 
sudo: update 1.9.13p3 -> 1.9.14p2

License-update: file removed upstream

Drop 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>
2 years agostrace: upgrade 6.3 -> 6.4
Alexander Kanavin [Thu, 27 Jul 2023 14:36:20 +0000 (16:36 +0200)] 
strace: upgrade 6.3 -> 6.4

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>
2 years agojquery: upgrade 3.6.3 -> 3.7.0
Alexander Kanavin [Thu, 27 Jul 2023 14:36:19 +0000 (16:36 +0200)] 
jquery: upgrade 3.6.3 -> 3.7.0

License-Update: needed lines shifted upwards

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>
2 years agosystemd: upgrade 253.3 -> 253.7
Alexander Kanavin [Thu, 27 Jul 2023 14:36:17 +0000 (16:36 +0200)] 
systemd: upgrade 253.3 -> 253.7

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>
2 years agokbd: upgrade 2.6.0 -> 2.6.1
Alexander Kanavin [Thu, 27 Jul 2023 14:36:16 +0000 (16:36 +0200)] 
kbd: upgrade 2.6.0 -> 2.6.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>
2 years agogettext-minimal-native: obtain the needed files directly from gettext source tarball
Alexander Kanavin [Thu, 27 Jul 2023 14:36:15 +0000 (16:36 +0200)] 
gettext-minimal-native: obtain the needed files directly from gettext source tarball

None of the files are generated, and so there is no need to carry them
in oe-core (which greatly complicates gettext version updates, for one thing).

Let's simply copy them over directly from the tarball; as the set of installed .m4
files can and does change over time, obtain them with a python scriptlet from Makefile.am
where they are listed.

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>
2 years agognu-efi: upgrade 3.0.15 -> 3.0.17
Alexander Kanavin [Thu, 27 Jul 2023 14:36:14 +0000 (16:36 +0200)] 
gnu-efi: upgrade 3.0.15 -> 3.0.17

Unset LDFLAGS as the standard ones do not work when linking EFI binaries
(the new version of gnu-efi adds various apps).

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>
2 years agoacpica: tarball and homepage relocated to intel.com
Alexander Kanavin [Thu, 27 Jul 2023 14:36:13 +0000 (16:36 +0200)] 
acpica: tarball and homepage relocated to intel.com

Sadly the tarball link is hidden behind html button trickery: while
the link seems stable, determining what it is is too much for
our upstream version checker, and so new versions will
have to be checked by hand every sometimes.

Switching to git won't help either: the tags are in MMDDYY format,
and so won't sort:
https://github.com/acpica/acpica/tags
https://github.com/acpica/acpica/issues/886

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>
2 years agolibrsvg: fix upstream version check
Alexander Kanavin [Thu, 27 Jul 2023 14:36:12 +0000 (16:36 +0200)] 
librsvg: fix upstream version check

- upstream no longer uses odd-even scheme
https://gitlab.gnome.org/GNOME/librsvg/-/releases/2.55.1

- x.y.9z versions are pre-releases and need to be excluded

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>
2 years agoinsane.bbclass: add a RECIPE_MAINTAINER check (oe-core recipes only)
Alexander Kanavin [Thu, 27 Jul 2023 14:36:11 +0000 (16:36 +0200)] 
insane.bbclass: add a RECIPE_MAINTAINER check (oe-core recipes only)

Absent maintainer entries are as well a frequent source of friction, as they are checked
only in selftest, and so aren't revealed until autobuilder runs.

The selftest is retained as it also checks for obsolete entries in maintainers.inc
(not possible to do in insane 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>
2 years agoinsane.bbclass: add a SUMMARY/HOMEPAGE check (oe-core recipes only)
Alexander Kanavin [Thu, 27 Jul 2023 14:36:10 +0000 (16:36 +0200)] 
insane.bbclass: add a SUMMARY/HOMEPAGE check (oe-core recipes only)

This was done in a selftest, but that is too late and creates
friction in integration as errors are not seen until autobuilder fails.

Bonus fix: SUMMARY check wasn't even working, as in the absence
of one set in the recipe there is a default value set from bitbake.conf.

I left DESCRIPTION check out for now, as many recipes don't actually
have it, and it's set from SUMMARY (plus a dot) if absent.

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>
2 years agodevtool: do not run recipe_qa task when extracting source
Alexander Kanavin [Thu, 27 Jul 2023 14:36:09 +0000 (16:36 +0200)] 
devtool: do not run recipe_qa task when extracting source

The immediate reason is that the task is sstate enabled, and due
to the way devtool sets up source extraction this causes bogus
values to appear in tmp/sstate-control/index-* files.

Also, recipe_qa may contain hard failures in the future, and it
would be counterproductive for the failures to prevent devtool
workflows (which may perhaps be about fixing the failure).

An alternative would have been to not insert recipe_qa task before
fetch task, but that would greatly delay the checks in larger
bitbake builds, and it's better to run them as early as possible.

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>
2 years agoinsane.bbclass: add do_recipe_qa task
Alexander Kanavin [Thu, 27 Jul 2023 14:36:08 +0000 (16:36 +0200)] 
insane.bbclass: add do_recipe_qa task

There is a need to run QA checks that can operate entirely from
recipe metadata and do not need any of the build artefacts or
source code. After some deliberation it was concluded that such
checks are best collected in their own task that runs as early as possible,
and so this commit adds the task.

Like package_qa, the task is sstate enabled, but doesn't (yet)
register the qa results into sstate.

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>
2 years agometa: add missing summaries for image recipes
Alexander Kanavin [Thu, 27 Jul 2023 14:36:07 +0000 (16:36 +0200)] 
meta: add missing summaries for image recipes

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>
2 years agooeqa/selftest/rust: Round test execution time to integer
Richard Purdie [Sun, 30 Jul 2023 06:52:23 +0000 (07:52 +0100)] 
oeqa/selftest/rust: Round test execution time to integer

To match the other tests, round the test duration to an intger value
so the test reports are consistent.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogcc: Upgrade to 13.2 release
Khem Raj [Sat, 29 Jul 2023 02:16:06 +0000 (19:16 -0700)] 
gcc: Upgrade to 13.2 release

This is a bugfix [1] release on GCC-13 release with 58 [2] bugs fixed

[1] https://gcc.gnu.org/pipermail/gcc-announce/2023/000179.html
[2] https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&list_id=390723&resolution=FIXED&target_milestone=13.2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/rust: Add failed test cases to exclude list for Rust Oe-selftest
Yash Shinde [Sat, 29 Jul 2023 07:00:21 +0000 (00:00 -0700)] 
oeqa/selftest/rust: Add failed test cases to exclude list for Rust Oe-selftest

* Add the failing test cases in exclude_list to exclude them from testing during the Rust Oe-selftest.

* Drop  meta/recipes-devtools/rust/files/rust-oe-selftest.patch file as the failing tests are
  moved from being a patch to exclude_list in meta/lib/oeqa/selftest/cases/rust.py.

* When updating to a newer version of Rust, it is manually needed to update the exclude_list. The tests that fail are observed to
  work on some versions and fail on others. These tests have been excluded in order to successfully complete testing of Rust Oe-selftest.

* The tests that are passed and skipped are as follows-

Target                  PASS                    SKIPPED

ARM                     15507                    428
ARM64                   15535                    400
MIPS64                  15479                    456
X86                     15528                    407
X86-64                  15643                    292

Also, time the test execution and pass the time taken for inclusion in the test report.

[RP: Note duration addiion in the commit log]
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorust: Fix BOOTSTRAP_CARGO failure during Rust Oe-selftest
Yash Shinde [Sat, 29 Jul 2023 07:00:20 +0000 (00:00 -0700)] 
rust: Fix BOOTSTRAP_CARGO failure during Rust Oe-selftest

BOOTSTRAP_CARGO command fails due to codegen flags like `-Cpanic` were
prevented from being reflected in the current target configuration which
leads to Rust build(rust version 1.70) failure in Oe-selftest.

Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/9dffb52738e0b2ccd15af36d4607a709b21e020c]

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoptest-cargo.bbclass: Support of cargo workspaces
Frederic Martinsons [Sat, 29 Jul 2023 05:09:21 +0000 (07:09 +0200)] 
ptest-cargo.bbclass: Support of cargo workspaces

For complex project, it is very common to have multiple
sub artifacts and so use workspaces, sometimes it has
even no root artifacts (but several bin or lib) and
virtual manifest is used for that.

Long story short, support this case in ptest-cargo class
to look for all test binaries in the current project
and no more those generated by the root Cargo.toml

Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/ssh: Further improve process exit handling
Richard Purdie [Sat, 29 Jul 2023 08:00:49 +0000 (09:00 +0100)] 
oeqa/ssh: Further improve process exit handling

It looks like there were further cases where orphaned processes may be left
behind since the .kill() calls may be unsuccessful if the process terminated
due to the terminate or through normal exit. In that situation .wait()
wouldn't have been called.

Further tweak the exit code paths to ensure .wait() is called to update the
returncode value before returning in all cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agox32-linux: Do not cache ac_cv_sys_file_offset_bits
Khem Raj [Fri, 28 Jul 2023 03:47:58 +0000 (20:47 -0700)] 
x32-linux: Do not cache ac_cv_sys_file_offset_bits

This variable is used on some packages e.g. gpgme/libimobiledevice [1]
but with new autoconf, its better to let autconf detect it than cache it
here

[1] https://github.com/gpg/gpgme/blob/master/configure.ac#L659-L670

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoRevert "site: merged common-glibc from OE"
Khem Raj [Fri, 28 Jul 2023 03:47:57 +0000 (20:47 -0700)] 
Revert "site: merged common-glibc from OE"

This reverts commit a2f942c22e31fe15fef1b44a0e5cc548a60d43a6.

AC_TYPE_UID_T autoconf macro caches its result in ac_cv_type_uid_t
for defining uid_t and gid_t to suitable types if system headers do not
define them

back in 2008 autoconf did not evaluate it correctly [1] however it works
fine now with autoconf 2.72c especially after [2]

[1] https://git.openembedded.org/openembedded/commit/?id=d572f3b010ea76c5b79ecf1ae7864f7a6348220a
[2] https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=51d98495d1aac00970d791f064e83ca762bf81c7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoautoconf: Backport upstreamed patches
Khem Raj [Fri, 28 Jul 2023 03:47:56 +0000 (20:47 -0700)] 
autoconf: Backport upstreamed patches

These patches improve the Y2038 support on top of 2.72c release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoautoconf: Upgrade to 2.72c
Richard Purdie [Fri, 28 Jul 2023 03:47:55 +0000 (20:47 -0700)] 
autoconf: Upgrade to 2.72c

2.72c is a prerelease version of autoconf 2.73. It contains largefile and y2038 64 bit
time_t improvements for 32 bit architectures.

Rather than work on the older codebase, this brings us to work with the recent
autoconf upstream with the 64 bit changes. It is unclear when upstream will release
2.73 but it is easier for us to be aligned now we've done the bulk of the work needed
to update.

Upstream added several patches which fixed several common failures OE builds ran
into (backported in the next commit). In general testing has otherwise been good for us.

There is an unfortunate gnulib largefile.m4 bug. This change patches various software
to workaround it, next time they update new versions of the gnulib code will be pulled
in which address the issue with the official fix.

There are also a couple of ordering related fixes for apr and libarchive.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoltp: Use bfd linker for KVM_LD as well when ld-is-lld
Khem Raj [Thu, 27 Jul 2023 20:19:23 +0000 (13:19 -0700)] 
ltp: Use bfd linker for KVM_LD as well when ld-is-lld

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoudev: eudev: Revert add group to sgx
Alex Kiernan [Fri, 28 Jul 2023 09:39:49 +0000 (10:39 +0100)] 
udev: eudev: Revert add group to sgx

The sgx group is part of base-passwd now.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobase-passwd: Add the sgx group
Alex Kiernan [Fri, 28 Jul 2023 09:39:48 +0000 (10:39 +0100)] 
base-passwd: Add the sgx group

To avoid errors from eudev/udev we need an sgx group, but if we add it
via groupadd that causes shadow login to be brought into an image, which
causes images which have CONFIG_MULTIUSER unset to fail with `setgid:
Function not implemented` as shadow's login doesn't implement the
heuristics which busybox has to handle this kernel configuration.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agotarget/ssh: Ensure exit code set for commands
Richard Purdie [Fri, 28 Jul 2023 10:16:08 +0000 (11:16 +0100)] 
target/ssh: Ensure exit code set for commands

As spotted by Joshua Watt, the returncode isn't set until .poll() or .wait()
is called so we need to call this after the .kill() call.

This fixes return code reporting so that timeouts for example now return an
exit code when they didn't before.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoltp: Add kernel loopback module dependency
Richard Purdie [Fri, 28 Jul 2023 09:59:22 +0000 (10:59 +0100)] 
ltp: Add kernel loopback module dependency

The qemuarm64 kernel builds loopback device support as a module and it isn't included
in the image leading to ltp test failures on that platform.

Add the missing kernel module RRECOMMENDS to avoid this and fix those errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/ltp: Show warning for non-zero exit codes
Richard Purdie [Thu, 27 Jul 2023 21:41:25 +0000 (22:41 +0100)] 
oeqa/ltp: Show warning for non-zero exit codes

When test command timeouts occur, there was no warning in the logs. Change
this to ignore "exit 1" but report all other exit codes so that timeouts
are clear.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/runtime/ltp: Increase ltp test output timeout
Richard Purdie [Thu, 27 Jul 2023 16:25:50 +0000 (17:25 +0100)] 
oeqa/runtime/ltp: Increase ltp test output timeout

On our slower arm server, the tests currently timeout leading to inconsistent test
results. Increase the timeout to avoid this and aim to make the test results
consistent.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocreaterepo-c: Update patch status
Richard Purdie [Thu, 27 Jul 2023 21:32:37 +0000 (22:32 +0100)] 
createrepo-c: Update patch status

The patch was submitted upstream, thanks Khem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/target/ssh: Ensure EAGAIN doesn't truncate output
Richard Purdie [Thu, 27 Jul 2023 14:17:32 +0000 (15:17 +0100)] 
oeqa/target/ssh: Ensure EAGAIN doesn't truncate output

We have a suspicion that the read() call may return EAGAIN on the non-blocking
fd and this may truncate test output leading to some of our intermittent failures.
Tweak the code to avoid this potential issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoffmpeg: Use bfd linker on i386 when lld is distro linker default
Khem Raj [Thu, 27 Jul 2023 06:58:27 +0000 (23:58 -0700)] 
ffmpeg: Use bfd linker on i386 when lld is distro linker default

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoltp: Use bfd linker when lld is distro linker default
Khem Raj [Thu, 27 Jul 2023 06:58:26 +0000 (23:58 -0700)] 
ltp: Use bfd linker when lld is distro linker default

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agonfs-utils: Fix host path contamination building locktest
Khem Raj [Wed, 26 Jul 2023 07:08:30 +0000 (00:08 -0700)] 
nfs-utils: Fix host path contamination building locktest

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agofile: fix the way path is written to environment-setup.d
Oleksandr Hnatiuk [Tue, 25 Jul 2023 16:51:48 +0000 (09:51 -0700)] 
file: fix the way path is written to environment-setup.d

$OECORE_NATIVE_SYSROOT is not escaped, thus it is expanded to an empty string.
This happens to work because we have ${datadir} which in this context is
relocated to the buildtools sysroot after installation of buildtools.

If the $ before OECORE_NATIVE_SYSROOT is escaped, it will be saved to file.sh
as intended, but MAGIC will point to the wrong location because both
OECORE_NATIVE_SYSROOT and datadir resolve to sysroot which doubles the path
like so:
/path/to/buildtools/sysroots/x86_64-xesdk-linux/path/to/buildtools/sysroots/x86_64-xesdk-linux/usr/share/misc/magic.mgc
which does not exist. So, removing reference to OECORE_NATIVE_SYSROOT.

Signed-off-by: Oleksandr Hnatiuk <ohnatiuk@cisco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomesa: enable swrast Vulkan driver if LLVM drivers are enabled
Dmitry Baryshkov [Mon, 24 Jul 2023 13:32:01 +0000 (16:32 +0300)] 
mesa: enable swrast Vulkan driver if LLVM drivers are enabled

The software Vulkan driver requires the LLVM to be built. Make this
driver enabled if the `gallium-llvm' config option is enabled.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomesa: simplify overriding GALLIUMDRIVERS_LLVM
Dmitry Baryshkov [Mon, 24 Jul 2023 13:32:00 +0000 (16:32 +0300)] 
mesa: simplify overriding GALLIUMDRIVERS_LLVM

Embedded devices might want to extend and/or override the
GALLIUMDRIVERS_LLVM variable (to change the set of gallium drivers
enabled for the particular device). Simplify this task by making the
GALLIUMDRIVERS_LLVM variable follow the rest of mesa.inc variables and
contain the leading comma.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolinux-firmware: package firmare for Dragonboard 410c
Dmitry Baryshkov [Mon, 24 Jul 2023 13:25:17 +0000 (16:25 +0300)] 
linux-firmware: package firmare for Dragonboard 410c

Latest linux-firmware archive inclues firmware for the Dragonboard 410c
device (Qualcomm apq8016 SBC). Follow the rest of linux-firmware-qcom-*
packages as a template and create packages for the new firmware files.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agokmscube: bump SRCREV to get offscreen rendering to work
Dmitry Baryshkov [Mon, 24 Jul 2023 12:31:17 +0000 (15:31 +0300)] 
kmscube: bump SRCREV to get offscreen rendering to work

Newer kmscube added support for offscreen rendering, using render nodes.
Bump up SRCREV to get this feature supported in oe-core.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 26 Jul 2023 19:51:04 +0000 (20:51 +0100)] 
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoselftest/cases/glibc.py: switch to using NFS over TCP
Anuj Mittal [Wed, 26 Jul 2023 16:22:09 +0000 (00:22 +0800)] 
selftest/cases/glibc.py: switch to using NFS over TCP

This provides a more reliable test execution when running tests that
write a large buffer/file and significantly reduces the localedata test
failures.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/utils/nfs: allow requesting non-udp ports
Anuj Mittal [Wed, 26 Jul 2023 16:22:08 +0000 (00:22 +0800)] 
oeqa/utils/nfs: allow requesting non-udp ports

Allows setting up NFS over TCP as well.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoselftest/cases/glibc.py: increase the memory for testing
Anuj Mittal [Wed, 26 Jul 2023 16:22:07 +0000 (00:22 +0800)] 
selftest/cases/glibc.py: increase the memory for testing

Some of the tests trigger OOM and fail. Increase the amount of memory
available so we dont run into these issues.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoglibc/check-test-wrapper: don't emit warnings from ssh
Anuj Mittal [Wed, 26 Jul 2023 16:22:06 +0000 (00:22 +0800)] 
glibc/check-test-wrapper: don't emit warnings from ssh

Dont fill up the test log with ssh warning about having added the host
to list of known hosts.

Also helps fix a test case failure where stderr log was being compared
to a known value.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocreaterepo-c: Fix 32 bit architecture segfaults with 64 bit time
Richard Purdie [Wed, 26 Jul 2023 19:47:42 +0000 (20:47 +0100)] 
createrepo-c: Fix 32 bit architecture segfaults with 64 bit time

After including time64.inc, createrepo-c was segfaulting on 32 bit architectures
when creating repo indexes (even for an empty repo).

Add a patch from Khem to fix this and some other compiler warnings related to 64
bit time on 32 bit.

[YOCTO #15170]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocve-extra-exclusions: fix syntax error
Peter Marko [Sun, 23 Jul 2023 17:15:01 +0000 (19:15 +0200)] 
cve-extra-exclusions: fix syntax error

CVE_STATUS conversion for CVE-2020-18974 dad a syntax error
by not adding continuation backslash.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython_setuptools3_rust: inherit ...build_meta
Tim Orling [Sun, 23 Jul 2023 16:52:16 +0000 (09:52 -0700)] 
python_setuptools3_rust: inherit ...build_meta

Rather than inheriting the aging `setuptools3` bbclass, inherit
`python_setuptools_build_meta` which is one of the PEP 517 build
backends (for proper wheels using pyproject.toml).

Since python_setuptools_build_meta does not have a do_configure,
call the parent python_pep517_do_configure().

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-pyyaml: upgrade 6.0 -> 6.0.1
Tim Orling [Sun, 23 Jul 2023 15:45:24 +0000 (08:45 -0700)] 
python3-pyyaml: upgrade 6.0 -> 6.0.1

No changelog provided; new commits are:

c42fa3b (tag: 6.0.1, origin/release/6.0) 6.0.1 release
ae08bdc block Cython 3.0+ as a build dep (#702)
f873cfe Add python 3.11 support (#663)

https://github.com/yaml/pyyaml/compare/6.0...6.0.1

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-hypothesis: upgrade 6.81.2 -> 6.82.0
Tim Orling [Sun, 23 Jul 2023 15:44:32 +0000 (08:44 -0700)] 
python3-hypothesis: upgrade 6.81.2 -> 6.82.0

https://hypothesis.readthedocs.io/en/latest/changes.html#v6-82-0

6.82.0 - 2023-07-20
* from_regex() now supports the atomic grouping ((?>...)) and possessive
  quantifier (*+, ++, ?+, {m,n}+) syntax added in Python 3.11.

  Thanks to Cheuk Ting Ho for implementing this!

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-urllib3: upgrade 2.0.3 -> 2.0.4
Tim Orling [Sun, 23 Jul 2023 15:44:15 +0000 (08:44 -0700)] 
python3-urllib3: upgrade 2.0.3 -> 2.0.4

https://github.com/urllib3/urllib3/blob/main/CHANGES.rst#204-2023-07-19

2.0.4 (2023-07-19)
* Added support for union operators to HTTPHeaderDict (#2254)
* Added BaseHTTPResponse to urllib3.__all__ (#3078)
* Fixed urllib3.connection.HTTPConnection to raise the http.client.connect
  audit event to have the same behavior as the standard library HTTP client
  (#2757)
* Relied on the standard library for checking hostnames in supported PyPy
  releases (#3087)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agokernel: make LOCALVERSION consistent between recipes
Bruce Ashfield [Sat, 22 Jul 2023 02:31:09 +0000 (22:31 -0400)] 
kernel: make LOCALVERSION consistent between recipes

The initial fix for localversion setting in 6.3+ broke older
recipes and also broke recipes setting localversion in a kernel
recipe, as make-mod-scripts (and other locations) can trigger
a regeneration of files and don't have access to the variable.

Moving the setting of this variable to the global namespace
doesn't make sense, so we follow the example of the kernel-abiversion
and save a kernel-localversion to the build artifacts.

Recipes that may regenerate scripts/dynamic files, must
depend on the do_shared_workedir of the kernel and use the helper
function to read the file storing the localversion.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomdadm: add util-linux-blockdev ptest dependency
Ovidiu Panait [Fri, 21 Jul 2023 10:58:27 +0000 (13:58 +0300)] 
mdadm: add util-linux-blockdev ptest dependency

07revert-inplace test logs contain the following:
func.sh: line 335: /sbin/blockdev: No such file or directory

Add the missing util-linux-blockdev dependency.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoscripts/resulttool: add mention about new detected tests
Alexis Lothoré [Fri, 21 Jul 2023 11:02:06 +0000 (13:02 +0200)] 
scripts/resulttool: add mention about new detected tests

Some regression reports show a lot of "PASSED->None" transitions. When such
big lot of identical transitions are observed, it could be that tests are
now failing, but it could also be that some tests has been renamed.

To detect such case, add a log in regression report to report the number of
new tests (i.e: tests that are present in target results but not in base
result). This new log also allows to know about newly added tests bases

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogit: upgrade 2.39.3 -> 2.41.0
Trevor Gamblin [Fri, 21 Jul 2023 16:07:41 +0000 (12:07 -0400)] 
git: upgrade 2.39.3 -> 2.41.0

Changelog for 2.41.0: https://github.com/git/git/blob/master/Documentation/RelNotes/2.41.0.txt
Changelog for 2.40.0: https://github.com/git/git/blob/master/Documentation/RelNotes/2.40.0.txt

git-add--interactive was removed in 2.40.0 in favor of git add -i, which
caused the AUH upgrade failure as that PERLTOOLS entry was no longer
relevant.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoiproute2: upgrade 6.3.0 -> 6.4.0
Trevor Gamblin [Fri, 21 Jul 2023 12:48:09 +0000 (08:48 -0400)] 
iproute2: upgrade 6.3.0 -> 6.4.0

Changelog: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/log/

Added a patch for including limits.h with musl builds, or else
we get failures such as:

| mdb.c: In function 'mdb_parse_vni':
| mdb.c:666:47: error: 'ULONG_MAX' undeclared (first use in this function)
|   666 |         if ((endptr && *endptr) || vni_num == ULONG_MAX)
|       |                                               ^~~~~~~~~
| mdb.c:666:47: note: 'ULONG_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocurl: Refine ptest perl RDEPENDS
Robert Joslyn [Fri, 21 Jul 2023 03:42:40 +0000 (20:42 -0700)] 
curl: Refine ptest perl RDEPENDS

RDEPEND on the specific perl modules required for the tests rather than
the perl-modules meta package.

Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocurl: Update from 8.1.2 to 8.2.0
Robert Joslyn [Fri, 21 Jul 2023 03:42:39 +0000 (20:42 -0700)] 
curl: Update from 8.1.2 to 8.2.0

This is a feature and bugfix update. Full release notes available at:
https://curl.se/changes.html#8_2_0

Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agofile: return wrapper to fix builds when file is in buildtools-tarball
Oleksandr Hnatiuk [Fri, 21 Jul 2023 08:18:56 +0000 (01:18 -0700)] 
file: return wrapper to fix builds when file is in buildtools-tarball

Wrapper that adds proper path to magic file was removed in
47db876d09d9a4394048579c21d0b394450ce681 in favor of
environment-setup.d/file.sh which now contains `MAGIC` environment variable.
This breaks builds that rely on external buildtools with `file` included in
buildtools-tarball (e.g. via TOOLCHAIN_HOST_TASK) because do_populate_sysroot
task invokes `file` via `subprocess.check_output` (in is_elf function) and
doesn't use variables from files in environment-setup.d. To address this use
case, we need to preserve the wrapper, but also have
environment-setup.d/file.sh for the purposes described in
47db876d09d9a4394048579c21d0b394450ce681.

Signed-off-by: Oleksandr Hnatiuk <ohnatiuk@cisco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agonfs-utils: upgrade 2.6.2 -> 2.6.3
Trevor Gamblin [Thu, 20 Jul 2023 20:07:05 +0000 (16:07 -0400)] 
nfs-utils: upgrade 2.6.2 -> 2.6.3

Changelog: http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=shortlog

Three patches were removed as they're now upstream:

2c0b5249 Replace statfs64 with statfs
167f2336 Fix function prototypes
896946e3 mountd: Check for return of stat function

do_compile still failed after removing these patches, reporting
undefined references to 'event_base_new', 'sqlite3_open_v2', etc. This
is fixed by backporting
0001-configure.ac-libevent-and-libsqlite3-checked-when-nf.patch from
upstream.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-dtschema: add python3-dtc to RDEPENDS
Trevor Gamblin [Mon, 17 Jul 2023 16:41:24 +0000 (12:41 -0400)] 
python3-dtschema: add python3-dtc to RDEPENDS

Also reorder the RDEPENDS to be alphabetical.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-dtc: add from meta-virtualization
Trevor Gamblin [Fri, 21 Jul 2023 14:43:04 +0000 (10:43 -0400)] 
python3-dtc: add from meta-virtualization

This provides pylibfdt, which is a runtime dependency for the dtschema
module that we already carry in oe-core.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-dtschema: upgrade 2023.4 -> 2023.6.1
Trevor Gamblin [Mon, 17 Jul 2023 16:41:22 +0000 (12:41 -0400)] 
python3-dtschema: upgrade 2023.4 -> 2023.6.1

No changelog provided. Diff between versions:

08ab41a (tag: v2023.06.1, origin/master) Fix undocumented compatible check
90ce246 (tag: v2023.06) Revert "Partially Revert "dtschema: add nanoamp unit""
a4fe59b schemas: Allow 'fail' value for 'status'
1ea798a schemas: Allow 'status' for node names
2945ab5 schemas: Allow node names starting with number
33cbf96 schemas: Allow '/' in compatible strings
470b522 fixups: Handle 'multipleOf' keyword in schemas
6fc2e30 meta-schemas: Ensure "enum" contains only strings or integers
bd525a4 meta-schemas: Disallow 'binding' or 'schema' in schema 'title'
822ce6a schemas: cpu: Add some missing common properties
e3dfc1e schemas: Use 'oneOf' rather than if/then for *-supply properties
26b0e53 dtschema: Use format strings for printing
bc164f9 Split DTValidator class into 2 classes
4ddf315 meta-schemas: Ensure DT property names contain either an object or boolean
3db9af1 meta-schemas: add $defs schema checking
85e967f schemas: iio: add label
31cc52a dtschema: Move fixups to separate file
9e4dd3b dtschema: Drop unnecessary quote checking
41e1192 dtb: Drop unused pprint import

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/ltp: rewrote LTP testcase and parser
Ross Burton [Thu, 20 Jul 2023 15:51:50 +0000 (16:51 +0100)] 
oeqa/ltp: rewrote LTP testcase and parser

The LTP test reporting appears to be a little fragile so I tried to make
it more reliable.

Primarily this is done by not passing -p to runltp, which results in
machine-readable logfiles instead of human-readable.  These are easier
to parse and have more context in, so we can also report correctly
skipped tests.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoltp: add RDEPENDS on findutils
Ross Burton [Thu, 20 Jul 2023 15:51:49 +0000 (16:51 +0100)] 
ltp: add RDEPENDS on findutils

With busybox find some of the test script fails, so depend on GNU find.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agokernel: Fix path comparison in kernel staging dir symlinking
Staffan Rydén [Thu, 20 Jul 2023 11:02:56 +0000 (13:02 +0200)] 
kernel: Fix path comparison in kernel staging dir symlinking

Due to an oversight in the do_symlink_kernsrc function, the path
comparison between "S" and "STAGING_KERNEL_DIR" is broken. The code
obtains both variables, but modifies the local copy of "S" before
comparing them, causing the comparison to always return false.

This can cause the build to fail when the EXTERNALSRC flag is enabled,
since the code will try to create a symlink even if one already exists.

This patch resolves the issue by comparing the variables before they are
modified.

Signed-off-by: Staffan Rydén <staffan.ryden@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoeudev: Add group sgx to eudev package
Alex Kiernan [Thu, 20 Jul 2023 10:20:14 +0000 (11:20 +0100)] 
eudev: Add group sgx to eudev package

Fix startup warning:

  udevd[171]: specified group 'sgx' unknown

This mirrors the change in bab455cd9b1b ("systemd: add group sgx to udev
package") for systemd-udev.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agorpm: Pick debugfs package db files/dirs explicitly
Alex Kiernan [Thu, 20 Jul 2023 10:20:13 +0000 (11:20 +0100)] 
rpm: Pick debugfs package db files/dirs explicitly

Rather than copying the entire /etc hierarchy, specify the pieces we
actually need.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agorootfs: Add debugfs package db file copy and cleanup
Alex Kiernan [Thu, 20 Jul 2023 10:20:12 +0000 (11:20 +0100)] 
rootfs: Add debugfs package db file copy and cleanup

When copying the package database files for the debugfs, add individual
file copy as well as tree copying. After the debug rootfs has been
created, cleanup the package files.

This then allows us to avoid a problem where (for rpm at least)
extraneous files in the debug rootfs would cause failures during
oe-selftest because some files existed in both regular and debugfs
images.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocve_check: convert CVE_CHECK_IGNORE to CVE_STATUS
Andrej Valek [Thu, 20 Jul 2023 07:19:50 +0000 (09:19 +0200)] 
cve_check: convert CVE_CHECK_IGNORE to CVE_STATUS

- Try to add convert and apply statuses for old CVEs
- Drop some obsolete ignores, while they are not relevant for current
  version

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Reviewed-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoxeyes: upgrade 1.2.0 -> 1.3.0
Trevor Gamblin [Wed, 19 Jul 2023 16:14:38 +0000 (12:14 -0400)] 
xeyes: upgrade 1.2.0 -> 1.3.0

Use the sha256sum for the .xz archive instead of .bz2 because of
upstream commit bdd57f3. Add SRC_URI_EXT to match.

Changelog:

637b948 (HEAD -> master, tag: xeyes-1.3.0, origin/master, origin/HEAD) xeyes 1.3.0
6f6c975 Implement multi-ocular support, add biblical example
f30ef4e Print which argument was unknown before giving usage message
e7a54da Add -help & -version options
e38962e gitlab CI: stop requiring Signed-off-by in commits
c060e6d man page: remove out-of-date reference to X(7)
ebbd57a Fix spelling/wording issues
bdd57f3 Build xz tarballs instead of bzip2
700a551 gitlab CI: add a basic build test

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agodiffoscope: upgrade 243 -> 244
Trevor Gamblin [Tue, 18 Jul 2023 15:43:31 +0000 (11:43 -0400)] 
diffoscope: upgrade 243 -> 244

Changelog: https://diffoscope.org/news/diffoscope-244-released/

* Address compatibility with python-libarchive-c version 5.
  (Closes: reproducible-builds/diffoscope#344)
* Testsuite changes:
  - Mark that test_dex::test_javap_14_differences requires procyon.
  - Fix "test skipped" textual reason generation in the case of a required
    version being outside of the required range.
  - Temporarily mark some Android-related as XFAIL due to Debian bugs
    #1040941 and #1040916.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3: ensure ptest regression capture
Trevor Gamblin [Tue, 18 Jul 2023 12:42:23 +0000 (08:42 -0400)] 
python3: ensure ptest regression capture

Add a conditional echo statement to make sure that there is a
FAIL emitted when python3 ptests regress in a way sed doesn't
catch.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibva: upgrade to 2.19.0
Wang Mingyu [Tue, 18 Jul 2023 11:16:37 +0000 (19:16 +0800)] 
libva: upgrade to 2.19.0

Changelog:
===========
* docs: fix references and descriptions snf focyhrn mstkup
* ci: add build docs test
* win: change default driver search path to bindir
* win: rely on compiler to define link names
* add: Add mono_chrome to VAEncSequenceParameterBufferAV1
* add: Enable support for license acquisition of multiple protected playbacks
* fix: year for version 2.18.0 in NEWS
* fix: use secure_getenv instead of getenv
* trace: Improve and add VA trace log for AV1 encode
* trace: Unify va log message, replace va_TracePrint with va_TraceMsg.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolinux-yocto/6.4: fix menuconfig
Bruce Ashfield [Tue, 18 Jul 2023 03:34:36 +0000 (23:34 -0400)] 
linux-yocto/6.4: fix menuconfig

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

    Author: Bruce Ashfield
    Email: bruce.ashfield@gmail.com
    Subject: mconf: fix output of cflags and libraries
    Date: Mon, 17 Jul 2023 17:17:55 -0400

    commit 3122c84409d578a5df8bcb1 [kconfig: refactor Makefile to reduce
    process forks] changes the way that flags are detected. They are
    no longer just echo'd and captured, they are written to a file and
    later read.

    We adjust our CROSS ncurses patch accordingly.

    We'll eventually be able to drop this patch, but not quite yet.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agokernel: set HOSTPKG_CONFIG to use pkg-config-native
Bruce Ashfield [Tue, 18 Jul 2023 03:34:35 +0000 (23:34 -0400)] 
kernel: set HOSTPKG_CONFIG to use pkg-config-native

The 5.19 kernel introduced a variable to specify the pkg-config
command to use for host tools.

Previously to this being introduced, we needed to overrride the
standard PKG_CONFIG* variables to avoid calls to pkg-config using
the target configuration.

While we can't completely drop the PKG_CONFIG workaround, we
should introduce the new variable, and prepare to only use it
once all supported kernels are 5.19+

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolinux-yocto/6.4: update to v6.4.3
Bruce Ashfield [Tue, 18 Jul 2023 03:34:34 +0000 (23:34 -0400)] 
linux-yocto/6.4: update to v6.4.3

Updating  to the latest korg -stable release that comprises
the following commits:

    160f4124ea8b Linux 6.4.3
    036666b4163d fork: lock VMAs of the parent process when forking
    890ba5c464c2 bootmem: remove the vmemmap pages from kmemleak in free_bootmem_page
    e83e62fb1f38 mm: call arch_swap_restore() from do_swap_page()
    18822d84fd09 mm: lock newly mapped VMA with corrected ordering
    406815be903b mm: lock newly mapped VMA which can be modified after it becomes visible
    10bef9542ad3 mm: lock a vma before stack expansion

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolinux-yocto/6.x: cfg: update ima.cfg to match current meta-integrity
Bruce Ashfield [Tue, 18 Jul 2023 03:34:33 +0000 (23:34 -0400)] 
linux-yocto/6.x: cfg: update ima.cfg to match current meta-integrity

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

    cba89f406c6 features: update ima.cfg to match current meta-integrity

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoperl: Fix CVE-2023-31486
Soumya [Tue, 18 Jul 2023 03:06:36 +0000 (03:06 +0000)] 
perl: Fix CVE-2023-31486

HTTP::Tiny before 0.083, a Perl core module since 5.13.9 and available
standalone on CPAN, has an insecure default TLS configuration where
users must opt in to verify certificates.

References:
https://nvd.nist.gov/vuln/detail/CVE-2023-31486

Upstream patches:
https://github.com/chansen/p5-http-tiny/commit/77f557ef84698efeb6eed04e4a9704eaf85b741d
https://github.com/chansen/p5-http-tiny/commit/a22785783b17cbaa28afaee4a024d81a1903701d

Signed-off-by: Soumya <soumya.sambu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agorepo: upgrade 2.34.1 -> 2.35
Wang Mingyu [Mon, 17 Jul 2023 09:10:25 +0000 (17:10 +0800)] 
repo: upgrade 2.34.1 -> 2.35

Changelog:
==========
Fixed a couple of bugs in ExitEvent logging:
- log exitcode 130 on KeyboardInterrupt
- log exitcode 1 on unhandled Exception
- log errorevent with specific reason for exit

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-numpy: upgrade 1.25.0 -> 1.25.1
Wang Mingyu [Mon, 17 Jul 2023 09:10:23 +0000 (17:10 +0800)] 
python3-numpy: upgrade 1.25.0 -> 1.25.1

A total of 14 pull requests were merged for this release.
========================================================
 #23968: MAINT: prepare 1.25.x for further development
 #24036: BLD: Port long double identification to C for meson
 #24037: BUG: Fix reduction return NULL to be goto fail
 #24038: BUG: Avoid undefined behavior in array.astype()
 #24039: BUG: Ensure __array_ufunc__ works without any kwargs passed
 #24117: MAINT: Pin urllib3 to avoid anaconda-client bug.
 #24118: TST: Pin pydantic<2 in Pyodide workflow
 #24119: MAINT: Bump pypa/cibuildwheel from 2.13.0 to 2.13.1
 #24120: MAINT: Bump actions/checkout from 3.5.2 to 3.5.3
 #24122: BUG: Multiply or Divides using SIMD without a full vector can...
 #24127: MAINT: testing for IS_MUSL closes #24074
 #24128: BUG: Only replace dtype temporarily if dimensions changed
 #24129: MAINT: Bump actions/setup-node from 3.6.0 to 3.7.0
 #24134: BUG: Fix private procedures in f2py modules

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