]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agoell: update to 0.25
Oleksandr Kravchuk [Tue, 29 Oct 2019 00:55:47 +0000 (01:55 +0100)]
ell: update to 0.25

0.24:
- Add support for extended groups in settings files.

0.25:
- Fix issue with stopping DHCP client and owner notification.
- Fix issue with time calculation overflow and DHCP.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agomdadm: fix do_package failed when changed local.conf but not cleaned
Changqing Li [Tue, 29 Oct 2019 09:52:30 +0000 (17:52 +0800)]
mdadm: fix do_package failed when changed local.conf but not cleaned

reproduce steps:
1. add DISTRO_FEATURE_append = 'usrmerge' in local.conf
2. bitbake mdadm --success
3. remove DISTRO_FEATURE_append = 'usrmerge' from local.conf
4. bitbake mdadm  -- failed when do_package

it is not proper to change source Makefile during do_install by sed,
fix by pass correct config to EXTRA_OEMAKE

[YOCTO #13493]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
5 years agolibxslt: fix CVE-2019-18197
Joe Slater [Wed, 23 Oct 2019 01:59:51 +0000 (18:59 -0700)]
libxslt: fix CVE-2019-18197

Use patch from upstream after 1.1.33 release.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolibtiff: fix CVE-2019-17546
Joe Slater [Tue, 22 Oct 2019 20:59:14 +0000 (13:59 -0700)]
libtiff: fix CVE-2019-17546

Apply unmodified patch from upstream.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoelfutils: disable bzip
Ross Burton [Tue, 29 Oct 2019 20:01:56 +0000 (20:01 +0000)]
elfutils: disable bzip

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoelfutils: add PACKAGECONFIG for compression algorithms
Dan Callaghan [Tue, 15 Oct 2019 22:44:56 +0000 (08:44 +1000)]
elfutils: add PACKAGECONFIG for compression algorithms

Elfutils has optional support for bzip2 and xz (lzma). It uses
this for decompressing embedded ELF sections like the .gnu_debugdata
section for "mini debuginfo":

https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html

Previously this support was unconditionally disabled but the reasons for
disabling them seem to no longer apply. Both the target and native
variants of elfutils can build successfully against both bzip2 and xz.

(From OE-Core rev: 37f4b2311eab6736ee92fc6ac39ddcba6d56a38e)

Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibmodulemd-v1: update to 1.8.16
Alexander Kanavin [Thu, 24 Oct 2019 11:11:26 +0000 (13:11 +0200)]
libmodulemd-v1: update to 1.8.16

Upstream added support for optional docs, so
0001-Do-not-generate-gtkdoc-or-python-bindings.patch is replaced
with an option to disable gtk-doc (as the modulemd feature is not used
in oe-core anyway).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobtrfs-tools: update to 5.3
Alexander Kanavin [Thu, 24 Oct 2019 11:11:25 +0000 (13:11 +0200)]
btrfs-tools: update to 5.3

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agogcr: remove intltool-native
Ross Burton [Mon, 28 Oct 2019 23:51:22 +0000 (23:51 +0000)]
gcr: remove intltool-native

gcr uses gettext now, so no need to depend on intltool-native.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agogcr: update to 3.34.0
Alexander Kanavin [Thu, 24 Oct 2019 11:11:24 +0000 (13:11 +0200)]
gcr: update to 3.34.0

inherit gettext, as gcr is now gettextized.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoncurses: fix CVE-2019-17594, CVE-2019-17595
Trevor Gamblin [Fri, 18 Oct 2019 14:35:02 +0000 (07:35 -0700)]
ncurses: fix CVE-2019-17594, CVE-2019-17595

Backport changes to tinfo/comp_hash.c, tinfo/parse_entry.c,
and progs/dump_entry.c from upstream to fix CVEs.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agokernel-fitimage: introduce FIT_SIGN_ALG
Richard Leitner [Wed, 23 Oct 2019 06:08:49 +0000 (08:08 +0200)]
kernel-fitimage: introduce FIT_SIGN_ALG

make fitImage configuration signature algorithm selectable with
FIT_SIGN_ALG.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agosudo: Fix fetching sources
Ferry Toth [Fri, 25 Oct 2019 19:12:33 +0000 (21:12 +0200)]
sudo: Fix fetching sources

It looks like https://www.sudo.ws/download.html changed certificate
and directory structure. This breaks fetching sources.

Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agosystemtap: support usrmerge
Alessio Igor Bogani [Fri, 25 Oct 2019 14:01:57 +0000 (16:01 +0200)]
systemtap: support usrmerge

Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoIMAGE_LINGUAS_COMPLEMENTARY: auto-add language packages other than locales
Andreas Müller [Sun, 27 Oct 2019 20:30:40 +0000 (21:30 +0100)]
IMAGE_LINGUAS_COMPLEMENTARY: auto-add language packages other than locales

This change allows layers adding packages other than locales automatically to
images based on languages selected in IMAGE_LINGUAS.

E.g if a layer has recipes creating packages as:
| ${PN}-foo-en / ${PN}-foo-de / ${PN}-foo-it / ..

it would set
| IMAGE_LINGUAS_COMPLEMENTARY_append = " *-foo-%s"

in its layer.conf to enable auto-adding.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agomakedevs: fix invalidScanfFormatWidth to prevent overflowing usr_buf
Frazer Leslie Clews [Mon, 28 Oct 2019 17:14:49 +0000 (17:14 +0000)]
makedevs: fix invalidScanfFormatWidth to prevent overflowing usr_buf

Signed-off-by: Frazer Leslie Clews <frazer.clews@codethink.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agomakedevs: fix format strings in makedevs.c in print statements
Frazer Leslie Clews [Mon, 28 Oct 2019 17:14:48 +0000 (17:14 +0000)]
makedevs: fix format strings in makedevs.c in print statements

Signed-off-by: Frazer Leslie Clews <frazer.clews@codethink.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolibsdl2: Fix build failure when using mesa 19.2.1
Alistair Francis [Fri, 25 Oct 2019 21:46:04 +0000 (14:46 -0700)]
libsdl2: Fix build failure when using mesa 19.2.1

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobinutils: fix CVE-2019-17451
Trevor Gamblin [Fri, 25 Oct 2019 17:11:45 +0000 (10:11 -0700)]
binutils: fix CVE-2019-17451

Backport upstream fix. No upstream release version of
binutils it yet, so backport the fix independently.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobinutils: fix CVE-2019-17450
Trevor Gamblin [Fri, 25 Oct 2019 17:11:44 +0000 (10:11 -0700)]
binutils: fix CVE-2019-17450

Backport upstream fix. No upstream release version of
binutils it yet, so backport the fix independently.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoofono: tidy up the recipe
Nicola Lunghi [Thu, 10 Oct 2019 17:21:44 +0000 (18:21 +0100)]
ofono: tidy up the recipe

- remove the inc file
- run oe-stylize on the recipe

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agowpa-supplicant: fix CVE-2019-16275
Ross Burton [Fri, 18 Oct 2019 12:39:25 +0000 (13:39 +0100)]
wpa-supplicant: fix CVE-2019-16275

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agosquashfs-tools: clean up compile/install tasks
Ross Burton [Fri, 18 Oct 2019 11:52:25 +0000 (12:52 +0100)]
squashfs-tools: clean up compile/install tasks

The makefile can do the right thing now.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agosquashfs-tools: remove redundant source checksums
Ross Burton [Fri, 18 Oct 2019 11:05:52 +0000 (12:05 +0100)]
squashfs-tools: remove redundant source checksums

oe-core e37a1ecc stopped downloading a LZMA tarball, but the checksums were not
removed at the same time.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopython3-numpy: Stop shipping manual config files
Adrian Bunk [Sun, 27 Oct 2019 17:36:48 +0000 (19:36 +0200)]
python3-numpy: Stop shipping manual config files

Automatic generation seems to work fine,
and does not become outdated.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibcap-ng: undefined reference to `pthread_atfork'
Trevor Woerner [Mon, 28 Oct 2019 03:13:13 +0000 (23:13 -0400)]
libcap-ng: undefined reference to `pthread_atfork'

Some hosts need -pthread in order to link properly (e.g. openSUSE 15.1).

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agognu-efi: Upgrade 3.0.9 -> 3.0.10
Adrian Bunk [Sun, 27 Oct 2019 15:00:44 +0000 (17:00 +0200)]
gnu-efi: Upgrade 3.0.9 -> 3.0.10

Part of patch fixed upstream removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: Avoid potential build configuration contamination
Richard Purdie [Sun, 27 Oct 2019 10:11:54 +0000 (10:11 +0000)]
qemu: Avoid potential build configuration contamination

Changing the gl options to qemu doesn't result in a correctly rebuilt
binary, the GL linkage can persist from a build where it was enabled
to one where it was not.

As well as clearly being incorrect and non-reproducible, this caused
some mystery failures on the autobuilder.

Cleaning ${B} at do_configure time avoids this. Most recipes
(e.g. autotools derived ones) already clean ${B} as appropriate and
avoid this issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Remove stale gcc 8 patchfile
Adrian Bunk [Sat, 26 Oct 2019 20:42:12 +0000 (23:42 +0300)]
gcc: Remove stale gcc 8 patchfile

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonspr: Upgrade 4.21 -> 4.23
Adrian Bunk [Sat, 26 Oct 2019 20:42:16 +0000 (23:42 +0300)]
nspr: Upgrade 4.21 -> 4.23

Patch applied upstream removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostress-ng: Upgrade 0.10.00 -> 0.10.08
Adrian Bunk [Sat, 26 Oct 2019 20:42:15 +0000 (23:42 +0300)]
stress-ng: Upgrade 0.10.00 -> 0.10.08

Patch applied upstream removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscreen: Upgrade 4.6.2 -> 4.7.0
Adrian Bunk [Sat, 26 Oct 2019 20:42:14 +0000 (23:42 +0300)]
screen: Upgrade 4.6.2 -> 4.7.0

Patches applied upstream removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosquashfs-tools: Upgrade to 4.4
Adrian Bunk [Sat, 26 Oct 2019 20:42:13 +0000 (23:42 +0300)]
squashfs-tools: Upgrade to 4.4

Patch for issue fixed upstream removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonfs-utils: Improve handling when no exported fileysystems
Richard Purdie [Thu, 24 Oct 2019 13:02:43 +0000 (14:02 +0100)]
nfs-utils: Improve handling when no exported fileysystems

Ensure /etc/exports exists and is readable before calling exportfs
to avoid errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: fix CVE-2019-16935
Chen Qi [Thu, 24 Oct 2019 04:19:15 +0000 (12:19 +0800)]
python: fix CVE-2019-16935

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: fix CVE-2019-16935
Chen Qi [Thu, 24 Oct 2019 04:19:14 +0000 (12:19 +0800)]
python3: fix CVE-2019-16935

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agounfs3: fixed the issue that unfsd consumes 100% CPU
Haiqing Bai [Thu, 24 Oct 2019 02:33:04 +0000 (10:33 +0800)]
unfs3: fixed the issue that unfsd consumes 100% CPU

The 'accept' function on the socket of unfsd daemon
is always in below error state:
accept(4, 0x7ffd5e6dddc0, [128]) = -1 EINVAL (Invalid argument)
accept(6, 0x7ffd5e6dddc0, [128]) = -1 EINVAL (Invalid argument)

And 'strace -c -p <the pid of unfsd>' shows:
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 70.87    0.005392           0    513886    513886 accept
 29.13    0.002216           0    256943           poll

This error state is in the 'for' loop of the daemon, so it consumes 100%
CPU. The reason is that 'listen' is not called for the TCP socket before
'accept'. Actually the called 'svc_tli_create' from libtirpc will not call
'listen' on a bound socket.

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobind: fix CVE-2019-6471 and CVE-2018-5743
Kai Kang [Wed, 23 Oct 2019 07:49:39 +0000 (15:49 +0800)]
bind: fix CVE-2019-6471 and CVE-2018-5743

Backport patches to fix CVE-2019-6471 and CVE-2018-5743 for bind.
CVE-2019-6471 is fixed by 0001-bind-fix-CVE-2019-6471.patch and the
other 6 patches are for CVE-2018-5743. And backport one more patch to
fix compile error on arm caused by these 6 commits.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuildhistory-analysis: filter out -src changes by default
Ross Burton [Wed, 23 Oct 2019 15:33:46 +0000 (16:33 +0100)]
buildhistory-analysis: filter out -src changes by default

Like the -dbg package, this package is automatically generated and contains
source filenames.  We expect this to change on every upgrade, so don't show the
differences unless the user wants to see all changes.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa: add missing description in recipes-gnome
Maxime Roussin-Bélanger [Wed, 23 Oct 2019 18:33:58 +0000 (14:33 -0400)]
meta: add missing description in recipes-gnome

Remove some trailing whitespace

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa: update and add missing homepage/bugtracker links
Maxime Roussin-Bélanger [Wed, 23 Oct 2019 18:33:57 +0000 (14:33 -0400)]
meta: update and add missing homepage/bugtracker links

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogsettings-desktop-schemas: upgrade 3.32.0 -> 3.34.0
Andreas Müller [Wed, 23 Oct 2019 19:46:36 +0000 (21:46 +0200)]
gsettings-desktop-schemas: upgrade 3.32.0 -> 3.34.0

Need it for gnome-settings-daemon 3.34:

| meson.build:91:0: ERROR: Invalid version of dependency, need 'gsettings-desktop-schemas' ['>= 3.33.0'] found '3.32.0'.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoconnman: mark connman-wait-online as SYSTEMD_PACKAGE
André Draszik [Mon, 21 Oct 2019 10:46:59 +0000 (11:46 +0100)]
connman: mark connman-wait-online as SYSTEMD_PACKAGE

The connman-wait-online package currently isn't marked as
systemd-enabled package. This means it is impossible to
auto-enable the service during image creation or package
installation, as no preset files and no pkg_postinst()
snippet is being created.

This change should have been done as part of the
upgrade to v1.31

Note:
connman-wait-online is needed when connman is in use
in more complex network/interface setups for systemd's
network-online.target to report success.
systemd-networkd's systemd-networkd-wait-online.service
alone doesn't work in such scenarios and simply times
out, as it know nothing about the expected network/
interface configuration, meaning the target doesn't
boot successfully (systemctl list-units --failed),
and long delays are seen, caused by waiting for the
systemd-networkd-wait-online.service timeout.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-devicetree: Cope with non-standard kernel deploy subdirectory
Mike Crowe [Mon, 21 Oct 2019 14:38:18 +0000 (15:38 +0100)]
kernel-devicetree: Cope with non-standard kernel deploy subdirectory

kernel.bbclass installs non-standard kernels (where
KERNEL_PACKAGE_NAME is not "kernel") in a subdirectory of ${DEPLOYDIR}.
To achieve this kernel_do_deploy sets the deployDir shell variable to
${DEPLOYDIR} for the standard kernel or
${DEPLOYDIR}/${KERNEL_DEPLOYSUBDIR} for non-standard kernels.

kernel-devicetree.bbclass's do_deploy_append ought to do the same
and can do so by using the same shell variable.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-fitimage: Cope with non-standard kernel deploy subdirectory
Mike Crowe [Mon, 21 Oct 2019 14:38:17 +0000 (15:38 +0100)]
kernel-fitimage: Cope with non-standard kernel deploy subdirectory

kernel.bbclass installs non-standard kernels (where
KERNEL_PACKAGE_NAME is not "kernel") in a subdirectory of ${DEPLOYDIR}.
To achieve this kernel_do_deploy sets the deployDir shell variable to
${DEPLOYDIR} for the standard kernel or
${DEPLOYDIR}/${KERNEL_DEPLOYSUBDIR} for non-standard kernels.

kernel-fitimage.bbclass's kernel_do_deploy_append ought to do the same
and can do so by using the same shell variable.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic/engine: use 'linux-swap' for swap file system
Chee Yang Lee [Tue, 22 Oct 2019 05:27:06 +0000 (13:27 +0800)]
wic/engine: use 'linux-swap' for swap file system

[YOCTO #13312]
see https://bugzilla.yoctoproject.org/show_bug.cgi?id=13312

wic/engine.Disk._get_part_image was looking at variable fstypes for
supported fstype which is 'swap' but image build with 'linux-swap'.
supported fstype should be 'linux-swap'.

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic/help: change 'wic write' help description
Chee Yang Lee [Tue, 22 Oct 2019 05:27:05 +0000 (13:27 +0800)]
wic/help: change 'wic write' help description

update the help desciption for 'wic write' command to
match behaviour.

see commit:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/scripts/wic?id=74b44e59be89c738f702948f9e16e367c0ba43ba

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogo: fix CVE-2019-16276
Chen Qi [Tue, 22 Oct 2019 01:31:11 +0000 (09:31 +0800)]
go: fix CVE-2019-16276

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoadwaita-icon-theme: upgrade 3.32.0 -> 3.34.0
Andreas Müller [Mon, 21 Oct 2019 21:45:44 +0000 (23:45 +0200)]
adwaita-icon-theme: upgrade 3.32.0 -> 3.34.0

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosudo: fix CVE-2019-14287
Changqing Li [Tue, 22 Oct 2019 02:47:11 +0000 (10:47 +0800)]
sudo: fix CVE-2019-14287

In Sudo before 1.8.28, an attacker with access to a Runas ALL sudoer
account can bypass certain policy blacklists and session PAM modules,
and can cause incorrect logging, by invoking sudo with a crafted user
ID. For example, this allows bypass of !root configuration, and USER=
logging, for a "sudo -u \#$((0xffffffff))" command.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson: Backport fix to assist meta-oe breakage
Richard Purdie [Sun, 20 Oct 2019 12:12:32 +0000 (13:12 +0100)]
meson: Backport fix to assist meta-oe breakage

Add a backported commit from upstream which helps fix build failures
in meta-oe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibcap-ng:upgrade 0.7.9 -> 0.7.10
Zang Ruochen [Mon, 21 Oct 2019 05:50:52 +0000 (13:50 +0800)]
libcap-ng:upgrade 0.7.9 -> 0.7.10

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoutil-linux: fix PKNAME name is NULL when use lsblk [LIN1019-2963]
Liwei Song [Mon, 21 Oct 2019 05:33:05 +0000 (13:33 +0800)]
util-linux: fix PKNAME name is NULL when use lsblk [LIN1019-2963]

PKNAME is NULL when run "lsblk -o+PKNAME /dev/sda1"
backport an upstream patch to fix it.

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-setuptools:upgrade 41.2.0 -> 41.4.0
Zang Ruochen [Mon, 21 Oct 2019 04:43:58 +0000 (12:43 +0800)]
python-setuptools:upgrade 41.2.0 -> 41.4.0

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-pip:upgrade 19.2.3 -> 19.3.1
Zang Ruochen [Mon, 21 Oct 2019 02:51:45 +0000 (10:51 +0800)]
python3-pip:upgrade 19.2.3 -> 19.3.1

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runtime/context.py: ignore more files when loading controllers
André Draszik [Mon, 21 Oct 2019 10:30:06 +0000 (11:30 +0100)]
oeqa/runtime/context.py: ignore more files when loading controllers

When loading controllers as (external) modules, the code currently
tries to load all files ending with .py. This is a problem when
during development using an editor that creates a lock-file
in the same directory as the .py file, as the lock file is
typically called '.#xxxx.py'.
Python will try to load the lock file and fail miserably with
an exception:

    The stack trace of python calls that resulted in this exception/failure was:
    File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
         0001:
     *** 0002:do_testimage(d)
         0003:
    File: 'poky/meta/classes/testimage.bbclass', lineno: 114, function: do_testimage
         0110:    netstat -an
         0111:}
         0112:
         0113:python do_testimage() {
     *** 0114:    testimage_main(d)
         0115:}
         0116:
         0117:addtask testimage
         0118:do_testimage[nostamp] = "1"
    File: 'poky/meta/classes/testimage.bbclass', lineno: 294, function: testimage_main
         0290:
         0291:    # the robot dance
         0292:    target = OERuntimeTestContextExecutor.getTarget(
         0293:        d.getVar("TEST_TARGET"), logger, d.getVar("TEST_TARGET_IP"),
     *** 0294:        d.getVar("TEST_SERVER_IP"), **target_kwargs)
         0295:
         0296:    # test context
         0297:    tc = OERuntimeTestContext(td, logger, target, host_dumper,
         0298:                              image_packages, extract_dir)
    File: 'poky/meta/lib/oeqa/runtime/context.py', lineno: 116, function: getTarget
         0112:            # XXX: Don't base your targets on this code it will be refactored
         0113:            # in the near future.
         0114:            # Custom target module loading
         0115:            target_modules_path = kwargs.get('target_modules_path', '')
     *** 0116:            controller = OERuntimeTestContextExecutor.getControllerModule(target_type, target_modules_path)
         0117:            target = controller(logger, target_ip, server_ip, **kwargs)
         0118:
         0119:        return target
         0120:
    File: 'poky/meta/lib/oeqa/runtime/context.py', lineno: 128, function: getControllerModule
         0124:    # ImportError raised if a provided module can not be imported.
         0125:    @staticmethod
         0126:    def getControllerModule(target, target_modules_path):
         0127:        controllerslist = OERuntimeTestContextExecutor._getControllerModulenames(target_modules_path)
     *** 0128:        controller = OERuntimeTestContextExecutor._loadControllerFromName(target, controllerslist)
         0129:        return controller
         0130:
         0131:    # Return a list of all python modules in lib/oeqa/controllers for each
         0132:    # layer in bbpath
    File: 'poky/meta/lib/oeqa/runtime/context.py', lineno: 163, function: _loadControllerFromName
         0159:    # Raise ImportError if a provided module can not be imported
         0160:    @staticmethod
         0161:    def _loadControllerFromName(target, modulenames):
         0162:        for name in modulenames:
     *** 0163:            obj = OERuntimeTestContextExecutor._loadControllerFromModule(target, name)
         0164:            if obj:
         0165:                return obj
         0166:        raise AttributeError("Unable to load {0} from available modules: {1}".format(target, str(modulenames)))
         0167:
    File: 'poky/meta/lib/oeqa/runtime/context.py', lineno: 173, function: _loadControllerFromModule
         0169:    @staticmethod
         0170:    def _loadControllerFromModule(target, modulename):
         0171:        obj = None
         0172:        # import module, allowing it to raise import exception
     *** 0173:        module = __import__(modulename, globals(), locals(), [target])
         0174:        # look for target class in the module, catching any exceptions as it
         0175:        # is valid that a module may not have the target class.
         0176:        try:
         0177:            obj = getattr(module, target)
    Exception: ImportError: No module named 'oeqa.controllers.'

Simply ignore those when collecting the list of files to try
to load.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibc-package.bbclass: Use with to manage filehandle in do_spit_gconvs
Ola x Nilsson [Mon, 21 Oct 2019 10:30:34 +0000 (12:30 +0200)]
libc-package.bbclass: Use with to manage filehandle in do_spit_gconvs

Tweak the write loop slightly to avoid dict lookups that can easily be
done in the for loop.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool-source.bbclass: Use with to manage file handle lifetime
Ola x Nilsson [Mon, 21 Oct 2019 10:30:33 +0000 (12:30 +0200)]
devtool-source.bbclass: Use with to manage file handle lifetime

Replace copy-and-if with a filtering list comprehension.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackage.bbclass: Use with to manage file handle lifetimes
Ola x Nilsson [Mon, 21 Oct 2019 10:30:32 +0000 (12:30 +0200)]
package.bbclass: Use with to manage file handle lifetimes

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoreport-error.bbclass: Use with to control file handle lifetime
Ola x Nilsson [Mon, 21 Oct 2019 10:30:31 +0000 (12:30 +0200)]
report-error.bbclass: Use with to control file handle lifetime

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolib/oe/package_manager: Use with to control file handle lifetime
Ola x Nilsson [Mon, 21 Oct 2019 10:30:29 +0000 (12:30 +0200)]
lib/oe/package_manager: Use with to control file handle lifetime

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolib/oe/packagedata: Use with to control file handle lifetime
Ola x Nilsson [Mon, 21 Oct 2019 10:30:28 +0000 (12:30 +0200)]
lib/oe/packagedata: Use with to control file handle lifetime

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe.types.path: Use with to control file handle lifetime
Ola x Nilsson [Mon, 21 Oct 2019 10:30:27 +0000 (12:30 +0200)]
oe.types.path: Use with to control file handle lifetime

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest/recipetool: Use with to control file handle lifetime
Ola x Nilsson [Mon, 21 Oct 2019 10:30:26 +0000 (12:30 +0200)]
oeqa/selftest/recipetool: Use with to control file handle lifetime

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agollvm: add missing Upstream-Status tags
Ross Burton [Fri, 18 Oct 2019 09:23:14 +0000 (10:23 +0100)]
llvm: add missing Upstream-Status tags

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoxorgproto: upgrade to 2019.2
Ross Burton [Thu, 17 Oct 2019 22:21:03 +0000 (23:21 +0100)]
xorgproto: upgrade to 2019.2

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolibx11: upgrade to 1.6.9
Ross Burton [Thu, 17 Oct 2019 22:20:34 +0000 (23:20 +0100)]
libx11: upgrade to 1.6.9

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolibxvmc:upgrade 1.0.11 -> 1.0.12
Zang Ruochen [Mon, 7 Oct 2019 06:00:41 +0000 (14:00 +0800)]
libxvmc:upgrade 1.0.11 -> 1.0.12

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoxorgproto: fix summary
Ross Burton [Thu, 17 Oct 2019 13:38:05 +0000 (14:38 +0100)]
xorgproto: fix summary

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agodbus: update dbus-1.init to reflect new PID file
Tom Benn [Thu, 17 Oct 2019 10:20:04 +0000 (10:20 +0000)]
dbus: update dbus-1.init to reflect new PID file

The PID file referenced in dbus-1.init script was out of date and no longer existed. This meant that dbus could not be restarted via init.d without force removing the old PID file.

Signed-off-by: fridgecow <fridgecow@fb.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolibgcrypt: fix CVE-2019-12904
Yi Zhao [Tue, 15 Oct 2019 07:42:12 +0000 (15:42 +0800)]
libgcrypt: fix CVE-2019-12904

In Libgcrypt 1.8.4, the C implementation of AES is vulnerable to a
flush-and-reload side-channel attack because physical addresses are
available to other processes. (The C implementation is used on platforms
where an assembly-language implementation is unavailable.)

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2019-12904

Patches from:
https://github.com/gpg/libgcrypt/commit/1374254c2904ab5b18ba4a890856824a102d4705
https://github.com/gpg/libgcrypt/commit/daedbbb5541cd8ecda1459d3b843ea4d92788762
https://github.com/gpg/libgcrypt/commit/a4c561aab1014c3630bc88faf6f5246fee16b020

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopython: Fix CVE-2019-10160
Changqing Li [Thu, 10 Oct 2019 09:02:51 +0000 (17:02 +0800)]
python: Fix CVE-2019-10160

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobluez5: refresh upstreamed patches
Ross Burton [Wed, 9 Oct 2019 15:19:13 +0000 (16:19 +0100)]
bluez5: refresh upstreamed patches

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agooeqa/selftest: use specialist assert* methods
Ross Burton [Wed, 9 Oct 2019 11:16:11 +0000 (12:16 +0100)]
oeqa/selftest: use specialist assert* methods

5 years agoruby: some ptest fixes
André Draszik [Tue, 1 Oct 2019 14:29:56 +0000 (15:29 +0100)]
ruby: some ptest fixes

* the (new?) ruby expects some additional compiled libraries
  to run, so we need to copy them as part of ptest.
  Fixes errors like:
  # ruby ./runner.rb ./-ext-/vm/test_at_exit.rb
  Run options:

  # Running tests:

  [1/1] TestVM#test_at_exit = 0.06 s
    1) Failure:
  TestVM#test_at_exit [/usr/lib/ruby/ptest/test/-ext-/vm/test_at_exit.rb:7]:

  1. [1/2] Assertion for "stdout"
     | <["begin", "end"]> expected but was
     | <[]>.

  2. [2/2] Assertion for "stderr"
     | <[]> expected but was
     | <["-:1:in `require': cannot load such file -- -test-/vm/at_exit (LoadError)",
     |  "\tfrom -:1:in `<main>'"]>.

