]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
5 years agoopkg-utils: Do not use -D option to binutils archiver kraj/busybox-ar
Khem Raj [Wed, 24 Jun 2020 22:29:52 +0000 (15:29 -0700)] 
opkg-utils: Do not use -D option to binutils archiver

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agorunit: Add runit and related recipes
Khem Raj [Sat, 27 May 2017 22:39:44 +0000 (15:39 -0700)] 
runit: Add runit and related recipes

* Another init system, very small in size with application life
  cycle management
* Add runit-services recipe for additional runit services from void linux
* socklog is a system/kernel logger
* Add socklog-services to provide additional logging services

* disable the chkshsgr tests in socklog

Running the chkhsgr test during cross compile fails

./chkshsgr || ( cat warn-shsgr; exit 1 )
Oops. Your getgroups() returned 0, and setgroups() failed; this means
that I can't reliably do my shsgr test. Please either ``make'' as root
or ``make'' while you're in one or more supplementary groups.

All OE based targets have working getgroups()/setgroups()
implementation, so its a safe assumption and therefore make the test
to be a dummy

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agolinux-libc-headers: Check for asm/bpf_perf_event.h before multilibbing
Khem Raj [Wed, 27 May 2020 15:48:33 +0000 (08:48 -0700)] 
linux-libc-headers: Check for asm/bpf_perf_event.h before multilibbing

asm/bpf_perf_event.h does not exist in older kernels e.g. ( 4.1 )
this helps in using common header across multiple versions of kernel
going back

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agolto.inc: Add global LTO distro policy file
Khem Raj [Mon, 23 Mar 2020 23:23:18 +0000 (16:23 -0700)] 
lto.inc: Add global LTO distro policy file

Distros which want to enable LTO can utilize this file, it only covers
packages from OE-Core, other layers should include there own exclusion
list for recipe which dont work with LTO

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agoreport-error.bbclass: replace angle brackets with &lt; and &gt;
Changqing Li [Tue, 12 Nov 2019 08:32:45 +0000 (16:32 +0800)] 
report-error.bbclass: replace angle brackets with &lt; and &gt;

when we have below content in local.conf or auto.conf:
BUILDHISTORY_COMMIT_AUTHOR ?= "Khem Raj <raj.khem@gmail.com>"
send-error-report will fail with "HTTP Error 500: OK"

error-report-web do rudimentary check on all fields that are
passed to the graphs page to avoid any XSS happening, if contains
'<', the server will return error(Invalid characters in json).
fixed by use escape of <> to replace it.

NOTE: with this change, error-report-web need to add filter 'safe'
for the string wanted to display to avoid further HTML escaping
prior to output. Below is how the content displayed on webpage:
with the filter 'safe':
BUILDHISTORY_COMMIT_AUTHOR ?= "Khem Raj <raj.khem@gmail.com>"
without the filter 'safe':
BUILDHISTORY_COMMIT_AUTHOR ?= "Khem Raj &lt;raj.khem@gmail.com&gt;"

Another patch for error-report-web will send to yocto mail list.

