]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agoutil-linux: fix alternatives setting for unshare
Chen Qi [Thu, 11 Oct 2018 09:04:08 +0000 (17:04 +0800)]
util-linux: fix alternatives setting for unshare

The alternative setting for unshare belongs to the util-linux-unshare
package instead of the util-linux package. Fix this problem to avoid
a dead symlink /usr/bin/unshare -> /usr/bin/unshare.util-linux on target.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: add ALTERNATIVE for reboot
Anuj Mittal [Thu, 11 Oct 2018 08:41:11 +0000 (16:41 +0800)]
systemd: add ALTERNATIVE for reboot

reboot is provided by busybox too. Add ALTERNATIVE to ensure that there
are no conflicts when both are installed.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: move reboot out of init.cfg
Anuj Mittal [Thu, 11 Oct 2018 08:41:10 +0000 (16:41 +0800)]
busybox: move reboot out of init.cfg

reboot is needed for initramfs where no init manager is set. This
partially reverts:

commit b6fbb3f3d4d6367b0fd7921078f67057551c7ede
Author: Chen Qi <Qi.Chen@windriver.com>
Date:   Mon Jul 30 17:41:57 2018 +0800

    busybox: move init related configs to init.cfg

    Move init related configs to init.cfg.

    These config items do not make much sense unless busybox is selected
    as the init manager. They should belong to init.cfg.

We would need to set up ALTERNATIVES for reboot in this case.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinit-install-efi.sh: improve info message
Anuj Mittal [Thu, 11 Oct 2018 08:41:09 +0000 (16:41 +0800)]
init-install-efi.sh: improve info message

Let users know that the installation was successful and that pressing
Enter would lead to a reboot.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoprelink: Fix Segmentation fault error when prelink qemu
Robert Yang [Thu, 11 Oct 2018 04:06:53 +0000 (12:06 +0800)]
prelink: Fix Segmentation fault error when prelink qemu

The info->resolvetls might be NULL according to src/prelink.c:
[snip]
 /* Dynamic linker does not depend on any other library,
    all symbols resolve to themselves with the exception
    of SHN_UNDEF symbols which resolve to 0.  */
