]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agosystemd: Add homed PACKAGECONFIG
Kristian Klausen [Fri, 3 Sep 2021 21:36:22 +0000 (23:36 +0200)]
systemd: Add homed PACKAGECONFIG

If systemd is built with fdisk support[1] and the openssl and cryptsetup
PACKAGECONFIG are enabled, systemd-homed[1] is automatically enabled.
The org.freedesktop.home1.conf file was forgotten, so this commit adds
the file and make enabling homed a explicit choice.

systemd-homed.service and systemd-homed-activate.service have a Also= on
each other, so "systemctl" has been fixed to handle the circular
dependency.

userdb isn't strictly speaking needed for homed but "systemctl" can't
handle the missing unit file and upstream recommend enabling both[3].

[1] Automatically enabled if the fdisk dependency is installed which it
    is as util-linux is pulled in by systemd
[2] https://www.freedesktop.org/software/systemd/man/systemd-homed.service.html
[3] https://github.com/systemd/systemd/commit/871dc8d644eef7542a5330f84c25b1db2617317c

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sat, 4 Sep 2021 07:54:51 +0000 (08:54 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: don't duplicate license texts in each package
Ross Burton [Fri, 3 Sep 2021 16:00:33 +0000 (17:00 +0100)]
create-spdx: don't duplicate license texts in each package

Instead of putting the full license text for non-SPDX licenses into the
recipe and every package, use links to the recipe from the packages if
possible.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: embed unknown license texts
Ross Burton [Fri, 3 Sep 2021 16:00:32 +0000 (17:00 +0100)]
create-spdx: embed unknown license texts

For licenses which are not known to SPDX, find and embed the actual
license text in an ExtractedLicesingInfo block.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: remove redundant test
Ross Burton [Fri, 3 Sep 2021 16:00:31 +0000 (17:00 +0100)]
create-spdx: remove redundant test

add_extracted_document() is only called if the license isn't known to
SPDX, so there's no need to check again.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocreate-spdx: transform license list into a dict for faster lookups
Ross Burton [Fri, 3 Sep 2021 16:00:30 +0000 (17:00 +0100)]
create-spdx: transform license list into a dict for faster lookups

spdx-licenses.json contains an array of licenses objects. As we'll be
searching it often, convert that to a dictionary when we parse it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest/recipetool: update for license changes
Ross Burton [Fri, 3 Sep 2021 15:23:47 +0000 (16:23 +0100)]
oeqa/selftest/recipetool: update for license changes

Now that recipetool writes BSD-3-Clause, update the test appropriately.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agogo: upgrade 1.16.5 -> 1.16.7
Sakib Sajal [Tue, 24 Aug 2021 16:25:08 +0000 (00:25 +0800)]
go: upgrade 1.16.5 -> 1.16.7

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoxdg-utils: Add fix for CVE-2020-27748
Richard Purdie [Fri, 3 Sep 2021 13:24:17 +0000 (14:24 +0100)]
xdg-utils: Add fix for CVE-2020-27748

Backport an upstream patch for the CVE.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodefault-distrovars.inc: Set BBINCLUDELOGS to empty to disable printing failed task...
Martin Jansa [Fri, 3 Sep 2021 11:55:21 +0000 (13:55 +0200)]
default-distrovars.inc: Set BBINCLUDELOGS to empty to disable printing failed task output multiple times

* the output is shown 3 times with default configuration and 5 times when --verbose
  is being used with knotty, there might be other use-cases where we actually need
  this, but until the logging is resolved better, setting this to empty looks like
  more reasonable option (considering that e.g. log.do_compile from chromium-x11
  can be over 50MB long, generating 150MB+ cooker log)

* more details in:
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=14542

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorecipetool/create_buildsys_python: treat BSD as BSD-3-Clause
Ross Burton [Fri, 3 Sep 2021 13:24:59 +0000 (14:24 +0100)]
recipetool/create_buildsys_python: treat BSD as BSD-3-Clause

The PyPI license classifiers include "OSI Approved: BSD", which does not
specify which of the many variations of BSD license it actually means.

The generic "BSD" license in the oe-core set is actually BSD-3-Clause.
>From a random sample of ten PyPI modules that use "BSD", they are all
BSD-3-Clause.  As we expect the recipe maintainer to verify the license
anyway, and this matches the previous license text, explicitly set the
license to BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agohdparm: set correct license
Ross Burton [Fri, 3 Sep 2021 13:24:58 +0000 (14:24 +0100)]
hdparm: set correct license

The bulk of hdparm is under a unique license. Set the correct BSD
version, and specify that the hdparm license is also used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoffmpeg: update LICENSE
Ross Burton [Fri, 3 Sep 2021 13:24:57 +0000 (14:24 +0100)]
ffmpeg: update LICENSE

"BSD" is ambiguous, ffmpeg comprises of several licenses which are
BSD-like.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoppp: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:56 +0000 (14:24 +0100)]
ppp: set precise BSD license