* the 'erb' test can't find the erb binary, as we're not
  running this from within the build directory

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoicecc: Export ICECC_CC and friends via wrapper-script
Douglas Royds via Openembedded-core [Tue, 1 Oct 2019 04:20:18 +0000 (17:20 +1300)]
icecc: Export ICECC_CC and friends via wrapper-script

By exporting ICECC_CC, ICECC_CXX, and ICECC_VERSION in a wrapper-script,
and putting this wrapper-script in the PATH, the Makefiles generated by CMake or
the autotools are able to function correctly outside of bitbake.
This provides a convenient developer workflow in which the
modify-compile-unittest cycle can happen directly in the ${B} directory.

The `rm -f $ICE_PATH/$compiler` line is transitional,
and can go at some later date (October 2020 or later, perhaps).

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoruby: update to v2.6.4
André Draszik [Tue, 1 Oct 2019 09:54:52 +0000 (10:54 +0100)]
ruby: update to v2.6.4

Most patches had to be refreshed

Note that we can now drop
    EXTRA_AUTORECONF += "--exclude=aclocal"
from the recipe, as ruby upstream now fully supports
runnning aclocal:
    https://github.com/ruby/ruby/pull/1793/commits/df9bf70cd2275a3ddc3108f392214fcc4a9b0859
    https://github.com/ruby/ruby/commit/ec43478f34de262ebdd2922c488e265344b489c3

