]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
2 years agooeqa rtc.py: skip if read-only-rootfs
Mikko Rapeli [Mon, 13 Mar 2023 17:51:28 +0000 (19:51 +0200)] 
oeqa rtc.py: skip if read-only-rootfs

hwclock command fails on read-only-rootfs:

AssertionError: 1 != 0 : Failed to reset RTC time, output: hwclock: cannot open /etc/adjtime: Read-only file system

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agovim: set modified-by to the recipe MAINTAINER
Ross Burton [Mon, 13 Mar 2023 16:48:09 +0000 (16:48 +0000)] 
vim: set modified-by to the recipe MAINTAINER

Clause II.3 of the Vim license states that any distribution of Vim that
has been extended or modified must _at least_ indicate in the :version
output that this is the case.

Handily, Vim has a --with-modified-by argument to add a line in that
text, so use MAINTAINER.  This is the distribution maintainer contact,
by default it is OE-Core Developers
<openembedded-core@lists.openembedded.org>.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agonpm.bbclass: avoid DeprecationWarning with new python
Martin Jansa [Mon, 13 Mar 2023 20:50:37 +0000 (21:50 +0100)] 
npm.bbclass: avoid DeprecationWarning with new python

meta/classes-recipe/npm.bbclass:85: DeprecationWarning: invalid escape sequence '\.'
  '--transform', 's,^\./,package/,',

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agofile: add few more PACKAGECONFIGs to avoid autodetected deps from host
Martin Jansa [Mon, 13 Mar 2023 19:37:59 +0000 (20:37 +0100)] 
file: add few more PACKAGECONFIGs to avoid autodetected deps from host

* there are few more autodetected compression libs
  --disable-zlib          disable zlib compression support [default=auto]
  --disable-bzlib         disable bz2lib compression support [default=auto]
  --disable-xzlib         disable liblzma/xz compression support
  --disable-zstdlib       disable zstdlib compression support [default=auto]
  --disable-lzlib         disable liblz (lzip) compression support

  and lzlib was detected on my gentoo (even when it doesn't say that default
  is auto detection)

  I've noticed this, because I've reused sstate-cache from my gentoo build
  in docker container with ubuntu-23.04 and esdk.oeSDKExtSelfTest.test_install_libraries_headers
  test was now failing with:

  Exception: subprocess.CalledProcessError: Command '/OE/build/poky/build/build-st-2023-03-12-esdk-patch1/esdk.oeSDKExtSelfTest.test_install_libraries_headers/build-st/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/recipe-sysroot-native/usr/bin/createrepo_c --update -q /OE/build/poky/build/build-st-2023-03-12-esdk-patch1/esdk.oeSDKExtSelfTest.test_install_libraries_headers/build-st/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/oe-sdk-repo' returned non-zero exit status 127.

  Subprocess output:
  /OE/build/poky/build/build-st-2023-03-12-esdk-patch1/esdk.oeSDKExtSelfTest.test_install_libraries_headers/build-st/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/recipe-sysroot-native/usr/bin/createrepo_c: error while loading shared libraries: liblz.so.1: cannot open shared object file: No such file or directory

  and liblz.so.1 ended in createrepo_c.real because of libmagic.so from file-native-replacement.

* use PACKAGECONFIG for seccomp as well and keep it disabled as it was
  explicitly disabled before (${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)}
  can be added to default PACKAGECONFIG later if someone finds it useful)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosudo: update 1.9.12p2 -> 1.9.13p3
Xiangyu Chen [Mon, 13 Mar 2023 01:57:14 +0000 (09:57 +0800)] 
sudo: update 1.9.12p2 -> 1.9.13p3

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogo: use go as CVE product for all golang recipe veriants
Peter Marko [Sun, 12 Mar 2023 08:45:43 +0000 (09:45 +0100)] 
go: use go as CVE product for all golang recipe veriants

All golang vulnerabilities are reported under product 'go'.

By default there is no vulnerability reported for images with
golang components because none of used golang packages
have correct CVE product set:
* go-binary-native
* go-runtime
* go-cross-*

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorunqemu: add an option to enable guest-agent virtio device
Clément Péron [Fri, 10 Mar 2023 18:54:23 +0000 (19:54 +0100)] 
runqemu: add an option to enable guest-agent virtio device

Add support to the runqemu script for a new option, 'guestagent', that
enables the virtio serial port for host-to-guest communication.

Signed-off-by: Brenda Streiff <brenda.streiff@ni.com>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoqemu: split out qemu-guest-agent, add startup scripts
Clément Péron [Fri, 10 Mar 2023 18:54:22 +0000 (19:54 +0100)] 
qemu: split out qemu-guest-agent, add startup scripts

Split out the QEMU guest agent into a separate package. The agent is
intended to be installed within a QEMU VM guest where a user is likely
to not want to have the rest of the QEMU installation within it.

Additionally, an initscript, udev rules file, and systemd unit file are
added to the package so that the guest agent can start automatically;
the former two come from Debian's packaging for qemu-guest-agent.

Signed-off-by: Brenda Streiff <brenda.streiff@ni.com>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoimage_types: fix multiubi var init
Romuald Jeanne [Fri, 10 Mar 2023 10:36:21 +0000 (11:36 +0100)] 
image_types: fix multiubi var init

Make sure to expand all MKUBIFS_ARGS_<label> and UBINIZE_ARGS_<label> vars
in 'do_image_multiubi' task to use them to init the local 'mkubifs_args'
and 'ubinize_args' vars.