"BSD" is ambiguous, use the precise licenses BSD-3-Clause-Attribution
and BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoovmf: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:55 +0000 (14:24 +0100)]
ovmf: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause-Patent.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoshadow-sysroot: sync license with shadow
Ross Burton [Fri, 3 Sep 2021 13:24:54 +0000 (14:24 +0100)]
shadow-sysroot: sync license with shadow

This recipe is just a single data file from shadow, but as we can't
easily tell what license that specific file is under just copy the full
license statement.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agovalgrind: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:53 +0000 (14:24 +0100)]
valgrind: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibxfont: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:52 +0000 (14:24 +0100)]
libxfont: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Note that the actual license text is BSD 4-Clause with clause 3 rescinded:

https://gitlab.freedesktop.org/xorg/lib/libxfont/-/blob/master/COPYING#L157

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/recipeutils: update for license change to python-async-test
Ross Burton [Fri, 3 Sep 2021 13:24:50 +0000 (14:24 +0100)]
oeqa/recipeutils: update for license change to python-async-test

The python-async-test recipe is now BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoxinetd: correct LICENSE
Ross Burton [Fri, 3 Sep 2021 13:24:48 +0000 (14:24 +0100)]
xinetd: correct LICENSE

The xinetd license is superficially BSD-like, but it isn't BSD. Now that
we have the full SPDX license set in oe-core, use the specific xinetd
license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolsof: add upstream check
Ross Burton [Fri, 3 Sep 2021 13:24:47 +0000 (14:24 +0100)]
lsof: add upstream check

Upstream has moved to GitHub.  Whilst it's now too late to upgrade to
the latest release, we can add upstream check variables so that we get
notified we're out of date.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoselftest/python-async-test: set precise BSD license
Ross Burton [Fri, 3 Sep 2021 13:24:49 +0000 (14:24 +0100)]
selftest/python-async-test: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolsof: correct LICENSE
Ross Burton [Fri, 3 Sep 2021 13:24:46 +0000 (14:24 +0100)]
lsof: correct LICENSE

The lsof LICENSE is superficially BSD-like, but it isn't BSD.  Now that
we have the full SPDX license set in oe-core, use Spencer-94.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotcl: Exclude CVE-2021-35331 from checks
Richard Purdie [Fri, 3 Sep 2021 09:17:58 +0000 (10:17 +0100)]
tcl: Exclude CVE-2021-35331 from checks

Upstream don't believe this is an issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/runtime/parselogs: Make DVD ata error apply to all qemux86 machines
Richard Purdie [Fri, 3 Sep 2021 08:22:46 +0000 (09:22 +0100)]
oeqa/runtime/parselogs: Make DVD ata error apply to all qemux86 machines

This log checking fix is needed for both qemux86 and qemux86-64 so move
to the common section.