[YOCTO #13252]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agoreport-error: Allow to upload reports automatically
Martin Jansa [Fri, 14 Mar 2014 18:12:43 +0000 (19:12 +0100)] 
report-error: Allow to upload reports automatically

* useful when distro wants to collect build statistics from
  all users/developers without any manual interaction from them

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
5 years agolinux-yocto: Add powerpc64le support
Khem Raj [Sat, 18 Jan 2020 19:36:00 +0000 (11:36 -0800)] 
linux-yocto: Add powerpc64le support

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agoqemuppc64: Add a QEMU machine definition for ppc64
Khem Raj [Sat, 28 Sep 2019 23:14:14 +0000 (16:14 -0700)] 
qemuppc64: Add a QEMU machine definition for ppc64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agoqemux86: Add identical qemux86copy variant for tests
Martin Jansa [Fri, 9 Mar 2012 06:56:57 +0000 (07:56 +0100)] 
qemux86: Add identical qemux86copy variant for tests

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
5 years agoRevert "classes/kernel: Use a copy of image for kernel*.rpm if fs doesn't support...
Richard Purdie [Tue, 23 Jun 2020 21:43:58 +0000 (22:43 +0100)] 
Revert "classes/kernel: Use a copy of image for kernel*.rpm if fs doesn't support symlinks"

This reverts commit 01831f9e76fd8b111a7ce70defa745e2c0ee151e.

5 years agodistro_alias: Remove unused grub-efi distro aliases
Jacob Kroon [Tue, 23 Jun 2020 12:53:04 +0000 (14:53 +0200)] 
distro_alias: Remove unused grub-efi distro aliases

The target architecture is no longer embedded in the native package names.
See OE-Core commit

 53d3f12739: grub-efi: change to generate EFI image in target package

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorecipes: Fix Upstream-Status Accepted -> Backport
Richard Purdie [Tue, 23 Jun 2020 11:26:27 +0000 (12:26 +0100)] 
recipes: Fix Upstream-Status Accepted -> Backport

It helps our stats tracking to use Backport consitently, it mreans the same
thing as Accepted in pretty much all cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibmodulemd: switch branch master -> main
Hongxu Jia [Tue, 23 Jun 2020 01:25:49 +0000 (09:25 +0800)] 
libmodulemd: switch branch master -> main

Upstream delete branch master, and convert it to main

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: Fix copy_file_rang02 for 32-bit arches
He Zhe [Tue, 23 Jun 2020 08:30:47 +0000 (16:30 +0800)] 
ltp: Fix copy_file_rang02 for 32-bit arches

Fix the following error.
copy_file_range02.c:139: FAIL: copy_file_range failed unexpectedly; expected EOVERFLOW, but got: EFBIG (27)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/kernel: Use a copy of image for kernel*.rpm if fs doesn't support symlinks
Yanfei Xu [Fri, 19 Jun 2020 11:47:27 +0000 (19:47 +0800)] 
classes/kernel: Use a copy of image for kernel*.rpm if fs doesn't support symlinks

Some filesystems don't support symlink, then you will get failure when
you install or update the kernel rpm package. Now we use a copy of
image for these filesystems instead of symlink.

Suggested-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoffmpeg: upgrade 4.2.3 -> 4.3
Andreas Müller [Mon, 22 Jun 2020 22:15:51 +0000 (00:15 +0200)] 
ffmpeg: upgrade 4.2.3 -> 4.3

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofile: upgrade 5.38 -> 5.39
Andreas Müller [Mon, 22 Jun 2020 22:15:50 +0000 (00:15 +0200)] 
file: upgrade 5.38 -> 5.39

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodesktop-file-utils: upgrade 0.24 -> 0.26
Andreas Müller [Mon, 22 Jun 2020 22:15:49 +0000 (00:15 +0200)] 
desktop-file-utils: upgrade 0.24 -> 0.26

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosqlite3: upgrade 3.32.2 -> 3.32.3
Andreas Müller [Mon, 22 Jun 2020 22:15:48 +0000 (00:15 +0200)] 
sqlite3: upgrade 3.32.2 -> 3.32.3

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibinput: upgrade 1.15.5 -> 1.15.6
Andreas Müller [Mon, 22 Jun 2020 22:15:47 +0000 (00:15 +0200)] 
libinput: upgrade 1.15.5 -> 1.15.6

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorootfs-postcommands: Enable rootfs_check_host_user_contaminated
Alex Kiernan [Mon, 22 Jun 2020 10:57:17 +0000 (11:57 +0100)] 
rootfs-postcommands: Enable rootfs_check_host_user_contaminated

Generate output for each contaminated path so it's visible in the main
log file, then enable rootfs_check_host_user_contaminated by default.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovulkan-headers: Fix upstream branch deletion issue
Richard Purdie [Tue, 23 Jun 2020 13:41:09 +0000 (14:41 +0100)] 
vulkan-headers: Fix upstream branch deletion issue

The upstream branch was deleted but the commit is in master so reference
that instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovalgrind: disable it for powerpc soft-float
Valentin Longchamp [Sat, 20 Jun 2020 13:10:46 +0000 (13:10 +0000)] 
valgrind: disable it for powerpc soft-float

valgrind doesn't build for powerpc soft-float. It is thus disabled for
such architectures.

Signed-off-by: Valentin Longchamp <valentin@longchamp.me>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotools-profile: disable valgrind for powerpc soft-float
Valentin Longchamp [Sat, 20 Jun 2020 13:10:45 +0000 (13:10 +0000)] 
tools-profile: disable valgrind for powerpc soft-float

Since valgrind does not build for powerpc soft-float, disable it from
the tools-profile packagegroup so that it can still be enabled for such
architectures (but without valgrind of course).

Signed-off-by: Valentin Longchamp <valentin@longchamp.me>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibuv: move from meta-oe to core for bind update
Armin Kuster [Mon, 22 Jun 2020 14:19:10 +0000 (07:19 -0700)] 
libuv: move from meta-oe to core for bind update

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoigt-gpu-tools: add new package
Arthur She [Mon, 22 Jun 2020 14:49:55 +0000 (07:49 -0700)] 
igt-gpu-tools: add new package

igt-gpu-tools is a collection of tools for development and testing of the DRM
drivers. (https://gitlab.freedesktop.org/drm/igt-gpu-tools)
This recipe is originally copied from meta-intel and added the following
modifications
1. Enable ARM architecture
2. Enable igt-runner
3. Build git HEAD code instead of a specific version
The original recipe in the meta-intel will be removed and replaced by
this one to avoid having a duplicate recipe.
It is applicable to be submitted to oe-core, because it provides
a core validation functionality that is needed by all providing DRM
drivers and not just to a single arch.

Signed-off-by: Arthur She <arthur.she@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runtime/cases/ptest: Make output content path absolute
Andrej Valek [Mon, 22 Jun 2020 17:33:07 +0000 (19:33 +0200)] 
oeqa/runtime/cases/ptest: Make output content path absolute

The output content is created in current directory, because json content
has no defined absolute path to WORKDIR as in bitbake.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/utils/command: Improve stdin handling in runCmd
Richard Purdie [Mon, 22 Jun 2020 21:52:35 +0000 (22:52 +0100)] 
oeqa/utils/command: Improve stdin handling in runCmd

Occasionally we've been seeing leftover threads from runCmd. The stdin test
assumes we clean up all threads but the code assumes that the daemonic thread
can be left behind.

The issue can be reproduced by adding a time.sleep(10) to the end of
writeThread() which will mean it stays resident past the end of the command.

We may as well add it to the threads list and clean it up properly,
hopefully removing the race in the tests from the autobuilder.

[YOCTO #13055]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest/runcmd: Add better debug for thread count mismatch failures
Richard Purdie [Mon, 22 Jun 2020 21:35:07 +0000 (22:35 +0100)] 
oeqa/selftest/runcmd: Add better debug for thread count mismatch failures

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopseudo: Fix attr errors due to incorrect library resolution issues
Richard Purdie [Mon, 22 Jun 2020 16:56:14 +0000 (17:56 +0100)] 
pseudo: Fix attr errors due to incorrect library resolution issues

On a tumbleweed system, "install X Y" was showing the error:

pseudo: ENOSYS for 'fsetxattr'.

which was being caused by dlsym() for that function returning NULL. This
appears to be due to it finding an unresolved symbol in libacl for this
symbol in libattr. It hasn't been resolved so its NULL. dlerror() returns
nothing since this is a valid symbol entry, its just not the one we want.

We can add the glibc version string for the symbol we actually want so we get
that version rather than the libattr/libacl one. The calls in libattr are just
wrappers around the libc version so our attaching to the libc versions should
intercept any accesses via these too.

[YOCTO #13952]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoboost: Add upstream patch to fix build on depending projects
Andreas Müller [Sat, 20 Jun 2020 19:02:51 +0000 (21:02 +0200)] 
boost: Add upstream patch to fix build on depending projects

KDE's krita failed with:
| error: 'typedef void boost::static_visitor<void>::result_type' is inaccessible within this context

Note that only boost 0.173 is affected. 0.172 (dunfell) does not have this
problem and the patch will be included in upcoming 0.174.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub: Remove native version of grub-efi
Jacob Kroon [Mon, 22 Jun 2020 11:43:43 +0000 (13:43 +0200)] 
grub: Remove native version of grub-efi

The native version of grub-efi only installs the tools

  /usr/bin/grub-editenv
  /usr/bin/grub-mkimage

to sysroots-components/, but equivalent tools are already provided by
grub-native, the difference on x86_64 being 4 hardwired paths in grub-mkimage
(values taken from grub-native):

  LOCALEDIR       = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/usr/share/locale
  GRUB_DATADIR    = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/usr/share
  GRUB_LIBDIR     = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/usr/lib
  GRUB_SYSCONFDIR = $TMPDIR/work/x86_64-linux/grub-native/2.04-r0/recipe-sysroot-native/etc

If grub-native and grub-efi-native are built with the following patch

--- grub-2.04.orig/configure.ac
+++ grub-2.04/configure.ac
@@ -1980,10 +1980,10 @@ grub_libdir="$(eval echo "$libdir")"
 grub_localedir="$(eval echo "$localedir")"
 grub_datadir="$(eval echo "$datadir")"
 grub_sysconfdir="$(eval echo "$sysconfdir")"
-AC_DEFINE_UNQUOTED(LOCALEDIR, "$grub_localedir", [Locale dir])
-AC_DEFINE_UNQUOTED(GRUB_LIBDIR, "$grub_libdir", [Library dir])
-AC_DEFINE_UNQUOTED(GRUB_DATADIR, "$grub_datadir", [Data dir])
-AC_DEFINE_UNQUOTED(GRUB_SYSCONFDIR, "$grub_sysconfdir", [Configuration dir])
+AC_DEFINE_UNQUOTED(LOCALEDIR, "/non-existent", [Locale dir])
+AC_DEFINE_UNQUOTED(GRUB_LIBDIR, "/non-existent", [Library dir])
+AC_DEFINE_UNQUOTED(GRUB_DATADIR, "/non-existent", [Data dir])
+AC_DEFINE_UNQUOTED(GRUB_SYSCONFDIR, "/non-existent", [Configuration dir])

the produced grub-editenv/grub-mkimage binaries become binary equivalent,
assuming reproducible builds is active. Since the unpatched values of
LOCALEDIR/GRUB_DATADIR/GRUB_LIBDIR/GRUB_SYSCONFDIR point to directories that
are not expected to exist at runtime, they can be ignored.

Therefore:
 * remove grub-efi-native and instead rely on the same tools from
   grub-native
 * replace references to grub-efi-native with grub-native
 * remove unused grub-efi-native security flags overrides

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomime.bbclass: fix post install scriptlet error
Changqing Li [Fri, 19 Jun 2020 09:11:12 +0000 (17:11 +0800)] 
mime.bbclass: fix post install scriptlet error

fix error during post uninstall:
%postun(shared-mime-info-data-2.0-r0.4.corei7_64): execv(/bin/sh) pid 78
+ '[' 0 = 0 ']'
+ set -e
+ '[' x '!=' x ']'
+ echo 'Updating MIME database... this may take a while.'
Updating MIME database... this may take a while.
+ update-mime-database /usr/share/mime
Directory '/usr/share/mime/packages' does not exist!
%postun(shared-mime-info-data-2.0-r0.4.corei7_64): waitpid(78) rc 78 status 100
warning: %postun(shared-mime-info-data-2.0-r0.4.corei7_64) scriptlet failed, exit status 1

when run post uninstall scriptlet, /usr/share/mime/packages has been
removed during unintall, while update-mime-database will check xml under
/usr/share/mime/packages.

workaround by create this dir before update, then remove it

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-serialgetty: do not use BindsTo
Chen Qi [Fri, 19 Jun 2020 07:02:55 +0000 (00:02 -0700)] 
systemd-serialgetty: do not use BindsTo

This unit was changed from 'BindsTo' in the following commit.
"""
commit f0f359ec9210759f6b4dbfb35d3fba8af208c43a
Author: Jason Wessel <jason.wessel@windriver.com>
Date:   Thu Aug 29 07:00:31 2019 -0700

    serial-getty@.service: Allow device to fast fail if it does not exist
"""

It was changed back to 'BindTo' in the following commit.
"""
commit 63bbff61b78c651339c4b18d8376187379ec3b3c
Author: Otavio Salvador <otavio.salvador@gmail.com>
Date:   Fri Jun 12 14:30:44 2020 -0300

    systemd: Sync systemd-serialgetty@.service with upstream
"""

This is now causing runtime problem for qemuarm64. The default.target
is not reached until a timeout. Output is like below.

"""
root@qemuarm64:~# systemd-analyze
Bootup is not yet finished (org.freedesktop.systemd1.Manager.FinishTimestampMonotonic=0).
Please try again later.
Hint: Use 'systemctl list-jobs' to see active jobs
root@qemuarm64:~# systemctl list-jobs
JOB UNIT TYPE STATE
102 getty.target start waiting
1 multi-user.target start waiting
95 systemd-update-utmp-runlevel.service start waiting
110 serial-getty@hvc0.service start waiting
111 dev-hvc0.device start running
"""

We can see that we are waiting for /dev/hvc0, while in fact there's no /dev/hvc0.
Jason's commit actually solves such problem.

So restore to use Jason's method. Do not use 'BindsTo'.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodbus,dbus-test: Move common parts to dbus.inc
Ovidiu Panait [Fri, 19 Jun 2020 19:25:50 +0000 (22:25 +0300)] 
dbus,dbus-test: Move common parts to dbus.inc

dbus and dbus-test share the same source code and base configuration options,
so factor out the common parts into dbus.inc.

This way we can eliminate the need to keep the two recipes in sync. When they
are not properly in sync (e.g. when dbus recipe has extra patches/config
options that are not duplicated in dbus-test) ptest testsuite will actually
test a slightly different codebase. This is due to the fact that dbus-test does
not run the testsuite against the system libdbus library, but instead it
generates a local libdbus.so that needs to configured/compiled as close as
possible to the system one.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodbus-test: Remove EXTRA_OECONF_X configs
Ovidiu Panait [Fri, 19 Jun 2020 19:25:49 +0000 (22:25 +0300)] 
dbus-test: Remove EXTRA_OECONF_X configs

X specific configs are already handled through PACKAGECONFIG:
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)}"
...
PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x
                      --disable-x11-autolaunch, virtual/libx11 libsm"

Remove duplicated EXTRA_OECONF_X args.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: uprev v4.2.0 -> v5.0.0
Sakib Sajal [Fri, 19 Jun 2020 18:12:59 +0000 (14:12 -0400)] 
qemu: uprev v4.2.0 -> v5.0.0

Major update after v4.2.

Changes:
  - os_find_datadir() was changed after the v4.2 release
    causing v5.0 to not find the bios and not boot the
    image. Fix is sent to upstream qemu.
    See: qemu/find_datadir.patch
  - v5.0 binary had host contamination for dynamically linked
    libraries, "--extra-ldflags='${LDFLAGS}'" in EXTRA_OECONF
    resolved the issue
  - bluetooth code was removed: qemu.git$ git show 1d4ffe8dc7
    hence removed PACKAGECONFIG[bluez]
  - -show-cursor qemu option is now deprecated, updated
    scripts/runqemu to use updated option instead
  - added PACKAGECONFIG definitions
  - added qemu-ptest to conf/distro/include/ptest-packagelists.inc
  - increased support for ARM architecture, cpu and board
  - removed patches merged upstream and refreshed
    existing ones

Testing:
Build core-image-minimal against the machines in
openembedded-core/meta/conf/machine and succesfully
booted with qemu v5.0

Ran qemu-ptest on x86-64 and arm64 with identical results:
PASS: 1166
SKIP:    0
FAIL:    0

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: use official "pypi.org" URLs for HOMEPAGE
Robert P. J. Day [Wed, 17 Jun 2020 12:27:34 +0000 (08:27 -0400)] 
python: use official "pypi.org" URLs for HOMEPAGE

As the URL pypi.python.org simply redirects to pypi.org, simplify a
number of Python recipes by using that URL explicitly.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool: fix typo
Paul Eggleton [Mon, 15 Jun 2020 02:27:55 +0000 (19:27 -0700)] 
devtool: fix typo

specifiy -> specify

Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
5 years agoshadow-sysroot: drop unused SRC_URI checksums
Paul Eggleton [Mon, 15 Jun 2020 02:27:37 +0000 (19:27 -0700)] 
shadow-sysroot: drop unused SRC_URI checksums

This recipe only fetches local files, so there's no need for a checksum.
These have been present for some time and nobody noticed.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
5 years agodpkg-native: rebase and reinstate fix for "tar: file changed as we read it"
Paul Eggleton [Thu, 18 Jun 2020 03:44:09 +0000 (20:44 -0700)] 
dpkg-native: rebase and reinstate fix for "tar: file changed as we read it"

In OE-Core rev 8ee36a5f2f9367550d28bf271afc53bca6ff3d5f a patch was
added for dpkg to ignore a return of 1 from dpkg's calls to tar (which
indicates that files changed in some way while tar was operating) we
were observing failures on the autobuilder due to changes to link counts
in hard-linked file trees. The patch was subsequently rebased and then
later removed during an upgrade in
3812f58b3a438ae533c282170416cdd1681868e0 on the assumption that the fix
had been applied upstream, however that was not the case. I am now
occasionally seeing these errors in my builds without any apparent
material change to the files, so rebase and reinstate the patch.

Fixes [YOCTO #13913].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
5 years agopowertop: upgrade 2.12 -> 2.13
Wang Mingyu [Wed, 17 Jun 2020 13:39:00 +0000 (13:39 +0000)] 
powertop: upgrade 2.12 -> 2.13

?Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoell: upgrade 0.31 -> 0.32
Pierre-Jean Texier [Wed, 17 Jun 2020 13:41:44 +0000 (15:41 +0200)] 
ell: upgrade 0.31 -> 0.32

This is a bugfix release:

ver 0.32:
Fix issue with handling D-Bus watch removal.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-plugins-bad: add support for vdpau
Ross Burton [Wed, 17 Jun 2020 09:17:40 +0000 (10:17 +0100)] 
gstreamer1.0-plugins-bad: add support for vdpau

libvdpau support was added to meta-oe by commit bf1de4db2 ("libvdpau:
Add recipe") in 2016. Therefore add a packageconfig for the
corresponding gstreamer plugin.

Based on a patch by Richard Leitner <richard.leitner@skidata.com>

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson.bbclass: avoid unexpected operating-system names
Andreas M?ller [Wed, 15 Apr 2020 22:30:36 +0000 (00:30 +0200)] 
meson.bbclass: avoid unexpected operating-system names

For example 'linux-gnueabi' is not what meson consumers expect: See canonical
table of OS names for Meson (thanks Ross). Surprisingly this did not pop up
earlier but wrong system-name can break building as described in [1]

[1] https://lists.openembedded.org/g/openembedded-core/topic/meson_host_machine_system/73023862

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorecipetool: create: fix SRCBRANCH not being passed to params
Tuomas Salokanto [Tue, 14 Jan 2020 10:49:17 +0000 (12:49 +0200)] 
recipetool: create: fix SRCBRANCH not being passed to params

When explicitly passing a branch using --srcbranch in 'devtool add' or
'recipetool create', the branch name is not included in the params of
bb.fetch2.encodeurl and default 'master' branch is used instead.

Signed-off-by: Tuomas Salokanto <tuomas.salokanto@gmail.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopulseaudio: remove unnecessary libltdl copying
Tanu Kaskinen [Sun, 16 Feb 2020 06:26:29 +0000 (08:26 +0200)] 
pulseaudio: remove unnecessary libltdl copying

This was added in 5df6deaa32e4f6d0a8985403970a137270491991. I don't know
what problem it solved at that time (2009-04-21), but it seems that
nowadays PulseAudio builds fine without copying the libltdl stuff.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogobject-introspection: add a patch to fix a build race
Alexander Kanavin [Wed, 17 Jun 2020 10:15:52 +0000 (12:15 +0200)] 
gobject-introspection: add a patch to fix a build race

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoapr-util: make gdbm optional
Alexander Kanavin [Wed, 17 Jun 2020 10:15:51 +0000 (12:15 +0200)] 
apr-util: make gdbm optional

This helps with gpl3-free builds.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopatchelf: Upgrade 0.10 -> 0.11
Richard Purdie [Wed, 17 Jun 2020 09:47:58 +0000 (10:47 +0100)] 
patchelf: Upgrade 0.10 -> 0.11

Two patches were merged upstream, the other needed refreshing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobitbake.conf: Remove TERM from default BB_HASHBASE_WHITELIST
Jacob Kroon [Wed, 17 Jun 2020 06:28:55 +0000 (08:28 +0200)] 
bitbake.conf: Remove TERM from default BB_HASHBASE_WHITELIST

Since BitBake commit 0d5cdd0c0d65f2f81c3af0f3767fee86c4142c3a
TERM is no longer preserved in the environment by BitBake, so there
should be no need to whitelist it by default.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-firmware: add ice for Intel E800 series driver
Yongxin Liu [Wed, 17 Jun 2020 08:55:03 +0000 (16:55 +0800)] 
linux-firmware: add ice for Intel E800 series driver

Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocurl: add debug info
Rasmus Villemoes [Wed, 17 Jun 2020 08:52:14 +0000 (10:52 +0200)] 
curl: add debug info

Currently, curl (and libcurl) is built without debug info, making the
curl-dbg package rather useless. Since debug symbols are automatically
stripped and put in that package by the build system, making sure that
curl is built with -g shouldn't hurt anything, but will help those
that try to debug a libcurl-using application and hence explicitly
include curl-dbg in their rootfs.

Unfortunately, setting --enable-debug then changes the default value
of the optimize option from (assume yes) to (assume no), while also
changing the default value of the curldebug option [which is a
separate thing that actually changes generated code to add some memory
tracking] from (assume no) to (assume yes). So explicitly pass the
appropriate options that make those two have the same value as they
used to have by default.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosanity.conf: Require bitbake 1.47.0 as the minimum version
Richard Purdie [Tue, 16 Jun 2020 22:42:54 +0000 (23:42 +0100)] 
sanity.conf: Require bitbake 1.47.0 as the minimum version

The recent siggen changes need the new version of bitbake, update the minimum
version to match (should also help the TERM environment change too).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonet-tools: backport a patch from upstream to use the same ifconfig format as debian...
Martin Jansa [Tue, 16 Jun 2020 18:12:42 +0000 (20:12 +0200)] 
net-tools: backport a patch from upstream to use the same ifconfig format as debian/ubuntu

* this is needed for python3-ifcfg to parse it correctly
  https://github.com/ftao/python-ifcfg/issues/43
* backport this single patch, so it can be backported to dunfell
  then for master we should upgrade to new snapshot from debian
  which includes other fixes and improvements as well
* this is already part of net-tools_1.60-26.diff from debian we're using
  but it's first added there and then removed
  $ grep 'sprintf(flags' net-tools_1.60-26.diff
  ++    sprintf(flags, "flags=%d<", ptr->flags);
  +-    sprintf(flags, "flags=%d<", ptr->flags);

* before:
root@qemux86-64:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:02
          inet addr:192.168.7.2  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe12:3402/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:496 (496.0 B)  TX bytes:42832 (41.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:846 errors:0 dropped:0 overruns:0 frame:0
          TX packets:846 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:53364 (52.1 KiB)  TX bytes:53364 (52.1 KiB)

* after:

root@qemux86-64:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 192.168.7.2  netmask 255.255.255.0  broadcast 192.168.7.255
        inet6 fe80::5054:ff:fe12:3402  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:12:34:02  txqueuelen 1000  (Ethernet)
        RX packets 6  bytes 496 (496.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14  bytes 2140 (2.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 80  bytes 6080 (5.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 80  bytes 6080 (5.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

* for comparison ubuntu-20.04 in docker:

root@dafcbbf25ff2:/# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.2  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:ac:11:00:02  txqueuelen 0  (Ethernet)
        RX packets 39299  bytes 89614740 (89.6 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 33767  bytes 3807354 (3.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 5658  bytes 1294220 (1.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5658  bytes 1294220 (1.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

* python3-ifcfg now parses flags correctly:
root@qemux86-64:~# python3 -m ifcfg.cli | python3 -m json.tool
{
    "eth0": {
        "inet": "192.168.7.2",
        "inet4": [
            "192.168.7.2"
        ],
        "ether": "52:54:00:12:34:02",
        "inet6": [
            "fe80::5054:ff:fe12:3402"
        ],
        "netmask": "255.255.255.0",
        "device": "eth0",
        "flags": "4163<UP,BROADCAST,RUNNING,MULTICAST> ",
        "mtu": "1500",
        "broadcast": "192.168.7.255"
    },
    "lo": {
        "inet": "127.0.0.1",
        "inet4": [
            "127.0.0.1"
        ],
        "ether": null,
        "inet6": [
            "::1"
        ],
        "netmask": "255.0.0.0",
        "device": "lo",
        "flags": "73<UP,LOOPBACK,RUNNING> ",
        "mtu": "65536"
    },
    "sit0": {
        "inet": null,
        "inet4": [],
        "ether": null,
        "inet6": [],
        "netmask": null,
        "device": "sit0",
        "flags": "128<NOARP> ",
        "mtu": "1480"
    }
}

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: use relative paths in the perl wrapper
Samuli Piippo [Tue, 16 Jun 2020 14:46:32 +0000 (17:46 +0300)] 
perl: use relative paths in the perl wrapper

Use SDKPATHNATIVE so that the perl wrapper for the nativesdk can be created
using relative paths and without dependency to the environment variables.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/archiver: Create patched archive before configuring
Joshua Watt [Tue, 16 Jun 2020 14:39:17 +0000 (09:39 -0500)] 
classes/archiver: Create patched archive before configuring

do_configure and do_preconfigure can modify source files, which causes
race conditions if these tasks run in parallel with do_ar_patched. Add
explicit task dependencies to ensure that do_ar_patched finishes before
these tasks start. Specifically, this fixes a race condition with
gcc-source where do_ar_patched races with do_preconfigure deleting
gcc/gengtype-lex.c

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocmake: allow chainloading of the toolchain file
Samuli Piippo [Tue, 16 Jun 2020 14:07:25 +0000 (17:07 +0300)] 
cmake: allow chainloading of the toolchain file

Use path from CMAKE_CURRENT_LIST_FILE to load the cmake subscripts.
This allows the toolchain file to be chainloaded from another toolchain file.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runtime: Add OERequirePackage decorator
Konrad Weihmann [Mon, 15 Jun 2020 20:26:56 +0000 (22:26 +0200)] 
oeqa/runtime: Add OERequirePackage decorator

Add new decorator which behaves like OEHasPackage, but
fails the testcase if a dependency isn't met.

This helps to identify missing packages in the image
under test when using static test suite lists, otherwise
a missing package won't fail the overall test suite and
errors might slip through unnoticed

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiptables: split iptables-apply to its own package
Yi Zhao [Tue, 16 Jun 2020 01:51:06 +0000 (09:51 +0800)] 
iptables: split iptables-apply to its own package

We do not want iptables to depend on bash. So move
iptables-apply/ip6tables-apply to a separate package.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiptables: fix invalid symbolic link for ip6tables-apply
Yi Zhao [Tue, 16 Jun 2020 01:51:05 +0000 (09:51 +0800)] 
iptables: fix invalid symbolic link for ip6tables-apply

The iptables-apply is not installed which makes ip6tables-apply as an
invalid symbolic link:

$ ls -l /usr/sbin/ip6tables-apply
lrwxrwxrwx 1 root root 14 Jun 11 08:27 /usr/sbin/ip6tables-apply -> iptables-apply
$ ls -l /usr/sbin/iptables-apply
ls: cannot access '/usr/sbin/iptables-apply': No such file or directory

Backport a patch to fix the issue.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocommon-licenses: add BSD-2-Clause-Patent
Ross Burton [Tue, 16 Jun 2020 09:35:54 +0000 (10:35 +0100)] 
common-licenses: add BSD-2-Clause-Patent

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuildhistory-collect-srcrevs: sort directories
Dan McGregor [Mon, 15 Jun 2020 22:01:43 +0000 (16:01 -0600)] 
buildhistory-collect-srcrevs: sort directories

From: Daniel McGregor <daniel.mcgregor@vecima.com>

In order to allow consistent output of buildhistory-collect-srcrevs sort
the list of directories returned by os.walk. Otherwise the list of
SRCREVs is returned in an unspecified order.

We save the output of this command on build, so it creates smaller diffs
between builds.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-conf: Accept MTU from DHCP
Dan McGregor [Mon, 15 Jun 2020 22:01:42 +0000 (16:01 -0600)] 
systemd-conf: Accept MTU from DHCP

From: Daniel McGregor <daniel.mcgregor@vecima.com>

Many local cloud deployments use MTUs other than 1500. To support
them, accept MTU from DHCP by default.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosign_rpm.bbclass: ignore thread count
Dan McGregor [Mon, 15 Jun 2020 22:01:41 +0000 (16:01 -0600)] 
sign_rpm.bbclass: ignore thread count

From: Daniel McGregor <daniel.mcgregor@vecima.com>

Similar to sign_ipk, ignore the number of threads used for signing
RPMs.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: Fix host specific modules problems
Richard Purdie [Tue, 16 Jun 2020 15:57:11 +0000 (16:57 +0100)] 
perl: Fix host specific modules problems

We were seeing a ton of empty perl modules being created such as
"perl-module-x86-64-linux-encoding" where the name would include
${TARGET_ARCH}-linux. These files were already being filtered in an
earlier do_split_packages() expression so exclude them from the latter
one to remove the pointless empty modules in PACKAGES.

This doesn't explain why some were not deterministic but will recude
the do_package execution time and clean up the build directories
at the very least.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokmod: add nativesdk support
hongxu [Mon, 15 Jun 2020 07:46:11 +0000 (15:46 +0800)] 
kmod: add nativesdk support

Support to invoke depmod in sdk

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobind: update to 9.11.19
akuster [Sun, 14 Jun 2020 20:34:03 +0000 (13:34 -0700)] 
bind: update to 9.11.19

Bug fix only updates.

suitable for Stable branch updates where applicable.

Drop CVE patches included in update
LIC_FILES_CHKSUM update copyright year to 2020

Full changes found at : https://gitlab.isc.org/isc-projects/bind9/-/blob/v9_11/CHANGES

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: Fix error message when reporting invalid offset
Joshua Watt [Fri, 12 Jun 2020 21:50:16 +0000 (16:50 -0500)] 
wic: Fix error message when reporting invalid offset

The error message was reporting the calculated offset instead of the
current offset, which made it confusing.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: fix PGO for non-reproducible biniaries
Ryan Rowe [Fri, 12 Jun 2020 19:48:24 +0000 (12:48 -0700)] 
python3: fix PGO for non-reproducible biniaries

When PGO was disabled by default by e53ebf29, a bug was introduced that
prevented PGO from ever being enabled. At the time at which extra config
is appended to PACKAGECONFIG_CONFARGS, PACKAGECONFIG_PGO remains
unevaluated in PACKAGECONFIG_class-target, due to setting its value in
an anonymous Python function. As a result, the PGO options options will
never be included.

Signed-off-by: Ryan Rowe <rrowe@xevo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agograph-tool: add filter subcommand
Paul Eggleton [Mon, 15 Jun 2020 04:48:43 +0000 (21:48 -0700)] 
graph-tool: add filter subcommand

Add a filter subcommand to filter a task-depends.dot graph produced by
bitbake -g down to just a subset of targets/tasks.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agograph-tool: switch to argparse
Paul Eggleton [Mon, 15 Jun 2020 04:48:42 +0000 (21:48 -0700)] 
graph-tool: switch to argparse

argparse makes this a lot easier to extend.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibpam: Remove option 'obscure' from common-password
haiqing [Mon, 15 Jun 2020 03:05:57 +0000 (11:05 +0800)] 
libpam: Remove option 'obscure' from common-password

libpam does not support 'obscure' checks to password,
there are the same checks in pam_cracklib module.
And this fix can remove the below error message while
updating password with 'passwd':
pam_unix(passwd:chauthtok):unrecognized option[obscure]

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoethtool:upgrade 5.6 -> 5.7
zangrc [Mon, 15 Jun 2020 14:25:18 +0000 (22:25 +0800)] 
ethtool:upgrade 5.6 -> 5.7

fix-printf.patch
Removed since this is included in 5.7

Refresh the following patch:
avoid_parallel_tests.patch

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinstall-buildtools: add option to disable checksum validation
Ross Burton [Mon, 15 Jun 2020 13:44:14 +0000 (14:44 +0100)] 
install-buildtools: add option to disable checksum validation

The --check option turns on checksum validation, but it defaults to 'on'
so is pointless.  Add a corresponding --no-check option to turn off
validation.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinstall-buildtools: remove hardcoded x86-64 architecture
Ross Burton [Mon, 15 Jun 2020 13:44:13 +0000 (14:44 +0100)] 
install-buildtools: remove hardcoded x86-64 architecture

Remove all instances of the hardcoded 'x86_64' and replace with the current
host platform.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinstall-buildtools: fail if an error occurs
Ross Burton [Mon, 15 Jun 2020 13:44:12 +0000 (14:44 +0100)] 
install-buildtools: fail if an error occurs

Several failure paths were displaying an error message but not returning,
so the install process continued and failed further.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorelocatable.bbclass: Avoid an exception if an empty pkgconfig dir exist
Peter Kjellerstedt [Fri, 20 Mar 2020 18:04:20 +0000 (19:04 +0100)] 
relocatable.bbclass: Avoid an exception if an empty pkgconfig dir exist

Rewrite relocatable_native_pcfiles() so that it can handle that any of
the checked pkgconfig directories are empty without causing an
exception.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomtd-utils: Fix return value of ubiformat
Otavio Salvador [Fri, 12 Jun 2020 18:08:09 +0000 (15:08 -0300)] 
mtd-utils: Fix return value of ubiformat

This changeset fixes a feature regression in ubiformat.  Older versions
of ubiformat, when invoked with a flash-image, would return 0 in the
case no error was encountered.  Upon upgrading to latest, it was
discovered that ubiformat returned 255 even without encountering an
error condition.

This changeset corrects the above issue and causes ubiformat, when given an
image file, to return 0 when no errors are detected.

Backport fix from 2.1.2

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstatesig: Account for all dataCaches being passed
Joshua Watt [Fri, 12 Jun 2020 17:36:47 +0000 (12:36 -0500)] 
sstatesig: Account for all dataCaches being passed

Bitbake now passes all the dataCaches to the taskhash API, so use this
to correctly filter mcdepends.

[YOCTO #13724]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Sync systemd-serialgetty@.service with upstream
Otavio Salvador [Fri, 12 Jun 2020 17:30:44 +0000 (14:30 -0300)] 
systemd: Sync systemd-serialgetty@.service with upstream

The systemd upstream has been doing some improvements in the service
which were not in sync, with the forked file. Mainly:

 - Use BindsTo to bind the service with the required serial device
 - Add of getty-pre.target as dependency so we can run things before
   getty@.service and serial-getty@.service
 - Add conflicts to rescue to avoid issues with sulogin

We did not change the ExecStart and Environment fields so we don't have
side effects of this change.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuildtools-tarball: export OPENSSL_CONF in environment setup
Steve Sakoman [Fri, 12 Jun 2020 15:55:01 +0000 (05:55 -1000)] 
buildtools-tarball: export OPENSSL_CONF in environment setup

The autobuilder has been experiencing SSL: CERTIFICATE_VERIFY_FAILED
errors during error report uploads when using buildtools due to looking
for certs in /opt/poky

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-dbusmock: add the missing rdepends
Mingli Yu [Thu, 11 Jun 2020 07:00:43 +0000 (15:00 +0800)] 
python3-dbusmock: add the missing rdepends

Add the missing rdepends to fix below error:
 # python3
 [snip]
 >>> import dbusmock
 [snip]
 ModuleNotFoundError: No module named 'unittest'

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: add rdepends for python3-idle
Mingli Yu [Thu, 11 Jun 2020 05:48:35 +0000 (13:48 +0800)] 
python3: add rdepends for python3-idle

Add rdepends for python3-idle to fix below error:
 # /usr/bin/idle3 -h
 [snip]
 _tkinter.TclError: Can't find a usable init.tcl
 [snip]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: add the rdepends for python3-misc
Mingli Yu [Thu, 11 Jun 2020 07:39:28 +0000 (15:39 +0800)] 
python3: add the rdepends for python3-misc

* Add python3-numbers to rdepends for python3-misc to fix below error:
 # python3
 [snip]
 >>> import statistics
 [snip]
 ModuleNotFoundError: No module named 'numbers'

* Don't use the hardcoded python3 moudules rdepends

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agou-boot: avoid blind merging all *.cfg
Jens Rehsack [Thu, 11 Jun 2020 14:30:14 +0000 (16:30 +0200)] 
u-boot: avoid blind merging all *.cfg

This fixes u-boot-qoriq breakage of:

    commit 4fde8c8f479f5acd24fb6e0d0b9b4dc94d6f560b
    Author: Ming Liu <ming.liu@toradex.com>
    Date:   Wed Jun 3 13:56:01 2020 +0200

u-boot: support merging .cfg files for UBOOT_CONFIG

U-boot recipe supports .cfg files in SRC_URI, but they would be merged
to .config during do_configure only when UBOOT_MACHINE is set, we
should also support merging .cfg files for UBOOT_CONFIG.

The intension of 4fde8c8 looks more than append delta-config snippets to
u-boot config and should probably be rewritten to express that much better
than implicitely assume all "*.cfg" are for merging into .config.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: fix CVE-2020-13776
Joe Slater [Thu, 11 Jun 2020 21:32:04 +0000 (14:32 -0700)] 
systemd: fix CVE-2020-13776

Backport from systemd.git.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson: backport library ordering fix
Andrew Geissler [Thu, 11 Jun 2020 21:01:02 +0000 (16:01 -0500)] 
meson: backport library ordering fix

meson had a bug where they started looking for static boost libraries
first vs. the default behavior of looking at shared libraries first.
This caused issues because some projects assume the shared libraries
first which automatically add in other shared library dependencies.
Static libraries do not have the default behavior so projects that use
boost start failing to compile with undefined references to other boost
libraries.

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorecipetool: Fix list concatenation when using edit
Alex Kiernan [Fri, 12 Jun 2020 13:36:40 +0000 (14:36 +0100)] 
recipetool: Fix list concatenation when using edit

If there are multiple appends, ensure we concatenate compatible things:

Traceback (most recent call last):
  File "/home/akiernan/poky/scripts/recipetool", line 111, in <module>
    ret = main()
  File "/home/akiernan/poky/scripts/recipetool", line 100, in main
    ret = args.func(args)
  File "/home/akiernan/poky/scripts/lib/recipetool/edit.py", line 38, in edit
    return scriptutils.run_editor([recipe_path] + appends, logger)
TypeError: can only concatenate list (not "tuple") to list

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodiffoscope: upgrade 146 -> 147
Pierre-Jean Texier [Fri, 12 Jun 2020 11:30:35 +0000 (13:30 +0200)] 
diffoscope: upgrade 146 -> 147

This includes the following changes:

* New features:

  - Add output from strings(1) to ELF binaries. It is intended this will
    expose expose build paths that are hidden somewhere within the objdump(1)
    output. (Closes: reproducible-builds/diffoscope#148)
  - Add basic zsh shell tab-completion support.
    (Closes: reproducible-builds/diffoscope#158)

* Bug fixes:

  - Prevent a traceback when comparing a PDF document that does not contain
    any metadata, ie. it is missing a PDF "/Info" stanza.
    (Closes: reproducible-builds/diffoscope#150)
  - Fix compatibility with jsondiff 1.2.0 which was causing a traceback and
    log the version of jsondiff we are using to aid debugging in the future.
    (Closes: reproducible-builds/diffoscope#159
  - Fix an issue in GnuPG keybox handling that left filenames in the diff.
  - Don't mask an existing test name; ie. ensure it is actually run.

* Reporting:

  - Log all calls to subprocess.check_output by using our own wrapper utility.
    (Closes: reproducible-builds/diffoscope#151)

* Code improvements:

  - Replace references to "WF" with "Wagner-Fischer" for clarity.
  - Drop a large number of unused imports (list_libarchive,
    ContainerExtractionError, etc.)
  - Don't assign exception to a variable that we do not use.
  - Compare string values with the equality operator, not via "is" identity.
  - Don't alias an open file to a variable when we don't use it.
  - Don't alias "filter" builtin.
  - Refactor many small parts of the HTML generation, dropping explicit
    u"unicode" strings, tidying the generation of the "Offset X, Y lines
    modified" messages, moving to PEP 498 f-strings where appropriate, etc.
  - Inline a number of single-used utility methods.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosysvinit-inittab: Add support for tty devices with 10 or more number.
Yuki Hoshino [Fri, 12 Jun 2020 08:16:57 +0000 (08:16 +0000)] 
sysvinit-inittab: Add support for tty devices with 10 or more number.

"start_getty" support for tty devices with under 10 number.
When SERIAL_CONSOLES has tty devices with 10 or more number,
do not't start getty and output the following message.
----------
sh 1: unknown operand
----------

Signed-off-by: Yuki Hoshino <yuki.hoshino@miraclelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuildhistory: Add simplistic file move detection
Richard Purdie [Wed, 3 Jun 2020 15:01:02 +0000 (16:01 +0100)] 
buildhistory: Add simplistic file move detection

We'd like to use buildhistory more during patch review however its
proving hard, particularly where whole subtrees of files move,
such as a kernel version upgrade, or where a software module moves
include directory.

This adds file rename matching which covers our common case of library
moves, kernel upgrades and more.

A new test case is also added so that someone in the future can change
the code and test the logic is still doing the expected things.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRevert "bitbake.conf: Remove unused DEPLOY_DIR_TOOLS variable"
Richard Purdie [Thu, 11 Jun 2020 13:01:21 +0000 (14:01 +0100)] 
Revert "bitbake.conf: Remove unused DEPLOY_DIR_TOOLS variable"

This reverts commit b1f15f651461d07a8cfbd3bdcfea0e89f195212d.

The variable is used by multiple other layers and users are requesting
it be added back.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinsane: Check for feature check variables not being used
Jacob Kroon [Wed, 10 Jun 2020 17:52:45 +0000 (19:52 +0200)] 
insane: Check for feature check variables not being used

Add a package QA check for wether any of the variables used by
features_check.bbclass is set while not inheriting the class itself.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofeatures_check: Warn if not used
Jacob Kroon [Wed, 10 Jun 2020 17:52:43 +0000 (19:52 +0200)] 
features_check: Warn if not used

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa: Don't inherit 'features_check' in recipes that don't utilize it
Jacob Kroon [Wed, 10 Jun 2020 17:52:44 +0000 (19:52 +0200)] 
meta: Don't inherit 'features_check' in recipes that don't utilize it

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: fix CVE-2020-13361
Lee Chee Yang [Mon, 1 Jun 2020 13:40:37 +0000 (21:40 +0800)] 
qemu: fix CVE-2020-13361

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoavahi-dnsconfd: rdepends on avahi-daemon
Kai Kang [Fri, 5 Jun 2020 09:07:19 +0000 (17:07 +0800)] 
avahi-dnsconfd: rdepends on avahi-daemon

Systemd service avahi-dnsconfd.service requires avahi-daemon.socket
and avahi-daemon.service which are from avahi-daemon. So make
avahi-dnsconfd rdepends on avahi-daemon.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-networking/btrfs-tools/dosfstools/parted/bmap-tools/libsoup-2.4: add nativesdk...
Hongxu Jia [Tue, 9 Jun 2020 13:52:10 +0000 (21:52 +0800)] 
glib-networking/btrfs-tools/dosfstools/parted/bmap-tools/libsoup-2.4: add nativesdk support

In order to make wic tool work in sdk which is out of an
existed Yocto build, it needs to port wic tool as a nativesdk
recipe.

First, make these runtime depends recipes to support nativesdk

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostress-ng: Fix build on musl
Khem Raj [Wed, 10 Jun 2020 05:10:28 +0000 (22:10 -0700)] 
stress-ng: Fix build on musl

Define daddr_t if not provided by system headers
Fixes
./stress-ng.h:3755:2: error: unknown type name 'daddr_t'; did you mean 'caddr_t'?
daddr_t f_tfree;
^~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>