]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
4 years agoell: upgrade 0.35 -> 0.36
Wang Mingyu [Wed, 13 Jan 2021 08:38:36 +0000 (16:38 +0800)]
ell: upgrade 0.35 -> 0.36

0001-ell-add-missing-include-in-dhcp-server.patch
removed since it is included in 0.36

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoed: upgrade 1.16 -> 1.17
Wang Mingyu [Wed, 13 Jan 2021 08:32:01 +0000 (16:32 +0800)]
ed: upgrade 1.16 -> 1.17

-License-Update: Copyright year updated to 2021.

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolicense_image.bbclass: fix missing recipeinfo on self
Michael Ho [Tue, 12 Jan 2021 08:55:33 +0000 (09:55 +0100)]
license_image.bbclass: fix missing recipeinfo on self

Resolve a build bug where image recipes with a do_deploy task will fail.

If the image recipe inheriting license_image.bbclass has a deploy task, then
the function get_deployed_dependencies will add itself to the list of recipes
to get license information for.

However, image recipes don't generally deploy license info so this results in
an error.

File: '/nvme/poky/meta/classes/license_image.bbclass', lineno: 192, function: license_deployed_manifest
...
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/nvme/poky/build/tmp/deploy/licenses/core-image-minimal/recipeinfo'

Add a corner case to exclude the originating image recipe from the list of
dependencies to check.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibpam: remove unused code
Changqing Li [Tue, 12 Jan 2021 06:41:29 +0000 (14:41 +0800)]
libpam: remove unused code

from commit b0384720a46fb25c4ad180e3f256ffdeb53dc8a6,
which upgrade libpam to 1.5.1, packaging is adjustd,
and the binary is packaged into libpam-runtime, so we
don't need to append them to pam-plugin-xxx.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobinutils: upgrade 2.35 -> 2.35.1
Wang Mingyu [Tue, 12 Jan 2021 04:01:57 +0000 (12:01 +0800)]
binutils: upgrade 2.35 -> 2.35.1

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoffmpeg: Fix CVE-2020-35964, CVE-2020-35965
Khairul Rohaizzat Jamaluddin [Tue, 12 Jan 2021 09:37:31 +0000 (17:37 +0800)]
ffmpeg: Fix CVE-2020-35964, CVE-2020-35965

Backport the CVE patches from upstream:
https://github.com/FFmpeg/FFmpeg/commit/27a99e2c7d450fef15594671eef4465c8a166bd7
https://github.com/FFmpeg/FFmpeg/commit/3e5959b3457f7f1856d997261e6ac672bba49e8b

CVE:
CVE-2020-35964
CVE-2020-35965

Signed-off-by: Khairul Rohaizzat Jamaluddin <khairul.rohaizzat.jamaluddin@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic: Allow exec_native_cmd to run HOSTTOOLS
Paul Barker [Mon, 11 Jan 2021 10:32:44 +0000 (10:32 +0000)]
wic: Allow exec_native_cmd to run HOSTTOOLS

This allows programs from HOSTTOOLS (e.g. 'install', 'rm', 'mv', etc) to
be more easily executed by wic. Without this change only programs from
an actual *-native recipe built by bitbake can be executed by wic.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic: Add workdir argument
Paul Barker [Mon, 11 Jan 2021 10:32:42 +0000 (10:32 +0000)]
wic: Add workdir argument

This allows the path for the temporary workdir used by wic to be set
when running wic from bitbake or directly from the command line.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorootfs_ipk: allow do_populate_sdk in parallel to do_rootfs
Michael Ho [Mon, 11 Jan 2021 12:45:23 +0000 (13:45 +0100)]
rootfs_ipk: allow do_populate_sdk in parallel to do_rootfs

Switch do_populate_sdk for the ipk package manager to use a separate target
opkg config file and separate the lockfiles restricting do_rootfs and
do_populate_sdk from running in parallel.

This way if an image recipe includes a dependency to do_populate_sdk by
default then it will run in parallel to do_rootfs saving time compared to the
sequential execution.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosystemd.bbclass: improve error message when a service unit specified in SYSTEMD_SERVI...
Chris Laplante [Mon, 11 Jan 2021 17:52:49 +0000 (12:52 -0500)]
systemd.bbclass: improve error message when a service unit specified in SYSTEMD_SERVICE is not found

The previous message was fairly useless without diving into the bbclass.

Signed-off-by: Chris Laplante <mostthingsweb@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomeson: Don't turn string into a list in nativesdk
Randy Li [Tue, 29 Dec 2020 03:55:49 +0000 (11:55 +0800)]
meson: Don't turn string into a list in nativesdk

In the current version of meson, some path variables only
accept a string not a list.

Signed-off-by: Randy Li <ayaka@soulik.info>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomeson: Add sysroot property to nativesdk-meson
Randy Li [Tue, 29 Dec 2020 03:55:50 +0000 (11:55 +0800)]
meson: Add sysroot property to nativesdk-meson

I know the environment setup script would set PKG_CONFIG_PATH,
but the meson won't take that env when translate the includedir
property from the pkg-config.

Signed-off-by: Randy Li <ayaka@soulik.info>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel-devicetree: Introduce KERNEL_DTC_FLAGS to pass dtc flags
Ovidiu Panait [Wed, 23 Dec 2020 13:08:51 +0000 (15:08 +0200)]
kernel-devicetree: Introduce KERNEL_DTC_FLAGS to pass dtc flags

Currently DTC_FLAGS kernel makefile parameter can be specified directly on the
command line by adding it to KERNEL_EXTRA_ARGS. However, this prevents
scripts/Makefile.lib logic from appending flags that silence dtc warnings (all
assignments done from within a makefile, to a variable specified on the command
line, are ignored).

Because of this, the do_compile log is cluttered with dtc warnings that should
only be printed when compiling with W="123":
...
/soc: node has a reg or ranges property, but no unit name
/soc/gpu: missing or empty reg/ranges property
/soc/firmware/gpio: missing or empty reg/ranges property
...