[YOCTO #14528]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomirrors.bbclass: remove redundant server-specific mirrors
Daniel Wagenknecht [Thu, 2 Sep 2021 06:31:19 +0000 (08:31 +0200)]
mirrors.bbclass: remove redundant server-specific mirrors

With the previously added general git repo fallback rule the server
specific fallback mirrors for git.savannah.gnu.org and
git.yoctoproject.org are redundant. Remove them.

Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomirrors.bbclass: provide additional rule for git repo fallbacks
Daniel Wagenknecht [Thu, 2 Sep 2021 06:31:17 +0000 (08:31 +0200)]
mirrors.bbclass: provide additional rule for git repo fallbacks

Git hosting servers that require a slightly different URL when accessing
repositories via https protocol instead of the git native protocol
are not uncommon (servers using cgit as web UI). Provide a general rule
to try HOST/git/PATH via https as git repo fallback.

Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoreadline: correct pkg-config dependency for termcap
Denys Dmytriyenko [Wed, 1 Sep 2021 22:23:41 +0000 (18:23 -0400)]
readline: correct pkg-config dependency for termcap

readline uses ncurses for terminal capabilities database, but it fails to
specify it correctly in the pkg-config .pc file, resulting in:
Requires.private: termcap

As ncurses by default provides newer terminfo instead of termcap, there's
no termcap.pc in the system and pkg-config fails when linking with readline:
readline.pc X-> termcap.pc

Help configure script to set pkg-config to use ncurses for the correct
terminal capabilities database:
Requires.private: ncurses

This fixes pkg-config dependency chain:
readline.pc -> ncurses.pc -> tinfo.pc

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Comment out placeholder license warning
Joshua Watt [Wed, 1 Sep 2021 13:44:56 +0000 (08:44 -0500)]
classes/create-spdx: Comment out placeholder license warning

We don't want this warning causing problems on the AB, so leave it
comment out for now

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Skip package processing for native recipes
Joshua Watt [Wed, 1 Sep 2021 13:44:55 +0000 (08:44 -0500)]
classes/create-spdx: Skip package processing for native recipes

Native recipes do not produce packages and should not process them,
otherwise it can trigger an error in read_subpackage_metadata

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Collect all task dependencies
Joshua Watt [Wed, 1 Sep 2021 13:44:54 +0000 (08:44 -0500)]
classes/create-spdx: Collect all task dependencies

Stop filtering the runtime dependencies based on do_create_sdpx (makes
it only pick up things in DEPENDS) and instead include all task
dependencies that are not the current PN. This allows other dependency
methods to be picked up correctly, for example the dependency on the
kernel used by kernel modules.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add special exception for Public Domain license
Joshua Watt [Wed, 1 Sep 2021 13:44:53 +0000 (08:44 -0500)]
classes/create-spdx: Add special exception for Public Domain license

The Public Domain license (PD) needs a special exception in the license
processing since there is no common license text to be extracted for
these licenses.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Fix file:// in downloadLocation
Joshua Watt [Wed, 1 Sep 2021 13:44:52 +0000 (08:44 -0500)]
classes/create-spdx: Fix file:// in downloadLocation

file:// URIs should not be included as the downloadLocation. Instead,
loop until a non-file:// URI is found, or set the location to
NOASSERTION if none is found

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Speed up hash calculations
Joshua Watt [Wed, 1 Sep 2021 13:44:51 +0000 (08:44 -0500)]
classes/create-spdx: Speed up hash calculations

Use the bb.utils.sha* utilities to hash files since they are much faster
than the loops we were rolling ourselves

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Fix up license reporting
Joshua Watt [Wed, 1 Sep 2021 13:44:50 +0000 (08:44 -0500)]
classes/create-spdx: Fix up license reporting

Licenses reported in the SPDX documents should be either:
 A) A valid SPDX identifier cross referenced from the SPDX license
    database
 B) A "LicenseRef" to a license described in the SPDX document

The licensing code will now add a placeholder extracted license with
corresponding "LicenseRef" for any licenses that are not matched to the
SPDX database

Parenthesis in the license expression are now handled correctly

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: extend DocumentRef to include name
Saul Wold [Wed, 1 Sep 2021 13:44:48 +0000 (08:44 -0500)]
classes/create-spdx: extend DocumentRef to include name

