]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
4 years agocommon-licenses: Add GPL-3.0-with-bison-exception
Jose Quaresma [Fri, 22 Jan 2021 09:30:12 +0000 (09:30 +0000)]
common-licenses: Add GPL-3.0-with-bison-exception

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0: fix failing ptest
Anuj Mittal [Fri, 22 Jan 2021 02:30:21 +0000 (10:30 +0800)]
gstreamer1.0: fix failing ptest

Backport a patch to increase the timeout that might help with the
intermittent seek test failure.

[YOCTO #14194]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoadwaita-icon-theme: add version 3.34.3 back
Kai Kang [Thu, 21 Jan 2021 07:29:22 +0000 (15:29 +0800)]
adwaita-icon-theme: add version 3.34.3 back

Newer versions of adwaita-icon-theme can't work well with librsvg 2.40.
Boot up the core-image-sato image, and start "Media Player", most of the
icons are not showed properly.

The source code of librsvg has been adapted to rust, so it is impossible
to update librsvg in oe core for now. Then add adwaita-icon-theme 3.34.3
back and set as preferred version.

Duplicate one patch as well to fix patch fuzz issue.

Ref:
1. https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/84
2. https://people.gnome.org/~federico/blog/do-not-use-librsvg-2.40.x.html

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobase: use URI instead of decodeurl when detecting unpack dependencies
Ross Burton [Thu, 21 Jan 2021 16:09:22 +0000 (16:09 +0000)]
base: use URI instead of decodeurl when detecting unpack dependencies

decodeurl() has limitations, primarily that it doesn't handle query
parameters at all. If a SRC_URI looks like this:

  http://example.com/download.tar.gz?something

Then the returned path attribute is download.tar.gz?something.  This means
the filename extension detection fails and required tools are not added
to the dependencies.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodevtool: Fix file:// fetcher symlink directory structure
Tomasz Dziendzielski [Thu, 21 Jan 2021 22:31:53 +0000 (23:31 +0100)]
devtool: Fix file:// fetcher symlink directory structure

Add relative path if file is under directory.

[YOCTO #13738]

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/selftest/cases/tinfoil.py: increase timeout 10->60s test_wait_event
Yi Fan Yu [Thu, 21 Jan 2021 22:36:39 +0000 (17:36 -0500)]
oeqa/selftest/cases/tinfoil.py: increase timeout 10->60s test_wait_event

The test would timeout on autobuilders. This patch increases the
timeout to 60s

The test will now also exit as soon as we receive the 2 expected events
Expected runtime is around 1s if successful

Bug 14158

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopensbi: Bump from 0.8 to 0.9
Alistair Francis [Thu, 21 Jan 2021 21:45:08 +0000 (13:45 -0800)]
opensbi: Bump from 0.8 to 0.9

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoiptables: upgrade 1.8.6 -> 1.8.7
Wang Mingyu [Thu, 21 Jan 2021 05:51:44 +0000 (13:51 +0800)]
iptables: upgrade 1.8.6 -> 1.8.7

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogpgme: upgrade 1.15.0 -> 1.15.1
Wang Mingyu [Thu, 21 Jan 2021 04:56:12 +0000 (12:56 +0800)]
gpgme: upgrade 1.15.0 -> 1.15.1

refresh the followning patches:
0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobtrfs-tools: upgrade 5.9 -> 5.10
Wang Mingyu [Thu, 21 Jan 2021 02:56:40 +0000 (10:56 +0800)]
btrfs-tools: upgrade 5.9 -> 5.10

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoexternalsrc: Fix parsing error with devtool non-git sources
Tomasz Dziendzielski [Wed, 20 Jan 2021 14:55:25 +0000 (15:55 +0100)]
externalsrc: Fix parsing error with devtool non-git sources

If srcdir is under poky directory (e.g. devtool poky/build/workspace/sources)
and is not a git repository then ${@srctree_hash_files(d)} will run "git
rev-parse --git-dir" and detect poky directory as git-dir and run "'git', 'add',
'-A', '.'], cwd=s_dir" trying to add srcdir but build dir is in .gitignore and
latest git will fail with "The following paths are ignored by one of your
.gitignore files: build" which will end with "ExpansionError during parsing".

In this commit I added a check if git_dir is the same as git-dir from
TOPDIR (which will detect poky directory) and if yes, then treat srcdir
as non-git sources.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopulseaudio: upgrade 14.0 -> 14.2
Wang Mingyu [Thu, 21 Jan 2021 08:19:51 +0000 (16:19 +0800)]
pulseaudio: upgrade 14.0 -> 14.2

refresh 0002-do-not-display-CLFAGS-to-improve-reproducibility-bui.patch

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonewlib: Update licence
Alejandro Hernandez Samaniego [Thu, 21 Jan 2021 08:17:16 +0000 (01:17 -0700)]
newlib: Update licence

- libgloss:
  - (22) New tcl license for csky-* targets
  - (23) New license for csky-* targets, states itself as FreeBSD license
  but text matches GPL (648365e0)
  - (24) New BSD-2 license for risc-v targets

newlib:
  - New license for csky-* targets, states itself as FreeBSD license
  but text matches GPL (648365e0)
  - (53) arm targets FreeBSD
  - (54) arm targets BSD-2-Clause-FreeBSD

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosystemd: resolve executable path if it is relative
Mingli Yu [Thu, 21 Jan 2021 07:44:49 +0000 (15:44 +0800)]
systemd: resolve executable path if it is relative

Backport a patch to fix the below systemd-analyze issue:
 # systemd-analyze --man=false verify /lib/systemd/system/initrd-cleanup.service
 initrd-cleanup.service: Command systemctl is not executable: No such file or directory

 # which systemctl
 /bin/systemctl

 # cat /lib/systemd/system/initrd-cleanup.service
 [snip]
 [Unit]
 Description=Cleaning Up and Shutting Down Daemons
 DefaultDependencies=no
 AssertPathExists=/etc/initrd-release
 OnFailure=emergency.target
 OnFailureJobMode=replace-irreversibly
 After=initrd-root-fs.target initrd-fs.target initrd.target

 [Service]
 Type=oneshot
 ExecStart=systemctl --no-block isolate initrd-switch-root.target

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 20 Jan 2021 22:46:33 +0000 (22:46 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/selftest: binutils-cross-x86_64 -> libgcc-initial
Robert Yang [Wed, 20 Jan 2021 08:44:09 +0000 (00:44 -0800)]
oeqa/selftest: binutils-cross-x86_64 -> libgcc-initial

The binutils-cross-x86_64 is not avaliable for non x86-64 machines.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agort-tests/hwlatdetect: upgrade 1.9 -> 1.10
Anuj Mittal [Wed, 20 Jan 2021 07:40:58 +0000 (15:40 +0800)]
rt-tests/hwlatdetect: upgrade 1.9 -> 1.10

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomeson: upgrade 0.56.0 -> 0.56.2
Anuj Mittal [Wed, 20 Jan 2021 07:40:57 +0000 (15:40 +0800)]
meson: upgrade 0.56.0 -> 0.56.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogit: upgrade 2.29.2 -> 2.30.0
Anuj Mittal [Wed, 20 Jan 2021 07:40:56 +0000 (15:40 +0800)]
git: upgrade 2.29.2 -> 2.30.0

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosudo: upgrade 1.9.4p1 -> 1.9.5p1
Anuj Mittal [Wed, 20 Jan 2021 07:40:55 +0000 (15:40 +0800)]
sudo: upgrade 1.9.4p1 -> 1.9.5p1

License-Update: copyright years changed

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoresolvconf: upgrade 1.83 -> 1.87
Anuj Mittal [Wed, 20 Jan 2021 07:40:54 +0000 (15:40 +0800)]
resolvconf: upgrade 1.83 -> 1.87

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-numpy: upgrade 1.19.4 -> 1.19.5
Anuj Mittal [Wed, 20 Jan 2021 07:40:53 +0000 (15:40 +0800)]
python3-numpy: upgrade 1.19.4 -> 1.19.5

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-hypothesis: upgrade 5.43.3 -> 6.0.2
Anuj Mittal [Wed, 20 Jan 2021 07:40:52 +0000 (15:40 +0800)]
python3-hypothesis: upgrade 5.43.3 -> 6.0.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-dbusmock: upgrade 0.19 -> 0.22.0
Anuj Mittal [Wed, 20 Jan 2021 07:40:51 +0000 (15:40 +0800)]
python3-dbusmock: upgrade 0.19 -> 0.22.0

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodiffstat: upgrade 1.63 -> 1.64
Anuj Mittal [Wed, 20 Jan 2021 07:40:50 +0000 (15:40 +0800)]
diffstat: upgrade 1.63 -> 1.64

License-Update: copyright years changed

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoacpica: upgrade 20201217 -> 20210105
Anuj Mittal [Wed, 20 Jan 2021 07:40:49 +0000 (15:40 +0800)]
acpica: upgrade 20201217 -> 20210105

License-Update: copyright years changed

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonewlib: Upgrade 3.3.0 -> 4.1.0
Alejandro Hernandez Samaniego [Tue, 19 Jan 2021 20:59:12 +0000 (13:59 -0700)]
newlib: Upgrade 3.3.0 -> 4.1.0

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodevtool: Fix source extraction for gcc shared source
Tomasz Dziendzielski [Tue, 19 Jan 2021 18:56:29 +0000 (19:56 +0100)]
devtool: Fix source extraction for gcc shared source

If do_patch task is disabled then prepare do_configure dependencies to
fetch external sources and create symlink to ${S} in devtool workspace.

[YOCTO #13036]

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotoolchain-shar-relocate.sh: Fix handling files with colons
Oleksiy Obitotskyy yIEf0zt.mo [Tue, 19 Jan 2021 13:02:59 +0000 (05:02 -0800)]
toolchain-shar-relocate.sh: Fix handling files with colons

Files could contain colons in name and we should not use
colons (':') as field separator. E.g. perl/python man
pages packages.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoflex: Fix --noline option behavior
Oleksiy Obitotskyy [Tue, 19 Jan 2021 12:49:38 +0000 (04:49 -0800)]
flex: Fix --noline option behavior

Option --noline or -L does not handled properly.
So generated code contains #line directives with
file absolute path and prevents to create
reproducible builds.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic: Optimise fstab modification for ext2/3/4 and msdos partitions
Paul Barker [Tue, 19 Jan 2021 16:26:10 +0000 (16:26 +0000)]
wic: Optimise fstab modification for ext2/3/4 and msdos partitions

The fix for [Yocto #13994] required the rootfs directory to be copied
(using hardlinks if possible) when modifying the fstab file under wic.

We can optimise this copy away for filesystems where we have the tools
to modify the contents of the partition image after it is created. For
ext2/3/4 filesystems we have the debugfs tool and for msdos/vfat
filesystems we have the mcopy tool. So for any of these filesystems we
skip the modification of the fstab file in the rootfs directory (and
skip the associated copy unless it is otherwise necessary) and update
the contents of fstab directly in the partition image.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic: Copy rootfs dir if fstab needs updating
Paul Barker [Tue, 19 Jan 2021 16:26:09 +0000 (16:26 +0000)]
wic: Copy rootfs dir if fstab needs updating

By default, wic updates the /etc/fstab in the rootfs to include details
of additional partitions described in the selected wks file. If this
modification is performed in place, other tasks which create an image
file from the rootfs directory (e.g. do_image_tar and do_image_ext4)
will pick up the modified fstab file which would not be appropriate for
those images as they do not include the additional partitions described
in the wks file. wic does undo modifications to the fstab file once it
has finished creating the filesystem image, however this leaves open a
race condition if one of the other tasks reads the contents of the fstab
file from the rootfs directory between the point where wic modifies the
fstab file and the point where wic restores the files original content.

This could be solved by adding a lockfile for tasks which use the rootfs
directory to ensure that no other such task is reading the rootfs
directory while do_image_wic is running. This would serialize several
do_image_* tasks and result in slower builds, especially for large
images. Another drawback of this solution is that it is hard to
selectively optimise - adding lockfiles to do_image_* tasks would result
in these tasks always being serialized even if no fstab modification
will take place.

An alternative solution is to copy the rootfs directory when fstab needs
to be modified. The code to do this in wic already exists as it is
needed when including or excluding content in the rootfs. This still
results in an impact on build times but the copy uses hardlinks if
possible (so little data is actually copied) and we can make selective
optimisations to improve things. The rootfs copy will only take place if
fstab modification is required (or if it was already needed to include
or exclude rootfs content). We can also follow up with further
optimisations after this commit. So this second solution is chosen.

Fixes [Yocto #13994]

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic: Update pseudo db when excluding content from rootfs
Paul Barker [Tue, 19 Jan 2021 16:26:08 +0000 (16:26 +0000)]
wic: Update pseudo db when excluding content from rootfs

To exclude content from the rootfs, wic makes a copy (using hardlinks if
possible) of the rootfs directory and associated pseudo db, then removes
files & directories as needed. However if these files and directories
are removed using the python functions os.remove and shutil.rmtree, the
copied pseudo db will not be updated correctly. For files copied from
the original rootfs, if hardlinks were used successfully when copying
the rootfs this should mean that the relevant inodes can't be reused and
so the risk of pseudo aborts should be avoided. However, this logic
doesn't apply for directories (as they can't be hardlinked) or for files
added via the '--include-path' argument (as they weren't present in the
original rootfs) and so there remains some risk of inodes being reused
and the pseudo db becoming corrupted.

To fix this, use the 'rm' command under pseudo when removing files &
directories from the copied rootfs to ensure that the copied pseudo db
is updated.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoimage_types_wic: Move wic working directory
Paul Barker [Tue, 19 Jan 2021 16:26:07 +0000 (16:26 +0000)]
image_types_wic: Move wic working directory

By default the wic working directory is placed under the output
directory. When invoking wic under bitbake, the wic output directory is
added to PSEUDO_PATHS_IGNORE to avoid issues with files being removed
from outside a pseudo environment (see oe-core commit ad8f5532ff).

However, wic will copy the rootfs directory into its working directory
if it needs to add or remove content before creating a filesystem image.
This copy of the rootfs directory must be tracked by pseudo in order to
keep the permissions correct in the resulting image. So we can't have
the wic working directory under a path in PSEUDO_PATHS_IGNORE unless
we like broken permissions.

To fix this the new '-w' argument to wic is used to move the working
directory away from the output directory.

Note that wic deletes the temporary working directory automatically
when it finishes creating an image so users won't normally see the
'tmp-wic' directory under WORKDIR.

Fixes [Yocto #14129]

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic: Ensure internal workdir is not reused
Paul Barker [Tue, 19 Jan 2021 16:26:06 +0000 (16:26 +0000)]
wic: Ensure internal workdir is not reused

If a path is specified for the internal wic working directory using
the -w/--workdir argument then it must not already exist. Re-using a
previous workdir could easily result in rootfs and intermediate files
from a previous build being added to the current image.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-git: upgrade 3.1.11 -> 3.1.12
Anuj Mittal [Tue, 19 Jan 2021 06:45:52 +0000 (14:45 +0800)]
python3-git: upgrade 3.1.11 -> 3.1.12

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-importlib-metadata: upgrade 3.3.0 -> 3.4.0
Anuj Mittal [Tue, 19 Jan 2021 06:45:51 +0000 (14:45 +0800)]
python3-importlib-metadata: upgrade 3.3.0 -> 3.4.0

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolighttpd: upgrade 1.4.57 -> 1.4.58
Anuj Mittal [Tue, 19 Jan 2021 06:45:50 +0000 (14:45 +0800)]
lighttpd: upgrade 1.4.57 -> 1.4.58

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowget: upgrade 1.20.3 -> 1.21.1
Anuj Mittal [Tue, 19 Jan 2021 06:45:49 +0000 (14:45 +0800)]
wget: upgrade 1.20.3 -> 1.21.1

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-mako: upgrade 1.1.3 -> 1.1.4
Anuj Mittal [Tue, 19 Jan 2021 06:45:48 +0000 (14:45 +0800)]
python3-mako: upgrade 1.1.3 -> 1.1.4

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolzip: upgrade 1.21 -> 1.22
Anuj Mittal [Tue, 19 Jan 2021 06:45:47 +0000 (14:45 +0800)]
lzip: upgrade 1.21 -> 1.22

License-Update: copyright years, formatting changes

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agologrotate: upgrade 3.17.0 -> 3.18.0
Anuj Mittal [Tue, 19 Jan 2021 06:45:46 +0000 (14:45 +0800)]
logrotate: upgrade 3.17.0 -> 3.18.0

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-pygments: upgrade 2.7.3 -> 2.7.4
Anuj Mittal [Tue, 19 Jan 2021 06:45:45 +0000 (14:45 +0800)]
python3-pygments: upgrade 2.7.3 -> 2.7.4

License-Update: change in copyright years

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcr: upgrade 3.38.0 -> 3.38.1
Anuj Mittal [Tue, 19 Jan 2021 06:45:44 +0000 (14:45 +0800)]
gcr: upgrade 3.38.0 -> 3.38.1

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agovala: upgrade 0.50.2 -> 0.50.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:43 +0000 (14:45 +0800)]
vala: upgrade 0.50.2 -> 0.50.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopiglit: upgrade to latest revision
Anuj Mittal [Tue, 19 Jan 2021 06:45:42 +0000 (14:45 +0800)]
piglit: upgrade to latest revision

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agompg123: upgrade 1.26.3 -> 1.26.4
Anuj Mittal [Tue, 19 Jan 2021 06:45:41 +0000 (14:45 +0800)]
mpg123: upgrade 1.26.3 -> 1.26.4

License-Update: Change in copyright years

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoharfbuzz: upgrade 2.7.2 -> 2.7.4
Anuj Mittal [Tue, 19 Jan 2021 06:45:40 +0000 (14:45 +0800)]
harfbuzz: upgrade 2.7.2 -> 2.7.4

Remove backported patches and remove the introspection patch as that is
no longer needed.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agovulkan-tools: upgrade 1.2.162.0 -> 1.2.162.1
Anuj Mittal [Tue, 19 Jan 2021 06:45:39 +0000 (14:45 +0800)]
vulkan-tools: upgrade 1.2.162.0 -> 1.2.162.1

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostress-ng: upgrade 0.12.00 -> 0.12.01
Anuj Mittal [Tue, 19 Jan 2021 06:45:38 +0000 (14:45 +0800)]
stress-ng: upgrade 0.12.00 -> 0.12.01

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibproxy: upgrade 0.4.15 -> 0.4.17
Anuj Mittal [Tue, 19 Jan 2021 06:45:37 +0000 (14:45 +0800)]
libproxy: upgrade 0.4.15 -> 0.4.17

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibepoxy: upgrade 1.5.4 -> 1.5.5
Anuj Mittal [Tue, 19 Jan 2021 06:45:36 +0000 (14:45 +0800)]
libepoxy: upgrade 1.5.4 -> 1.5.5

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-plugins-ugly: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:35 +0000 (14:45 +0800)]
gstreamer1.0-plugins-ugly: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogst-devtools: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:34 +0000 (14:45 +0800)]
gst-devtools: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogst-examples: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:33 +0000 (14:45 +0800)]
gst-examples: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-vaapi: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:32 +0000 (14:45 +0800)]
gstreamer1.0-vaapi: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-python: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:31 +0000 (14:45 +0800)]
gstreamer1.0-python: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-rtsp-server: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:30 +0000 (14:45 +0800)]
gstreamer1.0-rtsp-server: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-omx: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:29 +0000 (14:45 +0800)]
gstreamer1.0-omx: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-libav: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:28 +0000 (14:45 +0800)]
gstreamer1.0-libav: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-plugins-bad: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:27 +0000 (14:45 +0800)]
gstreamer1.0-plugins-bad: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-plugins-good: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:26 +0000 (14:45 +0800)]
gstreamer1.0-plugins-good: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0-plugins-base: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:25 +0000 (14:45 +0800)]
gstreamer1.0-plugins-base: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogstreamer1.0: upgrade 1.18.2 -> 1.18.3
Anuj Mittal [Tue, 19 Jan 2021 06:45:24 +0000 (14:45 +0800)]
gstreamer1.0: upgrade 1.18.2 -> 1.18.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoenchant2: upgrade 2.2.14 -> 2.2.15
Anuj Mittal [Tue, 19 Jan 2021 06:45:23 +0000 (14:45 +0800)]
enchant2: upgrade 2.2.14 -> 2.2.15

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobash: Add makefile race workaround
Richard Purdie [Tue, 19 Jan 2021 12:27:23 +0000 (12:27 +0000)]
bash: Add makefile race workaround