Also note that 'created.rid' is not being installed
anymore since v2.6.0

While additional LICENSEs were added to the recipe,
they should always have been mentioned in this recipe,
i.e. the license checksum was updated only because:
    * URLs were updated
    * new imported components were mentioned (with no new licenses)
    * formatting was changed
    * dates were updated

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoopenssl: make OPENSSL_ENGINES match install path
George McCollister [Wed, 25 Sep 2019 11:52:59 +0000 (06:52 -0500)]
openssl: make OPENSSL_ENGINES match install path

Set OPENSSL_ENGINES to the path where engines are actually installed.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoe2fsprogs:upgrade 1.45.3 -> 1.45.4
Zang Ruochen [Wed, 25 Sep 2019 08:04:44 +0000 (16:04 +0800)]
e2fsprogs:upgrade 1.45.3 -> 1.45.4

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agodevtool: add ssh key option to deploy-target param
Eduardo Abinader [Mon, 5 Aug 2019 12:20:38 +0000 (14:20 +0200)]
devtool: add ssh key option to deploy-target param

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoell: update to 0.23
Oleksandr Kravchuk [Sun, 22 Sep 2019 23:13:17 +0000 (01:13 +0200)]
ell: update to 0.23

Changelog:
- Add support for checking if uintset is empty.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agocmake.bbclass: add HOSTTOOLS_DIR to CMAKE_FIND_ROOT_PATH
Michael Ho [Wed, 14 Aug 2019 15:05:15 +0000 (17:05 +0200)]
cmake.bbclass: add HOSTTOOLS_DIR to CMAKE_FIND_ROOT_PATH