This will create a more uniq DocumentRef, which will allow
the individual spdx files to be merged into a single SBOM
file reflecting the image. Do the same with the runtime dependencies
also

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Fix another creator
Joshua Watt [Wed, 1 Sep 2021 13:44:47 +0000 (08:44 -0500)]
classes/create-spdx: Fix another creator

Fixes another creator that was missed earlier

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add NOASSERTION for unknown debug sources
Joshua Watt [Wed, 1 Sep 2021 13:44:46 +0000 (08:44 -0500)]
classes/create-spdx: Add NOASSERTION for unknown debug sources

If a debug source cannot be found, mark it as NOASSERTION so that other
tools at least know we were unable to locate it.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add runtime dependency mapping
Joshua Watt [Wed, 1 Sep 2021 13:44:45 +0000 (08:44 -0500)]
classes/create-spdx: Add runtime dependency mapping

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add index to DEPLOYDIR
Joshua Watt [Wed, 1 Sep 2021 13:44:44 +0000 (08:44 -0500)]
classes/create-spdx: Add index to DEPLOYDIR

Add the index to DEPLOYDIR in addition to adding it to the SPDX archive

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add SHA1 to index file
Joshua Watt [Wed, 1 Sep 2021 13:44:43 +0000 (08:44 -0500)]
classes/create-spdx: Add SHA1 to index file

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Change creator
Joshua Watt [Wed, 1 Sep 2021 13:44:42 +0000 (08:44 -0500)]
classes/create-spdx: Change creator

Update the creator name since this no longer lives in meta-doubleopen

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/create-spdx: Add class
Joshua Watt [Wed, 1 Sep 2021 13:44:41 +0000 (08:44 -0500)]
classes/create-spdx: Add class

Adds a class as a first attempt to create SPDX SBoM documents during the
build. This initial work was influenced by [meta-doubleopen][1],
although almost completely rewritten.

[1]: https://github.com/doubleopen-project/meta-doubleopen

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoclasses/package: Add extended packaged data
Joshua Watt [Wed, 1 Sep 2021 13:44:40 +0000 (08:44 -0500)]
classes/package: Add extended packaged data

Adds extended package data which is encoded as JSON which allows it to
encode more structure than the "flat" package data files. The extended
data might be much larger than the standard package data, so it is not
read by default and instead requires
oe.packagedata.read_subpkgdata_extended() to be called

Currently, the file sizes and ELF debug sources are saved off into the
extended package data

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Reviewed-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoAdd SPDX licenses
Joshua Watt [Wed, 1 Sep 2021 13:44:49 +0000 (08:44 -0500)]
Add SPDX licenses

Adds the SPDX license database from https://github.com/spdx/license-list-data

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocommon-licenses: add missing SPDX licences
Ross Burton [Wed, 1 Sep 2021 19:43:58 +0000 (20:43 +0100)]
common-licenses: add missing SPDX licences

As part of the work to converge our license support with SPDX, ensure
that we have all of the licenses that SPDX supports.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowpebackend-fdo: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:35 +0000 (17:24 +0100)]
wpebackend-fdo: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibwpe: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:34 +0000 (17:24 +0100)]
libwpe: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agowebkitgtk: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:33 +0000 (17:24 +0100)]
webkitgtk: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibx11-compose-data: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:32 +0000 (17:24 +0100)]
libx11-compose-data: set precise BSD license

"BSD" is ambiguous, use the precise licenses BSD-2-Clause BSD-4-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoiputils: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:31 +0000 (17:24 +0100)]
iputils: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-packaging: fix license statement
Ross Burton [Thu, 2 Sep 2021 16:24:30 +0000 (17:24 +0100)]
python3-packaging: fix license statement

This is licensed as Apache OR BSD, not AND.

Also use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoopenssh: remove redundant BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:29 +0000 (17:24 +0100)]
openssh: remove redundant BSD license

The license statement already includes BSD-2-Clause and BSD-3-Clause, so
remove the redundant and ambiguous BSD license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibevent: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:28 +0000 (17:24 +0100)]
libevent: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoacpica: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:27 +0000 (17:24 +0100)]
acpica: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodtc: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:26 +0000 (17:24 +0100)]
dtc: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-2-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonfs-utils: set precise BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:25 +0000 (17:24 +0100)]
nfs-utils: set precise BSD license