To fix this, introduce the dedicated KERNEL_DTC_FLAGS variable to hold
dtc flags and export DTC_FLAGS in the environment before generating the dtbs
(make allows "+=" operations on variables that come from the environment, so
the warnings are silenced properly).

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agometa: toolchain-shar-relocate.sh: Filter out post-relocate-setup script
Marek Vasut [Wed, 23 Dec 2020 16:50:03 +0000 (17:50 +0100)]
meta: toolchain-shar-relocate.sh: Filter out post-relocate-setup script

The toolchain-shar-extract.sh script updates the SDK relocation paths in
post-relocate-setup.sh, so avoid doing this twice. This is generally not
a problem, unless the SDK path is a subset of the SDK relocation path, in
which case the resulting path is substituted twice. To trigger the issue,
  $ ./tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-core2-64-qemux86-64-toolchain-3.2+snapshot.sh -y -d /home/oe/.local/opt/poky/3.2+snapshot
which generates relocation path
  /home/oe/.local/home/oe/.local/opt/poky/3.2+snapshot
instead of
  /home/oe/.local/opt/poky/3.2+snapshot

Fixes: 93ec145f42 ("toolchain-shar-extract: Add post-relocate scripts")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Krzysztof Zawadzki <krzysztof.zawadzki@nokia.com>
Cc: Randy Witt <randy.e.witt@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agometa: toolchain-shar-relocate.sh: Do not use $target_sdk_dir as regex
Marek Vasut [Wed, 23 Dec 2020 16:50:02 +0000 (17:50 +0100)]
meta: toolchain-shar-relocate.sh: Do not use $target_sdk_dir as regex

The $target_sdk_dir path might contain special characters, for example if
the path is /opt/poky/3.2+snapshot . Prevent grep from interpreting those
as part of the regex by using the -F parameter and multiple -e parameters
to specify which strings to filter out. Also note that the previous regex
was using asterisk as wildcard (e.g. environment-setup-*), but that should
have been regex (e.g. environment-setup-.*, with dot) to match correctly,
this is also fixed by this change.

Fixes: 9721378688 ("toolchain-shar-template.sh: Make relocation optional.")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Krzysztof Zawadzki <krzysztof.zawadzki@nokia.com>
Cc: Randy Witt <randy.e.witt@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopenssl: Enable psk for qtbase
Khem Raj [Wed, 23 Dec 2020 19:05:21 +0000 (11:05 -0800)]
openssl: Enable psk for qtbase

TLS 1.3 implementation in qt5 uses psk so retain it for now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopenssl: Enable rc4/rc2/bf/md4 algorithms
Khem Raj [Wed, 23 Dec 2020 07:24:11 +0000 (23:24 -0800)]
openssl: Enable rc4/rc2/bf/md4 algorithms

They are still needed by several packages in meta-openembedded

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Shachar Menashe <shachar@vdoo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopenssl: drop support for deprecated algorithms
Shachar Menashe [Sat, 19 Dec 2020 16:04:30 +0000 (16:04 +0000)]
openssl: drop support for deprecated algorithms

1. Drop support for many deprecated algorithms by default
2. Allow dropping support for TLS 1.0/1.1 via PACKAGECONFIG

Signed-off-by: Shachar Menashe <shachar@vdoo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonet-tools: split mii-tool into its own package
Sinan Kaya [Wed, 16 Dec 2020 22:48:37 +0000 (22:48 +0000)]
net-tools: split mii-tool into its own package

Move the mii-tool into its own package. Useful for size constrained
systems that only want the mii-tool only.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoprocps: split ps and sysctl into individual packages
Sinan Kaya [Wed, 16 Dec 2020 22:25:41 +0000 (22:25 +0000)]
procps: split ps and sysctl into individual packages

Move the ps and sysctl tools into its own package. Useful for
size constrained systems that only want the ps and/or sysctl tools.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoiproute2: split ip to individual package
Sinan Kaya [Thu, 17 Dec 2020 19:24:04 +0000 (19:24 +0000)]
iproute2: split ip to individual package

Move the ip tool into its own package. Useful for size constrained
systems that only want the ip tool.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosudo: split sudo binary into its own package
Sinan Kaya [Wed, 16 Dec 2020 17:33:09 +0000 (17:33 +0000)]
sudo: split sudo binary into its own package

Package just sudo binary into its own package for size concerned
targets.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonet-tools: correct version check
Alexander Kanavin [Sun, 10 Jan 2021 11:32:59 +0000 (12:32 +0100)]
net-tools: correct version check

A new upstream release is out.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglibc: CVE-2019-25013
Scott Murray [Sun, 10 Jan 2021 03:11:30 +0000 (22:11 -0500)]
glibc: CVE-2019-25013

* CVE detail: https://nvd.nist.gov/vuln/detail/CVE-2019-25013

* upstream tracking: https://sourceware.org/bugzilla/show_bug.cgi?id=24973

* patch from upstream:
    https://sourceware.org/git/?p=glibc.git;a=patch;
    h=ee7a3144c9922808181009b7b3e50e852fb4999b

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogo.bbclass: don't stage test data with sources of dependencies
Thomas Perrot [Fri, 8 Jan 2021 06:22:48 +0000 (07:22 +0100)]
go.bbclass: don't stage test data with sources of dependencies

As for the sources the dependencies contain test data, ELF files and other
binaries which aren't necessary for building and which lead to unnecessary QA
warnings.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonettle: upgrade 3.6 ->3.7
Wang Mingyu [Thu, 7 Jan 2021 09:04:21 +0000 (17:04 +0800)]
nettle: upgrade 3.6 ->3.7

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosysstat: upgrade 12.4.1 -> 12.4.2
Wang Mingyu [Fri, 8 Jan 2021 01:42:41 +0000 (09:42 +0800)]
sysstat: upgrade 12.4.1 -> 12.4.2

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotcl: upgrade 8.6.10 -> 8.6.11
Wang Mingyu [Fri, 8 Jan 2021 01:40:33 +0000 (09:40 +0800)]
tcl: upgrade 8.6.10 -> 8.6.11

0001-Fix-abd4abedd2-Failed-to-build-tk-8.6.10-with-cross-.patch
removed since it is included in 8.6.11