The find_program command will fail if it is used on a tool that is listed in
ASSUME_PROVIDED. This is because these tools are in the hosttools directory
which is not listed in CMAKE_FIND_ROOT_PATH so cmake will not find them.

Adding the directory HOSTTOOLS_DIR to the CMAKE_FIND_ROOT_PATH variable fixes
the initial issue of needing to search for tools in ASSUME_PROVIDED.

Note that this change alone does not fix the issue because find_program will
by default only look into the subdirectories bin and usr/bin under the paths
in CMAKE_FIND_ROOT_PATH to find the programs and the hosttools directory has
instead the symlinks directly present without these subdirectories.

Set CMAKE_PROGRAM_PATH to by default include the root directory so
find_program can search the hosttools directory without needing the prefix
directories.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobison:upgrade 3.4.1 -> 3.4.2
Zang Ruochen [Thu, 19 Sep 2019 02:41:04 +0000 (10:41 +0800)]
bison:upgrade 3.4.1 -> 3.4.2

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agodevtool: Add --remove-work option for devtool reset command
Sai Hari Chandana Kalluri [Fri, 4 Oct 2019 22:52:29 +0000 (15:52 -0700)]
devtool: Add --remove-work option for devtool reset command

Enable --remove-work option for devtool reset command that allows user
to clean up source directory within workspace.