"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoquota: remove BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:24 +0000 (17:24 +0100)]
quota: remove BSD license

Only the 'quot' tool was BSD licensed, and this was removed upstream in
commit 5d30a29 (since 4.05).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-numpy: remove redundant BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:23 +0000 (17:24 +0100)]
python3-numpy: remove redundant BSD license

The license list already includes BSD-2-Clause and BSD-3-Clause, so
remove the redundant and ambiguous BSD license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolz4: remove redundant BSD license
Ross Burton [Thu, 2 Sep 2021 16:24:22 +0000 (17:24 +0100)]
lz4: remove redundant BSD license

The upstream license is BSD-2-Clause or GPLv2, so remove the redundant
and ambiguous BSD license.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: enable crocus driver for older intel graphics
Alexander Kanavin [Thu, 2 Sep 2021 08:05:19 +0000 (10:05 +0200)]
mesa: enable crocus driver for older intel graphics

See here for the full story:
https://www.phoronix.com/scan.php?page=news_item&px=Intel-Crocus-Default-Gallium3D

Once crocus does become the default over i965, upstream is likely to retire
classic pre-gallium drivers altogether, which (with the exception of
i965, superseded by crocus) are all for retrocomputing hardware.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust: remove unused patches
Martin Jansa [Thu, 2 Sep 2021 06:45:16 +0000 (08:45 +0200)]
rust: remove unused patches

* 0001-nfc-Fix-missing-include.patch was only used in 1.51.0 version recently removed
* 0001-rustc_target-Fix-dash-vs-underscore-mismatches-in-op.patch was only used in 1.49.0 version in meta-rust

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-common: Hack around LD_LIBRARY_PATH issues on centos7
Richard Purdie [Wed, 1 Sep 2021 14:28:26 +0000 (15:28 +0100)]
rust-common: Hack around LD_LIBRARY_PATH issues on centos7

When building cargo-native on centos7 with buildtools tarball installed,
we see failures:

/bin/sh: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /home/pokybuild/yocto-worker/reproducible-centos/build/build-st/tmp/work/x86_64-linux/cargo-native/1.54.0-r0/recipe-sysroot-native/usr/lib/libtinfo.so.5)

We also see this for libstd-rs once cargo-native is fixed.

The reason for this is that the wrapper script
cargo-native/1.54.0-r0/wrapper/target-rust-ccld has /bin/sh as it's
interpreter and cargo calls this with LD_LIBRARY_PATH set to include the
recipe-sysroot-native. The host /bin/sh links to libtinfo from the host
but it finds the version in the sysroot which needs a newer libc. This
results in the above error since the loader is an older libc and the two
are incompatible.

Our ccld wrapper calls gcc/ld which don't need the LD_LIBRARY_PATH
variable set. We can't patch this out the source since we're using
a prebuilt binary to generate a new cargo binary so this is impossible
to bootstrap.

Instead, put a binary wrapper into place which removes LD_LIBRARY_PATH
from the environment before calling the original wrapper (left in shell
as it is simpler to maintain).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocargo: Apply uninative fix to snapshot as with rust
Richard Purdie [Wed, 1 Sep 2021 10:37:38 +0000 (11:37 +0100)]
cargo: Apply uninative fix to snapshot as with rust

Also add the interpreter relocation trick from uninative to the prebuilt
cargo binary to match rust-native, just in case that causes other problems
later too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoweston: Add rdp PACKAGECONFIG
Marek Vasut [Mon, 30 Aug 2021 13:00:31 +0000 (15:00 +0200)]
weston: Add rdp PACKAGECONFIG

Weston has RDP backend support. This can be used e.g. for screen mirroring.
Add PACKAGECONFIG so it can be enabled by the user. By default, this is not
enabled, to retain the old behavior of the recipe.

