]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
4 years agobison: upgrade 3.7.4 -> 3.7.5
zhengruoqin [Thu, 28 Jan 2021 10:05:34 +0000 (18:05 +0800)]
bison: upgrade 3.7.4 -> 3.7.5

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogtk-doc: upgrade 1.33.1 -> 1.33.2
Wang Mingyu [Thu, 28 Jan 2021 07:57:15 +0000 (15:57 +0800)]
gtk-doc: upgrade 1.33.1 -> 1.33.2

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoutil-macros: upgrade 1.19.2 -> 1.19.3
Wang Mingyu [Thu, 28 Jan 2021 07:02:29 +0000 (15:02 +0800)]
util-macros: upgrade 1.19.2 -> 1.19.3

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostress-ng: upgrade 0.12.01 -> 0.12.02
Wang Mingyu [Thu, 28 Jan 2021 06:40:06 +0000 (14:40 +0800)]
stress-ng: upgrade 0.12.01 -> 0.12.02

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoltp: upgrade 20200930 -> 20210121
Wang Mingyu [Thu, 28 Jan 2021 06:14:25 +0000 (14:14 +0800)]
ltp: upgrade 20200930 -> 20210121

0001-ltp-pan-Use-long-long-int-to-print-time_t.patch
removed since it is included in 20210121

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibsolv: upgrade 0.7.16 -> 0.7.17
Wang Mingyu [Thu, 28 Jan 2021 06:11:59 +0000 (14:11 +0800)]
libsolv: upgrade 0.7.16 -> 0.7.17

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibjitterentropy: upgrade 3.0.0 -> 3.0.1
Wang Mingyu [Thu, 28 Jan 2021 05:46:18 +0000 (13:46 +0800)]
libjitterentropy: upgrade 3.0.0 -> 3.0.1

-License-Update: Copyright year updated to 2021.

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibcap: upgrade 2.46 -> 2.47
Wang Mingyu [Thu, 28 Jan 2021 05:33:24 +0000 (13:33 +0800)]
libcap: upgrade 2.46 -> 2.47

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonpm.bbclass: use python3 for npm config
Vyacheslav Yurkov [Thu, 28 Jan 2021 18:42:46 +0000 (19:42 +0100)]
npm.bbclass: use python3 for npm config

python2-native executable is not available in sysroot anymore, which
causes compilation of some nodejs modules to fail. Switch to python3 as a
default python version.

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocmake: Upgrade 3.19.2 -> 3.19.3
Vinícius Ossanes Aquino [Thu, 28 Jan 2021 20:43:42 +0000 (20:43 +0000)]
cmake: Upgrade 3.19.2 -> 3.19.3

Signed-off-by: Vinícius Ossanes Aquino <voa.aquino@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowayland: upgrade 1.18.0 -> 1.19.0
Denys Dmytriyenko [Thu, 28 Jan 2021 23:01:43 +0000 (18:01 -0500)]
wayland: upgrade 1.18.0 -> 1.19.0

This release mostly contains bug fixes and minor protocol updates.

Related patches were rebased and backported patches dropped.

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglibc: fix CVE-2020-27618
Yi Fan Yu [Thu, 28 Jan 2021 22:23:31 +0000 (17:23 -0500)]
glibc: fix CVE-2020-27618

iconv: Accept redundant shift sequences in IBM1364

Reference:
https://bugzilla.redhat.com/show_bug.cgi?id=1893708

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolrzsz: Fix to work with autoconf 2.70
Richard Purdie [Thu, 28 Jan 2021 21:54:43 +0000 (21:54 +0000)]
lrzsz: Fix to work with autoconf 2.70

Add the missing gettext version needed for autoconf 2.70.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoruby: Fix to work with autoconf 2.70
Richard Purdie [Thu, 28 Jan 2021 22:32:26 +0000 (22:32 +0000)]
ruby: Fix to work with autoconf 2.70

Drop a macro we don't need which was breaking with autoconf 2.70.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomsmtp: Fix to work with autoconf 2.70
Richard Purdie [Thu, 28 Jan 2021 22:31:10 +0000 (22:31 +0000)]
msmtp: Fix to work with autoconf 2.70