See [YOCTO #15065]

Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosystemd.bbclass: Add /usr/lib/systemd to searchpaths as well
Khem Raj [Fri, 10 Mar 2023 10:07:03 +0000 (02:07 -0800)] 
systemd.bbclass: Add /usr/lib/systemd to searchpaths as well

Some packages like lirc places its unit files into $systemd_user_unitdir
and also uses them in SYSTEMD_SERVICE list in recipe. This fails in
do_package

ERROR: Didn't find service unit 'lircmd.service', specified in SYSTEMD_SERVICE:lirc.

here lircmd.service is installed in /usr/lib/systemd/system/lircmd.service

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 agopypi.bbclass: Set SRC_URI downloadfilename with an optional prefix
Zoltan Boszormenyi [Fri, 10 Mar 2023 12:32:54 +0000 (13:32 +0100)] 
pypi.bbclass: Set SRC_URI downloadfilename with an optional prefix

This allows avoiding clashes between source archives of a main
project and a pypi project using the same name and version.

The new optional setting is PYPI_ARCHIVE_NAME_PREFIX which is empty
by default so previous downloads can be used. Example usage:

PYPI_ARCHIVE_NAME_PREFIX = "pypi-"

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodevtool/upgrade: do not delete the workspace/recipes directory
Alexander Kanavin [Thu, 9 Mar 2023 15:19:33 +0000 (16:19 +0100)] 
devtool/upgrade: do not delete the workspace/recipes directory

If it exists, there is no need to delete it, and if it does not,
devtool prints an ugly traceback.

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 agoimage_types: fix vname var init in multiubi_mkfs() function
Romuald JEANNE [Thu, 9 Mar 2023 07:54:52 +0000 (08:54 +0100)] 
image_types: fix vname var init in multiubi_mkfs() function

As vname var is needed in multiubi_mkfs() function, we need to keep it
defined and use it as parameter to the new write_ubi_config() function.

See [YOCTO #15027]

Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibgit2: update license information
Sudip Mukherjee [Thu, 2 Mar 2023 21:47:44 +0000 (21:47 +0000)] 
libgit2: update license information

The LICENSE did not have complete information.
Some examples of missing license:

Zlib: deps/zlib/
ISC: tests/clar/clar.c
LGPL-2.1-or-later: src/libgit2/xdiff/xdiffi.c
CC0-1.0: src/util/rand.c

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosystemd: Fix musl fix patch
Khem Raj [Sun, 12 Mar 2023 07:24:22 +0000 (23:24 -0800)] 
systemd: Fix musl fix patch

Current patch with fail when stdint.h is in include path before this
typedef which can also happen with re-includes. Therefore shunt that
by defining __DEFINED_wchar_t which helps musl builds of systemd-boot
recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoptest-packagelists: Simplify ptest list/code
Richard Purdie [Sat, 11 Mar 2023 21:01:51 +0000 (21:01 +0000)] 
ptest-packagelists: Simplify ptest list/code

All the usage sites remove the -ptest suffix. Simply the original list
instead and clean up the code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocore-image-ptest: Switch to BBCLASSEXTEND parallel execution
Richard Purdie [Thu, 9 Mar 2023 22:00:08 +0000 (22:00 +0000)] 
core-image-ptest: Switch to BBCLASSEXTEND parallel execution

Replace the two images where tests are run serially with an image
per ptest in the form core-image-ptest-XXX using class extensions.

The original two images are then replaced with dependencies on these
images. This allows parallel execution of the tests.

The downside to this approach is the parsing time of an image generating
this number of class extensions is slow but making it easier to execute
and collect test data should outweigh that.

A useful advantage is that the dependencies of each ptest package are
checked/tested indvidually.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobase-files: Drop localhost.localdomain from hosts file
Richard Purdie [Sat, 11 Mar 2023 07:50:45 +0000 (07:50 +0000)] 
base-files: Drop localhost.localdomain from hosts file

This was likely something we took inspiration from elsewhere with.
It was added in:

https://git.openembedded.org/openembedded/commit/packages/netbase/netbase/hosts?id=c8e5702127e507e82e6f68a4b8c546803accea9d

in 2005. Debian added this entry around 2004 and discussed and dropped
it in 2005:

https://lists.debian.org/debian-devel/2005/10/msg00559.html

resulting in:

https://salsa.debian.org/installer-team/netcfg/-/commit/3c15ee521b2b8f47b34ccc7f610523cd284f2221

We should drop this for some of the reasons in those threads,
it doesn't seem to be doing anything too helpful and isn't what most
applications expect.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/sstate: Split classes to allow more parallelism
Richard Purdie [Sun, 12 Mar 2023 11:35:24 +0000 (11:35 +0000)] 
oeqa/selftest/sstate: Split classes to allow more parallelism

By splitting the single class into multiple classes, it allows more parallelism
in the execution. These tests don't have interdependencies that benefit
from sstate reuse or anything like that so this makes sense to improve overall
test execution time if/where possible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/sstate: Move common code to base class
Richard Purdie [Sun, 12 Mar 2023 11:31:38 +0000 (11:31 +0000)] 
oeqa/selftest/sstate: Move common code to base class

Move the other common shares test functions to the base class to
improve the code structure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/sstate: Merge sstate test class with tests themselves
Richard Purdie [Sun, 12 Mar 2023 11:29:27 +0000 (11:29 +0000)] 
oeqa/selftest/sstate: Merge sstate test class with tests themselves

Having this base class as a separate file is just confusing. Merge with
the rest of the test code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoselftest/recipetool: Stop test corrupting tinfoil class
Richard Purdie [Mon, 13 Mar 2023 11:44:09 +0000 (11:44 +0000)] 
selftest/recipetool: Stop test corrupting tinfoil class

Running recipetool.RecipetoolTests.test_recipetool_handle_license_vars
followed by wic.Wic2.test_biosplusefi_plugin_qemu would show a failure of:

  File "/media/build/poky/meta/lib/oeqa/utils/commands.py", line 351, in runqemu
    qemu = oeqa.targetcontrol.QemuTarget(recipedata, targetlogger, image_fstype)
  File "/media/build/poky/meta/lib/oeqa/targetcontrol.py", line 116, in __init__
    use_kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH'))
  File "/media/build/poky/meta/lib/oe/types.py", line 182, in qemu_use_kvm
    if kvm and boolean(kvm):
  File "/media/build/poky/meta/lib/oe/types.py", line 128, in boolean
    raise ValueError("Invalid boolean value '%s'" % value)
ValueError: Invalid boolean value '/media/build/poky/meta/files/common-licenses'

which made no sense until you realise the recipetool test is corrupting
the tinfoil class. Work on a copy instead to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibpam: Remove flex dependency
Martin Larsson [Fri, 10 Mar 2023 13:47:44 +0000 (13:47 +0000)] 
libpam: Remove flex dependency

libpam does not have a direct build time dependency toward flex.

The libpam code does not have any references to the lib and does not use
flex for anything else at runtime.

Signed-off-by: Martin Larsson <martin.larsson@actia.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobusybox: Fix ptest dependencies
Richard Purdie [Fri, 10 Mar 2023 18:15:09 +0000 (18:15 +0000)] 
busybox: Fix ptest dependencies

Ironically, busybox ptests don't all work without coreutils being present. This
dependency fixes execution in minimal images but the failing start-stop-daemon
test case should probably be investigated in due course and the dependency
removed when possible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agognutls: Add missing python ptest dependency
Richard Purdie [Sat, 11 Mar 2023 20:54:47 +0000 (20:54 +0000)] 
gnutls: Add missing python ptest dependency

Add dependency on python3 to fix execution in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogstreamer1.0: Add missing gconv ptest dependency
Richard Purdie [Sat, 11 Mar 2023 20:53:48 +0000 (20:53 +0000)] 
gstreamer1.0: Add missing gconv ptest dependency

Add dependencies on missing gconv module to fix execution in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibxml-perl: Add missing perl module ptest dependencies
Richard Purdie [Sat, 11 Mar 2023 20:53:13 +0000 (20:53 +0000)] 
libxml-perl: Add missing perl module ptest dependencies

Add dependencies on missing perl modules to fix execution in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoopkg: Add missing python module ptest dependencies
Richard Purdie [Sat, 11 Mar 2023 20:52:19 +0000 (20:52 +0000)] 
opkg: Add missing python module ptest dependencies

Add dependencies on missing python modules to fix execution in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoglibc-tests: Add missing bash ptest dependency
Richard Purdie [Sat, 11 Mar 2023 20:51:21 +0000 (20:51 +0000)] 
glibc-tests: Add missing bash ptest dependency

The script has a bashism and needs bash to execute correctly. Mark it
as such and add the missing bash dependency so it executes in minimal
images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogettext: Add missing bash ptest dependency
Richard Purdie [Sat, 11 Mar 2023 20:50:28 +0000 (20:50 +0000)] 
gettext: Add missing bash ptest dependency

Add a dependency on bash to fix execution in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolttng-tools: Improve ptest debugging and fix dependencies
Richard Purdie [Fri, 10 Mar 2023 18:14:48 +0000 (18:14 +0000)] 
lttng-tools: Improve ptest debugging and fix dependencies

Improve the ptest runner script:

* log output is available should any test fail to aid debugging
* document how to limit the runner to a single test
* stop hiding errors to stderr
* allow easier single test execution by avoiding path issues with PWD

Also depend upon binutils since one of the tests uses addr2line.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobabeltrace: Fix ptest dependency
Richard Purdie [Fri, 10 Mar 2023 18:14:35 +0000 (18:14 +0000)] 
babeltrace: Fix ptest dependency

Add a missing dependency on make so ptests can run in a minimal image.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobabeltrace2: Fix ptest execution in minimal images and add debug info
Richard Purdie [Fri, 10 Mar 2023 18:14:17 +0000 (18:14 +0000)] 
babeltrace2: Fix ptest execution in minimal images and add debug info

Tweak the ptest dependencies so they work correctly in minimal images. There
appears to be some usage of find or xargs that doesn't work with busybox.

Also improve the test runner so the test-suite.log is dumped upon error
which makes debugging much easier.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibxml-sax-perl: Fix ptest dependencies
Richard Purdie [Fri, 10 Mar 2023 18:13:23 +0000 (18:13 +0000)] 
libxml-sax-perl: Fix ptest dependencies

Add a missing ptest perl module dependency to fix execution in minimal
ptest images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibconvert-asn1-perl: Fix ptest dependencies
Richard Purdie [Fri, 10 Mar 2023 18:13:02 +0000 (18:13 +0000)] 
libconvert-asn1-perl: Fix ptest dependencies

Add dependencies for missing perl modules to fix execution in
minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogawk: Fix ptest dependency
Richard Purdie [Fri, 10 Mar 2023 18:12:22 +0000 (18:12 +0000)] 
gawk: Fix ptest dependency

The gawk ptests need some locale information, add the missing dependency
so tests work in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agofindutils: Fix ptest dependency issue
Richard Purdie [Fri, 10 Mar 2023 18:12:08 +0000 (18:12 +0000)] 
findutils: Fix ptest dependency issue

The options used with 'od' don't work with our busybox config.
Add a dependency on the full utility from coreutils to fix execution
in minimal images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobc: Fix ptest test output naming
Richard Purdie [Fri, 10 Mar 2023 18:11:51 +0000 (18:11 +0000)] 
bc: Fix ptest test output naming

The quoting in the script was mangled leading to "0" tests being
found by our log parsing code. Fix the quoting to allow the correct
test counts to appear.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibmodule-build-perl: Fix ptest dependencies
Richard Purdie [Fri, 10 Mar 2023 18:11:36 +0000 (18:11 +0000)] 
libmodule-build-perl: Fix ptest dependencies

Some of the ptests fail in a minimal image. Add the missing perl
module dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agom4: Add missing ptest dependency
Richard Purdie [Fri, 10 Mar 2023 18:11:15 +0000 (18:11 +0000)] 
m4: Add missing ptest dependency

Some of the ptests fail in a minimal image. Add the missing gconv
dependency needed to allow those tests to pass.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoacl/attr: ptest fixes and improvements
Richard Purdie [Fri, 10 Mar 2023 12:40:54 +0000 (12:40 +0000)] 
acl/attr: ptest fixes and improvements

Add a missing perl module dependency for the ptest packages and also
improve the run-ptest script so that the error log is saved allowing
easier debugging if this fails in future.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoperl: Add missing procps-ps dependency for ptests
Richard Purdie [Thu, 9 Mar 2023 23:58:31 +0000 (23:58 +0000)] 
perl: Add missing procps-ps dependency for ptests

Some of the ptests fail in a minimal image as they depend on options
to ps which busybox doesn't support. Add the full utility.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agovalgrind: Add missing utf-32 gconv dependency for ptests
Richard Purdie [Thu, 9 Mar 2023 23:57:57 +0000 (23:57 +0000)] 
valgrind: Add missing utf-32 gconv dependency for ptests

Some of the ptests fail in a minimal image. Add the missing gconv
dependency needed to allow those tests to pass.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoopenssl: Add missing ptest dependency on openssl-bin
Richard Purdie [Thu, 9 Mar 2023 23:57:20 +0000 (23:57 +0000)] 
openssl: Add missing ptest dependency on openssl-bin

One of the openssl ptests needs the openssl binary so fails
on a minimal image without this. Add the missing dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agom4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency
Richard Purdie [Thu, 9 Mar 2023 22:00:48 +0000 (22:00 +0000)] 
m4/opkg/ethtool/attr/libgpg-error: Add missing bash ptest dependency

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoscripts/yocto_testresults_query.py: set proper branches when using resulttool
Alexis Lothoré [Thu, 9 Mar 2023 15:53:01 +0000 (16:53 +0100)] 
scripts/yocto_testresults_query.py: set proper branches when using resulttool

The script currently only works if base and target can be found on default
branches. It breaks if we try to generate a regression report between revisions
that live on different branches (as needed on integration and testing branches).
For example, the following command:

./scripts/yocto_testresults_query.py regression-report yocto-4.0.6 yocto-4.0.7

ends with the follwing error:

[...]
ERROR: Only 1 tester revisions found, unable to generate report
[...]

Read branches from tags names in test results repository, and pass those
branches to resulttool when generating the report

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoscripts/resulttool: do not count newly passing tests as regressions
Alexis Lothoré [Tue, 28 Feb 2023 18:10:52 +0000 (19:10 +0100)] 
scripts/resulttool: do not count newly passing tests as regressions

resulttool regression module simply compare a base test status to a target test
result status. This approach raises many false positives since all XXX -> PASS
transitions (XXX being any status different from PASS) are flagged as
regression.

- Do not list XXX -> PASS transitions in regression  report, instead count them
  and print a summary of "newly passing tests"
- If an inspected pair has only "newly passing tests", do not print detailed
  list and print it as "Improvement" instead of "Regression"

Updated output example looks like the following:
[...]
Improvement: oeselftest_fedora-37_qemux86-64_20230127010225
             oeselftest_ubuntu-22.04_qemux86-64_20230226120516
             (+1 test(s) passing)
[...]
Match:       oeselftest_almalinux-8.7_qemuarm64_20230127015830
             oeselftest_almalinux-8.7_qemuarm64_20230227015258
[...]
Regression:  oeselftest_almalinux-9.1_qemumips_20230127000217
             oeselftest_opensuseleap-15.4_qemumips_20230226130046
    ptestresult.glibc-user.debug/tst-read-chk-cancel: PASS -> None
    ptestresult.glibc-user.nptl/tst-mutexpi4: PASS -> FAIL
    ptestresult.glibc-user.nptl/tst-mutexpi5a: PASS -> FAIL
    Additionally, 44 previously failing test(s) is/are now passing

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/resulttool: add test for error propagation in test name filtering
Alexis Lothoré [Tue, 28 Feb 2023 18:10:51 +0000 (19:10 +0100)] 
oeqa/selftest/resulttool: add test for error propagation in test name filtering

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoscripts/resulttool: fix ptests results containing a non reproducible path
Alexis Lothoré [Tue, 28 Feb 2023 18:10:50 +0000 (19:10 +0100)] 
scripts/resulttool: fix ptests results containing a non reproducible path

Some ptests results may be wrongly sampled, resulting in some part of the error
being propagated in test name. For example:

"ptestresult.binutils-ld.in testcase /home/pokybuild/yocto-worker/qemumips/build/build-st-1666126/tmp/work/mips32r2-poky-linux/binutils-cross-testsuite/2.40-r0/git/ld/testsuite/ld-ctf/ctf.exp"
"ptestresult.gcc.Couldn't create remote directory /tmp/runtest.455781 on ssh"
"ptestresult.gcc-libstdc++-v3.Couldn't create remote directory /tmp/runtest.3814266 on target"

While the root errors must be fixed in corresponding ptests packages for those
tests, the test results history must still be usable even with this issue

Add new filters to detect if temporary test directories (build-st-*,
/tmp/runtime.*) are present in name. If so, truncate test name. As a side
effect, it will aggregate multiple failing errors into one, but the regression
will still be raised

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/resulttool: fix fake data used for testing
Alexis Lothoré [Tue, 28 Feb 2023 18:10:48 +0000 (19:10 +0100)] 
oeqa/selftest/resulttool: fix fake data used for testing

resulttool searches for "status" field, not "STATUS", in results.
This fix is more to avoid confusion than fixing anything, since the updated
tests are about regression.can_be_compared, which does not check for "status"

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/resulttool: fix ptest filtering tests
Alexis Lothoré [Tue, 28 Feb 2023 18:10:46 +0000 (19:10 +0100)] 
oeqa/selftest/resulttool: fix ptest filtering tests

There are multiple issues with the tests for the ptest fixup mechanism
introduced in c45d58f003e8d8b323169ca9d479dc49c43a9974:
- the feature does not impact regression.can_be_compared but directly the
  comparison step in regression.regression_common
- the "status" field was wrong ("STATUS"), which prevents tests comparison
- there is a typo babeltrace2 ptest result name

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoscripts/resulttool: call fixup_ptest_names in regression_common
Alexis Lothoré [Tue, 28 Feb 2023 18:10:45 +0000 (19:10 +0100)] 
scripts/resulttool: call fixup_ptest_names in regression_common

ptests names not only need to be fixed for regression based on git testresults
but also for testsresults provided "manually"

Move ptests naming fixup in regression_common to share the fixup between both
regression use cases

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodhcpcd: Fix install conflict when enable multilib.
Wang Mingyu [Fri, 10 Mar 2023 07:08:15 +0000 (15:08 +0800)] 
dhcpcd: Fix install conflict when enable multilib.

Error: Transaction test error:
   file /usr/share/man/man8/dhcpcd.8 conflicts between attempted installs of dhcpcd-doc-9.4.1-r0.cortexa57 and lib32-dhcpcd-doc-9.4.1-r0.armv7ahf_neon

The differences between the two files are as follows:
@@ -821,7 +821,7 @@
 If you always use the same options, put them here.
 .It Pa /usr/libexec/dhcpcd-run-hooks
 Bourne shell script that is run to configure or de-configure an interface.
-.It Pa /usr/lib64/dhcpcd/dev
+.It Pa /usr/lib/dhcpcd/dev
 Linux
 .Pa /dev
 management modules.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoperf: fix buildpaths QA warning
Bruce Ashfield [Fri, 10 Mar 2023 04:12:37 +0000 (23:12 -0500)] 
perf: fix buildpaths QA warning

In the 6.2+ kernel, arm64 perf has a buildpaths QA warning as
a syscall table is now being dynamically generated. That generated
table includes unistd.h by absolute path, which in turn triggers
the buildpaths QA warning.

This could easily be patched in linux-yocto, but that would
leave the QA issue in perf built from other kernel trees.

So we instead to the following:

 - Add the perf tools directory to the include path
 - Modify the Makefile to have a relative path to unistd.h and
   pass both the relative and absolute path to the generation
   script
 - Modify the generation script to take the relative location
   of unistd.h as a new parameter, and use that in the generated
   sycalls.c file

At build, the added include path of the perf source allows the
relative path file to be included, and no buildpaths warning is
generated.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agovalgrind: Disable drd/tests/bar_bad ptest
Randy MacLeod [Thu, 9 Mar 2023 21:23:54 +0000 (16:23 -0500)] 
valgrind: Disable drd/tests/bar_bad ptest

This is failing intermettently in the YP autobuilder
so disable it until we can fix the root cause.

[YOCTO #14311]

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopopulate_sdk_ext: Handle spaces within user $PATH
Kenfe-Mickael Laventure [Thu, 9 Mar 2023 19:49:22 +0000 (11:49 -0800)] 
populate_sdk_ext: Handle spaces within user $PATH

The script generated by the sdk_ext_postinst function was not quoting
the user existing PATH when updating it causing the export command to
fail.

Add necessary double quotes around $PATH.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agotoolchain-scripts: Handle spaces within user $PATH
Kenfe-Mickael Laventure [Thu, 9 Mar 2023 19:49:21 +0000 (11:49 -0800)] 
toolchain-scripts: Handle spaces within user $PATH

The environment-setup script generated by the recipe was not quoting the
user existing PATH when updating it causing the export command to fail.

Add necessary double quotes around $PATH.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobuildtools-tarball: Handle spaces within user $PATH
Kenfe-Mickael Laventure [Thu, 9 Mar 2023 19:49:20 +0000 (11:49 -0800)] 
buildtools-tarball: Handle spaces within user $PATH

The environment-setup script generated by the recipe was not quoting the
user existing PATH when updating it causing the export command to fail.

Add necessary double quotes around $PATH.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoapt: re-enable version check
Alexander Kanavin [Thu, 9 Mar 2023 15:19:58 +0000 (16:19 +0100)] 
apt: re-enable version check

2.6.0 is out and so we can check for latest version again.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopiglit: upgrade to latest revision
Alexander Kanavin [Thu, 9 Mar 2023 15:19:57 +0000 (16:19 +0100)] 
piglit: upgrade to latest revision

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agostress-ng: remove obsolete patch
Alexander Kanavin [Thu, 9 Mar 2023 15:19:56 +0000 (16:19 +0100)] 
stress-ng: remove obsolete patch

Upstream has disabled gold support altogether:
https://github.com/ColinIanKing/stress-ng/commit/e65f517917fc682784bfa1b3cb53de3f3263b094

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobind: upgrade 9.18.11 -> 9.18.12
Alexander Kanavin [Thu, 9 Mar 2023 15:19:55 +0000 (16:19 +0100)] 
bind: upgrade 9.18.11 -> 9.18.12

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoiproute2: upgrade 6.1.0 -> 6.2.0
Alexander Kanavin [Thu, 9 Mar 2023 15:19:54 +0000 (16:19 +0100)] 
iproute2: upgrade 6.1.0 -> 6.2.0

License-Update: copyright snippet has been dropped from ip.c

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopuzzles: upgrade to latest revision
Alexander Kanavin [Thu, 9 Mar 2023 15:19:53 +0000 (16:19 +0100)] 
puzzles: upgrade to latest revision

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibnotify: upgrade 0.8.1 -> 0.8.2
Alexander Kanavin [Thu, 9 Mar 2023 15:19:52 +0000 (16:19 +0100)] 
libnotify: upgrade 0.8.1 -> 0.8.2

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopango: upgrade 1.50.12 -> 1.50.13
Alexander Kanavin [Thu, 9 Mar 2023 15:19:51 +0000 (16:19 +0100)] 
pango: upgrade 1.50.12 -> 1.50.13

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agovte: upgrade 0.70.2 -> 0.70.3
Alexander Kanavin [Thu, 9 Mar 2023 15:19:50 +0000 (16:19 +0100)] 
vte: upgrade 0.70.2 -> 0.70.3

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomake: upgrade 4.4 -> 4.4.1
Alexander Kanavin [Thu, 9 Mar 2023 15:19:49 +0000 (16:19 +0100)] 
make: upgrade 4.4 -> 4.4.1

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoenchant2: upgrade 2.3.3 -> 2.3.4
Alexander Kanavin [Thu, 9 Mar 2023 15:19:48 +0000 (16:19 +0100)] 
enchant2: upgrade 2.3.3 -> 2.3.4

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agosqlite3: update 3.40.1 -> 3.41.0
Alexander Kanavin [Thu, 9 Mar 2023 15:19:47 +0000 (16:19 +0100)] 
sqlite3: update 3.40.1 -> 3.41.0

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agofont-alias: update 1.0.4 -> 1.0.5
Alexander Kanavin [Thu, 9 Mar 2023 15:19:44 +0000 (16:19 +0100)] 
font-alias: update 1.0.4 -> 1.0.5

Drop nocompiler.patch as upstream is now using a macro specifically for data-only items:
https://www.spinics.net/lists/xorg/msg60817.html

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoencodings: update 1.0.6 -> 1.0.7
Alexander Kanavin [Thu, 9 Mar 2023 15:19:43 +0000 (16:19 +0100)] 
encodings: update 1.0.6 -> 1.0.7

Drop nocompiler.patch as upstream is now using a macro specifically for data-only items:
https://www.spinics.net/lists/xorg/msg60817.html

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoutil-macros: do not probe into host triplet when checking manpage section names
Alexander Kanavin [Thu, 9 Mar 2023 15:19:42 +0000 (16:19 +0100)] 
util-macros: do not probe into host triplet when checking manpage section names

This does not work for allarch recipes in particular
(config.sub rejects allarch-poky-linux).

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoiptables: update 1.8.8 -> 1.8.9
Alexander Kanavin [Thu, 9 Mar 2023 15:19:41 +0000 (16:19 +0100)] 
iptables: update 1.8.8 -> 1.8.9

Replace one format string fixing patch with another format string fixing patch.
(one problem fixed upstream, another introduced)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoethtool: update 6.1 -> 6.2
Alexander Kanavin [Thu, 9 Mar 2023 15:19:40 +0000 (16:19 +0100)] 
ethtool: update 6.1 -> 6.2

Drop patch merged upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibdnf: update 0.69.0 -> 0.70.0
Alexander Kanavin [Thu, 9 Mar 2023 15:19:39 +0000 (16:19 +0100)] 
libdnf: update 0.69.0 -> 0.70.0

Drop the patch as issue addressed upstream.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agodpkg: update 1.21.20 -> 1.21.21
Alexander Kanavin [Thu, 9 Mar 2023 15:19:38 +0000 (16:19 +0100)] 
dpkg: update 1.21.20 -> 1.21.21

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agosystemd: update 252.5 -> 253.1
Alexander Kanavin [Thu, 9 Mar 2023 15:19:37 +0000 (16:19 +0100)] 
systemd: update 252.5 -> 253.1

Add a musl compatibility patch to systemd-boot.

Backport a patch to address systemctl fails on 32 bit targets.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoselftest/overlayfs: enable systemd via INIT_MANAGER
Alexander Kanavin [Thu, 9 Mar 2023 15:19:36 +0000 (16:19 +0100)] 
selftest/overlayfs: enable systemd via INIT_MANAGER

Latest systemd version needs the full set of settings enabled
by that (if also r/o rootfs is enabled), and refuses to boot
otherwise.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoprocps: update 3.3.17 -> 4.0.3
Alexander Kanavin [Thu, 9 Mar 2023 15:19:35 +0000 (16:19 +0100)] 
procps: update 3.3.17 -> 4.0.3

Drop patches as upstream refactored the code.

Add a compatibility patch to igt-gpu-tools.

Add a musl compatibility patch.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agosudo: update 1.9.12p2 -> 1.9.13p2
Alexander Kanavin [Thu, 9 Mar 2023 15:19:34 +0000 (16:19 +0100)] 
sudo: update 1.9.12p2 -> 1.9.13p2

License-update: copyright years, formatting.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomesa: import patch from upstream to fix tools build on musl
Dmitry Baryshkov [Thu, 9 Mar 2023 10:37:17 +0000 (13:37 +0300)] 
mesa: import patch from upstream to fix tools build on musl

Fix building the crashdec on the musl systems.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agorust: added missing runtime dependencies to run rust on target
Sundeep KOKKONDA [Wed, 8 Mar 2023 17:29:09 +0000 (22:59 +0530)] 
rust: added missing runtime dependencies to run rust on target

[YOCTO #14975]
rust files are not linking on target due to missing dependencies and observed below error.
error: linker `x86_64-poky-linux-gcc` not found

Added the required dependencies to run rust on target machine.

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopiglit: Fix build time dependency
Zoltan Boszormenyi [Thu, 9 Mar 2023 08:14:23 +0000 (09:14 +0100)] 
piglit: Fix build time dependency

Replace explicit opencl-icd-loader with virtual/opencl-icd.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocups: add/fix web interface packaging
Trevor Woerner [Wed, 8 Mar 2023 22:44:42 +0000 (17:44 -0500)] 
cups: add/fix web interface packaging

cups includes a web server. Users can surf to port 631 (default) of a
machine running cups to (potentially, based on configuration, default off)
view jobs, add printers, and perform other forms of administration.

The location of the various resources that are used by the built-in web server
(e.g. index.html) are installed under ${datadir}/doc/cups. By default these
artifacts would be included in the ${PN}-doc package. The comments in this
recipe, however, would suggest an attempt was made to have them added to
${PN}; albeit unsuccessfully.

These resources add roughly 1.8M to an image.

Since cups does include a configuration option to disable the web interface
(--enable-webif), add a PACKAGECONFIG (default off) to allow the user to
decide whether or not they would like the web interface configured and its
pieces added to the image. Enabling this PACKAGECONFIG both enables the
web interface to be configured and built into cups, and also adds (by way
of a recommendation) the web interface package to the image. Considering
that the previous intention was not working, defaulting this option to off
preserves the existing behaviour. Previously in order to have the web
interface data included in an image, a user would have needed to explicitly
add the ${PN}-doc package to their image.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocups: check PACKAGECONFIG for pam feature
Trevor Woerner [Wed, 8 Mar 2023 22:44:41 +0000 (17:44 -0500)] 
cups: check PACKAGECONFIG for pam feature

The cups' PACKAGECONFIG is populated based on DISTRO_FEATURES, but a user
is free to enable or disable PACKAGECONFIGs at will. In theory it is
possible that pam is enabled globally in DISTRO_FEATURES but disabled in
cups' PACKAGECONFIG. Checking the PACKAGECONFIG to determine whether or not
pam is enabled would be a safer check rather than relying on DISTRO_FEATURES.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocups: use BUILDROOT instead of DESTDIR
Trevor Woerner [Wed, 8 Mar 2023 22:44:40 +0000 (17:44 -0500)] 
cups: use BUILDROOT instead of DESTDIR

The cups documentation is clear that the correct way to install into an
alternate root directory is to use the BUILDROOT variable. From INSTALL.md:

Use the `BUILDROOT` variable to install to an alternate root directory:

    make BUILDROOT=/some/other/root/directory install

DESTDIR works, but we should use the mechanism the project specifically
created for this purpose.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomeson: remove obsolete RPATH stripping patch
Ross Burton [Wed, 8 Mar 2023 21:46:35 +0000 (21:46 +0000)] 
meson: remove obsolete RPATH stripping patch

As per the release notes for 0.55.0[1], this patch is no longer needed
as Meson now only removes the RPATHs that it adds itself, any RPATHs
added via LDFLAGS or pkgconfig files are left untouched.

[1] https://mesonbuild.com/Release-notes-for-0-55-0.html#rpath-removal-now-more-careful

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agosystemd: add ignore for CVE-2022-4415
Ross Burton [Wed, 8 Mar 2023 21:42:06 +0000 (21:42 +0000)] 
systemd: add ignore for CVE-2022-4415

The relevant fix was also backported to 252.4.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoselftest/runtime_test/virgl: Disable for all Rocky Linux
Michael Halstead [Thu, 9 Mar 2023 00:09:31 +0000 (16:09 -0800)] 
selftest/runtime_test/virgl: Disable for all Rocky Linux

RHEL compatible kernels do not support vgem so we disable virgl headless
testing.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agostaging/multilib: Fix manifest corruption
Richard Purdie [Wed, 8 Mar 2023 10:12:45 +0000 (10:12 +0000)] 
staging/multilib: Fix manifest corruption

The previous fix wasn't enough to address all the possible ways the
manifests might be ordered. Rework the previous fix so it is tied
to the multilib cross-canadian code which is causing the problem.

RECIPE_SYSROOT_MANIFEST_SUBDIR is not documented as I'd hope nobody
ever needs to use this outside the core multilib code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoglibc: Update sstate/equiv versions to clean cache
Richard Purdie [Thu, 9 Mar 2023 14:29:10 +0000 (14:29 +0000)] 
glibc: Update sstate/equiv versions to clean cache

There are cached reproducibility issues on the autobuilder due to the PRServ
sstate checksum issues, flush the bad data out the system by bumping the
versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobinutils: Enable --enable-new-dtags
Khem Raj [Thu, 23 Feb 2023 06:58:16 +0000 (22:58 -0800)] 
binutils: Enable --enable-new-dtags

Use DT_RUNPATH over DT_RPATH. If DT_RUNPATH is present, LD_LIBRARY_PATH is searched before
DT_RUNPATH, Search order is DT_RPATH then LD_LIBRARY_PATH then
DT_RUNPATH, this order ensures that injecting
malicious shared objects is way harder with DT_RUNPATH.

This is now default on major linux distributions already

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoglibc: Add missing binutils dependency
Richard Purdie [Wed, 8 Mar 2023 11:48:05 +0000 (11:48 +0000)] 
glibc: Add missing binutils dependency

glibc has it's dependencies handled more manually due to it's place
in the toolchain bootstrap. It depends upon the compiler and indirectly
through that to binutils. This did mean that if binutils changes and the
compiler does not, sstate and hash equivalence could mean that glibc
wouldn't rebuild.

Add a direct dependency on binutils that if it changes, it forces glibc
to rebuild, as it should.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agovala: Fix install conflict when enable multilib.
Wang Mingyu [Wed, 8 Mar 2023 01:40:17 +0000 (09:40 +0800)] 
vala: Fix install conflict when enable multilib.

Error: Transaction test error:
   file /usr/bin/vala-gen-introspect-0.56 conflicts between attempted installs of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64
   file /usr/bin/vapigen-wrapper conflicts between attempted installs
   of lib32-vala-0.56.3-r0.armv7ahf_neon and vala-0.56.3-r0.aarch64

The differences of vala-gen-introspect-0.56 are as follows:
@@ -2,7 +2,7 @@

 prefix=/usr
 exec_prefix=/usr
-libdir=/usr/lib64
+libdir=/usr/lib
 pkglibdir=${libdir}/vala-0.56

 if [ $# -ne 2 ]

The wrapper isn't used on target so we can simply delete it.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolua: Fix install conflict when enable multilib.
Wang Mingyu [Wed, 8 Mar 2023 01:40:16 +0000 (09:40 +0800)] 
lua: Fix install conflict when enable multilib.

Error: Transaction test error:
  file /usr/include/luaconf.h conflicts between attempted installs of lua-dev-5.4.4-r0.aarch64 and lib32-lua-dev-5.4.4-r0.armv7ahf_neon

The differences between the two files are as follows:
@@ -219,7 +219,7 @@

 #define LUA_ROOT       "/usr/"
 #define LUA_LDIR       LUA_ROOT "share/lua/" LUA_VDIR "/"
-#define LUA_CDIR       LUA_ROOT "lib64/lua/" LUA_VDIR "/"
+#define LUA_CDIR       LUA_ROOT "lib/lua/" LUA_VDIR "/"

 #if !defined(LUA_PATH_DEFAULT)
 #define LUA_PATH_DEFAULT  \

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogdb: Mark patch as backport
Richard Purdie [Tue, 7 Mar 2023 21:20:06 +0000 (21:20 +0000)] 
gdb: Mark patch as backport

I submitted the patch upstream and it was accepted/merged. Update the
status to match.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agooeqa/selftest/imagefeatures: add test for man-db
Ross Burton [Tue, 7 Mar 2023 20:09:29 +0000 (20:09 +0000)] 
oeqa/selftest/imagefeatures: add test for man-db

Add a test to verify that manpages are built with api-documentation
enabled, and apropos works on the target (so mandb has been ran).

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 agomanpages: use an intercept to run mandb
Ross Burton [Tue, 7 Mar 2023 15:56:06 +0000 (15:56 +0000)] 
manpages: use an intercept to run mandb

If you build an image with lots of manpages in, then each package will
run mandb inside qemu-user at rootfs time.  This is a slow operation
and should be done once when all of the packages have installed using an
intercept instead.

The call to mandb has been changed too. mandb doesn't actually allow
the configuration file to be read from stdin so that was being ignored,
instead write the file to a temporary file and use that.

This means we then don't need to tell it where to search explicitly, and
it writes the indexes to the correct paths so we don't need to move
files afterwards either.

Sadly we do still need to run mandb inside qemu-user, as the underlying
database is a gdbm file and they are byte-order dependent.

For my test case of core-image-base with api-documentation
DISTRO_FEATURES and doc-pkgs IMAGE_FEATURES enabled, the performance
gain is significant:

  core-image-base do_rootfs  -1303.1s   -73.6%   1771.6s -> 468.5s

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobase: fix typos
Ulrich Ölmann [Tue, 7 Mar 2023 12:10:40 +0000 (13:10 +0100)] 
base: fix typos

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>