if (info->symtab[r_sym].st_shndx == SHN_UNDEF)
  {
    info->resolveent = NULL;
    info->resolvetls = NULL;
[snip]

So we must check it before use its members, otherwise, there might be
Segmentation fault error.

Fixed:
MACHINE = "qemumips"
IMAGE_INSTALL_append = " qemu"
$ bitbake core-image-minimal
[snip]
| /path/to/qemumips-poky-linux/core-image-minimal/1.0-r0/temp/run.prelink_image.1000: line 111:  1010 Segmentation fault      (core dumped)
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: use 'ping -6' if ping6 is not avaliable in netns_helper.sh
Yi Zhao [Thu, 11 Oct 2018 00:30:15 +0000 (08:30 +0800)]
ltp: use 'ping -6' if ping6 is not avaliable in netns_helper.sh

The iputils-ping6 was dropped since the 'ping6' command had been merged
into ping command. Backport patch from upstream to let both 'ping6' and
'ping -6' work.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovala: update vapigen-wrapper
Kai Kang [Wed, 10 Oct 2018 15:03:01 +0000 (23:03 +0800)]
vala: update vapigen-wrapper

The .gir files from gobject-introspection are configured to install to
${libdir}/gir-1.0 when multilib is enabled. Update vapigen-wrapper accordingly.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: fix multilib install file conflicts
Kai Kang [Wed, 10 Oct 2018 15:03:00 +0000 (23:03 +0800)]
gobject-introspection: fix multilib install file conflicts

Fix multilib isntall file conflicts for gobject-introspection.
* use multilib_script.bbclass to handle ${bindir}/g-ir-annotation-tool
  and ${bindir}/g-ir-scanner
* add configure option to install .gir files to an alternative path and
  only set it when multilib is enabled

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: add required python modules to rdepends
Kai Kang [Fri, 12 Oct 2018 05:47:31 +0000 (13:47 +0800)]
gobject-introspection: add required python modules to rdepends

It fails to run g-ir-scanner from package gobject-introspection that
missing python modules 'xml' and 'pickle'. Add them to rdepends.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage: Ensure opkg/apt test suites are run
Richard Purdie [Wed, 10 Oct 2018 13:48:50 +0000 (14:48 +0100)]
testimage: Ensure opkg/apt test suites are run

Currently only the dnf package manager tests are automatically added to the
list of tests to run. Improve the code to handle automatic addition of
the apt and opkg tests too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/manual/oe-core: Drop image build during taskexp test
Richard Purdie [Thu, 11 Oct 2018 19:20:43 +0000 (20:20 +0100)]
oeqa/manual/oe-core: Drop image build during taskexp test

Building an image takes time and isn't necessary to test taskexp,
we can drop this step.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/manual: Remove bitbake-selftest execution
Richard Purdie [Thu, 11 Oct 2018 19:19:28 +0000 (20:19 +0100)]
oeqa/manual: Remove bitbake-selftest execution

The autobuilder runs bitbake-selftest already so we don't need
to execute this manually.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/manual: transfer manual test cases from testopia to oeqa
Yeoh Ee Peng [Thu, 11 Oct 2018 09:39:01 +0000 (17:39 +0800)]
oeqa/manual: transfer manual test cases from testopia to oeqa

As part of the solution to replace Testopia, manual test cases
need to be migrated to OEQA. These manual test case json files
will serve two use cases.

Use case#1: as input to the future commandline-based manual test
runner script, where this script will display actions and expected
result information in user friendly text, then it will capture
user input for test result and log, finally it will write test
result and log into existing standardize test result json format
from OEQA framework for automated tests.

Use case#2: QA will open and read these json file manually for
planning manual test execution. Any reader interested in
understanding manual test cases will open and read these files.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/opkg: Ensure the test works on multilib
Richard Purdie [Thu, 11 Oct 2018 19:05:35 +0000 (20:05 +0100)]
oeqa/runtime/opkg: Ensure the test works on multilib

After allarch was disabled in multilib, this test broke. Fix the test to account
for that change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage: Ensure package-index is triggered for opkg/apt tests
Richard Purdie [Wed, 10 Oct 2018 22:25:30 +0000 (23:25 +0100)]
testimage: Ensure package-index is triggered for opkg/apt tests

If the opkg/apt tests are run without a package-index they will fail.
Trigger this here for now as a dependency until the code can be improved.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage: Ensure TESTIMAGEDEPENDS is appended to for qemuall override
Richard Purdie [Wed, 10 Oct 2018 22:25:05 +0000 (23:25 +0100)]
testimage: Ensure TESTIMAGEDEPENDS is appended to for qemuall override

The current qemuall override overwrites other dependencies unintentionally.
Tweak the code to avoid this by appending to the variable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/utils: add eol to format_pkg_list()
grygorii tertychnyi via Openembedded-core [Wed, 10 Oct 2018 16:26:24 +0000 (19:26 +0300)]
lib/oe/utils: add eol to format_pkg_list()

Append '\n' to the non-empty formatted string before return. If you
write it to the (manifest) file, it will ensure file ends with a newline.

Many GNU utilities have problems processing the last line of a file
if it is not '\n' terminated. E.g. if the last line is not terminated
by a newline character, then "read" will read it but return false,
leaving the broken partial line in the read variable(s).
It can also break or adversely affect some text processing tools,
that operate on the file.

Signed-off-by: grygorii tertychnyi <gtertych@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibproxy: correctly disable the KDE module
Ross Burton [Wed, 10 Oct 2018 15:07:48 +0000 (16:07 +0100)]
libproxy: correctly disable the KDE module

The configuration option is WITH_KDE now, as it supports both KDE4 and KDE5.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibproxy: disable python2 and python3 support
Pascal Bach [Wed, 10 Oct 2018 14:28:38 +0000 (16:28 +0200)]
libproxy: disable python2 and python3 support

The option WITH_PYTHON got replaced by
WITH_PYTHON2 and WITH_PYTHON3.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibarchive: fix bug1066
Andrej Valek [Wed, 10 Oct 2018 13:40:14 +0000 (15:40 +0200)]
libarchive: fix bug1066

Fix out of bounds read on empty string filename for guntar, pax and v7tar

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxml2: Make it compatible with externalsrc
Peter Kjellerstedt [Mon, 24 Sep 2018 19:03:13 +0000 (21:03 +0200)]
libxml2: Make it compatible with externalsrc

Fetch the test tar ball to a subdirectory in ${S}. This avoids the
following error after having done `devtool modify libxml2`:

| DEBUG: Executing shell function do_configure
| find: ‘.../build/tmp/work/mips32r2el-nf-poky-linux/libxml2/2.9.4-r0/xmlconf/’: No such file or directory

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolsof: Make it compatible with externalsrc
Peter Kjellerstedt [Mon, 24 Sep 2018 19:03:12 +0000 (21:03 +0200)]
lsof: Make it compatible with externalsrc

Make the unpack task do nothing if externalsrc is in use. This avoids
the following error after having done `devtool modify lsof`:

ERROR: lsof-4.91-r0 do_unpack: Unpack failure for URL:
'file://.../builds/qemux86-64/tmp/work/core2-64-poky-linux/lsof/4.91-r0/lsof_4.91/lsof_4.91_src.tar'.
Unpack command PATH="..." tar x --no-same-owner -f
.../builds/qemux86-64/tmp/work/core2-64-poky-linux/lsof/4.91-r0/lsof_4.91/lsof_4.91_src.tar
failed with return value 2

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoacl: Make it compatible with externalsrc
Peter Kjellerstedt [Mon, 24 Sep 2018 19:03:11 +0000 (21:03 +0200)]
acl: Make it compatible with externalsrc

Make the subdir fetch path for configure.ac relative. This avoids the
following error after having done `devtool modify acl`:

ERROR: acl-2.2.52-r0 do_unpack: Unpack failure for URL:
'file://configure.ac;subdir=.../builds/qemux86-64/workspace/sources/acl'.
subdir argument isn't a subdirectory of unpack root
.../builds/qemux86-64/tmp/work/core2-64-poky-linux/acl/2.2.52-r0

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib-2.0: add missing locale dependencies to PN-ptest
Ross Burton [Tue, 9 Oct 2018 11:00:19 +0000 (12:00 +0100)]
glib-2.0: add missing locale dependencies to PN-ptest

The test suite skips several tests if the required locales are not found, so add
them as dependencies of glib-2.0-ptest.

(From OE-Core rev: b9317997bd4527b7873eb4f903cc4890b5b3580f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib: fix Lithuanian strings in GDate test suite
Ross Burton [Tue, 9 Oct 2018 11:00:13 +0000 (12:00 +0100)]
glib: fix Lithuanian strings in GDate test suite

This test suite has hard-coded strings which don't match the new translations in
glibc 2.28, so update the test suite.

(From OE-Core rev: e1fa8611de2df3a1a15ae795c34f32e4e7fdbc79)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowebkitgtk/epiphany: add opengl to REQUIRED_DISTRO_FEATURES
Hongxu Jia [Wed, 10 Oct 2018 07:16:48 +0000 (15:16 +0800)]
webkitgtk/epiphany: add opengl to REQUIRED_DISTRO_FEATURES

They can't be built without opengl in DISTRO_FEATURES.
[snip]
|webkitgtk-2.20.3/Source/WebCore/platform/graphics/OpenGLShims.h:23:10:
fatal error: GL/gl.h: No such file or directory
[snip]

Some sort of GL is needed yes. We indicate that with opengl loosely in OE

The epiphany depends on webkitgtk, add opengl to REQUIRED_DISTRO_FEATURES also.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarchiver: remove left-over debugging
Ross Burton [Tue, 9 Oct 2018 20:21:37 +0000 (21:21 +0100)]
archiver: remove left-over debugging

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowic: Support for changing the imager.
Davis, Michael [Mon, 8 Oct 2018 19:55:22 +0000 (19:55 +0000)]
wic: Support for changing the imager.

Signed-off-by: Michael Davis <michael.davis@essvote.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsndfile1: CVE-2018-13139
Changqing Li [Wed, 10 Oct 2018 01:15:53 +0000 (09:15 +0800)]
libsndfile1: CVE-2018-13139

A stack-based buffer overflow in psf_memset in common.c in libsndfile 1.0.28.

Fixed in https://github.com/erikd/libsndfile/issues/397

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxml2: move xmlcatalog and xmllint back into libxml2-utils
Andre McCurdy [Wed, 10 Oct 2018 01:04:18 +0000 (18:04 -0700)]
libxml2: move xmlcatalog and xmllint back into libxml2-utils

Packaging of libxml2-utils has been broken since 2011:

  http://git.openembedded.org/openembedded-core/commit/?id=76052861cc95fd4ad4c4b9eb6ce4cd1065ad4dc9

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopopulate_sdk_ext.bbclass: avoid populating tools twice
Jens Rehsack [Tue, 9 Oct 2018 18:34:56 +0000 (20:34 +0200)]
populate_sdk_ext.bbclass: avoid populating tools twice

When running `bitbake -c populate_sdk_ext ...` for an image
recipe inheriting populate_sdk_qt5, `nativesdk-qemu-helper` is
deployed via `nativesdk-packagegroup-sdk-host`, which already
contains some of the tools (by name: "oe-find-native-sysroot
runqemu*").

To avoid error like:
    Configuring nativesdk-packagegroup-qt5-toolchain-host.

    NOTE: Running intercept scripts:
    NOTE: > Executing update_gio_module_cache-nativesdk intercept ...
    NOTE: + [ True = False ]
    + qemu-x86_64 -r 3.2.0 -E LD_LIBRARY_PATH=/home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-image/1.0-r0/sdk-ext/image/opt/mops/2.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib:/home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-image/1.0-r0/sdk-ext/image/opt/mops/2.5+snapshot/sysroots/x86_64-pokysdk-linux/lib -L /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-image/1.0-r0/sdk-ext/image /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-image/1.0-r0/sdk-ext/image/opt/mops/2.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/nativesdk-gio-querymodules /home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-image/1.0-r0/sdk-ext/image/opt/mops/2.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/gio/modules/

    NOTE: Executing copy_buildsystem ...
    DEBUG: Executing python function copy_buildsystem
    NOTE: Generating sstate task list...
    NOTE: Generating sstate-cache...
    NOTE: Generating sstate-cache...
    DEBUG: Python function copy_buildsystem finished
    NOTE: Executing install_tools ...
    DEBUG: Executing shell function install_tools
    Traceback (most recent call last):
      File "/home/sno/gpw-community-bsp/sources/poky/scripts/lnr", line 21, in <module>
os.symlink(target, linkname)
    FileExistsError: [Errno 17] File exists: '../../../../layers/poky/scripts/oe-find-native-sysroot' -> '/home/sno/gpw-community-bsp/mops-yocto-platform/tmp/work/fischer-poky-linux/updatable-app-image/1.0-r0/sdk-ext/image//opt/mops/2.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/oe-find-native-sysroot'
    WARNING: exit code 1 from a shell command.
    DEBUG: Python function do_populate_sdk_ext finished

only add those tools unpackaged to the deployment which are
still missing.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopopulate_sdk_base: move template files location to variables
Andrej Valek [Thu, 4 Oct 2018 06:40:04 +0000 (08:40 +0200)]
populate_sdk_base: move template files location to variables

Let users to use custom toolchain template files instead of overloading
the whole function.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-firmware: use ${nonarch_base_libdir} for all firmware
Stefan Agner [Tue, 9 Oct 2018 15:27:29 +0000 (17:27 +0200)]
linux-firmware: use ${nonarch_base_libdir} for all firmware

Replace the remaining hardcoded '/lib' in kernel firmware installation
path with ${nonarch_base_libdir}.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogptfdisk: Use PACKAGECONFIG to control ncurses and popt dependencies
Jacob Kroon [Sun, 7 Oct 2018 17:11:21 +0000 (19:11 +0200)]
gptfdisk: Use PACKAGECONFIG to control ncurses and popt dependencies

gptfdisk uses a simple Makefile with no automatic detection of
external library support. Use PACKAGECONFIG_CONFARGS and pass
the make targets in EXTRA_OEMAKE.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: make tools needed for API documentation respect the manpages PACKAGECONFIG
Ross Burton [Tue, 9 Oct 2018 14:05:34 +0000 (15:05 +0100)]
perf: make tools needed for API documentation respect the manpages PACKAGECONFIG

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: unify recipe style
Andrej Valek [Tue, 9 Oct 2018 12:56:40 +0000 (14:56 +0200)]
busybox: unify recipe style

- change spaces to tabs and unify indent level

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: do not write grep outputs into log
Andrej Valek [Tue, 9 Oct 2018 12:56:39 +0000 (14:56 +0200)]
busybox: do not write grep outputs into log

Make grep quiet for prevent to write information into logs.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: fix conflict with runlevel applet
Andrej Valek [Tue, 9 Oct 2018 12:56:38 +0000 (14:56 +0200)]
busybox: fix conflict with runlevel applet

- remove OE runlevel script which conflicts with busybox's applet
- don't install empty directories

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-modules: Fix build failure by syncing up with kernel 4.19
He Zhe [Tue, 9 Oct 2018 11:44:31 +0000 (19:44 +0800)]
lttng-modules: Fix build failure by syncing up with kernel 4.19

linux-yocto-dev has been upreved to v4.19. This patch backports a patch from
upstream to make lttng-modules sync up with linux-yocto-dev and later
linux-yocto, and fix the following do_compile error.

| tmp/work/qemux86_64-poky-linux/lttng-modules/2.10.7-r0/lttng-modules-2.10.7/probes/../probes/lttng-tracepoint-event-impl.h:143:6: error: conflict
ing types for 'trace_sock_exceed_buf_limit'
|  void trace_##_name(_proto);
|       ^~~~~~

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest/runqemu: Handle SystemExit
Richard Purdie [Fri, 5 Oct 2018 18:30:08 +0000 (19:30 +0100)]
selftest/runqemu: Handle SystemExit

The sigchld handler in runqemu can raise a SystemExit when qemu shuts down.
Rather than backtracing, accept this as a successful test result.

ERROR: runqemu.QemuTest.test_qemu_can_shutdown (subunit.RemotedTestCase)
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/runqemu.py", line 183, in test_qemu_can_shutdown
    qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout)
  File "/home/pokybuild/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/runqemu.py", line 175, in _start_qemu_shutdown_check_if_shutdown_succeeded
    time.sleep(1)
  File "/home/pokybuild/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/qemurunner.py", line 100, in handleSIGCHLD
    raise SystemExit
SystemExit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemurunner: Remove the signal handler before stopping qemu
Richard Purdie [Fri, 5 Oct 2018 11:05:04 +0000 (12:05 +0100)]
qemurunner: Remove the signal handler before stopping qemu

The qemu shutdown can race with the signal handler removal leading to
confusing tracebacks on slower/loaded systems.

Remove the signal handler first before shutting down.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostrace: fix ptests
Anuj Mittal [Fri, 5 Oct 2018 11:24:01 +0000 (19:24 +0800)]
strace: fix ptests

* Let automake use parallel test harness which ensures that appropriate
environment variables are actually used.

* Copy generated config.h as part of ptest package and define a variable
in tests Makefile to control the name of target that we'd like to
invoke for tests instead of relying on default value.

* configure relies on tools that are not available in release tarballs
resulting in warnings and failed tests. Get the required information
from available files instead.

* Reduces the count of failing tests to 18 from 35. The rest of
tests fail or get skipped mostly because of missing syscalls. Number of
tests getting skipped can probably be reduced further.

Fixes [YOCTO #12948]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: Use update-alternatives for fsfreeze, nsenter
Max Krummenacher [Fri, 5 Oct 2018 10:05:18 +0000 (12:05 +0200)]
util-linux: Use update-alternatives for fsfreeze, nsenter

busybox may also provide a fsfreeze and nsenter implementation,
so use u-a to allow installing them side by side.
If one installs both, busybox and util-linux, one gets the following error
(seen on a populate-sdk run):

| ERROR: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
| then please place them into pkg_postinst_ontarget_${PN} ().
| Deferring to first boot via 'exit 1' is no longer supported.

And the coresponding do_populate_sdk extract:

| ...
| update-alternatives: Error: not linking ...sdk/image/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/sbin/fsfreeze
|     to /bin/busybox.nosuid /bin/busybox.nosuid since ...sdk/image/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/sbin/fsfreeze
|     exists and is not a link
| ...

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoparted: use update-alternatives for partprobe
Max Krummenacher [Fri, 5 Oct 2018 10:05:17 +0000 (12:05 +0200)]
parted: use update-alternatives for partprobe

busybox may also provide a partprobe implementation, so use u-a to allow
installing them side by side.
If one installs both, busybox and parted, one gets the following error:

| ERROR: image do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
| then please place them into pkg_postinst_ontarget_${PN} ().
| Deferring to first boot via 'exit 1' is no longer supported.

And the coresponding log.do_rootfs extract:

| ...
| update-alternatives: Error: not linking ...image/rootfs/usr/sbin/partprobe to /bin/busybox.nosuid since ...image/rootfs/usr/sbin/partprobe exists and is not a link
| ...

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Remove unnecessary --with-mpfr and --with-mpc when cross compiling
Mike Crowe [Fri, 5 Oct 2018 13:49:13 +0000 (14:49 +0100)]
gcc: Remove unnecessary --with-mpfr and --with-mpc when cross compiling

Passing --with-mpfr and --with-mpc when compiling the cross compiler
appears to be at best unnecessary, and at worst can cause build failures.

Firstly, the paths passed in gcc-cross-canadian are using the undefined
${layout_exec_prefix}. This results in configure passing
-I${STAGING_DIR_HOST}/include twice to the compiler when it's doing its
test builds. This is mostly pointless since that directory doesn't exist
with the default oe-core configuration - the correct path would be
-I${STAGING_DIR_HOST}/usr/include.

The path for mpfr passed in gcc-cross is correct, but unnecessary since it
is just the sysroot default.

I've gone back through the history, and it seems that these lines (or
similar ones) were originally added way back in
8800d8be25295dd7c7d84dde62c3be4df8e43346 for GCC 4.1.1 in 2006! I asked[1]
if anyone knew why this was necessary but received no response, so I can
only assume that no-one knows.

I've successfully built for various targets with this patch applied and
observed no problems.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2018-September/155971.html

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorootfs_*: Also depend on do_package_qa
Tom Rini [Fri, 5 Oct 2018 19:30:41 +0000 (15:30 -0400)]
rootfs_*: Also depend on do_package_qa

Make sure that we don't create images that have QA problems with their
package files by adding do_package_qa to do_rootfs[recrdeptask].

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopkg-utils: Add support for pigz
Mike Crowe [Fri, 5 Oct 2018 15:27:25 +0000 (16:27 +0100)]
opkg-utils: Add support for pigz

Support explicit use of pigz when compressing the package contents by
setting:

 OPKGBUILDCMD = "opkg-build -Z pigz"

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibgcrypt: Add the LICENSES file to LIC_FILES_CHKSUM
Peter Kjellerstedt [Fri, 5 Oct 2018 20:45:56 +0000 (22:45 +0200)]
libgcrypt: Add the LICENSES file to LIC_FILES_CHKSUM

The LICENSES file contains references to source files with other
licenses than GPL/LGPL that stipulate that they shall be mentioned in
any documentation accompanying a product including this library.

License-Update: Add missing LICENSES file
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib-2.0: Include the complete license information for pcre
Peter Kjellerstedt [Fri, 5 Oct 2018 20:45:55 +0000 (22:45 +0200)]
glib-2.0: Include the complete license information for pcre

For some reason, the copyright part was left out of the license
information for pcre in LIC_FILES_CHKSUM, preventing it from being
used in, e.g., documentation to satisfy the requirements of the
license.

Also drop pcre/COPYING from LIC_FILES_CHKSUM as it does not really
contain any licensing information, it only refers to a LICENSE file
that does not exist.

License-Update: Include the complete license information for pcre
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobzip2: Include the complete license information
Peter Kjellerstedt [Fri, 5 Oct 2018 20:45:54 +0000 (22:45 +0200)]
bzip2: Include the complete license information

For some reason, the copyright part was left out of the license
information included in LIC_FILES_CHKSUM, preventing it from being
used in, e.g., documentation to satisfy the requirements of the
license.

License-Update: Include the complete license information
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: Include the complete license information
Peter Kjellerstedt [Fri, 5 Oct 2018 20:45:53 +0000 (22:45 +0200)]
curl: Include the complete license information

For some reason, the copyright part was left out of the license
information included in LIC_FILES_CHKSUM, preventing it from being
used in, e.g., documentation to satisfy the requirements of the
license.

License-Update: Include the complete license information
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobinutils: fix symlinks
Achille Fouilleul [Fri, 5 Oct 2018 14:38:08 +0000 (16:38 +0200)]
binutils: fix symlinks

For nativesdk, symlinks created by do_install contain ${SDKPATHNATIVE}.

This is a problem with SDKs that include nativesdk-binutils and nativesdk-gcc.
When extracting such an SDK dangling symlinks are created, because
relocate_sdk.py does not adjust symlinks. As a result gcc ends up calling the
host binutils.

Use the os.path.relpath function to obtain shorter relative paths, which do not
contain ${SDKPATHNATIVE}.

Signed-off-by: Achille Fouilleul <achille.fouilleul@gadz.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agox264: Disable asm on musl/x86
Khem Raj [Sun, 7 Oct 2018 01:29:17 +0000 (18:29 -0700)]
x264: Disable asm on musl/x86

Fixes

WARNING: x264-r2854+gitAUTOINC+e9a5903edf-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/x264/r2854+gitAUTOINC+e9a5903edf-r0/packages-split/x264/usr/lib/libx264.so.152'
has relocations in .text [textrel]
WARNING: x264-r2854+gitAUTOINC+e9a5903edf-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/x264/r2854+gitAUTOINC+e9a5903edf-r0/packages-split/x264-bin/usr/bin/x264'
has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoffmpeg: use bfd linker always for x86 target
Khem Raj [Sun, 7 Oct 2018 01:29:16 +0000 (18:29 -0700)]
ffmpeg: use bfd linker always for x86 target

gold crashes when linking, so use bfd linker here, another option is to
use --disable-asm but then we loose performance.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: recent glibc calls syscall directly
Hongzhi.Song [Mon, 8 Oct 2018 03:31:51 +0000 (20:31 -0700)]
ltp: recent glibc calls syscall directly

The case of sigwaitinfo related to sigwaitinfo API failed.

glibc commit
  8b0e795aaa44 ("Simplify Linux sig{timed}wait{info} implementations")
  changed sigwaitinfo to call sigtimedwait, which calls rt_sigtimedwait
  syscall directly.

So, an invalid pointer no longer crashes child process and test
reports failure. Fix it by accepting either crash or EFAULT.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: add ca-certificates to python3-crypt RRECOMMENDS
Ross Burton [Mon, 8 Oct 2018 13:28:30 +0000 (14:28 +0100)]
python3: add ca-certificates to python3-crypt RRECOMMENDS

It's likely that the certificate root chain is needed if python3-crypt is
installed, so recommend it.

Also remove the redundant nativesdk-python3-crypt assignment, as the general
form is sufficient when class-extended.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsoup: upgrade to 2.62.3
Ross Burton [Mon, 8 Oct 2018 10:58:32 +0000 (11:58 +0100)]
libsoup: upgrade to 2.62.3

Freeze-breaking upgrade for a security bug fix involving cookie URLs, and a
number of static analysis fixes.

Drop CVE-2018-12910.patch as this is merged in 2.62.3.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:36 +0000 (15:04 +0100)]
libx11: fix patch headers

devtool doesn't like patches without subjects, so add meaningful subjects.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconnman: update patch status
Ross Burton [Mon, 8 Oct 2018 11:02:16 +0000 (12:02 +0100)]
connman: update patch status

These patches are all upstream now, so mark as Backport.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib11: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:55 +0000 (15:04 +0100)]
lib11: fix patch headers

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:54 +0000 (15:04 +0100)]
python3: fix patch headers

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:53 +0000 (15:04 +0100)]
python: fix patch headers

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdb: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:52 +0000 (15:04 +0100)]
gdb: fix patch headers

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibusb: ptest: don't skip debug output and fix failures processing
Maksym Kokhan via Openembedded-core [Thu, 4 Oct 2018 13:59:01 +0000 (16:59 +0300)]
libusb: ptest: don't skip debug output and fix failures processing