Below is an example testcase of using the RDP backend for screen mirroring,
i.e. two devices display the same content across ethernet link, input on
either is passed across the link.

- Add the following to weston.ini:
  [core]
  modules=screen-share.so
  screen-share=true
  [screen-share]
  command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/path/to/board.crt --rdp-tls-key=/path/to/board.key --no-config

- Generate keys on the board (the board.key and board.crt above):
  $ winpr-makecert -rdp -path /path/to/

- Restart weston on the board. To start screen sharing, press
  Ctrl-Alt-S
  on the keyboard (see weston compositor/screen-share.c).

- Connect to the weston using freerdp, e.g.:
  $ xfreerdp /v:192.168.1.300

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoptest: allow the ptest-packagelists.inc warning to be disabled
Ross Burton [Wed, 1 Sep 2021 16:57:03 +0000 (17:57 +0100)]
ptest: allow the ptest-packagelists.inc warning to be disabled

ptest.bbclass has a sanity check that all recipes in oe-core which
inherit ptest are also listed in the ptest-packagelists.inc file, and
the build fails if this is not the case.

Whilst this is a laudable goal, it is over-zealous as if the recipe has
a bbappend in another layer which inherits ptest, the build will fail.

By changing the combination of anonymous Python and bb.error() to a
recipe-scope QA test, this can be handled with the other sanity checks
and bbappends can skip the test if desired.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosystemd: Add repart PACKAGECONFIG
Kristian Klausen [Wed, 1 Sep 2021 16:21:39 +0000 (18:21 +0200)]
systemd: Add repart PACKAGECONFIG

systemd-repart[1] is useful for partitioning the disk:
"systemd-repart grows and adds partitions to a partition table, based on
the configuration files described in repart.d(5)."[1]

openssl is required by repart, so it can be enabled like so:
PACKAGECONFIG += "openssl repart"

[1] https://www.freedesktop.org/software/systemd/man/systemd-repart.html

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomesa: fix build on Arm V5 with soft float
Ross Burton [Wed, 1 Sep 2021 15:32:01 +0000 (16:32 +0100)]
mesa: fix build on Arm V5 with soft float

Since 80923e8d ("util/format: Add some NEON intrinsics-based
u_format_unpack.") upstream the build fails on Arm platforms which use
the soft-float ABI, such as qemuarmv5:

 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"

Take a patch from upstream to check the ABI being used before trying to
use NEON instructions.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Make UBOOT_BINARYNAME configurable
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:53 +0000 (12:29 +0200)]
u-boot: Make UBOOT_BINARYNAME configurable

Make the u-boot binary name configurable. Use the existing variable
UBOOT_BINARYNAME which is evaluated from the UBOOT_BINARY.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Make SPL suffix configurable
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:54 +0000 (12:29 +0200)]
u-boot: Make SPL suffix configurable

Make the SPL suffix configurable via SPL_SUFFIX variable to support SPL
binaries with suffix. The suffix is optional and empty per default. The
delimiter in front of the suffix is added automatically if the suffix
is not empty. A new variable SPL_BINARYFILE contains the binary file
name inclusive optional delimiter and suffix and the old variable
SPL_BINARYNAME contains only the name of the binary without directory,
delimiter and specified suffix. This behavior is backward compatible
with empty SPL_SUFFIX variable.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Remove misplaced configuration type variable
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:52 +0000 (12:29 +0200)]
u-boot: Remove misplaced configuration type variable

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agou-boot: Remove redundancy from installed and deployed SPL artifact names
Stefan Herbrechtsmeier [Wed, 1 Sep 2021 10:29:51 +0000 (12:29 +0200)]
u-boot: Remove redundancy from installed and deployed SPL artifact names