Add the required gettext version macro to work with the new autoconf
version.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoat: Upgrade 3.1.23 -> 3.2.1
Richard Purdie [Thu, 28 Jan 2021 22:25:24 +0000 (22:25 +0000)]
at: Upgrade 3.1.23 -> 3.2.1

This fixes flex issues with autoconf 2.70 rather than backporting patches.

Patches refreshed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopseudo: Update to include passwd and file renaming fixes
Richard Purdie [Thu, 28 Jan 2021 21:28:23 +0000 (21:28 +0000)]
pseudo: Update to include passwd and file renaming fixes

Pulls in:
  pseudo_client: Ensure renames update open fd file paths
  pseudo_client.c: Rebuild passwd paths after chroot

which should fix issues seen in apt package index creation, new
binutils and other autobuilder race issues in pseudo amongst other
issues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogtk-doc: Disable dependencies in native case
Richard Purdie [Thu, 28 Jan 2021 08:54:55 +0000 (08:54 +0000)]
gtk-doc: Disable dependencies in native case

Ensure that dependencies like qemu-native aren't added in the native
case since we don't want docs generate for native recipes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agometa: Clean up various class-native* RDEPENDS overrides
Richard Purdie [Wed, 27 Jan 2021 16:13:29 +0000 (16:13 +0000)]
meta: Clean up various class-native* RDEPENDS overrides

With PACKAGES functioning more correctly for native recipes combined
with classextend improvements over the years, there are various overrides
of RDEPENDS which look unecessary now, clean them up.

There some some minor changes in dependencies, specifically:

"python3-numpy-native.do_populate_sysroot" -> "python3-native.do_populate_sysroot"
"python3-mako-native.do_populate_sysroot" -> "python3-native.do_populate_sysroot"
"itstool-native.do_populate_sysroot" -> "libxml2-native.do_populate_sysroot"

however there are already:

XXX-native.do_prepare_recipe_ssysroot -> YYY-native.do_populate_sysroot

mappings from DEPENDS so this is effectively a null op.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonative: Stop clearing PACKAGES
Richard Purdie [Wed, 27 Jan 2021 14:48:21 +0000 (14:48 +0000)]
native: Stop clearing PACKAGES

Native recipes have been special and they don't have packages generated
from them. The RDEPENDS/RPROVIDES and other runtime package specific
variables can contain important data about dependencies recipes need
though and currently it is required to write this information explicitly
in the native case.

We now delete the packaging tasks for native recipes which removes the
need to clear PACKAGES. The next step to improve the metadata is to
stop clearing it and ensure any entries in these variables are remapped
appropriately. The R* variables were already being processed by the class
extension code but the implementation was suboptimal.

This patch stops clearing PACKAGES and PACKAGES_DYNAMIC and fixes the places
where that caused issues in OE-Core, for example PACKAGES additions in anonymous
python without the "-native" suffix and a case where the included classes
caused a self reference in DEPENDS which would once have been removed by
the previous code.

The implementation uses datastore/parser parameters to ensure that the
variable overrides are not overwritten when calling setVar which is appropriate
for a function as close to the core as this one is.

Some now unneeded code in python3-setuptools is dropped, there are further
changes like this which can follow.

This change was verified with OE-Core by comparing task-depends.dot generated
by "bitbake world -g" before and after the change, the files were identical.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobitbake.conf/python: Drop setting RDEPENDS/RPROVIDES default
Richard Purdie [Wed, 27 Jan 2021 14:46:43 +0000 (14:46 +0000)]
bitbake.conf/python: Drop setting RDEPENDS/RPROVIDES default

We never recommend setting RDEPENDS or RPROVIDES without a package name
against them. The default in bitbake.conf is legacy only, drop it.

The python recipe was trying to add to the empty variable in the native case
fix that too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopackage_rpm: Clean up unset runtime package variable handling
Richard Purdie [Wed, 27 Jan 2021 21:48:54 +0000 (21:48 +0000)]
package_rpm: Clean up unset runtime package variable handling

If the R* runtime package variables are unset it could cause trackbacks. There
were some fallbacks already, clean this up to handle consistently.

The code was expecting strings but setting defaults of empty lists
which silently were converted to strings by the "or" statements which
was a nightmare to understand or alter.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonativesdk-buildtools-perl-dummy: Add missing entries for nativesdk-automake
Richard Purdie [Thu, 28 Jan 2021 08:33:03 +0000 (08:33 +0000)]
nativesdk-buildtools-perl-dummy: Add missing entries for nativesdk-automake

