]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
2 years agobinutils: Add patch to fix CVE-2022-4285
pgowda [Mon, 19 Dec 2022 15:31:33 +0000 (21:01 +0530)] 
binutils: Add patch to fix CVE-2022-4285

Backport a patch from upstream to address CVE-2022-4285
[https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5c831a3c7f3ca98d6aba1200353311e1a1f84c70]

Signed-off-by: pgowda <pgowda.cve@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogtk4: add tracker-miners runtime dependency
Markus Volk [Mon, 19 Dec 2022 13:16:54 +0000 (14:16 +0100)] 
gtk4: add tracker-miners runtime dependency

To have gtk4 libtracker support, the target would need to run tracker-miners.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorust: Enable baremetal targets
Alejandro Hernandez Samaniego [Thu, 15 Dec 2022 07:32:24 +0000 (00:32 -0700)] 
rust: Enable baremetal targets

Allow rust to build for baremetal targets by generating the proper target
triple, follow the format specified by rusts Triple [1], that is:

<arch>-<vendor>-<os>-<abi>

This is done automatically based on both TARGET_OS and TCLIBC.

For example, a riscv64 baremetal target triple would look like this:
riscv64gc-poky-none-elf

matching rusts own target triple for riscv64 according to platform-support [2]

[1] https://docs.rs/target-lexicon/latest/target_lexicon/struct.Triple.html
[2] https://doc.rust-lang.org/stable/rustc/platform-support.html

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorust: Enable building rust from stable, beta and nightly channels
Alejandro Hernandez Samaniego [Sat, 17 Dec 2022 16:20:57 +0000 (09:20 -0700)] 
rust: Enable building rust from stable, beta and nightly channels

Rust follows the train release model via the stable, beta and nightly channels,
by default we build rust from the stable channel, however there are certain
features which are only available in the beta or nightly channels.

Make these channels available by setting a RUST_CHANNEL variable which defaults
to stable making this change transparent to the user.

The snapshot version used by rust during its compilation wont necessarily match
the version being built, specially if were building from an unstable channel,
to avoid confusion rename this to SNAPSHOT_VERSION and use RUST_VERSION for the
version to be built, which is automatically defined to PV.

Append -beta or -nightly to rusts PV for signature awareness.

It is important to note that this does not build rust from the beta/nightly
published tarball (which today build rust v1.67.0 and v1.68.0 respectively),
instead this builds rust from the current selected version (1.66.0) and enables
the beta/nightly features for that version.

Setting the variable RUST_CHANNEL=nightly results in the following:

$ rustc -Vv
rustc 1.66.0-nightly

Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorunqemu: add QB_SETUP_CMD and QB_CLEANUP_CMD
Mikko Rapeli [Wed, 14 Dec 2022 08:54:25 +0000 (10:54 +0200)] 
runqemu: add QB_SETUP_CMD and QB_CLEANUP_CMD

These enable running custom shell setup and cleanup commands
before and after qemu. Enables machine configurations to for
example run qemu with swtpm to emulate TPM devices.

Example config with meta-tpm2 based swtpm in machine config:

 * image recipe depens on swtpm-native to get the native tools to PATH,
   same handling as qemu itself

do_testimage[depends] += "swtpm-native:do_populate_sysroot"

 * startup commands for swtpm daemon, note that swtpm
   socket file has 107 character limit and absolute paths to build environment
   will not work

QB_SETUP_CMD = " \
   test -d '${IMAGE_BASENAME}_swtpm' || ( mkdir -p '${IMAGE_BASENAME}_swtpm' && \
       swtpm_setup --tpmstate '${IMAGE_BASENAME}_swtpm' --tpm2 --pcr-banks sha256 ); \
   swtpm socket --tpmstate dir='${IMAGE_BASENAME}_swtpm' \
         --ctrl type=unixio,path='${IMAGE_BASENAME}_swtpm/swtpm-sock' \
         --log level=40 --tpm2 -t -d \
"

 * qemu startup command in machine config is configured enable swtpm device

QB_OPT_APPEND += "-chardev socket,id=chrtpm,path='${IMAGE_BASENAME}_swtpm/swtpm-sock' -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-device,tpmdev=tpm0"

 * in this case, swtpm daemon stops automatically with qemu machine, but
   QB_CLEANUP_CMD could be used to kill a specific process and wipe
   temporary files

Now runqemu and testimage.bbclass can be used with swtpm.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoqemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image
Jagadeesh Krishnanjanappa [Tue, 13 Dec 2022 14:58:36 +0000 (14:58 +0000)] 
qemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image

The QB_DEFAULT_KERNEL is set to pick bundled initramfs kernel image
if the Linux kernel image is generated with INITRAMFS_IMAGE_BUNDLE="1".

This makes runqemu to automatically pick bundled initramfs kernel image
instead of explicitly mentioning bundled initramfs kernel image in
runqemu.