Remove redundant parts from the deployed and installed SPL artifact
names of multi config configurations to match the other U-Boot artifact
names.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoswig: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:10 +0000 (08:45 -0500)]
swig: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoflac: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:09 +0000 (08:45 -0500)]
flac: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agofont-util: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:08 +0000 (08:45 -0500)]
font-util: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibx11: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:07 +0000 (08:45 -0500)]
libx11: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibjitterentropy: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:06 +0000 (08:45 -0500)]
libjitterentropy: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibxfont2: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:05 +0000 (08:45 -0500)]
libxfont2: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibpam: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:04 +0000 (08:45 -0500)]
libpam: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agosudo: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:02 +0000 (08:45 -0500)]
sudo: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibcap: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:03 +0000 (08:45 -0500)]
libcap: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoshadow: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:01 +0000 (08:45 -0500)]
shadow: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoe2fsprogs: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:45:00 +0000 (08:45 -0500)]
e2fsprogs: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglib-2.0: Use specific BSD license variant
Joshua Watt [Wed, 1 Sep 2021 13:44:59 +0000 (08:44 -0500)]
glib-2.0: Use specific BSD license variant

Make the license more accurate by specifying the specific variant of BSD
license instead of the generic one. This helps with SPDX license
attribution as "BSD" is not a valid SPDX license.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotzdata: Remove BSD License specifier
Joshua Watt [Wed, 1 Sep 2021 13:44:58 +0000 (08:44 -0500)]
tzdata: Remove BSD License specifier

The code in question is licensed under the BSD-3-Clause license, so
including the generic "BSD" license is unnecessary.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoconf/licenses: Add FreeType SPDX mapping
Joshua Watt [Wed, 1 Sep 2021 13:44:57 +0000 (08:44 -0500)]
conf/licenses: Add FreeType SPDX mapping

The FreeType license maps to the FTL SPDX identifier

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agouninative: Upgrade to 3.4
Michael Halstead [Tue, 31 Aug 2021 20:54:15 +0000 (13:54 -0700)]
uninative: Upgrade to 3.4

This adds a patch to glibc which allows it to work with Docker and
clone3 syscall issues cased by EPERM vs ENOSYS.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agometa: stop using "virtual/" in RPROVIDES and RDEPENDS
Michael Opdenacker [Wed, 1 Sep 2021 09:20:20 +0000 (11:20 +0200)]
meta: stop using "virtual/" in RPROVIDES and RDEPENDS

Fixes [YOCTO #14538]

Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.

That's confusing because "virtual/" has no special meaning in
RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).

Instead, using "virtual-" instead of "virtual/"
as already done in the glibc recipe.

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonativesdk-packagegroup-sdk-host: add perl integer module
Andrey Zhizhikin [Tue, 31 Aug 2021 14:02:51 +0000 (14:02 +0000)]
nativesdk-packagegroup-sdk-host: add perl integer module