This allows the hardcoded nativesdk dependency hacking in the
automake recipe to be dropped and matches what autoconf is doing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogobject-introspection: Fix variable override order
Richard Purdie [Wed, 27 Jan 2021 14:14:40 +0000 (14:14 +0000)]
gobject-introspection: Fix variable override order

The DEPENDS variable override ordering here was almostly certainly
incorrect and led to weird behaviour when making changes elsewhere.
Correct it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobuildhistory.bbclass: avoid exception for empty BUILDHISTORY_FEATURES variable
Peter Bergin [Fri, 29 Jan 2021 09:50:54 +0000 (10:50 +0100)]
buildhistory.bbclass: avoid exception for empty BUILDHISTORY_FEATURES variable

An exception is fired when a BuildStarted event is sent to buildhistory bbclass
and the variable BUILDHISTORY_FEATURES is not set.

    ERROR: Execution of event handler 'buildhistory_eventhandler' failed
    Traceback (most recent call last):
      File "<...>/meta/classes/buildhistory.bbclass", line 862, in buildhistory_eventhandler(e=<bb.event.BuildStarted object at 0x7f94c3810250>):
         python buildhistory_eventhandler() {
        >    if e.data.getVar('BUILDHISTORY_FEATURES').strip():
                 reset = e.data.getVar("BUILDHISTORY_RESET")
    AttributeError: 'NoneType' object has no attribute 'strip'

This can happen in a multiconfig build where the default configuration use the
buildhistory class but not the configuration in mc. It should be a rare case that
this happens and it was found in a missconfigured build.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoshaderc: add spirv-headers as dependencie
Jose Quaresma [Sun, 24 Jan 2021 18:26:47 +0000 (18:26 +0000)]
shaderc: add spirv-headers as dependencie

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agospirv-tools: cleanup
Jose Quaresma [Sun, 24 Jan 2021 18:26:45 +0000 (18:26 +0000)]
spirv-tools: cleanup

- spirv-headers is provived in a separete receipe, so add it as dependencie
- add a new package spirv-tools-lesspipe that needs bash
- remove unneeded external sources

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agospirv-headers: Add receipe
Jose Quaresma [Sun, 24 Jan 2021 18:26:44 +0000 (18:26 +0000)]
spirv-headers: Add receipe

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoshaderc: fix the build with glslang 11.1.0
Jose Quaresma [Sun, 24 Jan 2021 18:07:58 +0000 (18:07 +0000)]
shaderc: fix the build with glslang 11.1.0

Drop patches:
    * 0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
      is rejected upstream and is not need when glslang as shared libs.

Update pacthes:
    * 0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
      renamed and refreshed from 0003-cmake-de-vendor-libs-and-disable-git-versioning.patch.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoshaderc: avoid reproducible issues
Jose Quaresma [Sun, 24 Jan 2021 18:07:57 +0000 (18:07 +0000)]
shaderc: avoid reproducible issues

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglslang: disable precompiled header
Jose Quaresma [Wed, 27 Jan 2021 11:52:32 +0000 (11:52 +0000)]
glslang: disable precompiled header

- precompiled headers have reproducible issues [1]

[1] https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20210125-3iawhiyz/packages/diff-html

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglslang: enable shared libs
Jose Quaresma [Sun, 24 Jan 2021 18:07:56 +0000 (18:07 +0000)]
glslang: enable shared libs

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglslang: upgrade 8.13.3743 -> 11.1.0
Jose Quaresma [Sun, 24 Jan 2021 18:07:55 +0000 (18:07 +0000)]
glslang: upgrade 8.13.3743 -> 11.1.0

License-Update: Add additional licenses

- [1] BSD-2-Clause & MIT & Apache-2.0
- [2] GPL-3-with-bison-exception

[1] https://github.com/KhronosGroup/glslang/commit/2962be40baff69848fd786c609289666b60741b8
[2] https://github.com/KhronosGroup/glslang/commit/14a2cfbc72f2bb2e060fdfe3fbe6a4d54e3817a8

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomaintainers: update own email address
Denys Dmytriyenko [Thu, 28 Jan 2021 23:16:01 +0000 (18:16 -0500)]
maintainers: update own email address

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoinsane: native-last: Only print classes inherited after native/nativesdk
Tomasz Dziendzielski [Wed, 27 Jan 2021 21:33:11 +0000 (22:33 +0100)]
insane: native-last: Only print classes inherited after native/nativesdk

For usability, only print the classes inherited after native/nativesdk
which makes it easier for the user to see where the problem is.

Realted to [YOCTO #5729].

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoinsane: Add missing INSANE_SKIP mechanism for native-last QA check
Tomasz Dziendzielski [Wed, 27 Jan 2021 21:33:10 +0000 (22:33 +0100)]
insane: Add missing INSANE_SKIP mechanism for native-last QA check

Ensure that the native-last QA check can be controlled by the INSANE_SKIP
variable (realted to [YOCTO #5729]).

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto*: add features/gpio/mockup.scc to KERNEL_FEATURES
Sakib Sajal [Wed, 27 Jan 2021 18:03:32 +0000 (13:03 -0500)]
linux-yocto*: add features/gpio/mockup.scc to KERNEL_FEATURES

add features/gpio/mockup.scc to KERNEL_FEATURES when ptest
is enabled as it is required for testing libgpiod.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostaging: Clean up files installed into the sysroot
Richard Purdie [Wed, 27 Jan 2021 17:15:17 +0000 (17:15 +0000)]
staging: Clean up files installed into the sysroot

There are a variety of files being installed into $datadir which we
don't need. Pick the top "offenders" which amount of thousands of files
and simply don't install them. These include things like test data,
terminfo data, locale data for native tools and so on. This saves
copying these files into native and target sysroots and should improve
performance (smaller sstate, fewer files to copy around).

With this and the python recipe change, alsa-tools went from:

recipe-sysroot: 18357
recipe-sysroot-native: 14129

to

recipe-sysroot: 10809
recipe-sysroot-native: 8079

which is a decent improvement.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3: Avoid installing test data into recipe-sysroot
Richard Purdie [Wed, 27 Jan 2021 17:12:46 +0000 (17:12 +0000)]
python3: Avoid installing test data into recipe-sysroot

There are several thousand files in the test directory which we don't need.
Adding these for the native and target sysroots is a crazy amount of files
to be throwing around needlessly. Delete the files from the sysroot side
of things to tidy up the sysroots and improve performance.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoncurses: Don't put terminfo into the sysroot
Richard Purdie [Wed, 27 Jan 2021 12:13:28 +0000 (12:13 +0000)]
ncurses: Don't put terminfo into the sysroot

This recudes the file count from ~2850 to ~100 which is a huge win
for reducing build directory clutter, its unlikely anything uses the
terminfo data or man pages in the sysroot. This is especially helpful
as we usually end up with two copies of these sets of files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoexternalsrc: Detect code changes in submodules
Tomasz Dziendzielski [Wed, 27 Jan 2021 08:33:31 +0000 (09:33 +0100)]
externalsrc: Detect code changes in submodules

The srctree_hash was calculated only from main source directory ignoring
changes in submodules.

[YOCTO #13748]

Use submodule--helper to determine all submodules, and calculate hash
from all git tree objects names combined.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/ethernet_ip_connman : add test for network connections
Teoh Jay Shen [Wed, 27 Jan 2021 01:36:13 +0000 (09:36 +0800)]
oeqa/ethernet_ip_connman : add test for network connections

This test mimic the ethernet_static_ip_set_in_connman and ethernet_get_IP_in_connman_via_DHCP test case from oeqa/manual/bsp-hw.json.
The ethernet_static_ip_set_in_connman and ethernet_get_IP_in_connman_via_DHCP manual test case should be remove from oeqa/manual/bsp-hw.json if this patch get merged.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosudo: upgrade 1.9.5p1 -> 1.9.5p2
Yi Fan Yu [Tue, 26 Jan 2021 23:13:36 +0000 (18:13 -0500)]
sudo: upgrade 1.9.5p1 -> 1.9.5p2

Notable fix: CVE-2021-3156

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostrace: increase ptest timeout duration 120->240s
Yi Fan Yu [Tue, 26 Jan 2021 22:37:22 +0000 (17:37 -0500)]
strace: increase ptest timeout duration 120->240s

solve qual_fault-syscall.test and qual_fault.test
failing due to timeout.

Bug 14165

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolib/oe/package_manager: Do not pass stderr to package manager as an argument
Tomasz Dziendzielski [Tue, 26 Jan 2021 16:35:13 +0000 (17:35 +0100)]
lib/oe/package_manager: Do not pass stderr to package manager as an argument

The cmd redirected stderr to stdout that was then assigned to variable
with pkgs to install. Then this variable was passed to package manager
that then tried to install it and generated confusing warnings.

For example this variable could contain:
| ['(en_US.UTF-8)', 'LC_ALL:', 'bash:', 'cannot', 'change', 'locale', 'setlocale:', 'warning:']

and the warning was:

| WARNING: addon-bci-1.0-r0 do_populate_sdk: Unable to install packages.
| Command 'PATH/usr/bin/opkg ... install (en_US.UTF-8) LC_ALL: bash:
| cannot change locale setlocale: warning:' returned 255:
| Collected errors:
|  * opkg_prepare_url_for_install: Couldn't find anything to satisfy '(en_US.UTF-8)'.

In this change I remove stderr redirection to stdout and pass it to
bb.note instead.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocore-image-tiny-initramfs: Add compatiblity for aarch64
Jonathan Richardson [Mon, 25 Jan 2021 22:58:04 +0000 (14:58 -0800)]
core-image-tiny-initramfs: Add compatiblity for aarch64

Update the host compatibility to include aarch64.

Signed-off-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomusl: Update to 1.2.2 release
Khem Raj [Tue, 26 Jan 2021 00:50:04 +0000 (16:50 -0800)]
musl: Update to 1.2.2 release

Detailed logs are here [1]

85e0e351 release 1.2.2
3953aecb fix VIDIOC_DQEVENT (v4l2) ioctl fallback for pre-5.6 kernels
30f55067 fix v4l2 buffer ioctl fallbacks for pre-5.6 kernels
db981ffb sh: fix incorrect mcontext_t member naming

[1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1e4204d522670a1d8b8ab85f1cfefa960547e8af..85e0e3519655220688e757b9d5bfd314923548bd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosanity.bbclass: sanity check for if bitbake is present in PATH
Dorinda [Tue, 26 Jan 2021 01:33:59 +0000 (02:33 +0100)]
sanity.bbclass: sanity check for if bitbake is present in PATH

If a user executes the environment script instead of sourcing it,
there's an error about an empty element in PATH. This is because
bitbake isn't present in environment variable PATH. Hence, this
patch adds a sanity check to verify if bitbake is present in
PATH and if bitbake isn't present issue a warning message.

[YOCTO #13822]

Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosanity: Verify that user isn't building in PSEUDO_IGNORE_PATHS
Dorinda [Tue, 26 Jan 2021 00:53:47 +0000 (01:53 +0100)]
sanity: Verify that user isn't building in PSEUDO_IGNORE_PATHS

If a user builds in a path in PSEUDO_IGNORE_PATHS, random failures
are generated. Hence this patch adds a sanity check in sanity.bbclass
to ensure that a user isn't building in PSEUDO_IGNORE_PATHS.

[YOCTO #14179]

Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotimezone: upgrade to 2021a
Ovidiu Panait [Mon, 25 Jan 2021 08:45:52 +0000 (10:45 +0200)]
timezone: upgrade to 2021a

Release 2021a - 2021-01-24 10:54:57 -0800

  Changes to future timestamps

    South Sudan changes from +03 to +02 on 2021-02-01 at 00:00.
    (Thanks to Steffen Thorsen.)

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoiproute2: Add subpackage for rdma command
Alan Perry [Mon, 25 Jan 2021 07:21:19 +0000 (07:21 +0000)]
iproute2: Add subpackage for rdma command

The rdma command is part of iproute2 and is used to query or set the RDMA
configuration where applicable. This patch adds options to build it
and include it.

Signed-off-by: Alan Perry <alanp@snowmoose.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibmodulemd: upgrade 2.11.2 -> 2.12.0
zhengruoqin [Mon, 25 Jan 2021 05:42:39 +0000 (13:42 +0800)]
libmodulemd: upgrade 2.11.2 -> 2.12.0

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoopenssl: Enable srp algorithm
akuster [Sun, 24 Jan 2021 15:03:20 +0000 (07:03 -0800)]
openssl: Enable srp algorithm

This is still needed by libest in meta-security

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Cc: Shachar Menashe <shachar@vdoo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoinsane: Add test for native/nativesdk inherit order
Tomasz Dziendzielski [Sun, 24 Jan 2021 09:55:45 +0000 (10:55 +0100)]
insane: Add test for native/nativesdk inherit order

Classes native/nativesdk should be inherited last to prevent unexpected
behaviour.

[YOCTO #5729]

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agometa: Fix native inheritance order in recipes
Tomasz Dziendzielski [Sun, 24 Jan 2021 09:55:46 +0000 (10:55 +0100)]
meta: Fix native inheritance order in recipes

Classes native/nativesdk should be inherited last to prevent unexpected
behaviour.

See [YOCTO #5729] for details.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoselftest/devtool: Add modify_localfiles_only test checking symlink path
Tomasz Dziendzielski [Sat, 23 Jan 2021 15:15:10 +0000 (16:15 +0100)]
selftest/devtool: Add modify_localfiles_only test checking symlink path

If recipe uses only file:// fetcher devtool unpacks sources under
oe-local-files/ and adds symlink in source root directory. We need to
verify if the symlink in subdirectory has correct path.

See [YOCTO #13738] for details.

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibpam: add ptest support
Mingli Yu [Fri, 22 Jan 2021 06:10:19 +0000 (14:10 +0800)]
libpam: add ptest support

Add ptest support.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoovmf-shell-image: image is only buildable on x86-64
Ross Burton [Fri, 22 Jan 2021 12:52:07 +0000 (12:52 +0000)]
ovmf-shell-image: image is only buildable on x86-64

This image is only buildable for x86-64, so add a COMPATIBLE assignment
to ensure it isn't attempted on others.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocore-image-sato-sdk-ptest: these images need ptest
Ross Burton [Fri, 22 Jan 2021 12:52:06 +0000 (12:52 +0000)]
core-image-sato-sdk-ptest: these images need ptest

As this image isn't buildable without ptest (the packages won't exist),
depend on the ptest DISTRO_FEATURE to ensure we don't try and build it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolib/oe/package_manager: ensure repodata is wiped
Ross Burton [Fri, 22 Jan 2021 12:52:05 +0000 (12:52 +0000)]
lib/oe/package_manager: ensure repodata is wiped

When building package indexes for RPM feeds, delete repodata first to
be absolutely sure that the indexes are up to date.

We've seen some mysterious failures where the repodata doesn't match
the repository, so hopefully this will stop that happening.

[ YOCTO #14190 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodtc: improve reproducibility
Oleksiy Obitotskyy [Fri, 22 Jan 2021 11:52:50 +0000 (03:52 -0800)]
dtc: improve reproducibility

Makefile override CFLAGS, so -fmacro/debug-prefix-map
optiions was omitted and binaries contains absolute
patch to sources.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosocat: upgrade 1.7.3.4 ->1.7.4.1
Wang Mingyu [Fri, 22 Jan 2021 07:15:46 +0000 (15:15 +0800)]
socat: upgrade 1.7.3.4 ->1.7.4.1

README updated:
    version updated
    add descrition of platform specifics - Debian

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-check: replace Looseversion with custom version class
Lee Chee Yang [Fri, 22 Jan 2021 10:07:19 +0000 (18:07 +0800)]
cve-check: replace Looseversion with custom version class

The way distutils.version.LooseVersion compare version are tricky, it treat
all these ( "1.0-beta2", "1.0-rc1", "1.0A", "1.0p2" and "1.0pre1") as greater
version than "1.0". This might be right for "1.0A" and "1.0p1" but not for
the rest, also these version could be confusing, the "p" in "1.0p1" can be
"pre" or "patched" version or even other meaning.

Replace Looseversion with custom class, it uses regex to capture common
version format like "1.1.1" or tag format using date like "2020-12-12" as
release section, check for following known string/tags ( beta, rc, pre, dev,
alpha, preview) as pre-release section, any other trailing characters
are difficult to understand/define so ignore them. Compare release
section and pre-release section saperately.

included selftest for the version class.

[YOCTO#14127]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>