]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
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>
2 years agopython3-git: upgrade 3.1.31 -> 3.1.32
Wang Mingyu [Mon, 17 Jul 2023 09:10:19 +0000 (17:10 +0800)] 
python3-git: upgrade 3.1.31 -> 3.1.32

Changelog:
===========
-Block insecure non-multi options in clone/clone_from
-Don't rely on __del__
-fix pypi long description
-Name top-level exceptions as private variables
-commit trailers should be a list instead of a dictionary
-Fix up the commit trailers functionality

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

Changelog:
===========
 Add a new add_to_subpackage method.
 Add type annotations.
 Internal admin: Switch to nox for automation
 Internal admin: Switch to ruff for linting
 Internal admin: Switch from setuptools to flit_core

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoopkg-utils: upgrade 0.5.0 -> 0.6.2
Wang Mingyu [Mon, 17 Jul 2023 09:10:16 +0000 (17:10 +0800)] 
opkg-utils: upgrade 0.5.0 -> 0.6.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoopkg: upgrade 0.6.1 -> 0.6.2
Wang Mingyu [Mon, 17 Jul 2023 09:10:15 +0000 (17:10 +0800)] 
opkg: upgrade 0.6.1 -> 0.6.2

0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch
0002-opkg-key-remove-no-options-flag-from-gpg-calls.patch
removed since they're included in 0.6.2.

Changelog:
===========
### Changed
- the project's developer documentation to be more correct and current.

### Fixed
- a bug in the 'opkg-keys' utility script which caused the script to ignore settings in the '/etc/opkg/gpg/gpg.conf' file.
- a compilation error in 'md5.c' when using clang16+ and '-std >= gnu11'.

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

License-Update:
  Upgrade setuptools to 68.0.0
  Upgrade typing_extensions to 4.7.1