Currently devtool reset command only removes recipes and user is forced
to manually remove the sources directory within the workspace before
running devtool modify again.

Using devtool reset -r or devtool reset --remove-work option, user can
cleanup the sources directory along with the recipe instead of manually
cleaning it.

syntax: devtool reset -r <recipename>
    Ex: devtool reset -r zip

devtool finish -r <recipename> <layer-name>
    Ex: devtool finish -r zip meta-yocto-bsp

Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopython3: ensure that all forms of python3-config are in python3-dev
Ross Burton [Thu, 17 Oct 2019 11:29:43 +0000 (12:29 +0100)]
python3: ensure that all forms of python3-config are in python3-dev

In multilib builds python3-config gets renamed to eg python3-config-lib64 but
this ends up being packaged in python3-core not python3-dev.

The manifest uses an extended glob to package all python* binaries that are not
python-config into python3-core:

            "${bindir}/python*[!-config]",

However, this doesn't do what was intended, as [] is a range match.

Replace the globs with more verbose but precise matches, and clear out
FILES_${PN} to ensure that new binaries don't end up in ${PN} (which shouldn't
exist).

[ YOCTO #13592 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopython3: alternative name is python3-config not python-config
Ross Burton [Thu, 17 Oct 2019 11:29:42 +0000 (12:29 +0100)]
python3: alternative name is python3-config not python-config

With python3-config using the 'python-config' name, it's possible for
python-config to point at python3-config, which is obviously wrong.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agotinderclient: Drop obsolete class
Richard Purdie [Mon, 21 Oct 2019 11:40:35 +0000 (12:40 +0100)]
tinderclient: Drop obsolete class

This was used for build result reporting back in the OE-Classic days. Its
not been touched in years, isn't used as far as I know and can be removed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-native: Remove debug.patch
Max Tomago [Tue, 15 Oct 2019 16:37:44 +0000 (17:37 +0100)]
python-native: Remove debug.patch

It doesn't look like it should be there.

Signed-off-by: Max Tomago <max.tomago@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoaspell: upgrade from 0.60.7 to 0.60.8
Trevor Gamblin [Wed, 16 Oct 2019 13:23:21 +0000 (06:23 -0700)]
aspell: upgrade from 0.60.7 to 0.60.8

New version fixes CVE-2019-17544 as well as various other bugs.

CVE: CVE-2019-17544

RP: Added tweak to fix meta-selftest
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd.bbclass: enable all services specified in ${SYSTEMD_SERVICE}
Mikko Rapeli [Thu, 17 Oct 2019 07:31:58 +0000 (10:31 +0300)]
systemd.bbclass: enable all services specified in ${SYSTEMD_SERVICE}

This has been the traditional way of enabling systemd services.
It may conflict with presets feature, but other layers, image classes
and recipes add services to be enabled using SYSTEMD_SERVICE
variable also with read-only rootfs, e.g. IMAGE_FEATURES has
stateless-rootfs and systemd_preset_all task is not executed.

Fixes startup of custom services from our recipes using custom
image classes with various BSP layers. In the worst case even
serial console getty service wasn't starting due to dependency
no not enabled services.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: Fix CVE-2019-12068
Changqing Li [Thu, 17 Oct 2019 02:52:27 +0000 (10:52 +0800)]
qemu: Fix CVE-2019-12068

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runtime/systemd: skip unit enable/disable on read-only-rootfs
André Draszik [Thu, 17 Oct 2019 09:28:02 +0000 (10:28 +0100)]
oeqa/runtime/systemd: skip unit enable/disable on read-only-rootfs

This doesn't work on read-only-rootfs:
    AssertionError: 1 != 0 : SYSTEMD_BUS_TIMEOUT=240s systemctl disable avahi-daemon.service
    Failed to disable unit: File /etc/systemd/system/multi-user.target.wants/avahi-daemon.service: Read-only file system

This patch does two things:
1) Decorate the existing test to be skipped if the rootfs is
   read-only