refresh alter-includedir.patch

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotiff: upgrade 4.1.0 -> 4.2.0
Wang Mingyu [Fri, 8 Jan 2021 01:09:23 +0000 (09:09 +0800)]
tiff: upgrade 4.1.0 -> 4.2.0

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoshared-mime-info: upgrade 2.0 -> 2.1
Wang Mingyu [Fri, 8 Jan 2021 08:41:07 +0000 (16:41 +0800)]
shared-mime-info: upgrade 2.0 -> 2.1

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopseudo: Update for arm host and memleak fixes/cleanup
Richard Purdie [Sat, 9 Jan 2021 09:14:00 +0000 (09:14 +0000)]
pseudo: Update for arm host and memleak fixes/cleanup

Pulls in:

makewrappers: support architecture-overrides in wrapper modifiers
makewrappers: fix Python 2 hangover
Fix some memory leaks
Disable deprecated function warnings
Silence switch block warnings
pseudo_util: don't overrun strings when looking for keys

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoppp: Fix patch typo
Richard Purdie [Sat, 9 Jan 2021 09:06:18 +0000 (09:06 +0000)]
ppp: Fix patch typo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: Add some user space mmap tweaks to address musl 32 bit build issues
Richard Purdie [Fri, 8 Jan 2021 17:27:06 +0000 (17:27 +0000)]
qemu: Add some user space mmap tweaks to address musl 32 bit build issues

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: Fix mingw builds
Richard Purdie [Thu, 7 Jan 2021 20:58:07 +0000 (20:58 +0000)]
qemu: Fix mingw builds

After the recent upgrade, mingw builds failed. Add a hack whilst a solution
is discussed upstream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: Drop vm reservation changes to resolve build issues
Richard Purdie [Wed, 6 Jan 2021 13:54:33 +0000 (13:54 +0000)]
qemu: Drop vm reservation changes to resolve build issues

When building with the new version of qemu we see errors like:

"""
qemu-i386: Unable to reserve 0x7ffff000 bytes of virtual address space at
0x1000 (Success) for use as guest address space (check your virtual memory
ulimit setting, min_mmap_addr or reserve less using -R option)

ERROR: The postinstall intercept hook 'update_gio_module_cache-nativesdk' failed
"""

The VM reseration patches we're carrying look suspicious in this context.
Drop them since the patches appear to be a liability causing other issues
and there is a much  simpler fix for the webkitgtk issues on musl on
32 bit (see later linux-user mmap patches).

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: Upgrade 5.1.0->5.2.0
Richard Purdie [Tue, 5 Jan 2021 23:00:14 +0000 (23:00 +0000)]
qemu: Upgrade 5.1.0->5.2.0

This involves some pretty major changes for qemu. In particular, they
switched to meson+ninja so we have to adapt to that.

Patch changes:
* CVE patches - dropped as backports
* cflags fix - upstream code changed significantly, need new patch if still issues
* mips TLB entries - dropped as merged upstream
* usb fix - dropped as merged upstream
* find_datadir - dropped as code no longer present that I could find

A patch was added to allow us to force the configure script into "cross" mode
without setting cross_prefix which has other effects we don't need/want.

Dependencies on meson/ninja were added.

Specifying the python interpreter causes the internal meson copy to be
built/used which is undesireable for us so don't do that. The correct
python is in PATH anyway.

Acked-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomobile-broadband-provider-info: upgrade 20190618 ->20201225
Wang Mingyu [Thu, 7 Jan 2021 08:33:24 +0000 (16:33 +0800)]
mobile-broadband-provider-info: upgrade 20190618 ->20201225

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoman-pages: upgrade 5.09 ->5.10
Wang Mingyu [Thu, 7 Jan 2021 08:21:46 +0000 (16:21 +0800)]
man-pages: upgrade 5.09 ->5.10

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokbd: fix transaction conflict
Mingli Yu [Thu, 7 Jan 2021 01:03:51 +0000 (09:03 +0800)]
kbd: fix transaction conflict

After kdb upgrades to 2.4.0, vlock.pamd will be copied to /etc/pam.d/vlock
when install as [1].

And it will result in below Transaction error during do_rootfs when both
vlock and kbd installed:
| Transaction test error: file /etc/pam.d/vlock conflicts between attempted installs of vlock-2.2.3-r0.corei7_64 and kbd-2.4.0-r0.corei7_64

So rename vlock to vlock.kbd to fix the gap.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git/commit/?id=b9cbb05038e01a7c4b3899589c591734e643a281

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoselftest: Add argument to keep build dir
Paul Barker [Thu, 7 Jan 2021 14:56:12 +0000 (14:56 +0000)]
selftest: Add argument to keep build dir

The oe-selftest code already keeps the selftest build directory in place
if any tests failed. By default the build directory is deleted if all
tests pass but there may be cases where it's desirable to keep this
directory around, for example to compare intermediate files between
passing and failing test runs.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoruby: remove tcl DEPENDS
Ross Burton [Thu, 7 Jan 2021 17:20:39 +0000 (17:20 +0000)]
ruby: remove tcl DEPENDS

The integrated Tcl/Tk module was removed in Ruby 2.4[1] back in 2016, so this
build dependency can be removed.

[1] https://github.com/ruby/ruby/commit/303dc3c591e324b6bbc691326d8bea76fe3b8fda

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopseudo: Add lchmod wrapper
Richard Purdie [Wed, 6 Jan 2021 22:31:25 +0000 (22:31 +0000)]
pseudo: Add lchmod wrapper

New versions of glibc have an lchmod function so we need to wrap it.

Identified through a reproducibility issue in initramfs-base where
/dev/console created by mknod from coreutils changed permissions
depending on the host distro (mknod used the gnulib wrapper on most
hosts but newer ones used the libc call).