There is a race between two make invocations in 5.1. It has been
reported upstream, in the meantime add a work around patch (which
upstream may yet even apply). The autobuilder found two instances
of this race in a single build.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoruntime_test.py: correct output check for bash 5.1
Alexander Kanavin [Mon, 28 Dec 2020 20:04:35 +0000 (21:04 +0100)]
runtime_test.py: correct output check for bash 5.1

Bash 5.1 inserts escape sequences into its output (specifically
disabling bracketed paste mode via \x1b[?2004l). I am not sure
if somehow terminal detection isn't working correctly there,
but in any case the marker is still in the output, but needs to
be checked by 'in' rather than exact equivalence.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobash: Set HEREDOC_PIPESIZE deterministically
Richard Purdie [Thu, 7 Jan 2021 20:52:48 +0000 (20:52 +0000)]
bash: Set HEREDOC_PIPESIZE deterministically

We had reproducibility issues where the pipe size appears to vary on some build
hosts between 65535 and 4096. It should be the former on Linux in general so
standarise on that. Easiest way is to pass in CFLAGS.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobash: update 5.0 -> 5.1
Alexander Kanavin [Mon, 28 Dec 2020 20:04:27 +0000 (21:04 +0100)]
bash: update 5.0 -> 5.1

[RP: Add aclocal support and patch m4 handling to adapt to OE]
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/selftest/imagefeatures: adding fitImage initramfs bundle testcase
Abdellatif El Khlifi [Tue, 19 Jan 2021 10:53:03 +0000 (10:53 +0000)]
oeqa/selftest/imagefeatures: adding fitImage initramfs bundle testcase

This commit provides a testcase for the initramfs bundle support implemented
in kernel-fitimage.bbclass

The testcase verifies the content of the initramfs bundle node in the FIT
Image Tree Source (its).

The testcase is self-contained and the configurations are set by the test case itself.

To verify the initramfs bundle support, the testcase uses beaglebone-yocto machine.

This testcase can be run through the following command:

oe-selftest -r fitimage.FitImageTests.test_initramfs_bundle

Change-Id: I8ab8abf2c150ea515fd439784eb20c6b092bfbc5
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel: skip installing fitImage when using Initramfs bundles
Abdellatif El Khlifi [Tue, 19 Jan 2021 10:53:02 +0000 (10:53 +0000)]
kernel: skip installing fitImage when using Initramfs bundles

When including an initramfs bundle inside a FIT image, the fitImage is created
after the install task by do_assemble_fitimage_initramfs.

This happens after the generation of the initramfs bundle
(done by do_bundle_initramfs).

So, at the level of the install task we should not try to install the fitImage.
The fitImage is still not generated yet.

After the generation of the fitImage, the deploy task copies the fitImage from
the build directory to the deploy folder.

Change-Id: I3eaa6bba1412f388f710fa0f389f66631c1c4826
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel-fitimage: adding support for Initramfs bundle and u-boot script
Abdellatif El Khlifi [Tue, 19 Jan 2021 10:53:01 +0000 (10:53 +0000)]
kernel-fitimage: adding support for Initramfs bundle and u-boot script

This commit adds Initramfs bundle support to the FIT image in addition
to u-boot boot script capability.

These new features are selectable.

In case of Initramfs, the kernel is configured to be bundled with the rootfs
in the same binary (ie: zImage-initramfs-<machine>.bin). When the kernel is
copied to RAM and executed, it unpacks the Initramfs rootfs.

For more information about Initramfs please read:

https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt

For more details about the Initramfs bundle and boot script implementation
please check the kernel-fitimage.bbclass paragraph in Yocto reference
or mega manual.

Current limitations:

- Initramfs bundle FIT support has been tested on ARM 32-bit
- The kernel image type in case of ARM 32-bit is zImage

Change-Id: I901bfd899e8d733c5b9a2b6645b1d4748f4b1fda
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoapt: Fix do_compile error when enable ccache
Robert Yang [Tue, 19 Jan 2021 09:23:45 +0000 (01:23 -0800)]
apt: Fix do_compile error when enable ccache

Fixed:
apt-pkg/libapt-pkg.so.5.0.2: undefined reference to `ZSTD_endStream'
collect2: error: ld returned 1 exit status

This is because ccache-native depends on zstd-native which makes apt wronly
find it. Disable zstd for apt to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache.bbclass: Use ccache-native and disable ccache for native recipes
Robert Yang [Tue, 19 Jan 2021 09:23:44 +0000 (01:23 -0800)]
ccache.bbclass: Use ccache-native and disable ccache for native recipes

Since host's ccache is not reliable, so disable ccache for native recipes and
use ccache-native for other types of recipes. We need disable ccache for native
recipes is because ccache-native now depends on cmake-native which causes
circular dependencies, and it's not easy to break the circular.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoRevert "ccache.bbclass: use ccache from host distribution"
Robert Yang [Tue, 19 Jan 2021 09:23:43 +0000 (01:23 -0800)]
Revert "ccache.bbclass: use ccache from host distribution"

This reverts commit f5b29367af4d8e5daea5771264774aa49519f9a8.

Will use ccache-native which is more reliable.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc: Backport patch to resolve i*86 tune configuration overrides
Nathan Rossi [Tue, 19 Jan 2021 08:12:51 +0000 (08:12 +0000)]
gcc: Backport patch to resolve i*86 tune configuration overrides

Upstream has merged a change to handle detection of target overrides so
that they are only applied as required. Backport this patch from
upstream and remove the OE specific patch.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoappliance: Add VHD/VHDX generation
Sinan Kaya [Sun, 17 Jan 2021 14:25:19 +0000 (15:25 +0100)]
appliance: Add VHD/VHDX generation

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agometa/classes: Add supprot for WIC<>VHD/VHDX conversion
Sinan Kaya [Sun, 17 Jan 2021 14:25:18 +0000 (15:25 +0100)]
meta/classes: Add supprot for WIC<>VHD/VHDX conversion

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Co-Developed-by: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorunqemu: Add support for VHD/VHDX rootfs
Sinan Kaya [Sun, 17 Jan 2021 14:25:17 +0000 (15:25 +0100)]
runqemu: Add support for VHD/VHDX rootfs

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agop11-kit: upgrade 0.23.21 -> 0.23.22
Lee Chee Yang [Mon, 18 Jan 2021 09:37:31 +0000 (17:37 +0800)]
p11-kit: upgrade 0.23.21 -> 0.23.22

https://github.com/p11-glue/p11-kit/releases/tag/0.23.22

Release notes:
Fix memory-safety issues that affect the RPC protocol (CVE-2020-29361, CVE-2020-29362, and CVE-2020-29363), discovered and fixed by David Cook
anchor: Prefer persistent format when storing anchor [#329]
common: Fix infloop in p11_path_build [#326, #327]
proxy: C_CloseAllSessions: Make sure that calloc args are non-zero [#325]
common: Check for a NULL locale before freeing it [#321]
Build and test fixes [#313, #315, #317, #318, #319, #323, #330, #333, #334, #335, #338, #339]

https://github.com/p11-glue/p11-kit/commit/c4e75e10021ce86ab42682ea4936dce94ced2f77
patch to fix trailing newline using custom_target() caused error
with DISTRO_FEATURES api-documentation due to meson bugs, enable
manpages PACKAGECONFIG should prevent this error.
| warning: failed to load external entity "../version.xml"
| ../p11-kit-docs.xml:11: parser error : Failure to process entity version
|  <releaseinfo>for p11-kit &version;</releaseinfo>
|                                    ^
| ../p11-kit-docs.xml:11: parser error : Entity 'version' not defined
|  <releaseinfo>for p11-kit &version;</releaseinfo>
|                                    ^
| unable to parse ../p11-kit-docs.xml

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/ptest: print a warning if ptests failed
Alexander Kanavin [Sat, 19 Dec 2020 17:29:08 +0000 (18:29 +0100)]
oeqa/ptest: print a warning if ptests failed

This allows spotting ptest regressions without having hard ptest failures
(for that full ptest stability should be achieved).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoboost: drop arm-intrinsics.patch
Mans Rullgard [Sat, 16 Jan 2021 13:34:08 +0000 (13:34 +0000)]
boost: drop arm-intrinsics.patch

This patch makes gcc produce broken code.  It is unclear why it is there
in the first place.  Drop it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolttng-modules: Drop gcc7 related patch
Richard Purdie [Sat, 16 Jan 2021 12:52:16 +0000 (12:52 +0000)]
lttng-modules: Drop gcc7 related patch

We'd appear to be past the need for a gcc7 patch from 3 years ago now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolttng-modules: Upgrade 2.12.3->2.12.4
Richard Purdie [Sat, 16 Jan 2021 12:51:50 +0000 (12:51 +0000)]
lttng-modules: Upgrade 2.12.3->2.12.4

Drop backported patches.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotoolchain-shar-extract.sh: Handle special characters in script path
Andrey Mozzhuhin [Sat, 16 Jan 2021 08:18:41 +0000 (11:18 +0300)]
toolchain-shar-extract.sh: Handle special characters in script path

Extracting SDK archive may fail if the script is run using a path with
special characters such as space or asterisk. This is because the shell
interprets such characters after expanding the $0 variable.

Added quotes to all uses of the shell variable $0 to fix this.

Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobuildstats.bbclass: add functionality to collect build system stats
Sakib Sajal [Tue, 10 Nov 2020 15:59:15 +0000 (10:59 -0500)]
buildstats.bbclass: add functionality to collect build system stats

There are a number of timeout and hang defects where
it would be useful to collect statistics about what
is running on a build host when that condition occurs.

This adds functionality to collect build system stats
on a regular interval and/or on task failure. Both
features are disabled by default.

To enable logging on a regular interval, set:
BB_HEARTBEAT_EVENT = "<interval>"
BB_LOG_HOST_STAT_ON_INTERVAL = <boolean>
Logs are stored in ${BUILDSTATS_BASE}/<build_name>/host_stats

To enable logging on a task failure, set:
BB_LOG_HOST_STAT_ON_FAILURE = "<boolean>"
Logs are stored in ${BUILDSTATS_BASE}/<build_name>/build_stats

The list of commands, along with the desired options, need
to be specified in the BB_LOG_HOST_STAT_CMDS variable
delimited by ; as such:
BB_LOG_HOST_STAT_CMDS = "command1 ; command2 ;... ;"

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomusl/glibc: Document assembly file directive fix
Khem Raj [Fri, 15 Jan 2021 19:09:16 +0000 (11:09 -0800)]
musl/glibc: Document assembly file directive fix

It has been fixed in binutils so we want to drop it with binutils 2.36
upgrade when it happens

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto: remove 5.8 recipes
Bruce Ashfield [Sat, 16 Jan 2021 03:57:19 +0000 (22:57 -0500)]
linux-yocto: remove 5.8 recipes

5.8 is EOL upstream, and we now have 5.10 available as the
latest -stable kernel.

We'll keep 5.4, 5.10 and -dev (5.11) as the active kernels
for the upcoming release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodeb: do not insert feed uris if apt not installed
Hongxu Jia [Sat, 16 Jan 2021 03:49:11 +0000 (11:49 +0800)]
deb: do not insert feed uris if apt not installed

- The dir /etc/apt was created in package apt, if package apt was not
installed, there is no need to insert package feed. Otherwise, it
will fail with no such dir

- Output the result of apt install

- Explicitly trust the deb package repository from build
This could avoid apt install warning:
...
WARNING: The following packages cannot be authenticated!
...

- Also trust the inserted deb package repository from PACKAGE_FEED_URIS

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodpkg: add nativesdk support
hongxu [Sat, 16 Jan 2021 03:47:19 +0000 (11:47 +0800)]
dpkg: add nativesdk support

- Add nativesdk support and override EXTRA_OECONF and PROV for
nativesdk

- Replace ${bindir} with ${STAGING_BINDIR_NATIVE} for perl-native
shebang to fix QA error of shebang too long in nativesdk build

- Conditionally (except musl) add ldconfig to runtime depends to
fix the following issue on target
[snip]
...
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and/sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
[snip]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoapt: add nativesdk support
hongxu [Fri, 15 Jan 2021 09:45:35 +0000 (17:45 +0800)]
apt: add nativesdk support

1. Add nativesdk support
- Apply the same patches of native
- Generate the same apt.conf.sample of native

2. Create user '_apt' to fix apt runtime warning
[snip]
$ apt update
...
W: No sandbox user '_apt' on the system, can not drop privileges
[snip]

RP: Add comment about need to user
RP: Add user to selftest static-passwd
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobinutils: Fix CVE-2020-35448
Yi Fan Yu [Fri, 15 Jan 2021 17:41:29 +0000 (12:41 -0500)]
binutils: Fix CVE-2020-35448

Fix related to a buffer overflow in bfd library

CVE Details https://nvd.nist.gov/vuln/detail/CVE-2020-35448

Upstream Tracking https://sourceware.org/bugzilla/show_bug.cgi?id=26574

Patch from Upstream
    https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;
    h=8642dafaef21aa6747cec01df1977e9c52eb4679

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agozip: whitelist CVE-2018-13410 and CVE-2018-13684
Mikko Rapeli [Fri, 15 Jan 2021 17:05:44 +0000 (19:05 +0200)]
zip: whitelist CVE-2018-13410 and CVE-2018-13684

https://nvd.nist.gov/vuln/detail/CVE-2018-13410 is disputed and
also Debian considers it not a vulnerability:

https://security-tracker.debian.org/tracker/CVE-2018-13410

http://seclists.org/fulldisclosure/2018/Jul/24
"Negligible security impact, would involve that a untrusted party controls the -TT value."

https://nvd.nist.gov/vuln/detail/CVE-2018-13684 is not for zip, also Debian concludes this:

https://security-tracker.debian.org/tracker/CVE-2018-13684

"NOT-FOR-US: smart contract implementation for ZIP"

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorecipetool: create: only add npmsw url if required
Kamel Bouhara [Thu, 14 Jan 2021 07:12:35 +0000 (08:12 +0100)]
recipetool: create: only add npmsw url if required

Before adding a npmsw fetcher to a recipe we
should first check if the generated shrinkwrap file
contains dependencies.

Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonpm.bbclass: make shrinkwrap file optional
Kamel Bouhara [Thu, 14 Jan 2021 07:12:34 +0000 (08:12 +0100)]
npm.bbclass: make shrinkwrap file optional

Some packages don't have shrinkwrap file which
means no npmsw uri is provided in the recipe.

Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokmod: update 27 -> 28
Scott Branden [Thu, 14 Jan 2021 00:20:00 +0000 (16:20 -0800)]
kmod: update 27 -> 28

Upgrade kmod from 27 to 28.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix do_compile error
Changqing Li [Thu, 14 Jan 2021 07:53:38 +0000 (15:53 +0800)]
qemu: fix do_compile error

Fix error like:
Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibgpg-error: upgrade 1.39 -> 1.41
zhengruoqin [Thu, 14 Jan 2021 07:00:50 +0000 (15:00 +0800)]
libgpg-error: upgrade 1.39 -> 1.41

refresh pkgconfig.patch

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibevdev: upgrade 1.10.0 -> 1.10.1
zhengruoqin [Thu, 14 Jan 2021 07:00:26 +0000 (15:00 +0800)]
libevdev: upgrade 1.10.0 -> 1.10.1

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorng-tools: upgrade 6.10 -> 6.11
Yi Zhao [Thu, 14 Jan 2021 05:49:07 +0000 (13:49 +0800)]
rng-tools: upgrade 6.10 -> 6.11

Remove backported patches.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>