2) add a new test to be executed only if the rootfs is
   read-only. This new test remounts the rootfs read-write
   before continuing to execute the existing test, making
   sure to clean up correctly after itself (remount r/o
   again).

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runtime/opkg: skip install on read-only-rootfs
André Draszik [Wed, 16 Oct 2019 09:18:24 +0000 (10:18 +0100)]
oeqa/runtime/opkg: skip install on read-only-rootfs

Images can have package management enabled, but be
generally running as read-only. In this case, the
test fails at the moment with various errors due to
that.

Use the new @skipIfFeature decorator to also skip
this test in that case.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/decorator: add skipIfFeature
André Draszik [Wed, 16 Oct 2019 09:18:23 +0000 (10:18 +0100)]
oeqa/core/decorator: add skipIfFeature

skipIfFeature will skip a test if a given DIST_FEATURE
or IMAGE_FEATURE is enabled.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runtime/df: don't fail on long device names
André Draszik [Wed, 16 Oct 2019 09:18:22 +0000 (10:18 +0100)]
oeqa/runtime/df: don't fail on long device names

When device names are long (more than 20 characters), the
df test will fail with an exception:
    self.assertTrue(int(output)>5120, msg=msg)
    ValueError: invalid literal for int() with base 10: ''
at least when busybox is in use.