Current run-ptest script prints nothing, when stress tests fail.
Fix it in new implementation, discarding external dependency on sed.
Also leave in place all stress output, just add standard ptest result.

Fixes: 3f0106bf2e41 ("libusb: Add ptest")
Signed-off-by: Maksym Kokhan <maksym.kokhan@globallogic.com>
Reviewed-by: Andrii Bordunov <andrii.bordunov@globallogic.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoexternalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes
Ola x Nilsson [Thu, 4 Oct 2018 10:43:28 +0000 (12:43 +0200)]
externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes

BB_DONT_CACHE was not set for non-virtual recipes where PN != BPN, such
as quilt-native.  Recipes that do not set BBCLASSEXTEND should always
have BB_DONT_CACHE set by externalsrc.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopiglit: inherit pkgconfig
Pascal Bach [Thu, 4 Oct 2018 15:24:19 +0000 (17:24 +0200)]
piglit: inherit pkgconfig

The CMakeLists.txt of piglit uses pkgconfig internally.
This makes sure pkgconfig-native is available in any case.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopiglit: correctly find wayland include dirs
Pascal Bach [Thu, 4 Oct 2018 15:24:18 +0000 (17:24 +0200)]
piglit: correctly find wayland include dirs

Builds include host /usr/include as the wrong wayland variable was used.
The issue only surfaces if CMAKE_SYSROOT is properly set.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconf/machine/include: add mcf5441x cpu type tuning
Angelo Dureghello [Thu, 4 Oct 2018 13:29:53 +0000 (15:29 +0200)]
conf/machine/include: add mcf5441x cpu type tuning