Kernel commit 12dd461ebd19 ("crypto: arm64 - generate *.S by Perl at
build time instead of shipping them") uses perl to generate assembler
files for crypto functionality, which relies on the integer.pm module to
be provided.

Add perl module to package group and export it in SDK.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/buildtools-cases: Allow bitbake time to shutdown
Richard Purdie [Tue, 31 Aug 2021 13:14:16 +0000 (14:14 +0100)]
oeqa/buildtools-cases: Allow bitbake time to shutdown

bitbake may still be shutting down when the UI exits. Wait for the lock
to disappear before trying to delete the directory to avoid errors.

Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/buildtools/build/meta/lib/oeqa/sdk/buildtools-cases/build.py", line 23, in test_libc
    self._run('. %s/oe-init-build-env %s && bitbake virtual/libc' % (corebase, testdir))
  File "/usr/lib64/python3.7/tempfile.py", line 807, in __exit__
    self.cleanup()
  File "/usr/lib64/python3.7/tempfile.py", line 811, in cleanup
    _shutil.rmtree(self.name)
  File "/usr/lib64/python3.7/shutil.py", line 494, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib64/python3.7/shutil.py", line 452, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib64/python3.7/shutil.py", line 450, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'bitbake.sock'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agodistro_features_check: expand with IMAGE_FEATURES
Trevor Woerner [Tue, 31 Aug 2021 02:50:33 +0000 (22:50 -0400)]
distro_features_check: expand with IMAGE_FEATURES

In addition to checking DISTRO_, MACHINE_, and COMBINED_ FEATURES for required
or conflicting features, extend this functionality in order to check
IMAGE_FEATURES in the same way.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildhistory: Label packages providing per-file dependencies in depends.dot
Andres Beltran [Mon, 30 Aug 2021 22:53:03 +0000 (22:53 +0000)]
buildhistory: Label packages providing per-file dependencies in depends.dot

Currently, depends.dot includes per-file dependencies but not the packages
providing those files. This makes it hard to obtain all package
dependencies by just looking at depends.dot.

Parse the RPROVIDES and FILERPROVIDES fields from pkgdata to map each of
their values to the package providing the component. Include runtime
packages as dependencies in depends.dot, together with the component
provided by the package as a label.

Signed-off-by: Andres Beltran <abeltran@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agocpio: backport fix for CVE-2021-38185
Ross Burton [Tue, 31 Aug 2021 15:03:34 +0000 (16:03 +0100)]
cpio: backport fix for CVE-2021-38185

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorustfmt: fix SRC_URI
Kai Kang [Mon, 30 Aug 2021 12:42:46 +0000 (20:42 +0800)]
rustfmt: fix SRC_URI

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agomusl: Update to latest tip of trunk
Khem Raj [Fri, 27 Aug 2021 18:06:55 +0000 (11:06 -0700)]
musl: Update to latest tip of trunk

Drop upstream patch

This brings in following fixes

  * 3f701faa (upstream/master, origin/master) fix libc-internal signal blocking on mips archs
  * 0fbd7d66 fix broken struct shmid_ds on powerpc (32-bit)
  * 4f3d346b math: fix fmaf not to depend on FE_TOWARDZERO
  * 937822ab fix TZ parsing logic for identifying POSIX-form strings
  * 1f0c7cb1 riscv: rename __NR_fstatat __NR_newfstatat
  * d8cb888d remove return with expression in void function
  * b7a130e0 remove unnecessary cast for map_library return
  * bd3b9c4c add pthread_getname_np function
  * e1a51185 fix popen not to leak pipes from one child to another
  * e74acd59 remove spurious lock in popen
  * 9a40e842 define __STDC_UTF_{16,32}__ macros

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust-common.bbclass: export RUST_TARGET_PATH
Tim Orling [Fri, 27 Aug 2021 15:05:45 +0000 (15:05 +0000)]
rust-common.bbclass: export RUST_TARGET_PATH

Running 'rustc --print <foo>' in -c devshell environment
the target specifications are not known, unless the
RUST_TARGET_PATH (absolute path to rustlib/) is defined.

Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotune-*: Use more specific DEFAULTTUNE
Jon Mason [Fri, 27 Aug 2021 13:51:40 +0000 (09:51 -0400)]
tune-*: Use more specific DEFAULTTUNE

These files are using a more generic DEFAULTTUNE in their targeted tune
file.  This is contrary to what is being done in other tune files, and
this changes them to match.  It is still possible to use the more
generic DEFAULTTUNE in a machine's config file by simply specifying it.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agorust: fix upstream version checks
Alexander Kanavin [Fri, 27 Aug 2021 12:24:36 +0000 (14:24 +0200)]
rust: fix upstream version checks

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolz4: remove rest of ptest artifacts
Armin Kuster [Fri, 27 Aug 2021 02:09:36 +0000 (19:09 -0700)]
lz4: remove rest of ptest artifacts

Commit: 953f6d9a71 lz4: remove ptest changes

missed removing the run-ptest file

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolz4: Security Fix for CVE-2021-3520
Armin Kuster [Fri, 27 Aug 2021 02:09:18 +0000 (19:09 -0700)]
lz4: Security Fix for CVE-2021-3520

Source: https://github.com/lz4/lz4
MR: 111604
Type: Security Fix
Disposition: Backport from https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7#diff-7055e9cf14c488aea9837aaf9f528b58ee3c22988d7d0d81d172ec62d94a88a7
ChangeID: 58492f950164e75954a97cf084df6f9af3d88244
Description:

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>