The reason is that busybox breaks the line in that case:
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/disk/by-partuuid/8e991e5a-cebd-4f88-9494-c9db4f30cb02
                           1998672     87024   1790408   5% /
and the code tries to extract the fourth field from the
second line, which is empty of course.

df can be told not to break lines, though, using the -P
flag, which turns on the POSIX output format, and is
supported by busybox df and coreutils df:
    Filesystem           1024-blocks    Used Available Capacity Mounted on
    /dev/disk/by-partuuid/8e991e5a-cebd-4f88-9494-c9db4f30cb02   1998672     87024   1790408   5% /

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotestimage.bbclass: enable ssh agent forwarding
André Draszik [Wed, 16 Oct 2019 09:18:21 +0000 (10:18 +0100)]
testimage.bbclass: enable ssh agent forwarding

Some targets might use ssh to do their power- or serial-
control. In that case, ssh might need access to the
ssh agent, or otherwise won't work.

So export it into the environment.

Note that the (old) oeqa/controllers/masterimage.py
tries to do that as well by exporting all of BB_ORIGENV
into the test environment. Here in testimage.bbclass we
are a bit more strict and only pass the ssh related
environment variables.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotestimage.bbclass: support hardware-controlled targets
André Draszik [Wed, 16 Oct 2019 09:18:20 +0000 (10:18 +0100)]
testimage.bbclass: support hardware-controlled targets