[YOCTO #14748]

Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoe2fsprogs: Do not use 64bit functions for largefile support
Khem Raj [Thu, 15 Dec 2022 15:44:37 +0000 (07:44 -0800)] 
e2fsprogs: Do not use 64bit functions for largefile support

Using -D_FILE_OFFSET_BITS=64 already makes the normal function behave
like 64bit variants. Moreover it makes them portable across libc

Ensure that right lseek function is used with _FILE_OFFSET_BITS = 64

Refresh patches with devtool

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 agobtrfs-tools: Do not use 64bit functions for largefile support
Khem Raj [Thu, 15 Dec 2022 08:45:46 +0000 (00:45 -0800)] 
btrfs-tools: Do not use 64bit functions for largefile support

Using -D_FILE_OFFSET_BITS=64 already makes the normal function behave
like 64bit variants. Moreover it makes them portable across libc

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 agomdadm: Use _FILE_OFFSET_BITS to use largefile support
Khem Raj [Thu, 15 Dec 2022 08:45:45 +0000 (00:45 -0800)] 
mdadm: Use _FILE_OFFSET_BITS to use largefile support

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 agolibpciaccess: Do not use 64bit functions for largefile support
Khem Raj [Thu, 15 Dec 2022 08:45:44 +0000 (00:45 -0800)] 
libpciaccess: Do not use 64bit functions for largefile support

Using -D_FILE_OFFSET_BITS=64 already makes the normal function behave
like 64bit variants. Moreover it makes them portable across libc

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 agoacl: Enable largefile support by default
Khem Raj [Thu, 15 Dec 2022 08:45:42 +0000 (00:45 -0800)] 
acl: Enable largefile support by default

This ensures right flags are passed so enable it. Musl and decoupled
these APIs from _GNU_SOURCE and now are only available when
_LARGEFILE64_SOURCE macro is enabled

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 agoltp: Fix largefile support
Khem Raj [Thu, 15 Dec 2022 08:45:41 +0000 (00:45 -0800)] 
ltp: Fix largefile support

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 agoefivar: Replace off64_t with off_t
Khem Raj [Thu, 15 Dec 2022 08:45:40 +0000 (00:45 -0800)] 
efivar: Replace off64_t with off_t

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 agoacpid: Fix largefile enabled build
Khem Raj [Thu, 15 Dec 2022 08:45:39 +0000 (00:45 -0800)] 
acpid: Fix largefile enabled build

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 agounfs3: Define off64_t in terms of off_t on musl
Khem Raj [Thu, 15 Dec 2022 08:45:38 +0000 (00:45 -0800)] 
unfs3: Define off64_t in terms of off_t on musl

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 agopseudo: Remove 64bit time_t flags
Khem Raj [Thu, 15 Dec 2022 08:45:37 +0000 (00:45 -0800)] 
pseudo: Remove 64bit time_t flags

pseudo traps syscalls and has intimate knowledge of them
and does not really depend on glibc interfaces to kernel

flags are added via TARGET_CC_ARCH therefore move the remove
operation from TARGET_CPPFLAGS to TARGET_CC_ARCH

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 agoerofs-utils: Convert from off64_t to off_t
Khem Raj [Thu, 15 Dec 2022 08:45:36 +0000 (00:45 -0800)] 
erofs-utils: Convert from off64_t to off_t

Ensure largefile macros are used to determine size of off_t and not the
explict 64bit version of functions and types

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 agoat-spi2-core: disable API docs if x11 is disabled
Ross Burton [Tue, 13 Dec 2022 16:17:31 +0000 (16:17 +0000)] 
at-spi2-core: disable API docs if x11 is disabled

The gtk-doc documentation doesn't build if X11 is disabled.

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 agoat-spi2-core: clean up x11 enabling
Ross Burton [Tue, 13 Dec 2022 16:17:30 +0000 (16:17 +0000)] 
at-spi2-core: clean up x11 enabling

Use a single PACKAGECONFIG instead of a number of location conditionals.

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 agoovmf: update edk2-stable202208 -> edk2-stable202211
Alexander Kanavin [Tue, 13 Dec 2022 11:11:11 +0000 (12:11 +0100)] 
ovmf: update edk2-stable202208 -> edk2-stable202211

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 agoptest-packagelists.inc: correctly assign fast and slow tests
Alexander Kanavin [Tue, 13 Dec 2022 11:10:55 +0000 (12:10 +0100)] 
ptest-packagelists.inc: correctly assign fast and slow tests

The execution times were checked from
https://autobuilder.yocto.io/pub/non-release/20221127-2/testresults/qemux86-64-ptest/core-image-ptest-all/log.do_testimage.40537.20221127010849
and ptests were moved both ways according to the same criteria:
more than 30 seconds or less.

openssl is dropped from fast tests, as it is also listed in slow
tests (which is correct).

With the rearrangement fast ptests altogether take about 420 seconds
on qemux86_64 with kvm.

m4 ptest was missing a depedency.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agosystemd: Make importd depend on glib-2.0 again
Marek Vasut [Sun, 18 Dec 2022 00:00:38 +0000 (01:00 +0100)] 
systemd: Make importd depend on glib-2.0 again

It seems importd still requires glib-2.0, add the missing dependency.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agognupg: upgrade 2.3.7 -> 2.3.8
Alexander Kanavin [Tue, 13 Dec 2022 11:11:18 +0000 (12:11 +0100)] 
gnupg: upgrade 2.3.7 -> 2.3.8

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agosystemtap: upgrade 4.7 -> 4.8
Alexander Kanavin [Tue, 13 Dec 2022 11:11:17 +0000 (12:11 +0100)] 
systemtap: upgrade 4.7 -> 4.8

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agotzdata: update 2022d -> 2022g
Alexander Kanavin [Tue, 13 Dec 2022 11:11:16 +0000 (12:11 +0100)] 
tzdata: update 2022d -> 2022g

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoghostscript: update 9.56.1 -> 10.0.0
Alexander Kanavin [Tue, 13 Dec 2022 11:11:15 +0000 (12:11 +0100)] 
ghostscript: update 9.56.1 -> 10.0.0

Drop --without-jbig2dec as it is now required by pdf support
and jbig2dec library is in ghostscript's source tree.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoruby: update 3.1.2 -> 3.1.3
Alexander Kanavin [Tue, 13 Dec 2022 11:11:14 +0000 (12:11 +0100)] 
ruby: update 3.1.2 -> 3.1.3

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoruby: merge .inc into .bb
Alexander Kanavin [Tue, 13 Dec 2022 11:11:13 +0000 (12:11 +0100)] 
ruby: merge .inc into .bb

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-dbusmock: update 0.28.4 -> 0.28.6
Alexander Kanavin [Tue, 13 Dec 2022 11:11:12 +0000 (12:11 +0100)] 
python3-dbusmock: update 0.28.4 -> 0.28.6

Convert to python_setuptools_build_meta.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxcrypt: update PV to match SRCREV
Alexander Kanavin [Tue, 13 Dec 2022 11:11:10 +0000 (12:11 +0100)] 
libxcrypt: update PV to match SRCREV

When SRCREV was updated, only libxcrypt-compat was renamed to match,
but not libxcrypt proper.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobluez: update 5.65 -> 5.66
Alexander Kanavin [Tue, 13 Dec 2022 11:11:07 +0000 (12:11 +0100)] 
bluez: update 5.65 -> 5.66

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxrandr: update 1.5.2 -> 1.5.3
Alexander Kanavin [Tue, 13 Dec 2022 11:11:06 +0000 (12:11 +0100)] 
libxrandr: update 1.5.2 -> 1.5.3

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxpm: update 3.5.13 -> 3.5.14
Alexander Kanavin [Tue, 13 Dec 2022 11:11:05 +0000 (12:11 +0100)] 
libxpm: update 3.5.13 -> 3.5.14

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxdmcp: update 1.1.3 -> 1.1.4
Alexander Kanavin [Tue, 13 Dec 2022 11:11:04 +0000 (12:11 +0100)] 
libxdmcp: update 1.1.3 -> 1.1.4

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibnewt: update 0.52.21 -> 0.52.23
Alexander Kanavin [Tue, 13 Dec 2022 11:11:02 +0000 (12:11 +0100)] 
libnewt: update 0.52.21 -> 0.52.23

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agotcl: update 8.6.12 -> 8.6.13
Alexander Kanavin [Tue, 13 Dec 2022 11:11:01 +0000 (12:11 +0100)] 
tcl: update 8.6.12 -> 8.6.13

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-poetry-core: update 1.3.2 -> 1.4.0
Alexander Kanavin [Tue, 13 Dec 2022 11:11:00 +0000 (12:11 +0100)] 
python3-poetry-core: update 1.3.2 -> 1.4.0

Upstream has changed the tarball and the dir inside it to poetry_core
(with underscore).

License-Update: formatting, copyright years.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-numpy: fix upstream version check
Alexander Kanavin [Tue, 13 Dec 2022 11:10:59 +0000 (12:10 +0100)] 
python3-numpy: fix upstream version check

Default regex is also considering numpy release candidates.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agodevtool/upgrade: correctly handle recipes where S is a subdir of upstream tree
Alexander Kanavin [Tue, 13 Dec 2022 11:10:56 +0000 (12:10 +0100)] 
devtool/upgrade: correctly handle recipes where S is a subdir of upstream tree

'devtool modify' writes additional settings to workspace .bbappend so that this
can be handled correctly, but 'devtool upgrade' does not. This adds the missing
settings.

In particular, local files should not anymore mysteriously disappear from
SRC_URIs on upgrades.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolinux-libc-headers: add 6.x fetch location
Bruce Ashfield [Tue, 13 Dec 2022 04:05:54 +0000 (23:05 -0500)] 
linux-libc-headers: add 6.x fetch location

The next libc-headers bumps will be in the 6.x series, so we
udpate our fetching list to handle that major version number.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agocairo: update patch for CVE-2019-6461 with upstream solution
Quentin Schulz [Tue, 13 Dec 2022 15:53:52 +0000 (16:53 +0100)] 
cairo: update patch for CVE-2019-6461 with upstream solution

Upstream went with something slightly different so let's update the
patch so we don't have to carry a patch that isn't going to be merged.

This patch is part of snapshot 1.17.6.

Cc: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibpcre2: Upgrade to 10.42
Khem Raj [Wed, 14 Dec 2022 03:20:29 +0000 (19:20 -0800)] 
libpcre2: Upgrade to 10.42

10.41 regressed apps which were using pcre2posix.h without pcre2.h
mariadb is one such application in meta-oe which broke, this immediate
upgrade helps fixing these sort of apps. See [1] and [2]

[1] https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.42
[2] https://github.com/PCRE2Project/pcre2/commit/cd8dc40b901bdedf5bcc0b3acdd9eede16802f39

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Wang Mingyu <wangmy@fujitsu.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agomeson: no need to rebuild on install
Ross Burton [Tue, 13 Dec 2022 16:14:07 +0000 (16:14 +0000)] 
meson: no need to rebuild on install

On install, Meson will rebuild targets which don't define their
dependencies, as it can't know if they need to be rebuilt or not.

This includes gtk-doc, which can be slow to run.  As we control the
execution of meson we know that a rebuild isn't required, so we can pass
--no-rebuild and speed up the install task.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoefibootmgr: update compilation with musl
Marta Rybczynska [Wed, 14 Dec 2022 18:45:19 +0000 (19:45 +0100)] 
efibootmgr: update compilation with musl

Since the commit 005b6aba89eaf1b79fdd7565dd028fdd9bbfcc7d
(efivar: add musl libc compatibility) efibootmgr compiles with
musl too. Update the variable to take that into account.

Signed-off-by: Marta Rybczynska <marta.rybczynska@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorust: update 1.65.0 -> 1.66.0
Alex Kiernan [Fri, 16 Dec 2022 12:06:32 +0000 (12:06 +0000)] 
rust: update 1.65.0 -> 1.66.0

Drop backported patch ENOTSUP constant for riscv32/musl.

Release notes:
  https://blog.rust-lang.org/2022/12/15/Rust-1.66.0.html

License-Update: Upstream has added Unicode Terms of Use license
  (Unicode-TOU).
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agorust: Install target.json for target rustc
Alex Kiernan [Fri, 16 Dec 2022 12:06:31 +0000 (12:06 +0000)] 
rust: Install target.json for target rustc

As part of the merging builds, installation of target.json was lost
causing `rustc` to fail on startup with:

  error: Error loading target specification: Could not find specification for target "aarch64-poky-linux-gnu". Run `rustc --print target-list` for a list of built-in targets

We know the full target specification, so just install it directly
rather than using the glob approach from previously.

Fixes: b9b0cd99cdc7 ("rust: Enable nativesdk and target builds + replace rust-tools-cross-canadian")
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogtk+3: port to Meson
Ross Burton [Fri, 16 Dec 2022 15:58:28 +0000 (15:58 +0000)] 
gtk+3: port to Meson

GTK+ 3.24.36 will drop the autotools build, so get ahead of the curve
and switch to Meson.

The tarball is missing one meson.build file so add that explictly for
now.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocurl: Correct LICENSE from MIT-open-group to curl
Ranjitsinh Rathod [Fri, 16 Dec 2022 07:33:25 +0000 (13:03 +0530)] 
curl: Correct LICENSE from MIT-open-group to curl

LICENSE for curl is set to MIT-open-group which is wrong and proper
license is 'curl'

I check below link and the line "Curl and libcurl are licensed under
the license below, which is inspired by MIT/X, but not identical." says
that the license is identical to MIT but actual license is identical
from the file "meta/files/common-licenses/curl"
Link: https://curl.se/docs/copyright.html
Also, I do not find the MIT-open-group license text in the entire
source-code

Signed-off-by: Ranjitsinh Rathod <ranjitsinh.rathod@kpit.com>
Signed-off-by: Ranjitsinh Rathod <ranjitsinhrathod1991@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agopackage_rpm: Fix Linux 6.1.0 perf 1.0 version mistranslation
Marek Vasut [Sat, 17 Dec 2022 04:57:38 +0000 (05:57 +0100)] 
package_rpm: Fix Linux 6.1.0 perf 1.0 version mistranslation

With Linux 6.1.0 and perf 1.0-r9, a build which includes perf-dev fails due
to perf-dev depending on perf 6.6.1.0-r9 . This is because translate_vers()
operates on perf-dev and mangles its version. The following scenario occurs:

  ver=6.1.0-r9
  pv=1.0
  pkgv=6.1.0
  reppv=6.1.0

With Linux 6.1.0, a corner case is hit where pv is a substring of ver, which
yields this corrupted version 6.6.1.0-r9 . Example in python3:

  >>> "6.1.0-r9".replace("1.0", "6.1.0")
  '6.6.1.0-r9'
  >>> "6.0.13-r9".replace("1.0", "6.0.13")
  '6.0.13-r9'

The fix is to only replace pv with reppv in case pv is at the beginning
of ver , instead of replacing all occurences.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agotime64: Rename to a .inc file to match the others
Richard Purdie [Sat, 17 Dec 2022 11:12:02 +0000 (11:12 +0000)] 
time64: Rename to a .inc file to match the others

I meant to do this whilst merging but messed up the patches. This
file is a .inc file and should match the others.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoepiphany: use gcr3
Markus Volk [Fri, 9 Dec 2022 14:11:17 +0000 (15:11 +0100)] 
epiphany: use gcr3

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogcr: add recipe for gcr-4, needed to build with gtk4
Markus Volk [Fri, 9 Dec 2022 14:11:15 +0000 (15:11 +0100)] 
gcr: add recipe for gcr-4, needed to build with gtk4

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogcr: rename gcr -> gcr3
Markus Volk [Fri, 9 Dec 2022 14:11:14 +0000 (15:11 +0100)] 
gcr: rename gcr -> gcr3

gcr-3 recipe is still needed for gnome projects that stick to gtk+3, rename to gcr3.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogtk4: import recipe from meta-gnome
Markus Volk [Fri, 9 Dec 2022 14:11:13 +0000 (15:11 +0100)] 
gtk4: import recipe from meta-gnome

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agographene: import from meta-oe
Markus Volk [Fri, 9 Dec 2022 14:11:12 +0000 (15:11 +0100)] 
graphene: import from meta-oe

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agotime64.conf: Include to enable 64 bit time flags
Ola x Nilsson [Thu, 8 Dec 2022 07:11:36 +0000 (08:11 +0100)] 
time64.conf: Include to enable 64 bit time flags

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoinsane: Add QA check for 32 bit time and file offset functions
Ola x Nilsson [Thu, 8 Dec 2022 07:11:35 +0000 (08:11 +0100)] 
insane: Add QA check for 32 bit time and file offset functions

Check for known symbols that should have been redirected to 64bit
variants when -D_FILE_OFFSET_BITS=64 and -D_TIME_BITS=64 are set.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobitbake.conf: Add module function vardepsexclude entries
Richard Purdie [Fri, 16 Dec 2022 11:15:26 +0000 (11:15 +0000)] 
bitbake.conf: Add module function vardepsexclude entries

Now that bitbake can look into python module code variable and function
dependencies, there are a few extra basic variables we need to exclude.
This is done per function since it keeps the main exclusion list cleaner
and is also slightly faster.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agoRevert "kernel-fitimage: reduce dependency to the cpio"
Richard Purdie [Tue, 13 Dec 2022 23:49:19 +0000 (23:49 +0000)] 
Revert "kernel-fitimage: reduce dependency to the cpio"

This reverts commit ef0d0734866505c1c6e0528a0423e7248afb3ff8.

We can't do this since the initramfs needs to use DEPLOY_DIR_IMAGE which isnt
ready until do_image_complete.

2 years agokernel-fitimage: reduce dependency to the cpio
Patrick Williams [Mon, 12 Dec 2022 22:18:08 +0000 (16:18 -0600)] 
kernel-fitimage: reduce dependency to the cpio

In order to build a fitimage, we don't need the image to be "complete"
but we need the cpio portion of it built since the cpio is what ends
up inside the FIT.  By reducing the dependency to `do_image_cpio` we
are able to include an image's rootfs as the ramdisk for a FIT and
then bundle that FIT into a larger SPI flash layout.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogptfdisk: Enable largefile support functions
Khem Raj [Mon, 12 Dec 2022 21:03:03 +0000 (13:03 -0800)] 
gptfdisk: Enable largefile support functions

Ensures it builds/works fine when _LARGEFILE64_SUPPORT is disabled.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agorpcsvc-proto: Use autoconf knob to enable largefile support
Khem Raj [Mon, 12 Dec 2022 21:03:02 +0000 (13:03 -0800)] 
rpcsvc-proto: Use autoconf knob to enable largefile support

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogtk+3: upgrade 3.24.34 -> 3.24.35
Ross Burton [Mon, 12 Dec 2022 17:35:47 +0000 (17:35 +0000)] 
gtk+3: upgrade 3.24.34 -> 3.24.35

The gtktypefuncs.c removal is obsolete as that file isn't in the tarball
anymore, so remove it.

However the wayland-scanner files are still in the tarball despite
efforts to stop this, so generalise the removal to ensure it covers all
files which may be affected.  Further investigation will be needed to
see if this is still an issue.

Rebase 0003-Add-disable-opengl-configure-option.patch.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibepoxy: remove upstreamed patch
Ross Burton [Mon, 12 Dec 2022 17:35:46 +0000 (17:35 +0000)] 
libepoxy: remove upstreamed patch

This patch was upstreamed in 6b09a8bc, 1.5.5 onwards.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomeson: always use meson subcommands
Ross Burton [Mon, 12 Dec 2022 15:25:42 +0000 (15:25 +0000)] 
meson: always use meson subcommands

Invoking meson with just paths is a deprecated use of the binary and
causes warnings, so call 'meson setup' explicitly.

Whilst doing this cleanup, we can also call 'meson compile' and 'meson
install' instead of ninja.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agomeson: drop redundant is_debianlike() patch
Ross Burton [Mon, 12 Dec 2022 15:25:41 +0000 (15:25 +0000)] 
meson: drop redundant is_debianlike() patch

This patch disables is_debianlike() so that it always returns False in the
name of deterministic builds.  However, the caller default_libdir() then
looks at the host filesystem to decide if /usr/lib64 exists and will
return either lib or lib64, so it still isn't deterministic.

This is only used for the default libdir value and meson.bbclass
always passes an explicit --libdir, so this is moot.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoxrandr: upgrade 1.5.1 -> 1.5.2
Wang Mingyu [Mon, 12 Dec 2022 07:33:18 +0000 (15:33 +0800)] 
xrandr: upgrade 1.5.1 -> 1.5.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxshmfence: upgrade 1.3.1 -> 1.3.2
Wang Mingyu [Mon, 12 Dec 2022 07:33:17 +0000 (15:33 +0800)] 
libxshmfence: upgrade 1.3.1 -> 1.3.2

Changelog:
configure: Use AC_SYS_LARGEFILE to enable large file support

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxkbfile: upgrade 1.1.1 -> 1.1.2
Wang Mingyu [Mon, 12 Dec 2022 07:29:56 +0000 (15:29 +0800)] 
libxkbfile: upgrade 1.1.1 -> 1.1.2

Changelog:
configure: Use AC_SYS_LARGEFILE to enable large file support

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxau: upgrade 1.0.10 -> 1.0.11
Wang Mingyu [Mon, 12 Dec 2022 07:29:55 +0000 (15:29 +0800)] 
libxau: upgrade 1.0.10 -> 1.0.11

Changelog:
configure: Use AC_SYS_LARGEFILE to enable large file support

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibpng: upgrade 1.6.38 -> 1.6.39
Wang Mingyu [Mon, 12 Dec 2022 07:29:54 +0000 (15:29 +0800)] 
libpng: upgrade 1.6.38 -> 1.6.39

Changelog:
==========
*  Changed the error handler of oversized chunks (i.e. larger than
   PNG_USER_CHUNK_MALLOC_MAX) from png_chunk_error to png_benign_error.
*  Fixed a buffer overflow error in contrib/tools/pngfix.
*  Fixed a memory leak (CVE-2019-6129) in contrib/tools/pngcp.
*  Disabled the ARM Neon optimizations by default in the CMake file,
   following the default behavior of the configure script.
*  Allowed configure.ac to work with the trunk version of autoconf.
*  Removed the support for "install" targets from the legacy makefiles;
   removed the obsolete makefile.cegcc.
*  Cleaned up the code and updated the internal documentation.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibpcre2: upgrade 10.40 -> 10.41
Wang Mingyu [Mon, 12 Dec 2022 07:29:53 +0000 (15:29 +0800)] 
libpcre2: upgrade 10.40 -> 10.41

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibfontenc: upgrade 1.1.6 -> 1.1.7
Wang Mingyu [Mon, 12 Dec 2022 07:29:52 +0000 (15:29 +0800)] 
libfontenc: upgrade 1.1.6 -> 1.1.7

Changelog:
configure: Use AC_SYS_LARGEFILE to enable large file support

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agogo-crosssdk: avoid host contamination by GOCACHE
Robert Andersson [Sun, 11 Dec 2022 17:02:47 +0000 (18:02 +0100)] 
go-crosssdk: avoid host contamination by GOCACHE

By default GOCACHE is set to $HOME/.cache.

Same issue for all other go recipes had been fixed by commit 9a6d208b:
[ go: avoid host contamination by GOCACHE ]

but that commit missed go-crosssdk recipe.

Signed-off-by: Robert Andersson <robert.m.andersson@atlascopco.com>
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agosanity: Update minimum python version to 3.8
Richard Purdie [Sun, 11 Dec 2022 17:37:08 +0000 (17:37 +0000)] 
sanity: Update minimum python version to 3.8

Bitbake is moving to a minimum python version of 3.8, update OE-Core
to match to make things consistent.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolib/sstatesig: Drop OEBasic siggen
Richard Purdie [Fri, 9 Dec 2022 16:05:24 +0000 (16:05 +0000)] 
lib/sstatesig: Drop OEBasic siggen

We're now used to using hashes as part of the task hashes and the sstate code
relies on this. The older OEBasic hash approach therefore wouldn't work and
can be removed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodbus: Add missing CVE product name
Mathieu Dubois-Briand [Fri, 9 Dec 2022 15:25:47 +0000 (16:25 +0100)] 
dbus: Add missing CVE product name

Signed-off-by: Mathieu Dubois-Briand <mbriand@witekio.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoopenssh: remove RRECOMMENDS to rng-tools for sshd package
Xiangyu Chen [Fri, 9 Dec 2022 07:05:38 +0000 (15:05 +0800)] 
openssh: remove RRECOMMENDS to rng-tools for sshd package

It appears that rngd is not needed as of linux-5.6 and later[1]
and should not be installed by default since the purpose of rngd
is to provide additional trusted sources of entropy.

We did some testing on real hardware, the result seems to support that
we no longer need rngd by default on kernel v5.6 and later.

Testing result as below:

1. observing the crng init stage.
 the "random: crng init done" always available before fs being mounted.

2. generating random number without rngd.
 testing command: dd if=/dev/random of=/dev/null status=progress
   on Marvell CN96xx RDB board, speed almost 20.4 MB/s without block
   on NXP i.mx6q board, speed almost 31.9 MB/s without block
   on qemu x86-64, speed almost 2.6MB/s without block

3. using rngtest command without rngd
 testing command: rngtest -c 1000 </dev/random
   on Marvell CN96xx RDB board:
      rngtest: input channel speed: (min=4.340; avg=135.364; max=146.719)Mibits/s
      rngtest: FIPS tests speed: (min=8.197; avg=69.020; max=72.800)Mibits/s
      rngtest: Program run time: 418771 microseconds

   on NXP i.mx6q board:
      rngtest: input channel speed: (min=96.820; avg=326.769; max=340.598)Mibits/s
      rngtest: FIPS tests speed: (min=15.090; avg=37.543; max=40.324)Mibits/s
      rngtest: Program run time: 570229 microseconds

   on qemu x86-64:
      rngtest: input channel speed: (min=37.769; avg=101.136; max=136.239)Mibits/s
      rngtest: FIPS tests speed: (min=10.288; avg=30.682; max=40.155)Mibits/s
      rngtest: Program run time: 836800 microseconds

4. observing sshd service.
  using "systemctl disable rng-tools" disable service and reboot system.
  system boot up normal, sshd service also start in normal time without
  block.

Reference:
[1] https://github.com/torvalds/linux/commit/30c08efec8884fb106b8e57094baa51bb4c44e32

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-cryptography: remove python3-tomli RDEPENDS
Ross Burton [Thu, 8 Dec 2022 19:30:23 +0000 (19:30 +0000)] 
python3-cryptography: remove python3-tomli RDEPENDS

The test suite doesn't use tomli, so remove it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-hatchling: remove python3-tomli DEPENDS
Ross Burton [Thu, 8 Dec 2022 19:30:22 +0000 (19:30 +0000)] 
python3-hatchling: remove python3-tomli DEPENDS

Now that we have Python 3.11, hatchling will use the internal tomllib
instead of tomli.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobaremetal-image: Avoid overriding qemu variables from IMAGE_CLASSES
Alejandro Hernandez Samaniego [Thu, 8 Dec 2022 18:43:47 +0000 (11:43 -0700)] 
baremetal-image: Avoid overriding qemu variables from IMAGE_CLASSES

Since qemuboot is part of IMAGE_CLASSES via qemu.inc it is being
inherited before we set the QB_FOO variables.
Since our variables have conditional definitions and at that point
they've already been defined by qemuboot, we can no longer define
them in our class.

Move the IMAGE_CLASSES inherit to execute it after we set the
QB_FOO variables to fix booting via runqemu.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agopython3-packaging: upgrade to 22.0
Ross Burton [Thu, 8 Dec 2022 13:00:15 +0000 (13:00 +0000)] 
python3-packaging: upgrade to 22.0

This has been ported from setuptools to flit_core, and now contains a
hand-written parser instead of using pyparsing.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agobitbake.conf: remove SERIAL_CONSOLE variable
Michael Opdenacker [Thu, 8 Dec 2022 12:35:34 +0000 (13:35 +0100)] 
bitbake.conf: remove SERIAL_CONSOLE variable

This variable has been deprecated since version 2.6
Use SERIAL_CONSOLES instead.

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibxml2: add more testing
Ross Burton [Thu, 8 Dec 2022 12:10:39 +0000 (12:10 +0000)] 
libxml2: add more testing

Backport more test cases fixes from upstream, and add runsuite to the
ptests.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoyocto-check-layer: Allow OE-Core to be tested
Richard Purdie [Thu, 8 Dec 2022 11:54:32 +0000 (11:54 +0000)] 
yocto-check-layer: Allow OE-Core to be tested

For unknown reasons we've never seemingly run the check layer script
against OE-Core itself. This isn't entirely straightforward as the core
layer is a bit of a special case, we can't for example compare signatures
against ourselve and we can't remove core from bblayers.conf.

Core does have distro, machine and software components too, in the case
of distro, our fallback default settings. Whilst the qemu machines could
be split into a seperate layer directory, core wouldn't then parse at all
standalone due to the lack of any machine so it seems a bit pointless to
do that.

These changes tweak the script to handle core's special cases, specifically
to allow distro and machine directories and to account for the README placed
a directory level higher than other layers.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoglibc: Add ppoll fortify symbol for 64 bit time_t
Ola x Nilsson [Thu, 8 Dec 2022 07:11:34 +0000 (08:11 +0100)] 
glibc: Add ppoll fortify symbol for 64 bit time_t

Patch so ppoll is properly redirected to it's 64bit time variant even
when source fortification is active.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoopkg: upgrade to version 0.6.1
Alex Stewart [Wed, 7 Dec 2022 22:33:33 +0000 (16:33 -0600)] 
opkg: upgrade to version 0.6.1

Opkg 0.6.1 Changes:
- Opkg will no longer complain when trying to clean up the temporary
  directory, if the directory does not exist.
- Fixed a SEGFAULT when parsing package indexes with invalid `Size` or
  `Installed-Size` fields. These indexes will now produce a
  comprehensible error.
- Fixed an inconsistecy in .list generation where files would sometimes
  be entered with/without a trailing slash. The trailng slash should now
  always be removed.
- Fixed [a bug](https://bugzilla.yoctoproject.org/show_bug.cgi?id=10461)
  in package removal, where empty common directories would be left on
  disk, even after all owning packages were removed.

Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoscripts/checklayer: Update to match bitbake changes
Richard Purdie [Thu, 8 Dec 2022 11:46:07 +0000 (11:46 +0000)] 
scripts/checklayer: Update to match bitbake changes

Bitbake additions for the addpylib API mean we need to update the parsing
function call to be clear we're parsing in configuration context.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agodevtool/friends: Use LAYERSERIES_CORENAMES when generating LAYERSERIES_COMPAT entries
Richard Purdie [Thu, 1 Dec 2022 17:11:07 +0000 (17:11 +0000)] 
devtool/friends: Use LAYERSERIES_CORENAMES when generating LAYERSERIES_COMPAT entries

It seems some layers want to subvert the intent of LAYERSERIES_COMPAT
so bitbake is going to have to become stricter about the values there.
To work with this, use LAYERSERIES_CORENAMES to generate the entries in
LAYERSERIES_COMPAT instead of the current magic LAYERSERIES_COMPAT_core
value which may not continue to work.

The downside to this is when migating between releases, people would
need to update devtool workspace layer.conf files. I guess you could
argue this is a feature!

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agobase: Switch to use addpylib directive and BB_GLOBAL_PYMODULES
Richard Purdie [Sun, 27 Nov 2022 17:08:42 +0000 (17:08 +0000)] 
base: Switch to use addpylib directive and BB_GLOBAL_PYMODULES

Since bitbake now supports an official method to inject python modules,
switch to it.

Anyone using OE_EXTRA_IMPORTS will need to adjust their code accordingly,
probably switching to their own module namespace.

Also switch to using BB_GLOBAL_PYMODULES to list the global modules
to import.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agolibxml2: upgrade 2.9.14 -> 2.10.3
Ross Burton [Wed, 7 Dec 2022 16:57:55 +0000 (16:57 +0000)] 
libxml2: upgrade 2.9.14 -> 2.10.3

Change ptest away from using the upstream Makefiles to manually running
the tests: they're not actually integrated with automake anyway so this
didn't gain us anything apart from patches we can't send upstream. Drops
the following patches:
- 0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch
- 0001-Port-gentest.py-to-Python-3.patch
- fix-execution-of-ptests.patch
- remove-fuzz-from-ptests.patch
- runtest.patch

Add a simple patch to install the test binaries via the Makefile:
- install-tests.patch

The Python module is built differently and a number of patches no longer
apply and appear to be redundant, remove:
- python-sitepackages-dir.patch

libxml-m4-use-pkgconfig.patch has been sent upstream now, mark as
backport.

Remove obsolete --without-docbook option.

Remove obsolete xml2Conf.sh packaging.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocombo-layer: add sync-revs command
Ross Burton [Wed, 7 Dec 2022 16:36:50 +0000 (16:36 +0000)] 
combo-layer: add sync-revs command

When starting to use combo-layer, or if someone else is using it too,
the local last_revision may be incorrect.

This command will forcibly update the last_revision config values to the
latest SHA on the remote branch that is tracked.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocombo-layer: dont use bb.utils.rename
Ross Burton [Wed, 7 Dec 2022 16:36:49 +0000 (16:36 +0000)] 
combo-layer: dont use bb.utils.rename

Bitbake may not be configured, and bb isn't imported anyway.

Instead just use os.rename(), and take the filename from the file object
instead of duplicating logic.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agocombo-layer: remove unused import
Ross Burton [Wed, 7 Dec 2022 16:36:48 +0000 (16:36 +0000)] 
combo-layer: remove unused import

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 years agogrub: backport patches to fix CVE-2022-28736
Xiangyu Chen [Wed, 7 Dec 2022 03:42:54 +0000 (11:42 +0800)] 
grub: backport patches to fix CVE-2022-28736

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agooeqa/selftest/externalsrc: add test for srctree_hash_files
Peter Marko [Mon, 5 Dec 2022 21:38:15 +0000 (22:38 +0100)] 
oeqa/selftest/externalsrc: add test for srctree_hash_files

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agoexternalsrc: fix lookup for .gitmodules
Peter Marko [Thu, 1 Dec 2022 14:04:40 +0000 (15:04 +0100)] 
externalsrc: fix lookup for .gitmodules

Commit 0533edac277080e1bd130c14df0cbac61ba01a0c broke
bitbake parsing when bitbake is executed from directory with existing .gitmodules
and the recipe in externalsrc does not have .gitmodules

The check needs to search for .gitmodules in sources path, not cwd.

iParsing recipes...ERROR: ExpansionError during parsing <path to recipe>
...
bb.data_smart.ExpansionError: Failure expanding variable do_compile[file-checksums], expression was ${@srctree_hash_files(d)} which triggered exception CalledProcessError: Command '['git', 'config', '--file', '.gitmodules', '--get-regexp', 'path']' returned non-zero exit status 1.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolibarchive: fix CVE-2022-36227
Joe Slater [Tue, 6 Dec 2022 19:49:06 +0000 (11:49 -0800)] 
libarchive: fix CVE-2022-36227

Import patch applied to libarchive after the 3.6.1 release.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agolib/buildstats: fix parsing of trees with reduced_proc_pressure directories
Ross Burton [Mon, 5 Dec 2022 14:59:32 +0000 (14:59 +0000)] 
lib/buildstats: fix parsing of trees with reduced_proc_pressure directories

The /proc/pressure support in buildstats is creating directories in the
buildstats tree called reduced_proc_pressure, which confuses the parsing
logic as that cannot be parsed as a name-epoc-version-revision tuple.

Explicitly skip this directory to solve the problem.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2 years agokernel.bbclass: remove empty module directories to prevent QA issues
Ovidiu Panait [Mon, 5 Dec 2022 14:56:49 +0000 (16:56 +0200)] 
kernel.bbclass: remove empty module directories to prevent QA issues

Currently, allyesconfig test runs for x86_64 fail with:
ERROR: linux-yocto-5.19.17+gitAUTOINC+0cba9aa404_aaf4490d18-r0 do_package:
QA Issue: linux-yocto: Files/directories were installed but not shipped in any
package:
  /lib/modules/5.19.17/kernel/drivers/nvdimm

With CONFIG_NVDIMM_TEST_BUILD=m, an empty nvdimm directory is created during
modules_install, which triggers the QA issue.

Extend kernel_do_install() to also remove inner empty directories that might
get created by modules_install.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>