Bruce Ashfield [Thu, 15 Jul 2021 19:30:05 +0000 (15:30 -0400)]
linux-yocto/5.13: add devupstream support
We are always getting questions about building -stable, or mainline
master. Rather than introducing a separate set of recipes, we can
facilitate this sort of usecase by using the existing devupstream
bbclass support.
To build an unpatched or otherwise modifed -stable of 5.13, simply
set the linux-yocto preferred provider to:
linux-yocto-upstream
and the PREFERRED_VERSION_linux-yocto-upstream to one with support.
And your wish will be granted, as the build will use v5.13/base
which matches the main linux-yocto version, simply with no extra
changes applied.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Tony Tascioglu [Thu, 15 Jul 2021 00:48:13 +0000 (20:48 -0400)]
valgrind: skip flaky ptest fb_test_amd64
Recently, the none/tests/amd64/fb_test_amd64 test had been flaky and
causing failures on the auto-builder. Until we can get to the root cause
of the issue, we are going to skip the test to reduce the noise from the
ptests.
Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
devtool: correctly handle non-standard source tree locations in upgrades
When S is set to a sub-directory of upstream source, the license
checks and the bbappend writing (specifically, setting EXTERNALSRC)
need to operate on that sub-directory.
'devtool modify' already has similar logic, and it was copied from there
and adjusted.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
reproducibility.patch
deleted since it's been merged upstream.
v57.1.0
-------
Changes
^^^^^^^
* #2692: Globs are now sorted in 'license_files' restoring reproducibility by eliminating variance from disk order.
* #2714: Update to distutils at pypa/distutils@e2627b7.
* #2715: Removed reliance on deprecated ssl.match_hostname by removing the ssl support. Now any index operations rely on the native SSL implementation.
Documentation changes
^^^^^^^^^^^^^^^^^^^^^
* #2604: Revamped the backward/cross tool compatibility section to remove
some confusion.
Add some examples and the version since when ``entry_points`` are
supported in declarative configuration.
Tried to make the reading flow a bit leaner, gather some informations
that were a bit dispersed.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As per upstream the license should also include MIT[1]. This is also
what Fedora Linux uses[2].
This should also address the problem with auto-generated scannerparser.h
file which has the following header:
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
Taking advantage of the Bison expcetion, more precisely the following fragment:
"distribute that work under terms of your choice"
it should also be possible to reuse the MIT license tag for redistribution of that
work instead of adding the default GPLv3+ tag (which would otherwise be required
without using the special exception).
Mike Crowe [Mon, 12 Jul 2021 15:35:58 +0000 (16:35 +0100)]
licence_image: Add lic-pkgs IMAGE_FEATURE
Installing license packages is similar to installing -dev or -dbg
packages, so let's invent a "lic-pkgs" IMAGE_FEATURE that does so and
document it in core-image.bbclass.
This image feature only works if LICENSE_CREATE_PACKAGE is set, so
refuse to generate an image if the lic-pkgs feature is enabled without
LICENSE_CREATE_PACKAGE.
Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Fri, 9 Jul 2021 16:41:09 +0000 (17:41 +0100)]
tcl: remove redundant file creation
The creation of compat/fixstrtod.c was done back in 2005[1] with no
explanation and has persisted since. I can't seem to break the build
without this, so it is presumably long obsolete.
Ross Burton [Fri, 9 Jul 2021 16:17:38 +0000 (17:17 +0100)]
tcl: use AUTOTOOLS_SCRIPT_PATH
Inside tcl the configure.ac is inside a unix/ directory. Instead of
setting S to BPNPV/unix and having to use ../ to reach files outside of
unix, simply set S as usual and use AUTOTOOLS_SCRIPT_PATH to run the
correct configure script.
Ross Burton [Fri, 9 Jul 2021 16:03:53 +0000 (17:03 +0100)]
tcl: use tcl-core instead of patching out packages
Instead of patching out the build of optional packages, we can just use
the tcl-core tarball which is identical except it doesn't include the
packages.
Ross Burton [Fri, 9 Jul 2021 15:29:41 +0000 (16:29 +0100)]
tcl: suffix all Tcl man pages instead of using alternatives
Both Perl and Tcl want to install Thread.3. Alternatives is a terrible
idea for manpages that don't correspond to binaries, instead just tell
Tcl to suffix the manpages so this is Thread.3tcl.
Richard Purdie [Sat, 10 Jul 2021 10:04:45 +0000 (11:04 +0100)]
sstate: Drop pseudo exclusion
Now that pseudo-native always includes statx support and we have sanity
checks on pseudo-native to ensure it always contains a minimum feature set,
we no longer need to mark pseudo-native as distro specific. This fixes
eSDK build problems.
[YOCTO #14428]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 10 Jul 2021 22:03:31 +0000 (23:03 +0100)]
pseudo: Update to latest version including statx fix
This updates to the latest pseudo version which includes:
Revert "client: Fix some compiler warnings"
ports/linux: Always build statx support
makewrappers: Handle parameters marked as nonnull
client: Fix some compiler warnings
wrappers: Avoid -Wcast-function-type warning
In particular, this pseudo version always has statx enabled which means
we can then remove the need to make pseudo-native host distro specific
which fixes an eSDK issue.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 10 Jul 2021 22:01:30 +0000 (23:01 +0100)]
pseudo: Add uninative configuration sanity check
When building pseudo-native to work with uninative, we need to ensure the
configuration will work on all supported target systems. This means
"new clone" semantics, xattr and statvfs support in particular. It is
extremely unlikely we'd run on a system without any of these but add
a check just to be sure when uninative is enabled.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Options:
-c | --count <amount> dd (transfer) <amount> KiB of data within specified timeout to detect latency.
Must enable -t option.
-t | --timeout <time> timeout in seconds for the <count> amount of data to be transferred.
-l | --log-only run the commands without performing the data transfer.
-h | --help show help
buildstats.bbclass: log host data on failure to task specific file
host data, for both interval and failure, was previously
logged into the same file which was difficult to read
as the files file were usually large.
host data is now logged into separate files, for each
type of logging (failure and interval) and also for each
failed task making it easier to read/parse.
Marek Vasut [Fri, 9 Jul 2021 18:15:20 +0000 (20:15 +0200)]
update-rc.d: update SRCREV to pull in fix for non-bash shell support
This pulls in non-bash shell fix for enable/disable command, upstream
commit 8636cf4 ("update-rc.d: Fix enable/disable command"). This way
update-rc.d works with e.g. dash shell again.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Changqing Li <changqing.li@windriver.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Fri, 9 Jul 2021 11:08:47 +0000 (12:08 +0100)]
parted: improve ptest execution
Delete the right log files in run-ptest so the tests can be executed
more than once.
Install config.h so the tests which examine the build configuration will
do the right thing, specifically this causes the tests using libblkid to
execute instead of skip.
Add missing RDEPENDS: mkswap and tune2fs binaries, loop and vfat kernel
modules.
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>
util-linux: Disable chfn-chsh on non-target builds
They are also provided by shadow-native e.g. when building native
recipes and packages where they depend on both shadow-native and
util-linux-native, this can conflict
Enable it only when pam is enabled in distro
Fixes
ERROR: systemd-1_248.3-r0 do_prepare_recipe_sysroot: The file /usr/bin/chsh is installed by both util-linux-native and shadow-native, aborting
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Marek Vasut [Thu, 8 Jul 2021 13:33:49 +0000 (15:33 +0200)]
pulseaudio: Drop pulseaudio-conf
The pulseaudio.inc currently contains these two assignments:
FILES_${PN}-conf = "${sysconfdir}"
FILES_${PN}-server = "... ${sysconfdir} ..."
This results in pulseaudio-server shipping the configuration
in /etc/pulse/ , and based on CONFFILES_${PN}-server and co.,
this is how it was intended to work.
However, that also means FILES_${PN}-conf is not useful. In fact,
FILES_${PN}-conf is likely meant for MACHINE specific configuration,
which would better be packaged in separate recipe like e.g. systemd
does in systemd-conf_%.bb . Better yet, such pulseaudio-conf_%.bb
could ship MACHINE specific configuration overrides, which according
to pulse-daemon.conf(5) are picked from /etc/pulse/daemon.conf.d ,
while pulseaudio-server would ship the default configuration files.
Remove FILES_${PN}-conf .
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tanu Kaskinen <tanuk@iki.fi> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Changqing Li [Thu, 8 Jul 2021 04:04:35 +0000 (12:04 +0800)]
boost-build-native: workaround one rarely hang problem on fedora34
Reproduce scenes:
* On fedora34
* autofs.service is started
* test is nis user, which mounted at /nis by autofs
* under /nis/test, there are symlinks point to another nis mount point /nis/yan
Result:
task boost-build-native:do_install hang forever
NOTE: recipe ovmf-edk2-stable202102-r0: task do_package_write_rpm: Succeeded
NOTE: Running noexec task 8124 of 8152 (/layers/oe-core/meta/recipes-core/ovmf/ovmf_git.bb:do_build)
Bitbake still alive (5000s)
Bitbake still alive (10000s)
Bitbake still alive (15000s)
Bitbake still alive (20000s)
Bitbake still alive (25000s)
Bitbake still alive (30000s)
Bitbake still alive (35000s)
Bitbake still alive (40000s)
Bitbake still alive (45000s)
Bitbake still alive (50000s)
$ps aux | grep b2
test 2773444 0.0 0.0 13532 2748 ? D Jul01 0:00 ./b2 install --prefix=/build/tmp-glibc/work/x86_64-linux/boost-build-native/4.4.1-r0/recipe-sysroot-native/usr staging-prefix=/build/tmp-glibc/work/x86_64-linux/boost-build-native/4.4.1-r0/image/build/tmp-glibc/work/x86_64-linux/boost-build-native/4.4.1-r0/recipe-sysroot-native/usr
$ dmesg
[1559743.424610] autofs4:pid:2773444:autofs_mount_wait: waiting for mount name=yan
[1559743.424621] autofs4:pid:2773444:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560001.400440] autofs4:pid:2774530:autofs_mount_wait: waiting for mount name=yan
[1560001.400452] autofs4:pid:2774530:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560022.493282] autofs4:pid:2774537:autofs_mount_wait: waiting for mount name=yan
[1560022.493292] autofs4:pid:2774537:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560122.076589] autofs4:pid:3979116:autofs_mount_wait: mount wait done status=-4
[1560162.222374] autofs4:pid:2774530:autofs_mount_wait: mount wait done status=-4
[1560167.116188] autofs4:pid:2774537:autofs_mount_wait: mount wait done status=-4
[1560188.140532] autofs4:pid:2774671:autofs_mount_wait: waiting for mount name=yan
[1560188.140540] autofs4:pid:2774671:autofs_wait: existing wait id = 0x00000056, name = yan, nfy=1
[1560189.651905] autofs4:pid:2774671:autofs_mount_wait: mount wait done status=-4
Analyzation:
b2 will walk the HOME dir, when access the symlink point to /nis/yan,
autofs hang at autofs_wait. the process stay at D stat forever. This
maybe caused by abnormal status of autofs.service. The problem cannot
reproduce after restart autofs.service. There should be an autofs bug.
and there is an autofs hang problem bug on fedora34 on it's bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1953390
Workaround:
Since b2 don't actually write something to HOME dir, change HOME dir to
/var/run, a dir not mounted by autofs.
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
License-Update: file format changed from "ASCII text" to
"ASCII text, with CRLF line terminators"
Version 2.3.6
^^^^^^^^^^^^^
- Fix minor unicode bugs in with_name and with_suffix. Many thanks to
ppentchev for reporting and for providing a fix.
- Fix a few minor bugs.
- Allow unicode file paths on systems that support it
(note: unicode file paths will not work on Windows
due a broken filesystem encoder on Windows on Python 2).
- Remove travis and add github actions for regression testing.
Richard Purdie [Wed, 7 Jul 2021 16:50:53 +0000 (17:50 +0100)]
license: Drop adding RRECOMMENDS for license packages
This changes behaviour when LICENSE_CREATE_PACKAGE is in use. Packages
no longer have RRECOMMENDS adding to them.
It was highlighted that this doesn't apply to PACKAGES_DYNAMIC, nor can
it easily be made to do so. There is also a much easier way to handle this
which is:
IMAGE_INSTALL_COMPLEMENTARY += "*-lic"
which works on a per image basis and doesn't change the underlying
package dependencies. I propose we switch to this instead.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
build: Update to header 1.2.182
- Update known-good
- Add support for printing `int64_t` in `scripts/vulkaninfo_generator.py`
- Disable codegen for VK_HUAWEI_subpass_shading
KhronosGroup/Vulkan-Docs#1564
- Generate source
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
xserver-xorg: exclude development snapshots from upstream version checks
Standalone X is still winding down; there's no commitment or plan for a proper release.
https://lists.freedesktop.org/archives/xorg/2021-July/060726.html
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Wed, 7 Jul 2021 09:04:14 +0000 (10:04 +0100)]
glib-2.0: fix g-file-into modification time test
The GFileInfo modification time test assumed that the difference between
a modification timestamp in seconds and in microseconds must be greater
than 0.
Mathmatically, there's a one-in-a-million chance that it will be 0. It
turns out that one-in-a-million chances happen approximately once every
fortnight on the autobuilder.
[ YOCTO 14373 ]
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 7 Jul 2021 10:08:41 +0000 (11:08 +0100)]
glibc-testsuite: Fix build failures when directly running recipe
If you try and run the glibc-testsuite's build task, you see failures
as do_populate_sysroot can't work. We don't have a do_install, get
rid of do_populate_sysroot as well.
The recipe is not included in world builds by default which is why
we don't see the issue more widely.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Wed, 7 Jul 2021 10:08:41 +0000 (11:08 +0100)]
runqemu: Remove potential lock races around tap device handling
The qemu tap device handling is potentially race ridden. We pass the
fd to the main qemu subprocess which is good as it means the lock is held
as long as the qemu process exists. This means we shouldn't unlock it
ourselves though, only close the file. We also can't delete the file
as we have no idea if qemu is still using it. We could try and obtain
an exclusive new lock, then the file would be safe to unlink but it
doesn't seem worth it.
Also fix the same issue in the port lock code.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andreas Müller [Mon, 5 Jul 2021 18:42:59 +0000 (20:42 +0200)]
pango: upgrade 1.48.5 -> 1.48.7
Overview of changes in 1.48.7
=============================
- Fix a thread-safety issue in fontmap initialization
- Small documentation improvements
Overview of changes in 1.48.6
=============================
- Avoid attribute index overflow
- Add a new pango-segmentation utility
- Documentation cleanups and fixes
- Update script property data for gravity
- Bring back careful glyph position rounding
- Add a few missing bidi types
- Add more tests
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andreas Müller [Mon, 5 Jul 2021 18:42:58 +0000 (20:42 +0200)]
mesa: upgrade 21.1.3 -> 21.1.4
Bug fixes
* [anv] GravityMark (benchmark) crashes on ANV
* [opengl] We happy few not being rendered correctly
* Factorio: GPU hang when opening machine inventory
* RuneScape on Mesa 21.1.1 (VEGA10) has bad performance and leaks memory
* Supraland: flickering black bars on ground
* radv: GPU hang in Cyberpunk 2077 on Big Navi
* [amdgpu][renoir][rx5500m]: [drm:0xffffffff8198ad5e] *ERROR* ring gfx timeout, signaled seq=10952, emitted seq=10954
* [spirv-fuzz] SPIR-V parsing FAILED: Invalid back or cross-edge in the CFG
* panfrost Mount and Blade: Warband (glitches)
* anv: dEQP-VK.robustness.robustness2*no_fmt_qual.null_descriptor.samples* fail
Changes
* util/fossilize_db: Pull seek into lock.
* util/fossilize_db: Split out reading the index.
* util/fossilize_db: Do not lock the fossilize db permanently.
* spirv: Fix handling of OpBranchConditional with same THEN and ELSE
* nir/opt_if: Don’t split ALU for single block infinite loops
* llvmpipe: Add handle export for resource_get_param
* i965: fix regression in pipe control on g45
* pick_status.json: Update to 977355c6e5efd781dde85d834172dd23cd4852f1
* pick_status.json: Update to 40b67a292297606f0a7576e3ef4087028d5edd17
* zink: do not unmap dt-buffers twice
* zink: drop repeated usage-bit
* zink: do not check buffer-format for usage-bits
* zink: remove unused moltenvk functions
* libgl-gdi: add missing include
* aux/trace: fix bool argument
* ci/windows: work around meson encoding issues
* intel/fs: Teach IR about EOT instruction writing the accumulator implicitly on TGL+.
* intel/fs: Fix synchronization of accumulator-clearing W/A move on TGL+.
* pan/mdg: Add a bundle ID to instructions
* pan/mdg: Reorder some code in mir_spill_register
* pan/mdg: Fill from TLS before spilling non-SSA nodes
* pan/mdg: Fix reading a spilt register in the bundle it’s written
* pan/mdg: Add 16 bytes of padding to the end of shaders
* intel/nir: Fix txs for null surfaces
* spirv: Create acceleration structure and shader record variables
* nv50/ir: fix surface lowering when values get shared accross operations
* anv: Fix dynamic primitive topology for tess on Gfx7.x too
* anv: allocate bigger batches as we grow command buffers
* mesa: unreference zombie buffers when creating buffers to lower memory usage
* compiler/glsl: Use mutex lock while freeing up mem_ctx
* anv: fix dynamic primitive topology for tess
* zink: handle custom border color without matching wrap mode case
* radeonsi: skip instance_count==0 draws on <= GFX9
* radeonsi: disable ngg culling on llvm < 12
* radv: reject binding buffer/image when the device memory is too small
* radv: always decompress both aspects of a depth/stencil image
* amd/addrlib: remove Meson debug message()
* radeon/vcn/enc: Add missing line to HEVC SPS header code
* util: add work around for the game We Happy Few
* ac/nir: Update TCS output barriers with nir_var_mem_shared.
* radv/llvm: Emit s_barrier at the beginning of NGG non-GS shaders.
* aco/gfx10: NGG zero output workaround for conservative rasterization.
* aco/gfx10: Emit barrier at the start of NGG VS and TES.
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Mon, 5 Jul 2021 17:04:21 +0000 (18:04 +0100)]
util-linux: rewrite the ptest integration
Instead of duplicating logic, we can use the run.sh that the test suite
installs.
Unless told otherwise, the util-linux test suite assumes that it is
running in a build tree and looks for binaries to run, but we're on
target so pass --use-system-commands (drops ~180 skips to tens).
Add --show-diff so that debugging can be done from the logs alone.
Remove redundant path manipulation that is now done upstream.
If PAM is disabled, delete the chfn test: it will run the chfn from
shadow which has different output, and the test will fail.
[ YOCTO #14244 ]
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Previouly there is a logic as below used to set libpth in config.sh.
libpth='@LIBDIR@ @BASELIBDIR@'
But after the below commits introduced, the above logic is dropped. 52f2828314 perl: add a version that builds the recipe using perl-cross, and update to 5.28.1 68552c3532 perl: remove the previous version of the recipe
So correct the value of libpth and glibpth to add the dropped logic
back to avoid confusing.
Before the patch(on 64bits system):
# perl -V:libpth
libpth='/usr/lib /lib';
After the patch(on 64bits system):
# perl -V:libpth
libpth='/usr/lib64 /lib64';
Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Drop texinfo-4.12-zlib.patch as it completely lacks a description,
was added together with the original recipe without an explanation in
the commit message, and is difficult to rebase.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 6 Jul 2021 11:06:24 +0000 (12:06 +0100)]
oeqa/selftest/multiprocesslauch: Fix test race
Having two possible failures in multiprocesslauch creates a race where one failure
may occur and stop processes being lanuched meaning the second failure may not
be seen. Rather than having periodic races appearing on the autobuilder, only
have one failure, making the test much more deterministic.
[YOCTO #13054]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 6 Jul 2021 10:36:16 +0000 (11:36 +0100)]
dwarfsrcfiles: Avoid races over debug-link files
We use dwarfsrcfiles in package.bbclass to list the source files used by a binary.
This is done before they're stripped and linked to debug symbols in separate files.
It is possible a binary may already have a link to separate debug symbols, e.g.
some of the test binaries in lttng-tools ptest. In those cases, the linked binary
may be changed by package.bbclass code whilst dwarfsrcfiles is reading it. That
would result in a rare SIGBUS race causing the binary to fail.
To avoid this, break the debug file search path so no other binaries are found.
Also fix a segfault if no binary is specified while here.
[YOCTO #14400]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gstreamer: add libgst packages to PACKAGES_DYNAMIC
This allows the dynamic libgst* plugin packages and libgstrtspserver-1.0
to be used correctly in RDEPENDS.
All gstreamer1.0-plugins-* recipes and gstreamer1.0-rtsp-server include
gstreamer1.0-plugins-packaging.inc, which creates multiple libgst*
packages through split_gstreamer10_packages(), but only one of the
do_split_packages() regexes was included in PACKAGES_DYNAMIC, and only
for the plugins packages (through gstreamer1.0-plugins-common.inc).
Now the PACKAGES_DYNAMIC definition exists with the do_split_packages()
regexes.
Signed-off-by: Kyle Russell <bkylerussell@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 2 Jul 2021 15:13:48 +0000 (11:13 -0400)]
linux-yocto: introduce 5.13 recipes
5.13 will be the next release/reference kernel (matched with a
libc-headers version bump), this commit creates the recipes, but
does not make it the default kernel (yet).
This has been built and booted on all supported qemu platforms,
as well as with musl and glibc based userspace stacks. Full
core-image-kernel-dev, sato and minimal images have been
tested and show no obvous issues (either locally or on the
autobuilder).
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 2 Jul 2021 15:13:46 +0000 (11:13 -0400)]
kernel-devsrc: fix scripts prepare for powerpc
5.13 introduces some new tweaks required to get on target scripts
and prepare working for powerpc:
- 'nm' is detected as 'nm --synthetic', so we adjust our replacement
- more vdso is required on target, so we copy those files (like arm64
does)
- grep is required during processing, so we add it to the redpends
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 2 Jul 2021 15:13:43 +0000 (11:13 -0400)]
linux-yocto/5.10: scsi-debug needs scsi-disk
It was pointed out that the default scsi-debug feature didn't behave
the same as other distros, since it doesn't have disk supporrt enabled.
We already have a disk.cfg for scsi so we include it into the debug
fragment to get the support we want.
Integrating the following commit(s) to linux-yocto/.:
Bruce Ashfield [Fri, 2 Jul 2021 15:13:42 +0000 (11:13 -0400)]
linux-yocto/5.4: update to v5.4.129
Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:
82ffbc138a1f Linux 5.4.129 9011aaab90b8 certs: Move load_system_certificate_list to a common function e20b90e4f81b certs: Add EFI_CERT_X509_GUID support for dbx entries 06ab9df09eb3 x86/efi: move common keyring handler functions to new file ac7d3f554472 certs: Add wrapper function to check blacklisted binary hash 61168eafe024 mm, futex: fix shared futex pgoff on shmem huge page a33b70d62552 mm/thp: another PVMW_SYNC fix in page_vma_mapped_walk() e045e9e79d2a mm/thp: fix page_vma_mapped_walk() if THP mapped by ptes 037a1d67d236 mm: page_vma_mapped_walk(): get vma_address_end() earlier fa89d536948a mm: page_vma_mapped_walk(): use goto instead of while (1) a499febd9935 mm: page_vma_mapped_walk(): add a level of indentation b1783bf8c8e4 mm: page_vma_mapped_walk(): crossing page table boundary 80b2270a14b8 mm: page_vma_mapped_walk(): prettify PVMW_MIGRATION block ef161ccaca70 mm: page_vma_mapped_walk(): use pmde for *pvmw->pmd 4961160272b7 mm: page_vma_mapped_walk(): settle PageHuge on entry 52e2b20fb5e4 mm: page_vma_mapped_walk(): use page for pvmw->page 82ee7326af7a mm: thp: replace DEBUG_VM BUG with VM_WARN when unmap fails for split bd4389215227 mm/thp: unmap_mapping_page() to fix THP truncate_cleanup_page() b767134ec30a mm/thp: fix page_address_in_vma() on file THP tails 41432a8a6776 mm/thp: fix vma_address() if virtual address below file offset 4b0a34e222e5 mm/thp: try_to_unmap() use TTU_SYNC for safe splitting bd092a0f1942 mm/thp: make is_huge_zero_pmd() safe and quicker 4c37d7f269f8 mm/thp: fix __split_huge_pmd_locked() on shmem migration entry 7ce4b73d349b mm, thp: use head page in __migration_entry_wait() 68ce37ebe0f2 mm/rmap: use page_not_mapped in try_to_unmap() 432b61863ac7 mm/rmap: remove unneeded semicolon in page_not_mapped() cfe575954ddd mm: add VM_WARN_ON_ONCE_PAGE() macro 42f11f0fe977 kthread: prevent deadlock when kthread_mod_delayed_work() races with kthread_cancel_delayed_work_sync() 06ab015d1849 kthread_worker: split code for canceling the delayed work timer d77c9c8537db i2c: robotfuzz-osif: fix control-request directions bb85717e3797 KVM: do not allow mapping valid but non-reference-counted pages d6f751ecccfb nilfs2: fix memory leak in nilfs_sysfs_delete_device_group 702acfcbfa68 pinctrl: stm32: fix the reported number of GPIO lines per bank 76c10e10ba7b net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY aa00b9780482 net: ll_temac: Add memory-barriers for TX BD access d807b93f9bca PCI: Add AMD RS690 quirk to enable 64-bit DMA 5830f2081d98 recordmcount: Correct st_shndx handling 70866199220e net: qed: Fix memcpy() overflow of qed_dcbx_params() b7168ec176fd KVM: selftests: Fix kvm_check_cap() assertion 58687d143515 r8169: Avoid memcpy() over-reading of ETH_SS_STATS cb4a2e4e224a sh_eth: Avoid memcpy() over-reading of ETH_SS_STATS 97e0102e1824 r8152: Avoid memcpy() over-reading of ETH_SS_STATS f12a5b48bcc8 net/packet: annotate accesses to po->ifindex cdcedd3c8683 net/packet: annotate accesses to po->bind 343406f9c198 net: caif: fix memory leak in ldisc_open 8707ce86e927 net: phy: dp83867: perform soft reset and retain established link 9f2d04dfb3c4 inet: annotate date races around sk->sk_txhash d40ff07a7b7d ping: Check return value of function 'ping_queue_rcv_skb' 9df4f031536b net: ethtool: clear heap allocations for ethtool function 62aed2df294a mac80211: drop multicast fragments eb2b1216bc8f net: ipv4: Remove unneed BUG() function e0c950d2fddb dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma f7b1926c7c5d dmaengine: mediatek: do not issue a new desc if one is still current 3d995587c3ea dmaengine: mediatek: free the proper desc in desc_free handler c09af3877b53 dmaengine: rcar-dmac: Fix PM reference leak in rcar_dmac_probe() f2c027a7750f cfg80211: call cfg80211_leave_ocb when switching away from OCB 78bf3c613148 mac80211_hwsim: drop pending frames on stop ae9de9444b54 mac80211: remove warning in ieee80211_get_sband() 0e486713779a dmaengine: zynqmp_dma: Fix PM reference leak in zynqmp_dma_alloc_chan_resourc() 456367b24190 Revert "PCI: PM: Do not read power state in pci_enable_device_flags()" 1442186236ad spi: spi-nxp-fspi: move the register operation after the clock enable 7bc73260c4b1 MIPS: generic: Update node names to avoid unit addresses 0855fe6d8835 arm64: link with -z norelro for LLD or aarch64-elf 3173390b8dbc kbuild: add CONFIG_LD_IS_LLD 3450f5eb8c9e mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk 48a5449c0be1 ARM: 9081/1: fix gcc-10 thumb2-kernel regression 4a8e89e0fd0b drm/radeon: wait for moving fence after pinning 4577708b2a22 drm/nouveau: wait for moving fence after pinning v2 c77c617e26e2 Revert "drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell." 6bd0da6c9b12 Revert "drm/amdgpu/gfx9: fix the doorbell missing when in CGPG issue." e2dc07ca4e01 module: limit enabling module.sig_enforce
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Fri, 2 Jul 2021 15:13:41 +0000 (11:13 -0400)]
linux-yocto/5.10: update to v5.10.47
Updating linux-yocto/5.10 to the latest korg -stable release that comprises
the following commits:
4357ae26d4cd Linux 5.10.47 1573d595e239 integrity: Load mokx variables into the blacklist keyring c6ae6f89fc4f certs: Add ability to preload revocation certs 72d6f5d982f0 certs: Move load_system_certificate_list to a common function 45109066f686 certs: Add EFI_CERT_X509_GUID support for dbx entries 0ba128fa68a4 Revert "drm: add a locked version of drm_is_current_master" 0463b49e0239 netfs: fix test for whether we can skip read when writing beyond EOF e6108147dd91 swiotlb: manipulate orig_addr when tlb_addr has offset 7570a8b5dd49 KVM: SVM: Call SEV Guest Decommission if ASID binding fails 377a796e7a71 mm, futex: fix shared futex pgoff on shmem huge page ab9d178167ea mm/thp: another PVMW_SYNC fix in page_vma_mapped_walk() 915c3a262c49 mm/thp: fix page_vma_mapped_walk() if THP mapped by ptes 90073aecc3cc mm: page_vma_mapped_walk(): get vma_address_end() earlier bf60fc2314b9 mm: page_vma_mapped_walk(): use goto instead of while (1) 9f85dcaf1533 mm: page_vma_mapped_walk(): add a level of indentation e56bdb397663 mm: page_vma_mapped_walk(): crossing page table boundary 8dc191ed9c5f mm: page_vma_mapped_walk(): prettify PVMW_MIGRATION block 7b55a4bcfccf mm: page_vma_mapped_walk(): use pmde for *pvmw->pmd 1cb0b9059f9e mm: page_vma_mapped_walk(): settle PageHuge on entry 65febb41b4d6 mm: page_vma_mapped_walk(): use page for pvmw->page 825c28052b4d mm: thp: replace DEBUG_VM BUG with VM_WARN when unmap fails for split 0010275ca243 mm/thp: unmap_mapping_page() to fix THP truncate_cleanup_page() 38cda6b5ab83 mm/thp: fix page_address_in_vma() on file THP tails 37ffe9f4d7ff mm/thp: fix vma_address() if virtual address below file offset 66be14a92609 mm/thp: try_to_unmap() use TTU_SYNC for safe splitting 6527d8ef68c3 mm/thp: make is_huge_zero_pmd() safe and quicker a8f4ea1d38ac mm/thp: fix __split_huge_pmd_locked() on shmem migration entry 32f954e961ca mm, thp: use head page in __migration_entry_wait() bfd90b56d7f6 mm/rmap: use page_not_mapped in try_to_unmap() ff81af8259bb mm/rmap: remove unneeded semicolon in page_not_mapped() a0ad7ea018e7 mm: add VM_WARN_ON_ONCE_PAGE() macro 130a1d76ee0b x86/fpu: Make init_fpstate correct with optimized XSAVE 51d8011782ed x86/fpu: Preserve supervisor states in sanitize_restored_user_xstate() 2b35a4eaaaae kthread: prevent deadlock when kthread_mod_delayed_work() races with kthread_cancel_delayed_work_sync() bfe28af78a20 kthread_worker: split code for canceling the delayed work timer 02c303f3b9fb ceph: must hold snap_rwsem when filling inode for async create de0af2651daa i2c: robotfuzz-osif: fix control-request directions dd8ed6c9bc22 KVM: do not allow mapping valid but non-reference-counted pages 5fd0c2cf7b11 s390/stack: fix possible register corruption with stack switch helper ab5bef978038 nilfs2: fix memory leak in nilfs_sysfs_delete_device_group ace31c91fd59 scsi: sd: Call sd_revalidate_disk() for ioctl(BLKRRPART) b9e6c20d4c9d gpiolib: cdev: zero padding during conversion to gpioline_info_changed 0221a5a4db46 i2c: i801: Ensure that SMBHSTSTS_INUSE_STS is cleared when leaving i801_access 018d03fcf77a pinctrl: stm32: fix the reported number of GPIO lines per bank df654cd3d300 perf/x86: Track pmu in per-CPU cpu_hw_events f9e73b2967f6 net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY 1c9cf96f5652 net: ll_temac: Add memory-barriers for TX BD access bafb6cdd4f70 PCI: Add AMD RS690 quirk to enable 64-bit DMA d91c50e6a678 recordmcount: Correct st_shndx handling fb71d81ccd69 mac80211: handle various extensible elements correctly 676a7cb1a96b mac80211: reset profile_periodicity/ema_ap ca0e1fefbb53 net: qed: Fix memcpy() overflow of qed_dcbx_params() 4658a8d30791 KVM: selftests: Fix kvm_check_cap() assertion e83e3c5d85a7 r8169: Avoid memcpy() over-reading of ETH_SS_STATS 992b105abf57 sh_eth: Avoid memcpy() over-reading of ETH_SS_STATS a10856ea6066 r8152: Avoid memcpy() over-reading of ETH_SS_STATS 196b22ef6cd1 net/packet: annotate accesses to po->ifindex da8b3aeff4ad net/packet: annotate accesses to po->bind 18ed1789bbce net: caif: fix memory leak in ldisc_open edcd7594ada9 riscv32: Use medany C model for modules 47c07f919fab net: phy: dp83867: perform soft reset and retain established link f57132a887ea net/packet: annotate data race in packet_sendmsg() 9707960ecfdc inet: annotate date races around sk->sk_txhash 7293f63b7b62 net: annotate data race in sock_error() 61b132f67c0d ping: Check return value of function 'ping_queue_rcv_skb' 08c389de6d53 inet: annotate data race in inet_send_prepare() and inet_dgram_connect() c2311fd6de78 net: ethtool: clear heap allocations for ethtool function c2813d1966ba mac80211: drop multicast fragments fedc4d4f548c net: ipv4: Remove unneed BUG() function 93c2aac13b08 dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma 0f48f9277182 dmaengine: mediatek: do not issue a new desc if one is still current 63fa5b2d4b55 dmaengine: mediatek: free the proper desc in desc_free handler 78fa0f707d73 dmaengine: rcar-dmac: Fix PM reference leak in rcar_dmac_probe() 6a07cf36064a cfg80211: call cfg80211_leave_ocb when switching away from OCB a9028333001f mac80211_hwsim: drop pending frames on stop 8cfe765afd5a mac80211: remove warning in ieee80211_get_sband() b671b9816982 dmaengine: xilinx: dpdma: Limit descriptor IDs to 16 bits 524f70b30ef8 dmaengine: xilinx: dpdma: Add missing dependencies to Kconfig 13b245a7bd59 dmaengine: stm32-mdma: fix PM reference leak in stm32_mdma_alloc_chan_resourc() 86f3e72dcb72 dmaengine: zynqmp_dma: Fix PM reference leak in zynqmp_dma_alloc_chan_resourc() 4df9ed0edb9f perf/x86/intel/lbr: Zero the xstate buffer on allocation 56bc20e5fc64 perf/x86/lbr: Remove cpuc->lbr_xsave allocation from atomic context ca2acbd5483f locking/lockdep: Improve noinstr vs errors 59aa5c91f863 x86/xen: Fix noinstr fail in exc_xen_unknown_trap() cb83c99cf675 x86/entry: Fix noinstr fail in __do_fast_syscall_32() cf5935487594 drm/vc4: hdmi: Make sure the controller is powered in detect f73aca83fd83 drm/vc4: hdmi: Move the HSM clock enable to runtime_pm f11f9ff8a7c9 Revert "PCI: PM: Do not read power state in pci_enable_device_flags()" 4b06ebab4a82 spi: spi-nxp-fspi: move the register operation after the clock enable 50a1312a29d1 arm64: Force NO_BLOCK_MAPPINGS if crashkernel reservation is required bd5d4df4dcc1 arm64: Ignore any DMA offsets in the max_zone_phys() calculation 3bbdf5a6fcd2 MIPS: generic: Update node names to avoid unit addresses 03096a46019e mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk b8fd230ae085 ARM: 9081/1: fix gcc-10 thumb2-kernel regression 3d6c4f78ec61 drm/amdgpu: wait for moving fence after pinning 694bb36aa75d drm/radeon: wait for moving fence after pinning bcfea2412f4b drm/nouveau: wait for moving fence after pinning v2 3ef0ca0ec995 drm: add a locked version of drm_is_current_master fea853aca321 Revert "drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell." 1bd81429d53d Revert "drm/amdgpu/gfx9: fix the doorbell missing when in CGPG issue." 3051f230f19f module: limit enabling module.sig_enforce
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
After the commit(60dcb230f6 perl: split perl-cross into its own recipe)
introduced, the source files mainly come from two parts, one is from
SRI_URI during do_fetch and the other with below means during do_configure.
do_configure_prepend() {
cp -rfp ${STAGING_DATADIR_NATIVE}/perl-cross/* ${S}
}
And the source files will be changed during do_compile with below
logic in Makefile.
$(CROSSPATCHED): %.applied: %.patch
patch -p1 -i $< && touch $@
And there comes build failure with below steps:
$ bitbake perl-native
It's because the source files patched twice, so check the file if patched
or not to avoid the source files patched more than one time to fix the
build failure as above.
As there is no build dependency between libubootenv and the configuration
of u-boot there is no reason to check for UBOOT_CONFIG or UBOOT_MACHINE
by adding the class uboot-config. Revert this in order to remove useless
workaround in bsp layer (meta-freescale).
Signed-off-by: Peter Bergin <peter@berginkonsult.se> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Asfak Rahman [Fri, 25 Jun 2021 06:52:57 +0000 (09:52 +0300)]
openssh: Remove temporary keys before generating new ones
Key generation may wait for user input, due to the existence of
temporary keys resulting from power interruption in the first boot.
This prevents users from login via ssh.
pulseaudio: check if NEON code can be compiled on arm
Backport a patch to check if NEON code can be compiled on arm to
fix below issue:
| /prj/tmp-glibc/work/armv5e-wrs-linux-gnueabi/pulseaudio/14.0-r0/recipe-sysroot-native/usr/lib/arm-wrs-linux-gnueabi/gcc/arm-wrs-linux-gnueabi/10.2.0/include/arm_neon.h:31:2: error: #error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
| 31 | #error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
| ^~~~~
| ../pulseaudio-14.0/src/pulsecore/mix_neon.c: In function 'pa_mix_ch2_s16ne_neon':
| ../pulseaudio-14.0/src/pulsecore/mix_neon.c:38:9: error: unknown type name 'int32x4_t'; did you mean 'int32_t'?
| 38 | int32x4_t sum0, sum1;
Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Tested-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>