Since the introduction of the new runtime framework for target
testing in commit 2aa5a4954d76
("testimage.bbclass: Migrate class to use new runtime framework")
commit 3857e5c91da6 in poky.git, target controllers have no
access to the global datastore 'd' anymore.

This makes it impossible for a specific OEQA (hardware)
controller to access documented properties like
TEST_POWERCONTROL_CMD, TEST_SERIALCONTROL_CMD, etc,
meaning it's impossible for those controllers to actually
control the hardware.

To solve this, simply add those documented variables into
the target_kwargs[].

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogawk: add PACKAGECONFIG for readline
Ross Burton [Thu, 17 Oct 2019 11:29:45 +0000 (12:29 +0100)]
gawk: add PACKAGECONFIG for readline

Add a PACKAGECONFIG so that readline can be disabled if desired.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: -dev should depend on distutils
Ross Burton [Thu, 17 Oct 2019 11:29:44 +0000 (12:29 +0100)]
python3: -dev should depend on distutils

python3-config uses distutils:

Traceback (most recent call last):
  File "/usr/bin/python3-config", line 9, in <module>
    from distutils import sysconfig
ModuleNotFoundError: No module named 'distutils'

Add the dependency so that distutils is always present.

[ YOCTO #13592 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoi2c-tools: Add missing RDEPEND
Ricardo Ribalda Delgado [Thu, 17 Oct 2019 14:16:19 +0000 (16:16 +0200)]
i2c-tools: Add missing RDEPEND

Fixes:
 # decode-dimms
Can't locate Carp.pm in @INC (you may need to install the Carp module) (@INC contains: /usr/lib/perl5/site_perl/5.28.1/x86_64-linux /usr/lib/perl5/site_perl/5.28.1 /usr/lib/perl5/vendor_perl/5.28.1/x86_64-linux /usr/lib/perl5/vendor_perl/5.28.1 /usr/lib/perl5/5.28.1/x86_64-linux /usr/lib/perl5/5.28.1 .) at /usr/lib/perl5/5.28.1/Tie/Hash.pm line 190.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28.1/Tie/Hash.pm line 190.
Compilation failed in require at /usr/lib/perl5/5.28.1/x86_64-linux/POSIX.pm line 505.
Compilation failed in require at /usr/bin/decode-dimms line 41.
BEGIN failed--compilation aborted at /usr/bin/decode-dimms line 41.
root@qt5222:~# apt-get install perl-module-carp

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>