Changelog:
==========
-Fix pip completion --zsh. (#11417)
-Prevent downloading files twice when PEP 658 metadata is present (#11847)
-Add permission check before configuration (#11920)
-Fix deprecation warnings in Python 3.12 for usage of shutil.rmtree (#11957)
-Ignore invalid or unreadable origin.json files in the cache of locally
 built wheels. (#11985)
-Fix installation of packages with PEP658 metadata using non-canonicalized
 names (#12038)
-Correctly parse dist-info-metadata values from JSON-format index data. (#12042)
-Fail with an error if the --python option is specified after the subcommand
 name. (#12067)
-Fix slowness when using importlib.metadata (the default way for pip to read
 metadata in Python 3.11+) and there is a large overlap between already
 installed and to-be-installed packages. (#12079)
-Pass the -r flag to mercurial to be explicit that a revision is passed and
 protect against hg options injection as part of VCS URLs. Users that do not
 have control on VCS URLs passed to pip are advised to upgrade. (#12119)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoglib-2.0: upgrade 2.76.3 -> 2.76.4
Wang Mingyu [Mon, 17 Jul 2023 09:10:12 +0000 (17:10 +0800)] 
glib-2.0: upgrade 2.76.3 -> 2.76.4

Changelog:
=============
* Fix build failure on Android with 'statx()' support (#3039)

* Bugs fixed:
  - #3003 glib-compile-schemas failed on directory name with no Latin symbols
  - #3039 Build failure due to statx fields with NDK r25.c
  - !3447 Backport !3446 "glib-compile-resources: Fix non-ASCII arg parsing on
    Windows" to glib-2-76
  - !3479 Backport !3473 "glib: reset errno to 0 when futex() returns EAGAIN" to
    glib-2-76
  - !3480 Backport !3468 "Avoid stack overflow in gspawn on macOS" to glib-2-76
  - !3492 Backport !3482 "glocalfileinfo: Fix incorrect use of struct
    statx.st_mtimensec on Android" to glib-2-76

* Translation updates:
  - English (United Kingdom)
  - Portuguese (Brazil)
  - Slovak

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agodebianutils: upgrade 5.7 -> 5.8
Wang Mingyu [Mon, 17 Jul 2023 09:10:11 +0000 (17:10 +0800)] 
debianutils: upgrade 5.7 -> 5.8

License-Update: Convert to machine-readable format

Changelog:
=============
  * Remove constraints unnecessary since buster (oldstable)
  * Salvage package (Closes: #1038553)
  * Apply quilt patches from NMUs

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agonghttp2: upgrade 1.54.0 -> 1.55.1
Wang Mingyu [Mon, 17 Jul 2023 09:10:10 +0000 (17:10 +0800)] 
nghttp2: upgrade 1.54.0 -> 1.55.1

Changelog:
============
    doc: Bump boringssl
    Fix memory leak
    Fix build error without libev
    Bump go to 1.20
    Bump go package dependencies
    mruby: Support cross build for autotools
    h2load, nghttpx: Add UDP_GRO support
    Bump ngtcp2
    nghttpx: Randomize initial QUIC packet number
    Bump llhttp to a0e744f850d8101a51284868ffdf745bcfe4fbcc
    Bump macos to 12

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibproxy: upgrade 0.5.2 -> 0.5.3
Wang Mingyu [Mon, 17 Jul 2023 09:10:08 +0000 (17:10 +0800)] 
libproxy: upgrade 0.5.2 -> 0.5.3

Changelog:
=========
-Fix crash querying URLs without a host
-Web: Update application page
-Add appplication info about apt and python requests
-Bump version to 0.5.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoharfbuzz: upgrade 7.3.0 -> 8.0.1
Wang Mingyu [Mon, 17 Jul 2023 09:10:07 +0000 (17:10 +0800)] 
harfbuzz: upgrade 7.3.0 -> 8.0.1

Changelog:
===========
- Build fix on 32-bit arm.
- More speed optimizations.
- New, experimental, WebAssembly (WASM) shaper
- Improvements to
  Experimental features introduced in earlier releases.
- New macro HB_ALWAYS_INLINE.
- New API.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoselftest/cases/glibc.py: fix the override syntax
Anuj Mittal [Fri, 21 Jul 2023 05:30:13 +0000 (13:30 +0800)] 
selftest/cases/glibc.py: fix the override syntax

Fix the override so we actually pass the correct value to glibc.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoglibc-testsuite: Fix network restrictions causing test failures
Richard Purdie [Thu, 20 Jul 2023 09:27:53 +0000 (10:27 +0100)] 
glibc-testsuite: Fix network restrictions causing test failures

The check target for the glibc testsuite uses networking to access
a QEMU in system mode. This was resulting in large numbers of test
failures for the x86 targets that use it.

Enable network access to resolve this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 19 Jul 2023 22:50:47 +0000 (23:50 +0100)] 
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/cve_check: rework test to new cve status handling
Andrej Valek [Fri, 23 Jun 2023 11:14:57 +0000 (13:14 +0200)] 
oeqa/selftest/cve_check: rework test to new cve status handling

- After introducing the CVE_STATUS and CVE_CHECK_STATUSMAP flag
variables, CVEs could contain a more information for assigned statuses.
- Add an example conversion in logrotate recipe.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocve-check: add option to add additional patched CVEs
Andrej Valek [Fri, 23 Jun 2023 11:14:56 +0000 (13:14 +0200)] 
cve-check: add option to add additional patched CVEs

- Replace CVE_CHECK_IGNORE with CVE_STATUS to be more flexible.
The CVE_STATUS should contain an information about status wich
is decoded in 3 items:
- generic status: "Ignored", "Patched" or "Unpatched"
- more detailed status enum
- description: free text describing reason for status

Examples of usage:
CVE_STATUS[CVE-1234-0001] = "not-applicable-platform: Issue only applies on Windows"
CVE_STATUS[CVE-1234-0002] = "fixed-version: Fixed externally"

CVE_CHECK_STATUSMAP[not-applicable-platform] = "Ignored"
CVE_CHECK_STATUSMAP[fixed-version] = "Patched"

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoautomake: fix buildtest patch
Julien Stephan [Wed, 12 Jul 2023 13:57:07 +0000 (15:57 +0200)] 
automake: fix buildtest patch

Add check_PROGRAMS as a dependency of buildtest-TESTS target.
This is required because according to the official automake
documentation [1]:
* TESTS: contains all the tests files
* check_PROGRAMS: contains the programs used by the tests
* check_PROGRAMS is not automatically added to TESTS

So, by using only TESTS as a dependency for buildtest-TESTS we may end
up having runtime errors because of missing program required by the
tests.

[1]: https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-hypothesis: upgrade 6.80.0 -> 6.81.2
Tim Orling [Mon, 17 Jul 2023 08:40:26 +0000 (01:40 -0700)] 
python3-hypothesis: upgrade 6.80.0 -> 6.81.2

https://hypothesis.readthedocs.io/en/latest/changes.html#v6-81-2
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-81-1

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-zipp: upgrade 3.15.0 -> 3.16.2
Tim Orling [Mon, 17 Jul 2023 08:18:11 +0000 (01:18 -0700)] 
python3-zipp: upgrade 3.15.0 -> 3.16.2

https://github.com/jaraco/zipp/blob/v3.16.2/NEWS.rst

v3.16.2
* Bugfixes:
  - In Path.match, Windows path separators are no longer honored. The fact
    that they were was incidental and never supported. (#92)
  - Fixed name/suffix/suffixes/stem operations when no filename is present
    and the Path is not at the root of the zipfile. (#96)
  - Reworked glob utilizing the namelist directly. (#101)
v3.16.1
* Bugfixes:
  - Replaced the fnmatch.translate with a fresh glob-to-regex translator
    for more correct matching behavior. (#98)
v3.16.0
* Features:
  - Require Python 3.8 or later.

License-Update: removed Copyright (see https://github.com/jaraco/skeleton/issues/78)

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-lxml: upgrade 4.9.2 -> 4.9.3
Khem Raj [Sun, 16 Jul 2023 19:55:24 +0000 (12:55 -0700)] 
python3-lxml: upgrade 4.9.2 -> 4.9.3

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 agou-boot: Upgrade to 2023.07.02
Fabio Estevam [Fri, 14 Jul 2023 18:05:14 +0000 (15:05 -0300)] 
u-boot: Upgrade to 2023.07.02

Upgrade to U-Boot 2023.07.02.

The U-Boot 2023.07.02 tag is not in the master branch, so switch the branch
from master to u-boot-2023.07.y.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoresulttool/resultutils: allow index generation despite corrupt json
Michael Halstead [Fri, 14 Jul 2023 17:46:13 +0000 (10:46 -0700)] 
resulttool/resultutils: allow index generation despite corrupt json

non-release indexes will continue to generate when test output is
corrupted.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3: ignore CVE-2023-36632
Ross Burton [Fri, 14 Jul 2023 14:53:19 +0000 (15:53 +0100)] 
python3: ignore CVE-2023-36632

This CVE shouldn't have been filed as the "exploit" is described in the
documentation as how the library behaves.

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>
2 years agolinux-yocto_6.1: ignore backported CVEs
Ross Burton [Fri, 14 Jul 2023 14:53:18 +0000 (15:53 +0100)] 
linux-yocto_6.1: ignore backported CVEs

These CVEs have all been fixed in 6.1 point releases.

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>
2 years agogo: update 1.20.5 -> 1.20.6
Jose Quaresma [Fri, 14 Jul 2023 13:34:00 +0000 (13:34 +0000)] 
go: update 1.20.5 -> 1.20.6

Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.5..go1.20.6 origin/release-branch.go1.20
2c358ffe97 (tag: go1.20.6, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.6
312920c00a [release-branch.go1.20] net/http: validate Host header before sending
4db13d762b [release-branch.go1.20] runtime: set raceignore to zero when starting a new goroutine
08a58dd8b6 [release-branch.go1.20] runtime: allow for 5 more threads in TestWindowsStackMemory*
65092835c5 [release-branch.go1.20] cmd/go: skip TestScript/gccgo_link_ldflags on aix/ppc64
bca817594c [release-branch.go1.20] crypto/x509: tolerate multiple matching chains in testVerify
b8e67d1ddd [release-branch.go1.20] cmd/go/internal/test: don't wait for previous test actions when interrupted
3db4f8146c [release-branch.go1.20] runtime: resolve checkdead panic by refining `startm` lock handling in caller context
6b45fb7b73 [release-branch.go1.20] runtime: fallback to TEB arbitrary pointer when TLS slots are full
be30960e58 [release-branch.go1.20] runtime: use 1-byte load for address checking in racecallatomic
b59efe6c34 [release-branch.go1.20] net/mail: permit more characters in mail headers
c32f1afb41 [release-branch.go1.20] all: make safe for new vet analyzer
c7b145655b [release-branch.go1.20] cmd/go: fix tests for new builder environment
03063101a2 [release-branch.go1.20] text/template: set variables correctly in range assignment
d51e322a3f [release-branch.go1.20] go/printer: error out of Fprint when it would write a '//line' directive with a multiline file path
49594244d3 [release-branch.go1.20] cmd/cover: error out if a requested source file contains a newline
4719048211 [release-branch.go1.20] cmd/cgo: error out if the source path used in line directives would contain a newline
6c606fc191 [release-branch.go1.20] cmd/go: fix TestScript/build_cwd_newline with CGO_ENABLED=0
63ad2b5811 [release-branch.go1.20] cmd/compile: do not report division by error during typecheck
95f377daad [release-branch.go1.20] cmd/go: retain extra roots to disambiguate imports in 'go mod tidy'
a7a48fad7e [release-branch.go1.20] crypto/ecdsa: properly truncate P-521 hashes
f5172dcd38 [release-branch.go1.20] go/build: check for invalid import paths again
8b3acefcbe [release-branch.go1.20] cmd/go: omit checksums for go.mod files needed for go version lines more often in pre-1.21 modules
1008486a9f [release-branch.go1.20] cmd/cgo: correct _cgo_flags output

[1] https://github.com/golang/go/compare/go1.20.5...go1.20.6

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>
2 years agoshadow-sysroot: add license information
Enrico Scholz [Fri, 14 Jul 2023 10:49:02 +0000 (12:49 +0200)] 
shadow-sysroot: add license information

Recipe references 'login.defs' in LIC_FILES_CHKSUM.  This causes some
problems:

- file does not contain a single word which is related with its license

- changing this file (here: increasing SYS_UID_MIN) invalidates
  LIC_FILES_CHKSUM

Add 'SPDX-License-Identifier' to the file and limit the checksum to
this part.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/rust: Various fixes to work correctly
Richard Purdie [Wed, 19 Jul 2023 10:23:20 +0000 (11:23 +0100)] 
oeqa/selftest/rust: Various fixes to work correctly

* Ensure the test/class naming doesn't allow the to be triggered
  without the toolchain decorator

* Add the toolchain-user decorator so it runs on non-IA targets

* Strip the leading "[XX] " prefix from the test names

* Ensure skipped test counts are passed through correctly (as SKIPPED, not SKIP)

* Avoid duplicate test results and show a warning if any are found (duplicates
  were from other sources in the end but the code remains sensible to have)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest: Add rust selftests
Yash Shinde [Tue, 11 Jul 2023 10:33:46 +0000 (14:33 +0400)] 
oeqa/selftest: Add rust selftests

The patch implements Rust testing framework similar to other selftest,
specifically the gcc selftest in OE. It uses the client and server
based method to test the binaries for cross-target on the image.
The test framework is a wrapper around the Rust build system as ./x.py
test. It tests many functionalities of Rust distribution like tools,
documentation, libraries, packages, tools, Cargo, Crater etc.
Please refer the following link for detailed description of Rust
testing:-
https://rustc-dev-guide.rust-lang.org/tests/intro.html#tool-tests

To support the rust tests in oe-core, the following functions were
added:-
setup_cargo_environment(): Build bootstrap and some early stage tools.
do_rust_setup_snapshot(): Install the snapshot version of rust binaries.
do_configure(): To generate config.toml
do_compile(): To build "remote-test-server" for qemu target image.

Approximate Number of Tests Run in the Rust Testsuite :- 18000
Approximate Number of Tests that FAIL in bitbake environment :- 100-150
Normally majority of the testcases are present in major folder "test/"
It contributes to more than 80% of the testcases present in Rust test
framework. These tests pass as expected on any Rust versions without
much fuss. The tests that fail are of less important and contribute to
less than 2% of the total testcases. These minor tests are observed to
work on some versions and fail on others. They have to be added, ignored
or excluded for different versions as per the behavior.
These tests have been ignored or excluded in the Rust selftest
environment to generate success of completing the testsuite.

These tests work in parallel mode even in the skipped test mode as
expected. Although the patch to disable tests is large, it is very simple
in that it only disables tests. When updating to a newer version of Rust,
the patch can usually be ported in a day.

Tested for X86, X86-64, ARM, ARM64 and MIPS64 on Ubuntu 22.04.
Signed-off-by: pgowda <pgowda.cve@gmail.com>
Signed-off-by: Vinay Kumar <vinay.m.engg@gmail.com>
Signed-off-by: Yash Shinde <yashinde145@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopython3-editables: add python3-io to RDEPENDS
Trevor Gamblin [Tue, 18 Jul 2023 18:13:30 +0000 (14:13 -0400)] 
python3-editables: add python3-io to RDEPENDS

editables needs the ipaddress module to function, so add python3-io to
the RDEPENDS list.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoicu: upgrade 72-1 -> 73-2
Trevor Gamblin [Tue, 18 Jul 2023 19:19:46 +0000 (15:19 -0400)] 
icu: upgrade 72-1 -> 73-2

Changelog: https://github.com/unicode-org/icu/releases/tag/release-73-2

ICU moved to a common LICENSE file in the project root. The only actual
change was an update to the copyright year.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>