This patch adds tuning for the mcf5441x ColdFire family.

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconf/machine/include: add m68k architecture definitions
Angelo Dureghello [Thu, 4 Oct 2018 13:29:52 +0000 (15:29 +0200)]
conf/machine/include: add m68k architecture definitions

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-arch.bbclass: add m68k to kernel arch map
Angelo Dureghello [Thu, 4 Oct 2018 13:29:51 +0000 (15:29 +0200)]
kernel-arch.bbclass: add m68k to kernel arch map

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agositeinfo: define data for m68k
Angelo Dureghello [Thu, 4 Oct 2018 13:29:50 +0000 (15:29 +0200)]
siteinfo: define data for m68k

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython: fix failing ssl tests
Anuj Mittal [Thu, 4 Oct 2018 05:09:16 +0000 (13:09 +0800)]
python: fix failing ssl tests

Backport two and pick some other in-review patches from Ubuntu to fix
ssl test failures because of OpenSSL 1.1.x changes.

Fixes [YOCTO #12788]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoe2fsprogs: add bzip2 to ptest RDEPENDS
Anuj Mittal [Thu, 4 Oct 2018 06:56:28 +0000 (14:56 +0800)]
e2fsprogs: add bzip2 to ptest RDEPENDS

A lot of tests in e2fsprogs-ptest package expect bzip2 to be present.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoe2fsprogs: fix stray quote in test configuration
Anuj Mittal [Thu, 4 Oct 2018 06:26:45 +0000 (14:26 +0800)]
e2fsprogs: fix stray quote in test configuration

Introduced during the last recipe upgrade and was causing tests to fail.

Fixes [YOCTO #12946]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibxml2: refresh CVE-2017-8872
Ross Burton [Thu, 4 Oct 2018 09:20:20 +0000 (10:20 +0100)]
libxml2: refresh CVE-2017-8872

The patch associated with the CVE-2017-8872 report was never merged into
libxml2, but a slightly different patch for the same problem was.  Cherry-pick
that as a backport, which also fixes the failing test suite.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoqemux86-directdisk: remove mem= parameter
Anuj Mittal [Wed, 3 Oct 2018 10:27:50 +0000 (18:27 +0800)]
qemux86-directdisk: remove mem= parameter

Remove usage of a specific amount of memory and let it be controlled by
users. This was the default behaviour before it was changed by commit
3b79d9a78 that switched the wks file to be used for qemux86.

Also fixes the bitbake parsing issues seen because of memory starvation
using build appliance images.

Fixes [YOCTO #12894]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoos-release: avoid multilib expand
Kai Kang [Tue, 2 Oct 2018 16:27:14 +0000 (00:27 +0800)]
os-release: avoid multilib expand

Add os-release to NON_MULTILIB_RECIPES in multilib.conf that do not do
multilib expand for os-release.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibcheck: avoid multilib install file conflict
Kai Kang [Tue, 2 Oct 2018 16:27:13 +0000 (00:27 +0800)]
libcheck: avoid multilib install file conflict

The first line of output of '$CC --version' is written to check_stdint.h
as a comment line. It causes multilib install file conflict.

Do not echo compiler version info to check_stdint.h to fix the issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoman-db: fix multilib install file conflict
Kai Kang [Tue, 2 Oct 2018 16:27:12 +0000 (00:27 +0800)]
man-db: fix multilib install file conflict

The first line of config file man_db.conf is the package name. It causes
multilib install file conflict. So add a patch to remove the line.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocups: fix multilib install file conflicts
Kai Kang [Tue, 2 Oct 2018 16:27:11 +0000 (00:27 +0800)]
cups: fix multilib install file conflicts

A comment line of conf file cups-files.conf refers to var @CUPS_SERVERBIN@
is ${libdir} related and then it causes multilib install file conflict.

Remove @CUPS_SERVERBIN@ from the comment line to avoid the conflict.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/yocto-check-layer: Don't abort when layer fails to get signatures
Aníbal Limón [Tue, 2 Oct 2018 21:43:23 +0000 (16:43 -0500)]
scripts/yocto-check-layer: Don't abort when layer fails to get signatures

When execute in multiple layers like meta-openembedded the execution is
aborted when some sublayer fails to get world signatures, so mark it as
an error and continue the execution in the remaining sublayers.

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Disable asm on musl
Khem Raj [Wed, 3 Oct 2018 00:44:05 +0000 (17:44 -0700)]
mesa: Disable asm on musl

Musl started blocking dlopen of libs with initial-exec references into
dynamic TLS area, via

https://github.com/kraj/musl/commit/5c2f46a214fceeee3c3e41700c51415e0a4f1acd

prior to that commit, musl was loading it and silently letting
subsequent TLS accesses via the miscompiled code clobber memory that
didn't belong to them

This was wrong behavior and it relied on additional space reserved by
libc in TLS space to adjust fo such broken libs, but it also fails
with glibc if the reserved space was already used up

Right fix is that  mesa should be patched to remove all the
initial-exec hacks and use real TLS, and -mtls-dialect=gnu2 (TLSDESC)
should be used on archs it's supported on (i386, x86_64, and aarch64)
to make up for the lost performance, but mesa hardcodes the initial-exec,
so there must be a reason that probably is better known to mesa devs.

but we 'fixed' it for musl by adding --disable-glx-tls for mesa in OE,
which uses pthread_getspecific instead and makes is lot slower.

this caused additional problems with security flags on, it get textrels
in .text segment. Therefore this is 'second fix' to get us through this
warning.

Cause is some unknown part of mesa's x86 assembly code is broken by
readonly text segments

[ YOCTO #12918 ]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopango: respect PTEST_ENABLED
Ross Burton [Wed, 3 Oct 2018 12:29:15 +0000 (13:29 +0100)]
pango: respect PTEST_ENABLED

Don't use the 'ptest' DISTRO_FEATURE because whilst that can be on,
PTEST_ENABLED could have been overwritten.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopango: don't disable debugging
Ross Burton [Wed, 3 Oct 2018 11:48:51 +0000 (12:48 +0100)]
pango: don't disable debugging

By explicitly disabling debugging we get *no* safety checks: the GLib asserts
and checks are all disabled.  This is fine for absolute performance but
something that should be opt-in.

This also breaks the test suite, which relies upon the asserts to work.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoconnman: neaten patches
Ross Burton [Wed, 3 Oct 2018 11:01:36 +0000 (12:01 +0100)]
connman: neaten patches

The upstreamable include-tweaking patches contained fragments that should be in
the not-upstreamable musl-specific res_ninit replacement, so move them to the
right patch.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonativesdk-packagegroup-sdk-host.bb: remove nativesdk-dnf
Chen Qi [Sat, 29 Sep 2018 06:13:29 +0000 (14:13 +0800)]
nativesdk-packagegroup-sdk-host.bb: remove nativesdk-dnf

Currently the dnf command inside SDK does not work. We will
get error message like below:

  ImportError: No module named 'dnf'

So remove it from nativesdk-packagegroup-sdk-host, otherwise,
users will get unpleasant experience if they are working inside
SDK environment on some distros like Fedora.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl: skip ptest case `test_symbol_presence'
Hongxu Jia [Tue, 2 Oct 2018 16:58:28 +0000 (00:58 +0800)]
openssl: skip ptest case `test_symbol_presence'

The case in ptest use `nm -Pg libcrypto.so' to check symbol presence,
if library is stripped or debug split, the case will fail.

The test case needs debug symbols then we just disable that test.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoelfutils: fix CVE-2018-16403 & CVE-2018-16402
Hongxu Jia [Fri, 28 Sep 2018 06:29:27 +0000 (14:29 +0800)]
elfutils: fix CVE-2018-16403 & CVE-2018-16402

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonativesdk-bison: Add to nativesdk-packagegroup-sdk-host and set BISON_PKGDATADIR
He Zhe [Fri, 28 Sep 2018 03:18:24 +0000 (11:18 +0800)]
nativesdk-bison: Add to nativesdk-packagegroup-sdk-host and set BISON_PKGDATADIR

bison is needed when building kernel. Add it to nativesdk-packagegroup-sdk-host
and set BISON_PKGDATADIR for bison to use its components.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibtiff: fix CVE-2017-17095
Joe Slater [Wed, 26 Sep 2018 22:51:25 +0000 (15:51 -0700)]
libtiff: fix CVE-2017-17095

Backport fix from gitlab.com/libtiff/libtiff.
nvd.nist.gov does not yet reference this patch.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoglibc: Fix glibc reproducibility issues
Richard Purdie [Wed, 3 Oct 2018 11:20:04 +0000 (12:20 +0100)]
glibc: Fix glibc reproducibility issues

Currently for non-IA platforms, glibc is not reproducible as host system
paths are being injected into target binaries. These spread through
all target binaries on the system which link to the libc.

Add a patch which injects .file directives into the assembly pieces
and works around this issue until a better solution can be found.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa-ide-support: add cmake-native
Chin Huat Ang [Mon, 1 Oct 2018 05:09:45 +0000 (13:09 +0800)]
meta-ide-support: add cmake-native

Include cmake as part of build tree toolchain so that it is populated
into meta-ide-support's recipe-sysroot-native which is prepended to
$PATH, this ensures cmake-native is picked up first before host cmake.

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: bump SRCREV to latest 2.28
Martin Jansa [Sun, 30 Sep 2018 16:27:37 +0000 (16:27 +0000)]
glibc: bump SRCREV to latest 2.28

* drop one patch already applied in upstream

* this is still only partial fix for issues with -O0 and the bigger
  issue might be detected in runtime as described in:
  https://sourceware.org/glibc/wiki/FAQ#Why_do_I_get:.60.23error_.22glibc_cannot_be_compiled_without_optimization.22.27.2C_when_trying_to_compile_GNU_libc_with_GNU_CC.3F
  https://sourceware.org/bugzilla/show_bug.cgi?id=19444
  and tested in glibc build:
  https://sourceware.org/git/?p=glibc.git;a=blob;f=include/libc-symbols.h;h=8b9273c13a19f2658105c7997267d9086adae716;hb=HEAD#l74

* restore the anonymous python to trigger fatal error when -O0 is
  used (but don't restore the notes for -O, -O1, -Os

* git log --oneline 3c03baca37fdcb52c3881e653ca392bba7a99c2b..044c96f0d5595aeb0bb4e79355081c5a7f4faca5 | tee
044c96f0d5 Fix misreported errno on preadv2/pwritev2 (BZ#23579)
3a67c72c15 Fix stack overflow in tst-setcontext9 (bug 23717)
2339d6a55e i386: Use ENTRY and END in start.S [BZ #23606]
0ef2f4400c Fix strstr bug with huge needles (bug 23637)
a55e109709 Fix tst-setcontext9 for optimized small stacks.
307d04334d misc: New test misc/tst-gethostid
e7d22db29c Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
1fe2b9ca8a Fix segfault in maybe_script_execute.
0b79004569 regex: Add test tst-regcomp-truncated [BZ #23578]
58559f1443 regex: fix uninitialized memory access
aa8a3e4cde pthread_cond_broadcast: Fix waiters-after-spinning case [BZ #23538]
c87b5bab24 Improve ChangeLog message.
66fdfd57fe Regen RISC-V rvd ULPs
b0aa03dfff RISC-V: Fix rounding save/restore bug.
2f498f3d14 nss_files: Fix file stream leak in aliases lookup [BZ #23521]
bfcfa22589 nscd: Deallocate existing user names in file parser
d05b05d157 error, error_at_line: Add missing va_end calls
4b25485f03 Linux: Rewrite __old_getdents64 [BZ #23497]
726e1554ce hurd: Avoid PLTs for __pthread_get/setspecific
7f11842e74 hurd: Add missing symbols for proper libc_get/setspecific

* update 0031-sysdeps-ieee754-prevent-maybe-uninitialized-errors-w.patch
  based on review comments in upstream and extend it to cover PPC based
  on:
  http://lists.openembedded.org/pipermail/openembedded-core/2018-September/156258.html

* update 0032-sysdeps-ieee754-soft-fp-ignore-maybe-uninitialized-w.patch
  based on review comments in upstream

* add 0033-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch
  with a fix for aarch64 build with -Os

* build tested with qemuarm, qemuarm64, qemux86, qemux86-64, qemuppc,
  qemumips, qemumips64 with -O, -O1, -Os.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo.bbclass: Add -buildmode=pie for non mips arch
Robert Yang [Sat, 29 Sep 2018 09:44:46 +0000 (17:44 +0800)]
go.bbclass: Add -buildmode=pie for non mips arch

Fixed QA issue like:
WARNING: runc-docker do_package_qa: QA Issue: ELF binary '/path/to/runc-docker/usr/bin/runc' has relocations in .text [textrel]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarchiver: generalise task running when in configured mode
Ross Burton [Fri, 28 Sep 2018 13:45:41 +0000 (14:45 +0100)]
archiver: generalise task running when in configured mode

When in configured mode the archive will re-run configure itself, but that
doesn't work if there are other tasks that need to run such as cmake's
generate_toolchain_file.

Instead of hard-coding a list of classes and tasks, obtain the list of tasks
preceeding do_configure, filter out ones we don't want to re-run such as
do_patch and do_prepare_recipe_sysroot, and run those too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarchiver: check tasks exist before adding dependencies
Ross Burton [Fri, 28 Sep 2018 13:45:40 +0000 (14:45 +0100)]
archiver: check tasks exist before adding dependencies

Some recipes don't have do_configure, or have them but are marked as noexec.
Check for their existance before hooking up dependencies.

[ YOCTO #12868 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib: avoid expanding grub and grub-efi to multilib
Robert Yang [Sat, 29 Sep 2018 07:23:10 +0000 (15:23 +0800)]
multilib: avoid expanding grub and grub-efi to multilib

It doesn't make much sense to expand them to multilib, and there is an error on
qemuarm64 since grub-efi supports arm64, but doesn't support armv7a or armv7ve:

* Fixed:
  MACHINE = "qemuarm64"
  require conf/multilib.conf
  MULTILIBS = "multilib:lib32"
  DEFAULTTUNE_virtclass-multilib-lib32 = "armv7a"
  MACHINE_FEATURES_append = " efi"

  $ bitbake lib32-core-image-minimal

Also introduced a variable NON_MULTILIB_RECIPES in multilib.conf, so that we
can easily add other recipes, such as syslinux if needed.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsdl2: disable sndio explicitly to avoid inconsistent result
Chen Qi [Sat, 29 Sep 2018 06:13:30 +0000 (14:13 +0800)]
libsdl2: disable sndio explicitly to avoid inconsistent result

Explicitly disable sndio to avoid inconsistent result on different
hosts having or not having libsndio.

This must be done if we take into consideration of eSDK.

I built eSDK on Ubuntu 14.04 which has libsndio installed, and then
installed the eSDK on Fedora 27, which does not have libsndio. In
fact, on Fedora 27, I even cannot find libsndio in its repo.

The problem happens when trying to use `devtool runqemu'. The qemu
binary built on Ubuntu 14.04 needs to link to libsndio, and thus
the following error.

  runqemu - ERROR - Failed to run qemu: /path/to/qemu-system-x86_64:
            error while loading shared libraries: libsndio.so.6.1:
            cannot open shared object file: No such file or directory

So explicitly disable sndio for libsdl2 to avoid the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomime.bbclass: fix do_package_qa_multilib error of lib32-fltk
Changqing Li [Sat, 29 Sep 2018 09:27:50 +0000 (17:27 +0800)]
mime.bbclass: fix do_package_qa_multilib error of lib32-fltk

fltk.bb inherit mime.bbclass, mime.bbclass add RDEPEND during
populate_package, so need add mlprefix manually.

ERROR: QA Issue: lib32-fltk package lib32-fltk-dev - suspicious
values 'shared-mime-info-data-dev' in RRECOMMENDS [multilib]
ERROR: QA Issue: lib32-fltk package lib32-fltk-bin - suspicious
values 'shared-mime-info-data' in RDEPENDS [multilib]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib.bbclass: fix do_package_qa_multilib error
Changqing Li [Sat, 29 Sep 2018 09:27:51 +0000 (17:27 +0800)]
multilib.bbclass: fix do_package_qa_multilib error

lib32-packagegroup-anaconda-support have RDEPENDS to kernel-image,
but kernel-image don't have lib32, so skip it.

ERROR: QA Issue: lib32-packagegroup-anaconda-support package
lib32-packagegroup-anaconda-support - suspicious values 'kernel-image'
in RDEPENDS [multilib]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>