[YOCTO #14162]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosanity: Bump min python version to 3.6
Richard Purdie [Wed, 6 Jan 2021 22:25:06 +0000 (22:25 +0000)]
sanity: Bump min python version to 3.6

There are a number of reasons 3.6 is a good minimum version. Of our supported/tested
distros, only debian 9 still had python 3.5, the others have 3.6+ or already
required buildtools-tarball.

New versions of qemu need python 3.6 as a minimum. We could work around that
but it seems simper to require 3.6 which will allow other improvements.

As such, bump the minimum python version requirement to 3.6.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoppp: Fix reproducibility issue
Richard Purdie [Thu, 7 Jan 2021 17:30:13 +0000 (17:30 +0000)]
ppp: Fix reproducibility issue

Depending on which patches the make program has, the internal or external
utmp could would be used. Add add a patch which avoids the issue and makes
the build determnistic. We saw the regression on ubuntu1604.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoppp: Update 2.4.8 -> 2.4.9
Richard Purdie [Tue, 5 Jan 2021 17:42:23 +0000 (17:42 +0000)]
ppp: Update 2.4.8 -> 2.4.9

This is the first ppp release in a long time. Many patches
were resolved upstream:

* musl fixes were merged
* EAP patch was a backport added upstream
* cflags were fixed upstream
* CVE fix was merged upstream and a backport
* pcap header from the host was fixed upstream
* suid bits during install was removed upstream

The only patch left was the /var/ redirect for resolv.conf which no longer
applied cleanly after upstream changes. For this one the patch will
need to be rewritten (and preferably submitted upstream) by someone
who needs/uses it. It was presumbaly for RO rootfs and may be resolved
by symlinks in modern system usage anyway.

Tweak the files pulled into the pppoe package for a compatibility
symlink and module rename.

Add CC to the OEMAKE command to allow builds correctly.

[Big thanks to Alex Kanavin for a lot of the work with upstream and
pre-release testing of this]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobitbake.conf: Add /run/ to PSEUDO_IGNORE_PATHS
Richard Purdie [Wed, 6 Jan 2021 14:42:56 +0000 (14:42 +0000)]
bitbake.conf: Add /run/ to PSEUDO_IGNORE_PATHS

Builds were failing on WSL2 which turns out to be due to accesses to
/run/ on those systems. Add this to PSEUDO_IGNORE_PATHS to fix
builds on WSL2.

[YOCTO #14175]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibpam: support usrmerge
Changqing Li [Wed, 6 Jan 2021 08:49:27 +0000 (16:49 +0800)]
libpam: support usrmerge

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache.bbclass: Set CCACHE_TEMPDIR
Robert Yang [Wed, 6 Jan 2021 12:09:52 +0000 (04:09 -0800)]
ccache.bbclass: Set CCACHE_TEMPDIR

Fixed when build with buildtools-tarball:

$ bitbake linux-libc-headers
  HOSTCC  arch/x86/tools/relocs_common.o
  ccache: error: Failed to create directory /run/user/0/ccache-tmp: Permission denied

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache: Extend to nativesdk
Robert Yang [Wed, 6 Jan 2021 12:09:50 +0000 (04:09 -0800)]
ccache: Extend to nativesdk

Now we have to use host's ccache as described by:
f5b29367af ccache.bbclass: use ccache from host distribution

So extend it to nativesdk and will add it to buildtools-tarball.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache: Fix build on aarch64/clang
Khem Raj [Tue, 5 Jan 2021 22:06:38 +0000 (14:06 -0800)]
ccache: Fix build on aarch64/clang

asm option checks in cmake gets it wrong to just check compiler options
to decide if SSE/AVX is supported, this accidentally then succeeds on
aarch64 and ends up compiler failures on aarch64 with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogdbm: upgrade 1.18.1 -> 1.19
zhengruoqin [Tue, 5 Jan 2021 07:38:42 +0000 (15:38 +0800)]
gdbm: upgrade 1.18.1 -> 1.19

gdbm-fix-link-failure-against-gcc-10.patch
Removed since this is included in 1.19

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocantarell-fonts: upgrade 0.201 -> 0.301
zhengruoqin [Tue, 5 Jan 2021 07:38:18 +0000 (15:38 +0800)]
cantarell-fonts: upgrade 0.201 -> 0.301

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodiffstat: point the license checksum at the license
Ross Burton [Mon, 4 Jan 2021 17:39:25 +0000 (17:39 +0000)]
diffstat: point the license checksum at the license

Previously install-sh was used, which is installed by autoconf so isn't
a relevant license.

Also remove S assignment, as that's the default.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopsplash (sysvinit): add textual updates
Trevor Woerner [Thu, 24 Dec 2020 15:31:05 +0000 (10:31 -0500)]
psplash (sysvinit): add textual updates

The psplash program contains a hidden text box immediately above the
progress bar. Any text sent via a "MSG" command through psplash's fifo will
be displayed, centred, above the progress bar. Add the ability to show
which startup script is currently running, in sync with updates to the
progress bar. If a startup script takes a bit longer than others and the
progress bar stops momentarily, this allows the user to know which script
is responsible.

This feature is added with a knob, default off, for enabling or disabling
this feature. The knob is in the form of a PACKAGECONFIG against the
sysvinit recipe: psplash-text-updates

NOTE: this knob can be changed in the filesystem at runtime by editing
/etc/default/rcS regardless of how it is set in the build.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopsplash: fix working on first boot (sysvinit)
Trevor Woerner [Thu, 24 Dec 2020 15:31:04 +0000 (10:31 -0500)]
psplash: fix working on first boot (sysvinit)

The psplash program has a mechanism for showing updates graphically in the
form of a progress bar. The program is told when and how much to fill the
progress bar via text messages sent through a fifo. If the fifo doesn't exist
when the psplash program starts, it tries to create it. If the fifo doesn't
exist or can't be created, the psplash program will refuse to run.

In various circumstances when a system is booted for the very first time,
the filesystem is mounted, initially, read-only. As a result the psplash
program is not able to run. On systems where the root filesystem is not
meant to be read-only, it will eventually be mounted read-write. Therefore the
psplash program can run on shutdown, and all subsequent boots. Only the first
boot is affected.

If a fifo is created and included in the filesystem as part of the recipe,
then filesystems that are meant to be read-only will have psplash work, as
well as the cases where (on first boot) a read-write filesystem is initially
mounted read-only.

NOTE: this is only an issue with sysvinit, and non-qemu machines.
systemd-based systems don't suffer from this first-boot issue, and neither
do the qemu machines.

NOTE 2: when psplash is done, it removes the fifo. Therefore the fifo used
for communicating with psplash doesn't hang around unnecessarily in the
filesystem.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoPSPLASH_FIFO_DIR: refactor
Trevor Woerner [Thu, 24 Dec 2020 15:31:03 +0000 (10:31 -0500)]
PSPLASH_FIFO_DIR: refactor

Add an entry for the psplash fifo directory to /etc/default/rcS and have the
pieces of code that need it source it from there rather than duplicating the
definition in multiple places throughout the code.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobitbake.conf: Add mkfifo to HOSTTOOLS
Richard Purdie [Mon, 4 Jan 2021 14:43:43 +0000 (14:43 +0000)]
bitbake.conf: Add mkfifo to HOSTTOOLS

This is about to be needed by the psplash recipe and is a standard part
of coreutils so usually present on hosts.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooe-pkgdata-util: Added a test to verify oe-pkgdata-util without parameters
Milan Shah [Mon, 4 Jan 2021 05:54:02 +0000 (11:24 +0530)]
oe-pkgdata-util: Added a test to verify oe-pkgdata-util without parameters

A test is implemented on poky/meta/lib/oeqa/selftest/pkgdata.py to test
the scenario when oe-pkgdata-util is executed without parameters and
help is displayed.

See [YOCTO #10726] for detailed bug information.

Signed-off-by: Milan Shah <mshah@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotimezone: upgrade to 2020f
Ovidiu Panait [Mon, 4 Jan 2021 12:42:39 +0000 (14:42 +0200)]
timezone: upgrade to 2020f

Release 2020f - 2020-12-29 00:17:46 -0800

  Change to build procedure

    'make rearguard_tarballs' no longer generates a bad rearguard.zi,
    fixing a 2020e bug.  (Problem reported by Deborah Goldsmith.)

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoconf/machine: bump qemu preferred versions to 5.10
Bruce Ashfield [Thu, 17 Dec 2020 20:37:35 +0000 (15:37 -0500)]
conf/machine: bump qemu preferred versions to 5.10

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
4 years agolinux-yocto/5.10: update to v5.10.2
Bruce Ashfield [Mon, 21 Dec 2020 22:17:54 +0000 (17:17 -0500)]
linux-yocto/5.10: update to v5.10.2

Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:

    d1988041d19d Linux 5.10.2
    dadaf794f207 serial: 8250_omap: Avoid FIFO corruption caused by MDR1 access
    ff654f1d31d5 ALSA: pcm: oss: Fix potential out-of-bounds shift
    07747a44be4f USB: sisusbvga: Make console support depend on BROKEN
    2440c1cb2514 USB: UAS: introduce a quirk to set no_write_same
    d769a22dc01f xhci-pci: Allow host runtime PM as default for Intel Maple Ridge xHCI
    3203c4abf505 xhci-pci: Allow host runtime PM as default for Intel Alpine Ridge LP
    1bee58e891f2 usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK
    2bd9751e6790 xhci: Give USB2 ports time to enter U3 in bus suspend
    f1e6ab052c63 ALSA: usb-audio: Fix control 'access overflow' errors from chmap
    cc3edd81ef03 ALSA: usb-audio: Fix potential out-of-bounds shift
    d8f0c9ec3638 USB: add RESET_RESUME quirk for Snapscan 1212
    5fb2a55ad3e0 USB: dummy-hcd: Fix uninitialized array use in init()
    d483f5e5ce53 USB: legotower: fix logical error in recent commit
    2902e302991a ktest.pl: Fix the logic for truncating the size of the log file for email
    4e282a8dff80 ktest.pl: If size of log is too big to email, email error message
    d3f4117b0275 ptrace: Prevent kernel-infoleak in ptrace_get_syscall_info()

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
4 years agolinux-yocto: introduce v5.10 reference kernel recipes
Bruce Ashfield [Thu, 17 Dec 2020 18:08:10 +0000 (13:08 -0500)]
linux-yocto: introduce v5.10 reference kernel recipes

The 5.10 kernel will replace 5.8 as the reference kernel for the
next release.

With this commit, we add standard/tiny/rt support for that kernel
across all of the supported architectures and qemu reference
machines.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
4 years agomachine/qemuarm*: add vmalloc kernel parameter
Bruce Ashfield [Mon, 28 Dec 2020 22:31:10 +0000 (17:31 -0500)]
machine/qemuarm*: add vmalloc kernel parameter

On kernel's v5.11+, we get the following warning after boot:

  [   47.287826] vmap allocation for size 3149824 failed: use vmalloc=<size> to increase size

It can be fixed by passing the vmalloc page size explicitly for our ARM
machines.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
4 years agolibc-headers: update to v5.10
Bruce Ashfield [Mon, 14 Dec 2020 18:43:23 +0000 (13:43 -0500)]
libc-headers: update to v5.10

As the reference kernel is going to v5.10, we also move the libc headers
to match. This is also the latest LTS kernel, so is appropriate for a
libc-headers version bump.

This has been tested against all supported architectures for both glibc
and musl.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
4 years agolinux-yocto-dev: bump to v5.11-rc
Bruce Ashfield [Mon, 28 Dec 2020 21:54:50 +0000 (16:54 -0500)]
linux-yocto-dev: bump to v5.11-rc

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
4 years agolinux-yocto/5.4: update to v5.4.85
Bruce Ashfield [Wed, 23 Dec 2020 16:10:04 +0000 (11:10 -0500)]
linux-yocto/5.4: update to v5.4.85

Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:

    19d1c763e849 Linux 5.4.85
    484ac6279ad2 x86/resctrl: Fix incorrect local bandwidth when mba_sc is enabled
    eb3f42cf5e67 x86/resctrl: Remove unused struct mbm_state::chunks_bw
    c4f909407015 membarrier: Explicitly sync remote cores when SYNC_CORE is requested
    a840e37ef800 Revert "selftests/ftrace: check for do_sys_openat2 in user-memory test"
    aa17a20d640d KVM: mmu: Fix SPTE encoding of MMIO generation upper half
    bb07f4c93e62 serial: 8250_omap: Avoid FIFO corruption caused by MDR1 access
    14482dc42c28 ALSA: pcm: oss: Fix potential out-of-bounds shift
    c94a31c19225 USB: sisusbvga: Make console support depend on BROKEN
    4ad8fc6cce01 USB: UAS: introduce a quirk to set no_write_same
    397d0ae4cb90 xhci-pci: Allow host runtime PM as default for Intel Alpine Ridge LP
    32c820e016b4 xhci: Give USB2 ports time to enter U3 in bus suspend
    5828ae0c1920 ALSA: usb-audio: Fix control 'access overflow' errors from chmap
    e72a55ea7168 ALSA: usb-audio: Fix potential out-of-bounds shift
    56339afa39e5 USB: add RESET_RESUME quirk for Snapscan 1212
    52c2ada6fe5e USB: dummy-hcd: Fix uninitialized array use in init()
    497993377bca ktest.pl: If size of log is too big to email, email error message
    a8d28a541500 net: stmmac: delete the eee_ctrl_timer after napi disabled
    ee08543f4598 net: stmmac: dwmac-meson8b: fix mask definition of the m250_sel mux
    5ae78c6926cc net: ll_temac: Fix potential NULL dereference in temac_probe()
    717a140a3635 net/mlx4_en: Handle TX error CQE
    d0363dcabbd1 lan743x: fix for potential NULL pointer dereference with bare card
    d4107a0f8802 net/mlx4_en: Avoid scheduling restart task if it is already running
    add880d788f0 tcp: fix cwnd-limited bug for TSO deferral where we send nothing
    5189c070a0d7 tcp: select sane initial rcvq_space.space for big MSS
    318d90218b21 net: stmmac: free tx skb buffer in stmmac_resume()
    d8d39e13668a bridge: Fix a deadlock when enabling multicast snooping
    cb327f83cf5e enetc: Fix reporting of h/w packet counters
    408c8213ee97 udp: fix the proto value passed to ip_protocol_deliver_rcu for the segments
    f7a756fc7cb9 net: hns3: remove a misused pragma packed
    2ef23e860e76 vrf: packets with lladdr src needs dst at input with orig_iif when needs strict
    cae90bd22cff net: bridge: vlan: fix error return code in __vlan_add()
    2e6a15b0b3d4 mac80211: mesh: fix mesh_pathtbl_init() error path
    1fe6b822b335 ipv4: fix error return code in rtm_to_fib_config()
    8b4f08f28015 ptrace: Prevent kernel-infoleak in ptrace_get_syscall_info()
    8a866bdbbac2 Linux 5.4.84
    c2c5dc84ac51 compiler.h: fix barrier_data() on clang
    69dc72f058c9 mm/zsmalloc.c: drop ZSMALLOC_PGTABLE_MAPPING
    3349f1e4cf6d x86/apic/vector: Fix ordering in vector assignment
    e3c1d51868f3 x86/membarrier: Get rid of a dubious optimization
    6346ed69bc7c x86/mm/mem_encrypt: Fix definition of PMD_FLAGS_DEC_WP
    258d646f006b scsi: be2iscsi: Revert "Fix a theoretical leak in beiscsi_create_eqs()"
    7d5fc53439a1 proc: use untagged_addr() for pagemap_read addresses
    6472d3ae6ef5 kbuild: avoid static_assert for genksyms
    0cd7084a2a03 drm/i915/display/dp: Compute the correct slice count for VDSC on DP
    60c1c68fae5e mmc: block: Fixup condition for CMD13 polling for RPMB requests
    974aa59837ed pinctrl: amd: remove debounce filter setting in IRQ type setting
    457f5289b7e7 Input: i8042 - add Acer laptops to the i8042 reset list
    cf596f3906e9 Input: cm109 - do not stomp on control URB
    d2d113aca34f ktest.pl: Fix incorrect reboot for grub2bls
    181088e37b1d can: m_can: m_can_dev_setup(): add support for bosch mcan version 3.3.0
    38b1dbc1229c platform/x86: touchscreen_dmi: Add info for the Irbis TW118 tablet
    2fa99f6f8f60 platform/x86: intel-vbtn: Support for tablet mode on HP Pavilion 13 x360 PC
    21aa2d1f2bfb platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE
    010e6e816f54 platform/x86: thinkpad_acpi: Add BAT1 is primary battery quirk for Thinkpad Yoga 11e 4th gen
    4778a11e0500 platform/x86: thinkpad_acpi: Do not report SW_TABLET_MODE on Yoga 11e
    eb5e28ffe39a arm64: tegra: Disable the ACONNECT for Jetson TX2
    c7e271337402 soc: fsl: dpio: Get the cpumask through cpumask_of(cpu)
    37aa8318ed43 spi: spi-nxp-fspi: fix fspi panic by unexpected interrupts
    864fbeab8c99 irqchip/gic-v3-its: Unconditionally save/restore the ITS state on suspend
    47fac0ccf775 ibmvnic: skip tx timeout reset while in resetting
    c0450df6d0f7 interconnect: qcom: qcs404: Remove GPU and display RPM IDs
    adad2bc9f303 scsi: ufs: Make sure clk scaling happens only when HBA is runtime ACTIVE
    b184e9800867 ARC: stack unwinding: don't assume non-current task is sleeping
    8ed74a012206 arm64: dts: broadcom: clear the warnings caused by empty dma-ranges
    acac3f7d7d22 powerpc: Drop -me200 addition to build flags
    8012a30b9e16 iwlwifi: mvm: fix kernel panic in case of assert during CSA
    c90527770b88 iwlwifi: pcie: set LTR to avoid completion timeout
    d411a07d6c04 arm64: dts: rockchip: Assign a fixed index to mmc devices on rk3399 boards.
    0e6cae4e8181 iwlwifi: pcie: limit memory read spin time
    591afbc97c18 x86/lib: Change .weak to SYM_FUNC_START_WEAK for arch/x86/lib/mem*_64.S
    018b05e0f05b Kbuild: do not emit debug info for assembly with LLVM_IAS=1

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
4 years agoqemu: CVE-2020-28916
Li Wang [Tue, 8 Dec 2020 02:34:48 +0000 (02:34 +0000)]
qemu: CVE-2020-28916

References:
https://nvd.nist.gov/vuln/detail/CVE-2020-28916

backport patch from:
https://git.qemu.org/?p=qemu.git;a=commit;h=c2cb511634012344e3d0fe49a037a33b12d8a98a

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: CVE-2020-25723
Li Wang [Fri, 4 Dec 2020 03:44:24 +0000 (03:44 +0000)]
qemu: CVE-2020-25723

References:
https://nvd.nist.gov/vuln/detail/CVE-2020-25723
https://bugzilla.redhat.com/show_bug.cgi?id=1898579

backport patch from:
https://git.qemu.org/?p=qemu.git;a=commit;h=2fdb42d840400d58f2e706ecca82c142b97bcbd6

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodropbear: Disable lastlog and wtmp on musl
Khem Raj [Sat, 2 Jan 2021 20:25:21 +0000 (12:25 -0800)]
dropbear: Disable lastlog and wtmp on musl

Not provided by musl library

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopenssh: Disable lastlog on musl
Khem Raj [Sat, 2 Jan 2021 20:25:20 +0000 (12:25 -0800)]
openssh: Disable lastlog on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorxvt-unicode: Disable lastlog on musl systems
Khem Raj [Sat, 2 Jan 2021 20:25:19 +0000 (12:25 -0800)]
rxvt-unicode: Disable lastlog on musl systems

it needs logwtmp implementation which is not there in musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoshadow: Remove lastlog pam plugin on musl system
Khem Raj [Sat, 2 Jan 2021 20:25:18 +0000 (12:25 -0800)]
shadow: Remove lastlog pam plugin on musl system

lastlog needs logwtmp which musl does not provide

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoman-db: Fix reproducibility issue
Richard Purdie [Sat, 2 Jan 2021 17:12:43 +0000 (17:12 +0000)]
man-db: Fix reproducibility issue

Executing a sequence like:

bitbake man-db
bitbake man-db -c clean
bitbake man-db -c package_write_deb -f

results in the ownership of files in the man-db package changing from "man/man"
to "6/12". This is due to base-passwd not being installed in the recipe
sysroot.

Add the missing dependency so even if a recipe "re-packages", the name
of the user/group is found and the packages are reproducible.

[YOCTO #14172]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic/direct/kparser: ensure fsuuid for vfat and msdos align with format
Lee Chee Yang [Fri, 1 Jan 2021 06:18:28 +0000 (14:18 +0800)]
wic/direct/kparser: ensure fsuuid for vfat and msdos align with format

vfat/msdos filesystem should have fsuuid in format 0xYYYYYYYY where "0x"
in front follow with 8 hexadecimal number in uppercase. In wic, when using
custom fsuuid for vfat/msdos partition in wks, it is able to set the value
in any length, with or without leading "0x". This can cause fsuuid
missaligned when fstab updates, fstab expect exactly 10 character
fsuuid for vfat/msdos partition and all in uppercase.

if custom fsuuid for vfat/msdos is set, check the length and format,
error if it exceed the format size. Amend it so it is align with format
0xYYYYYYYY. This is done before image create and fstab update to ensure the
fsuuid are same in all followup process. if custom fsuuid length less than
expected, fill in "0".

[YOCTO #14161]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache: Build fixes for clang and riscv32
Khem Raj [Thu, 31 Dec 2020 23:49:29 +0000 (15:49 -0800)]
ccache: Build fixes for clang and riscv32

Backport patch to improve AVX detection helps build with clang
Add proposed patch to fix build with 32bit architectures using 64bit
time_t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibpam: Drop musl patches
Khem Raj [Thu, 31 Dec 2020 20:20:17 +0000 (12:20 -0800)]
libpam: Drop musl patches

These issues are addressed in libpam overtime and no longer needed thusly
in 1.5.x

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogrub: Further reproducibility fix
Richard Purdie [Thu, 31 Dec 2020 17:12:27 +0000 (17:12 +0000)]
grub: Further reproducibility fix

Fix the ordering in the generated unidata.c file to aid reproducibility.

[YOCTO #14167]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopatch: fix CVE-2019-20633
Scott Murray [Wed, 30 Dec 2020 22:44:18 +0000 (17:44 -0500)]
patch: fix CVE-2019-20633

* CVE detail: https://nvd.nist.gov/vuln/detail/CVE-2019-20633

* upstream tracking: https://savannah.gnu.org/bugs/index.php?56683

* Fixes potential for double free after incomplete fix for CVE-2018-6952
  - src/pch.c (another_hunk): Avoid invalid memory access in context format
    diffs.

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogrub: fix "CVE:" line in one of the patches
Scott Murray [Wed, 30 Dec 2020 22:44:17 +0000 (17:44 -0500)]
grub: fix "CVE:" line in one of the patches

The "CVE:" line in the patch for CVEs 2020-14309, CVE-2020-14310, and
CVE-2020-14311 had commas between the CVE numbers, which resulted in
CVE-2020-14310 not being picked up as patched by cve-check.bbclass's
parsing.  Remove the commas to match cve-check.bbclass's expectations.

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogdk-pixbuf: fix CVE-2020-29385
Lee Chee Yang [Wed, 30 Dec 2020 09:01:40 +0000 (17:01 +0800)]
gdk-pixbuf: fix CVE-2020-29385

Backport patch from
https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/bdd3acbd48a575d418ba6bf1b32d7bda2fae1c81

image file in upstream patch is for test purpose only, it cause error during
do_patch so drop it:
File tests/test-images/fail/hang_114.gif: git binary diffs are not supported.

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodhcpcd: upgrade 9.3.4 -> 9.4.0
Yi Zhao [Wed, 30 Dec 2020 08:07:32 +0000 (16:07 +0800)]
dhcpcd: upgrade 9.3.4 -> 9.4.0

Drop backported patches:
  0001-Linux-Fix-privsep-build-by-including-sys-termios.h-f.patch
  0001-privsep-Fix-Linux-i386-for-SECCOMP-as-it-just-uses-s.patch

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/suspend : add test for suspend state
Teoh Jay Shen [Wed, 30 Dec 2020 03:36:59 +0000 (11:36 +0800)]
oeqa/suspend : add test for suspend state

This test case is checking the command and LAN device behaviour before and after suspend state. The Test_if_LAN_device_works_well_after_resume_from_suspend_state and standby manual test cases from oeqa/manual/bsp-hw can be replace by this runtime test.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibexif: fix CVE-2020-0198; CVE-2020-0452
Changqing Li [Wed, 30 Dec 2020 02:39:53 +0000 (10:39 +0800)]
libexif: fix CVE-2020-0198; CVE-2020-0452

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoell: upgrade 0.33 -> 0.35
Alexander Kanavin [Sat, 26 Dec 2020 09:27:19 +0000 (10:27 +0100)]
ell: upgrade 0.33 -> 0.35

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoutil-linux: Build fixes for 32bit arches with 64bit time_t
Khem Raj [Tue, 29 Dec 2020 07:03:34 +0000 (23:03 -0800)]
util-linux: Build fixes for 32bit arches with 64bit time_t

some 32bit architectures ( e.g. riscv32 and arc ) are using 64bit time_t
from get go, therefore may not have time32 syscalls, these backports
help restore the successful builds for util-linux on such machines

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>
4 years agoutil-linux: upgrade 2.36 -> 2.36.1
Alexander Kanavin [Sat, 26 Dec 2020 09:27:13 +0000 (10:27 +0100)]
util-linux: upgrade 2.36 -> 2.36.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobusybox.inc: install rcS, rcK and rcS.default only with busybox in VIRTUAL-RUNTIME_in...
Martin Jansa [Sun, 27 Dec 2020 13:53:01 +0000 (14:53 +0100)]
busybox.inc: install rcS, rcK and rcS.default only with busybox in VIRTUAL-RUNTIME_init_manager

* since
  https://git.openembedded.org/openembedded-core/commit/?id=991394be9e695f9ddb5e2fca167c06f7a56a7449
  the rcS.default is in SRC_URI only when VIRTUAL-RUNTIME_init_manager is 'busybox'
  but this section in do_install was controlled by
  CONFIG_INIT=y in /.config which for busybox-initrd from meta-virtualization
  caused:

  ERROR: busybox-initrd-1.32.0-r0 do_install: Execution of '/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/busybox-initrd/1.32.0-r0/temp/run.do_install.1481880' failed with exit code 1:
  CONFIG_FEATURE_MDEV_CONF=y
  install: cannot stat '/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/busybox-initrd/1.32.0-r0/rcS.default': No such file or directory
  WARNING: exit code 1 from a shell command.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogawk: add missing ptest dependency
Alexander Kanavin [Mon, 28 Dec 2020 20:04:36 +0000 (21:04 +0100)]
gawk: add missing ptest dependency

Somewhere between the recipe updates, the needed locale
is no longer installed to the ptest image implicitly.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache.bbclass: use ccache from host distribution
Alexander Kanavin [Mon, 28 Dec 2020 20:04:34 +0000 (21:04 +0100)]
ccache.bbclass: use ccache from host distribution

ccache 4.x has hard dependencies on cmake-native (used as
build system) and zstd, which means inserting ccache-native
as DEPENDS into everything creates circular dependencies which
are impossible to break.

ccache 3.x did not have this problem as it used plain makefiles
and an in-tree copy of zlib.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache: upgrade 3.7.11 -> 4.1
Alexander Kanavin [Mon, 28 Dec 2020 20:04:33 +0000 (21:04 +0100)]
ccache: upgrade 3.7.11 -> 4.1

Convert recipe from autotools to cmake.

zstd is a new hard dependency.

License-Update: formatting

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocmake: update 3.18.4 -> 3.19.2
Alexander Kanavin [Mon, 28 Dec 2020 20:04:32 +0000 (21:04 +0100)]
cmake: update 3.18.4 -> 3.19.2

License-Update: only the first two lines contain licensing info

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognu-config: update to latest revision
Alexander Kanavin [Mon, 28 Dec 2020 20:04:31 +0000 (21:04 +0100)]
gnu-config: update to latest revision

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomtools: update 4.0.25 -> 4.0.26
Alexander Kanavin [Mon, 28 Dec 2020 20:04:30 +0000 (21:04 +0100)]
mtools: update 4.0.25 -> 4.0.26

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-pytest: update 6.1.2 -> 6.2.1
Alexander Kanavin [Mon, 28 Dec 2020 20:04:29 +0000 (21:04 +0100)]
python3-pytest: update 6.1.2 -> 6.2.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostrace: update 5.9 -> 5.10
Alexander Kanavin [Mon, 28 Dec 2020 20:04:28 +0000 (21:04 +0100)]
strace: update 5.9 -> 5.10

Drop 0001-xlat-Mark-IPPROTO_MAX-last-in-IPPROTO_-constants.patch
as upstream has removed IPPROTO_MAX altogether.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibpam: update 1.3.1 -> 1.5.1
Alexander Kanavin [Mon, 28 Dec 2020 20:04:25 +0000 (21:04 +0100)]
libpam: update 1.3.1 -> 1.5.1

Remove crypt_configure.patch, issue fixed upstream.

Remove pam-security-abstract-securetty-handling.patch and
pam-unix-nullok-secure.patch, patches coming from debian,
difficult to rebase, and their purpose is unclear.

Disable doc generation, as libpam messes up native and target
compiler options.

Adjust dependencies and packaging.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agovulkan-samples: update to latest revision
Alexander Kanavin [Mon, 28 Dec 2020 20:04:24 +0000 (21:04 +0100)]
vulkan-samples: update to latest revision

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokexec-tools: update 2.0.20 -> 2.0.21
Alexander Kanavin [Mon, 28 Dec 2020 20:04:23 +0000 (21:04 +0100)]
kexec-tools: update 2.0.20 -> 2.0.21

Drop patches that are either backports, or are obsolete
by upstream fixing the issues.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoboost: update 1.74.0 -> 1.75.0
Alexander Kanavin [Mon, 28 Dec 2020 20:04:22 +0000 (21:04 +0100)]
boost: update 1.74.0 -> 1.75.0

Remove 0001-Apply-boost-1.62.0-no-forced-flags.patch.patch:
upstream has refactored the code, purpose of the patch is unclear.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognupg: update 2.2.23 -> 2.2.26
Alexander Kanavin [Mon, 28 Dec 2020 20:04:21 +0000 (21:04 +0100)]
gnupg: update 2.2.23 -> 2.2.26

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>