]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agodevtool-source.bbclass: Support kernel-fragments/patch not in SRC_URI
Jaewon Lee [Thu, 9 Aug 2018 23:41:29 +0000 (16:41 -0700)]
devtool-source.bbclass: Support kernel-fragments/patch not in SRC_URI

When using a recipe space kernel-meta, scc files are added through
SRC_URI, but they may include corresponding kernel fragments or patches
that are not necessarily in SRC_URI.

For bitbake, this is not a problem because the kernel-yocto class adds
the path where the .scc file was found to includes which consequentially
makes the .cfg, .patch file available to the kernel build.

However, when using devtool, only files specified in SRC_URI are copied
to oe-local-files in devtool's workspace. So if the cfg/patch file is not in
SRC_URI, it won't be copied, causing a kernel build failure when trying
to find it.

This fix parses local .scc files in SRC_URI, copies the corresponding
.cfg/.patch file to devtool's workdir, and also adds it to local_files
so it is available when doing a devtool build for the kernel.

[YOCTO #12858]

v2: also supporting patch not in SRC_URI
v3: fix spacing issues

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtool-cross: Handle ccache sstate 'infection' issues
Richard Purdie [Fri, 10 Aug 2018 10:10:15 +0000 (10:10 +0000)]
libtool-cross: Handle ccache sstate 'infection' issues

On a system without ccache, f you:

INHERIT += "ccache"
bitbake libtool-cross
<remove INHERIT>
bitbake apmd

then it fails due to being unable to find ccache. The references to ccache are
coded into libtool-cross but the sstate checksum doesn't reflect this due to the
way the class is coded (output should be the same regardless).

The simplest solution is to remove references to ccache from the libtool script.
The output then works regardless of whether ccache is present or not. The
libtool-cross script is only used in a handful of cases (most of the time its
dynamically generated by autoconf) so any performance issue is minor.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate: Remove DEPLOY_DIR_IMAGE from SSTATE_DUPWHITELIST
Richard Purdie [Thu, 9 Aug 2018 16:58:07 +0000 (16:58 +0000)]
sstate: Remove DEPLOY_DIR_IMAGE from SSTATE_DUPWHITELIST

Replace the generic whitelist entry with entries for the three specific
'problem' cases in OE-Core. This means the general DEPLOY_DIR_IMAGE entry
doesn't mask problems for others as was recently encoutered by users
reported on irc. In the whitelisted cases they occur only in multilib builds
and the files are identical.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/esdk/devtool: Drop OETestDepends usage
Richard Purdie [Thu, 9 Aug 2018 12:17:39 +0000 (12:17 +0000)]
oeqa/esdk/devtool: Drop OETestDepends usage

OETestDepends doesn't work with parallelism and in this case we don't
really need this dependency, it would just short out some tests quickly
in the rare case the esdk environment was broken.

Currently this is masking tests which is a much worse problem and we
can't make OETestDepends work reliably with parallelism so drop the
dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake: fix compiling some C++ projects with Yocto SDK and GCC
Urs Fässler [Wed, 8 Aug 2018 07:33:52 +0000 (09:33 +0200)]
cmake: fix compiling some C++ projects with Yocto SDK and GCC

Setting CMAKE_SYSROOT in the toolchain file allows CMake to correctly
remove user-provided system include directories pointing to
<sysroot>/usr/include. The mentioned projects failed with "stdlib.h:
No such file or directory #include_next <stdlib.h>".

Signed-off-by: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl_1.0: drop unnecessary call to perlpath.pl from do_configure()
Andre McCurdy [Wed, 8 Aug 2018 18:15:12 +0000 (11:15 -0700)]
openssl_1.0: drop unnecessary call to perlpath.pl from do_configure()

The perlpath.pl script is used to patch the #! lines in all perl
scripts in the utils directory. However, as these scripts are run via
e.g. "perl foo.pl", they don't actually rely on the #! path to be
correct (which can be confirmed by the observation that the path is
currently being set to ${STAGING_BINDIR_NATIVE}/perl, which doesn't
exist).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa: replace deprecated "SERIAL_CONSOLE"
Maciej Pijanowski [Wed, 8 Aug 2018 20:27:54 +0000 (22:27 +0200)]
meta: replace deprecated "SERIAL_CONSOLE"

SERIAL_CONSOLE was already deprecated in 2013, yet still some
machine configuration files were using it. This patch replaces
it with SERIAL_CONSOLES, which is the successor.

The default value in systemd-serialgetty.bb can also be safely
transitioned from SERIAL_CONSOLE to SERIAL_CONSOLES, as this
recipe already uses SERIAL_CONSOLES within do_install().

The documentation seems to be already up do date.
beaglebone-yocto.conf in the bsp-guide already uses
SERIAL_CONSOLES. The ref-manual redirects from SERIAL_CONSOLE
to SERIAL_CONSOLES.

[YOCTO #12653]

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib_header: recognize BPF as a target
Daniel Díaz [Thu, 9 Aug 2018 17:14:54 +0000 (12:14 -0500)]
multilib_header: recognize BPF as a target

When building with `clang -target bpf` using the
multilib_header, a recursion was unavoidable because
bits/wordsize.h would #include itself, still lacking
a definition for __MHWORDSIZE or __WORDSIZE.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Make bits/wordsize.h multilibbed again
Daniel Díaz [Thu, 9 Aug 2018 17:14:53 +0000 (12:14 -0500)]
glibc: Make bits/wordsize.h multilibbed again

As reported by ChenQi, leaving bits/wordsize.h out of being
multilibbed introduced a problem in building the SDK for
arm64:
  Error: Transaction check error:
    file /usr/include/bits/wordsize.h conflicts between attempted installs of lib32-libc6-dev-2.27-r0.armv7vet2hf_vfp and libc6-dev-2.27-r0.aarch64

This effectively reverts commit a74c77d6.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoman-pages: respect api-documentation
Martin Jansa [Thu, 9 Aug 2018 13:39:45 +0000 (13:39 +0000)]
man-pages: respect api-documentation

* let manpages.bbclass to enable manpages PACKAGECONFIG based on
  api-documentation DISTRO_FEATURES
  PACKAGECONFIG_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages','', d)}"
* it's true that building man-pages without manpages being enabled
  doesn't make much sense, but it's included through couple
  packagegroups:
  meta/recipes-core/packagegroups/packagegroup-self-hosted.bb:    man-pages \
  meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb:    man-pages \
  or in world even for people who might not be interested
  in man-pages

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: inherit manpages instead of adding man to RDEPENDS_${PN}-doc
Martin Jansa [Thu, 9 Aug 2018 12:14:41 +0000 (12:14 +0000)]
perf: inherit manpages instead of adding man to RDEPENDS_${PN}-doc

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe: Fix collections ABCs DeprecationWarning in Python 3.7+
Khem Raj [Wed, 8 Aug 2018 22:49:13 +0000 (15:49 -0700)]
lib/oe: Fix collections ABCs DeprecationWarning in Python 3.7+

- Prefer collections.abc (new in Python 3.3) over collections for abstract base classes

- In Python 3.8, the abstract base classes in collections.abc will no longer be exposed in
  the regular collections module. This will help create a clearer distinction between
  the concrete classes and the abstract base classes."

- https://docs.python.org/3.7/whatsnew/3.7.html#deprecated

- see https://github.com/python/cpython/commit/c66f9f8d3909f588c251957d499599a1680e2320

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk/buildgalculator: check for nativesdk-gettext-dev
Ross Burton [Wed, 8 Aug 2018 20:37:52 +0000 (21:37 +0100)]
oeqa/sdk/buildgalculator: check for nativesdk-gettext-dev

We don't need target gettext to build, but nativesdk-gettext-dev (for nls.m4).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobinutils: enable x86_64-pep for producing EFI binaries on x86-64
Christopher Clark [Mon, 30 Jul 2018 07:55:21 +0000 (00:55 -0700)]
binutils: enable x86_64-pep for producing EFI binaries on x86-64

Add x86_64-pep emulation support to the set enabled for x86_64 targets
to enable the linker to produce Portable Executables for EFI binaries.

Enables building the x86-64 EFI variant of the Xen hypervisor for
the OpenXT Project.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibusb: Add ptest
Maksym Kokhan via Openembedded-core [Mon, 6 Aug 2018 14:16:58 +0000 (17:16 +0300)]
libusb: Add ptest

The run-ptest script was added to run existing libusb1 tests and libusb1
recipe was changed to add ptest support to that package.

Signed-off-by: Maksym Kokhan <maksym.kokhan@globallogic.com>
Reviewed-by: Andrii Bordunov <andrii.bordunov@globallogic.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosysprof: Enable for aarch64.
Lei Maohui [Fri, 20 Jul 2018 18:33:30 +0000 (11:33 -0700)]
sysprof: Enable for aarch64.

It can be compiled for aarch64, so deleted the limit for aarch64.

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopackage: skip strip on signed kernel modules
foocampo [Sat, 4 Aug 2018 00:47:40 +0000 (19:47 -0500)]
package: skip strip on signed kernel modules

Executing strip action on kernel modules removes the signature.
Is not possible to strip and keep the signature, therefore avoid
strip signed kernel modules.

Signed-off-by: Omar Ocampo <omar.ocampo.coronado@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogst-validate: 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:15 +0000 (15:15 +0800)]
gst-validate: 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-python: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:14 +0000 (15:15 +0800)]
gstreamer1.0-python: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-omx: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:13 +0000 (15:15 +0800)]
gstreamer1.0-omx: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-libav: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:12 +0000 (15:15 +0800)]
gstreamer1.0-libav: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-rtsp-server: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:11 +0000 (15:15 +0800)]
gstreamer1.0-rtsp-server: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-vaapi: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:10 +0000 (15:15 +0800)]
gstreamer1.0-vaapi: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-plugins-ugly: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:09 +0000 (15:15 +0800)]
gstreamer1.0-plugins-ugly: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-plugins-bad: 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:08 +0000 (15:15 +0800)]
gstreamer1.0-plugins-bad: 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-plugins-good: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:07 +0000 (15:15 +0800)]
gstreamer1.0-plugins-good: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0-plugins-base: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:06 +0000 (15:15 +0800)]
gstreamer1.0-plugins-base: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer1.0: upgrade 1.14.1 -> 1.14.2
Anuj Mittal [Wed, 8 Aug 2018 07:15:05 +0000 (15:15 +0800)]
gstreamer1.0: upgrade 1.14.1 -> 1.14.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconf/machine-sdk: Add aarch64 SDK machine
Anders Roxell [Tue, 7 Aug 2018 12:03:57 +0000 (14:03 +0200)]
conf/machine-sdk: Add aarch64 SDK machine

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoppp: Use openssl for the DES instead of the libcrypt / glibc
Khem Raj [Mon, 6 Aug 2018 22:57:07 +0000 (15:57 -0700)]
ppp: Use openssl for the DES instead of the libcrypt / glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate: Add sstate usage summary to the build
Richard Purdie [Tue, 7 Aug 2018 14:26:20 +0000 (14:26 +0000)]
sstate: Add sstate usage summary to the build

Currently the user has no indication of how much sstate was already present
or that would be used by the build. This change adds some summary information
so that the user can see how much reuse is occurring. To fully work it
needs some extra information from a recent bitbake commit but this is
optional.

When combined with bitbake --dry-run this feature can be used to check
if sstate would be reused in a build.

[YOCTO #12749]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl_1.0: drop unnecessary dependency on makedepend-native
Andre McCurdy [Tue, 31 Jul 2018 01:28:07 +0000 (18:28 -0700)]
openssl_1.0: drop unnecessary dependency on makedepend-native

The openssl Configure script will only select standalone makedepend
(vs running "$CC -M") when building with gcc < 3.x or with an Apple
Xcode version which predates the switch to clang (in approx 2010?).
Neither of these cases are possible when building under OE, therefore
the dependency on makedepend-native can be dropped (ie align the
openssl 1.0 recipe with the 1.1 recipe, which has dropped the
makedepend-native dependency already).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibidn2: Fix charset.alias issue with musl
Khem Raj [Fri, 3 Aug 2018 17:30:14 +0000 (10:30 -0700)]
libidn2: Fix charset.alias issue with musl

Fixes
ERROR: libidn2-2.0.5-r0 do_package: QA Issue: libidn2: Files/directories were installed but not shipped in any packag
e:
  /usr/lib/charset.alias
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or del
ete them within do_install.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoclasses/sanity: Clean up getstatusoutput usage
Joshua Watt [Sun, 5 Aug 2018 19:43:10 +0000 (14:43 -0500)]
classes/sanity: Clean up getstatusoutput usage

Replace usage of oe.utils.getstatusoutput() with direct subprocess
calls.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocontext.py: Do not mask exceptions needlessly.
Paulo Neves [Mon, 6 Aug 2018 11:26:58 +0000 (13:26 +0200)]
context.py: Do not mask exceptions needlessly.

There were a lot of assumptions in the controller import
code of context.py which were not true anymore.  These
assumptions reflected themselves by catching exceptions and
re-raising them with unhelpful error messages in other parts
of the code.

This commit does not fix the classes controller classes that
became broken after the refactor but at least it allows for
the exceptions to be thrown where the imports fail, thus
actually showing what exactly went wrong with the import.

An example of such an improvement is that before if the
controller class failed during it's init contructor the
controller would just be skipped and the task would just
complain it could not find the controller.  Now for example,
if there is a NamerError due to a variable not being
declared, the user will get that report.

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibjpeg-turbo: add -fomit-frame-pointer to DEBUG_OPTIMIZATION for armv[45] with thumb...
Martin Jansa [Sun, 5 Aug 2018 19:40:57 +0000 (19:40 +0000)]
libjpeg-turbo: add -fomit-frame-pointer to DEBUG_OPTIMIZATION for armv[45] with thumb enabled

with thumb and debug enabled libjpeg-turbo gets stuck forever
when building for qemuarm.

libjpeg-turbo gets stuck in:
libjpeg-turbo/1_1.5.3-r0/build$ arm-webos-linux-gnueabi-gcc -march=armv5te -mthumb -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=libjpeg-turbo/1_1.5.3-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../libjpeg-turbo-1.5.3 -Wall -O -fno-omit-frame-pointer -g -feliminate-unused-debug-types -pipe -c ../libjpeg-turbo-1.5.3/turbojpeg.c  -fPIC -DPIC -o .libs/libturbojpeg_la-turbojpeg.o

when -mthumb, -fstack-protector-strong, -fno-omit-frame-pointer appear
together, removing one of them is enough for successful build.

similar to:
http://lists.openembedded.org/pipermail/openembedded-core/2018-May/150654.html
but in this case the build gets stuck instead of failure

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agobash: add -fomit-frame-pointer to DEBUG_OPTIMIZATION for armv[45] with thumb enabled
Martin Jansa [Sun, 5 Aug 2018 19:40:57 +0000 (19:40 +0000)]
bash: add -fomit-frame-pointer to DEBUG_OPTIMIZATION for armv[45] with thumb enabled

with thumb and debug enabled bash gets stuck forever when building for qemuarm.

bash/4.4.18-r0/build/builtins$ arm-webos-linux-gnueabi-gcc  -march=armv5te -mthumb -fstack-protector-strong   --sysroot=bash/4.4.18-r0/recipe-sysroot -c  -DHAVE_CONFIG_H -DSHELL  -I. -I..  -I../../bash-4.4.18 -I../../bash-4.4.18/include -I../../bash-4.4.18/lib -I../../bash-4.4.18/builtins    -O -fno-omit-frame-pointer -g -DNON_INTERACTIVE_LOGIN_SHELLS read.c

when -mthumb, -fstack-protector-strong, -fno-omit-frame-pointer appear
together, removing one of them is enough for successful build.

similar to:
http://lists.openembedded.org/pipermail/openembedded-core/2018-May/150654.html
but in this case the build gets stuck instead of failure

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooe_syslog.py: fix for syslog-ng
Chen Qi [Mon, 6 Aug 2018 03:17:25 +0000 (11:17 +0800)]
oe_syslog.py: fix for syslog-ng

When using syslog-ng as the syslog provider, oe_syslog test case fails
because it cannot find the syslog daemon. This is because it greps for
'syslogd' but syslog-ng's daemon is 'syslog-ng'. So fix it to check both
'syslogd' and 'syslog-ng'.

Also, when the test case fails, what I get is:
| AssertionError: 1 != 0 : No syslogd process; ps output:
<empty here>

This does not help user. The output is actually from the 'PS | GREP' command.
And when the 'PS | GREP' command fails, the output is always empty. So also fix
this problem. After the change, it looks like:
| AssertionError: False is not true : No syslog daemon process; ps output:
|   PID USER       VSZ STAT COMMAND
|     1 root     16476 S    {systemd} /sbin/init
|     2 root         0 SW   [kthreadd]
|     3 root         0 IW   [kworker/0:0]
...

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/reproducible_build: Avoid dereferencing symlinks
Joshua Watt [Mon, 6 Aug 2018 15:25:09 +0000 (10:25 -0500)]
classes/reproducible_build: Avoid dereferencing symlinks

Using os.path.getmtime() will dereference symbolic links in an attempt
to get the last modified time. This can cause errors if the target
doesn't exist, or worse map to some absolute build host path which would
make a build not reproducible.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofile: Update to 5.34
Khem Raj [Mon, 6 Aug 2018 22:57:09 +0000 (15:57 -0700)]
file: Update to 5.34

Distros which have glibc 2.28 on them otherwsise fail
to build due to some syscall mismatches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoblktool: Fix build with glibc 2.28
Khem Raj [Mon, 6 Aug 2018 22:57:06 +0000 (15:57 -0700)]
blktool: Fix build with glibc 2.28

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostrace: Fix build with glibc 2.28
Khem Raj [Mon, 6 Aug 2018 22:57:05 +0000 (15:57 -0700)]
strace: Fix build with glibc 2.28

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobison: Fix build break with glibc 2.28
Khem Raj [Mon, 6 Aug 2018 22:57:04 +0000 (15:57 -0700)]
bison: Fix build break with glibc 2.28

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogzip: Fix build with glibc 2.28
Khem Raj [Mon, 6 Aug 2018 22:57:03 +0000 (15:57 -0700)]
gzip: Fix build with glibc 2.28

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobootchart2: Update to master-tip
Khem Raj [Mon, 6 Aug 2018 22:57:02 +0000 (15:57 -0700)]
bootchart2: Update to master-tip

This has several fixes to get it building with glibc 2.28+
remove backported patch which is not needed now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofindutils: Fix build with glibc 2.28
Khem Raj [Mon, 6 Aug 2018 22:57:01 +0000 (15:57 -0700)]
findutils: Fix build with glibc 2.28

Fix foe gnulib bug and makedev header move in glibc 2.25+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agom4: Workaround gnulib's fseeko.c implementation
Khem Raj [Mon, 6 Aug 2018 22:57:00 +0000 (15:57 -0700)]
m4: Workaround gnulib's fseeko.c implementation

exposed by glibc 2.28 for details see
https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: Detect if statx struct is defined in sys/stat.h
Khem Raj [Mon, 6 Aug 2018 22:56:59 +0000 (15:56 -0700)]
systemd: Detect if statx struct is defined in sys/stat.h

Fixed build with glibc 2.28+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevicetree.bbclass: User/BSP device tree source compilation class
Nathan Rossi [Thu, 2 Aug 2018 08:55:04 +0000 (18:55 +1000)]
devicetree.bbclass: User/BSP device tree source compilation class

This bbclass implements the device tree compilation for user provided
device trees. In order to use this class, it should be inherited in a
BSP recipe which provides the sources. The default setup enables
inclusion of kernel device tree sources (though can be disabled by the
recipe by overriding DT_INCLUDE or KERNEL_INCLUDE).

This provides an additional mechanism for BSPs to provide device trees
and device tree overlays for their target machines. Whilst still
enabling access to the kernel device trees for base SoC includes and
headers.

This approach to providing device trees has benefits for certain use
cases over patching the device trees into the kernel source.

* device trees are separated from kernel source, allows for selection of
kernel and or kernel versions without needing to explicitly patch the
kernel (or appending to the kernel recipes).

* providing device trees from separate sources, from the layer,
generated by the recipe or other recipes.

This class also implements some additional features that are not
available in the kernel-devicetree flow. This includes population of
device tree blobs into the sysroot which allows for other recipes to
consume built dtbs (e.g. U-Boot with EXT_DTB compilation), device tree
overlay compilation and customizing DTC compilation args (boot
cpu/padding/etc.).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Acked-by: Martin Hundebøll <mnhu@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoicu:61.1 -> 62.1
Hong Liu [Tue, 7 Aug 2018 09:31:48 +0000 (17:31 +0800)]
icu:61.1 -> 62.1

1.Upgrade icu from 61.1 to 62.1.

2.0001-i18n-Drop-include-xlocale.h.patch has been merged.

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovala:0.40.4 -> 0.40.8
Hong Liu [Tue, 7 Aug 2018 09:31:46 +0000 (17:31 +0800)]
vala:0.40.4 -> 0.40.8

Upgrade vala from 0.40.4 to 0.40.8

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreaterepo-c:0.10.0 -> 0.11.0
Hong Liu [Tue, 7 Aug 2018 09:31:45 +0000 (17:31 +0800)]
createrepo-c:0.10.0 -> 0.11.0

Upgrade createrepo-c from 0.10.0 to 0.11.0

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonpth:1.5 -> 1.6
Hong Liu [Tue, 7 Aug 2018 09:31:44 +0000 (17:31 +0800)]
npth:1.5 -> 1.6

Upgrade npth from 1.5 to 1.6

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest/package: Fix hardlink test when using sstate
Richard Purdie [Tue, 7 Aug 2018 11:01:36 +0000 (11:01 +0000)]
selftest/package: Fix hardlink test when using sstate

The build target won't cause the package task to run if things were already
built and in sstate. Ensure we run the package task explicitly to ensure
the test works as intended.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackagegroup-core-lsb: use new name for libasound
Ross Burton [Fri, 3 Aug 2018 16:29:58 +0000 (17:29 +0100)]
packagegroup-core-lsb: use new name for libasound

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoRevert "gnutls: rationalise libunistring arguments"
Khem Raj [Fri, 3 Aug 2018 15:54:15 +0000 (08:54 -0700)]
Revert "gnutls: rationalise libunistring arguments"

This causes regression on build machines where libunistring is installed
on host. It is also because gnuts is using non standard AC macro called
AC_LIB_HAVE_LINKFLAGS to detect this library and it confusing cross builds.

This reverts commit 60fef4940de7f0440f1216eb2ea0ea683b3e8fdd.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonet-tools: Ensure quilt only operates on local patches
Alex Kiernan [Thu, 2 Aug 2018 14:42:29 +0000 (14:42 +0000)]
net-tools: Ensure quilt only operates on local patches

When net-tools is built and the local patches haven't been applied, then
`quilt pop -a` will climb parent directories attempting to find a
{patches/.pc} directory; if this succeeds then we end up popping off
some completely unrelated patches from a parent directory.

Ensure that we do have a local patches directory and then turn off the
directory climbing so that we avoid this problem.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: Add risc-v to known architectures
Khem Raj [Thu, 2 Aug 2018 18:39:20 +0000 (11:39 -0700)]
meson: Add risc-v to known architectures

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoalsa-lib: Cleanup packaging
Joshua Watt [Fri, 3 Aug 2018 14:10:30 +0000 (09:10 -0500)]
alsa-lib: Cleanup packaging

Cleans up the packaging by moving libasound.so.2 back into the alsa-lib
package which was previously empty.

Previously, it was difficult to create an image that had libasound.so.2,
then create an SDK from that image that had the proper development
files, because the only way to get libasound.so.2 was to do:

 IMAGE_INSTALL += "libasound"

This however caused a problem because all of the development files that
would be desired in the SDK were located in alsa-lib-dev, which wouldn't
be included because alsa-lib wasn't included, and it was impossible to
include alsa-lib because it was an empty package that was culled.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodesktop-file-utils: allow target/nativesdk build, not just native
Ross Burton [Fri, 3 Aug 2018 14:01:15 +0000 (15:01 +0100)]
desktop-file-utils: allow target/nativesdk build, not just native

Also fix the license, as this is GPLv2+ not just v2.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: add test that CMake works
Ross Burton [Fri, 3 Aug 2018 14:01:14 +0000 (15:01 +0100)]
oeqa/sdk: add test that CMake works

Add a new SDK testcase that builds assimp, a project that uses cmake.

Using TARGET_ARCH and TARGET_OS which is now exported into the environment,
check that the generated binaries match the ELF headers we expect.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotoolchain-scripts: put TARGET_ARCH and TARGET_OS into environment
Ross Burton [Fri, 3 Aug 2018 14:01:13 +0000 (15:01 +0100)]
toolchain-scripts: put TARGET_ARCH and TARGET_OS into environment

It's useful for the SDK to know exactly what TARGET_ARCH and TARGET_OS are,
specifically for SDK QA.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake: fix linking in multilib SDKs
Ross Burton [Fri, 3 Aug 2018 14:01:12 +0000 (15:01 +0100)]
cmake: fix linking in multilib SDKs

CMake, in it's infinite wisdom, when searching for libraries (using
find_library) will look inside the libraries PREFIX/lib, PREFIX/lib32, and
PREFIX/lib64.  In a multilib SDK more than one of these will exist (potentially
all three) and obviously for a given build configuration only one of those is
valid.  This search path is hard-coded deep inside CMake but by setting
CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX we can bypass it and set an explicit
lib<SUFFIX> to use.

Do this by writing ${baselib} into the environment file, and then stripping
"lib" from this to obtain the suffix in the cmake-specific environment script,
which is then read in the CMake toolchain.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoman-db: remove '--disable-cache-owner' option
Chen Qi [Thu, 2 Aug 2018 04:52:43 +0000 (12:52 +0800)]
man-db: remove '--disable-cache-owner' option

The following error appeared at boot.

  systemd-tmpfiles[115]: [/usr/lib/tmpfiles.d/man-db.conf:1] Unknown user '1w'

By default cache owner is enabled and defaults to 'man'. Users could
supply '--enable-cache-owner=[ARG]' to change the default cache owner.
Using '--disable-cache-owner' leaves the ownership of system-wide
cache files unconstrained, and users will allowed to modify them.

We'd better keep the default behavior, just like other distros do.

I can guess that we used '--disable-cache-owner' to bypass the following
error at do_install.

  | chown: invalid user: ‘man:man’

The 'man' user is provided by base-passwd recipe, so add it to DEPENDS.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoffmpeg: Upgrade to 4.0.2
Mingli Yu [Thu, 2 Aug 2018 01:18:50 +0000 (18:18 -0700)]
ffmpeg: Upgrade to 4.0.2

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomachine: remove kernel-modules from RRECOMMENDS
Maxin B. John [Tue, 31 Jul 2018 14:15:45 +0000 (17:15 +0300)]
machine: remove kernel-modules from RRECOMMENDS

qemumips,qemumips64 and x86 based machines include kernel-modules by
default. Remove the kernel modules from RRECOMMENDS to make it consistent
across the machines.

Tested using core-image-sato on qemumips, qemumips64, qemux86 and
qemux86-64

[YOCTO #12383]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agou-boot: Fix pylibfdt generation
Joshua Watt [Tue, 31 Jul 2018 17:19:13 +0000 (12:19 -0500)]
u-boot: Fix pylibfdt generation

u-boot attempts to build a Python library called pylibfdt. By default,
u-boot would attempt to use the build host's Python interpreter, which
causes numerous problems, not least of which is that it fails if the
host doesn't have the Python development package installed (complaining
about not being able to find Python.h)

Rectify this situation by including the proper build time dependencies
for pylibfdt and passing the proper arguments to make.

[YOCTO #12867]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython[3]native: allow use of both native Python 2 and 3
Ross Burton [Tue, 31 Jul 2018 17:05:41 +0000 (18:05 +0100)]
python[3]native: allow use of both native Python 2 and 3

Instead of both classes using ${PYTHON_PN} (which is set by python-dir and
python3-dir), hardcode the right values so that it is possible to inherit both
pythonnative and python3native at the same time.

If both are inherited then both native Pythons are available, but the last to be
inherited will be the one to set PYTHON.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: don't dump full error log on failure
Ross Burton [Tue, 31 Jul 2018 17:05:40 +0000 (18:05 +0100)]
meson: don't dump full error log on failure

If the configure fails then we don't really want to see hundreds of lines of
test output (this would be similar to dumping out autoconf's config.log).  The
error includes the path of the full log if further debugging is required.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: fix missing dependency on hostperl-runtime-native
Andre McCurdy [Tue, 31 Jul 2018 13:57:56 +0000 (06:57 -0700)]
openssl: fix missing dependency on hostperl-runtime-native

Openssl 1.1 requires perl in order to build (just as openssl 1.0
does). The missing dependency has gone unnoticed up to now since
hostperl-runtime-native is included in ASSUME_PROVIDED.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowic/qemux86: don't pass ip parameter to kernel in wks
Anuj Mittal [Wed, 1 Aug 2018 08:35:21 +0000 (16:35 +0800)]
wic/qemux86: don't pass ip parameter to kernel in wks

Images that rely on dhcp being used won't have network setup properly
otherwise.

Fixes [YOCTO #12804]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoe2fsprogs: 1.44.2 -> 1.44.3
Robert Yang [Wed, 1 Aug 2018 08:14:04 +0000 (16:14 +0800)]
e2fsprogs: 1.44.2 -> 1.44.3

Rebased ptest.patch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3-testtools: 2.2.0 -> 2.3.0
Robert Yang [Wed, 1 Aug 2018 08:14:03 +0000 (16:14 +0800)]
python3-testtools: 2.2.0 -> 2.3.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3-subunit: 1.1.0 -> 1.3.0
Robert Yang [Wed, 1 Aug 2018 08:14:02 +0000 (16:14 +0800)]
python3-subunit: 1.1.0 -> 1.3.0

The license file changes from README to README.rst, and the lines which
contains license info is from 1 to 20. The license is still Apache-2.0.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython-pbr: 3.1.1 -> 4.2.0
Robert Yang [Wed, 1 Aug 2018 08:14:01 +0000 (16:14 +0800)]
python-pbr: 3.1.1 -> 4.2.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosudo: add PACKAGECONFIG for pam-wheel
Yi Zhao [Wed, 1 Aug 2018 06:46:38 +0000 (14:46 +0800)]
sudo: add PACKAGECONFIG for pam-wheel

The pam_wheel PAM module is used to enforce the so-called wheel group.
By default it permits root access to the system if the applicant user is
a member of the wheel group.
Add PACKAGECONFIG to enable pam_wheel module for sudo.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxml2: fix libxml2 ptest fails
Changqing Li [Wed, 1 Aug 2018 05:57:01 +0000 (13:57 +0800)]
libxml2: fix libxml2 ptest fails

for core-image-minimal image,  missing these two dependency
will cause below warning and error:

warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
./test/icu_parse_test.xml generated an error

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtool: Fix patch status tag
Richard Purdie [Wed, 1 Aug 2018 09:27:45 +0000 (10:27 +0100)]
libtool: Fix patch status tag

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: Enable fallocate for native/nativesdk
Richard Purdie [Tue, 31 Jul 2018 12:18:40 +0000 (13:18 +0100)]
util-linux: Enable fallocate for native/nativesdk

fallocate was disabled for native/nativesdk in:

http://git.openembedded.org/openembedded-core/commit/?id=17f3c548caf4adec37c3bbb139aa6b3900419794

We have since added uninative support and better glibc handling for SDKs
so this difference can be dropped now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovulkan-demos: upgrade to latest commit
Maxin B. John [Tue, 31 Jul 2018 10:53:31 +0000 (13:53 +0300)]
vulkan-demos: upgrade to latest commit

Remove upstreamed patches:
        1. 0001-Fix-build-on-x86.patch
        2. 0001-Support-installing-demos-support-out-of-tree-builds.patch

Updated the following patch:
        1. 0001-Don-t-build-demos-with-questionably-licensed-data.patch

Update subcomponents gli and glm based on the new structure of
repository.

License-Update: Update in location of file. No change in checksum

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovulkan: upgrade to version 1.1.73.0
Maxin B. John [Tue, 31 Jul 2018 10:53:30 +0000 (13:53 +0300)]
vulkan: upgrade to version 1.1.73.0

Refresh the patch:
        demos-Don-t-build-tri-or-cube.patch

License-Update: Updates in copyright information.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux.inc: add fallocate only for class-target
Ioan-Adrian Ratiu [Thu, 26 Jul 2018 14:19:00 +0000 (14:19 +0000)]
util-linux.inc: add fallocate only for class-target

Because the util-linux_2.32.bb recipe explicitely disables fallocate
for nativesdk triggering build warnings:

WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux:
alternative target (sdk/usr/bin/fallocate or sdk/usr/bin/fallocate.util-linux)
does not exist, skipping...
WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: NOT adding
alternative provide sdk/usr/bin/fallocate: sdk/usr/bin/fallocate.util-linux
does not exist
WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: alt_link ==
alt_target: sdk/usr/bin/fallocate == sdk/usr/bin/fallocate

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomulticonfig: Enable multiconfig dependencies on oe-core
Alejandro Enedino Hernandez Samaniego [Wed, 25 Jul 2018 16:05:51 +0000 (09:05 -0700)]
multiconfig: Enable multiconfig dependencies on oe-core

This patch enables multiconfig dependencies (mcdepends) to be used on
recipes using the following format:

task[mcdepends] = "multiconfig:FROM-MC:TO-MC:PN:task-to-depend-on"

For the sake of simplicity consider the following example:

Assuming we have set up multiconfig builds, one for qemux86 and one for
qemuarm, named x86 and arm respectively.

Adding the following line to an image recipe (core-image-sato):
do_image[mcdepends] = "multiconfig:x86:arm:core-image-minimal:do_rootfs"

Would state that core-image-sato:do_image from x86 will depend on
core-image-minimal:do_rootfs from arm so it can be executed.

This patch makes modifications to bitbake.conf to enable mcdepends, and
to sstatesig and staging.bbclass to avoid conflicts between packages from
different multiconfigs.

[YOCTO #10681]

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-7.3: Backport fixes for std::pair high memory usage
Joel Stanley [Mon, 30 Jul 2018 05:10:29 +0000 (14:40 +0930)]
gcc-7.3: Backport fixes for std::pair high memory usage

C++ applications that contain a specfic use of std::pair with tempates
cause the build to require many gigabytes of RAM to build.

This is a fix that was applied to the upstream GCC 7 branch.

Change-Id: I213f96d1d6332e2dce5765482ff3413f1abd7ff8
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogcc-7.3: Fix build on ppc64le hosts
Joel Stanley [Mon, 30 Jul 2018 05:10:28 +0000 (14:40 +0930)]
gcc-7.3: Fix build on ppc64le hosts

When building on ppc64le hosts that have GCC 8 (such as Ubuntu 18.10)
the GCC build bootstrap fails.

 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86162

This is a fix that was applied to the upstream GCC 7 branch.

Change-Id: I7796d2a999ec420805dd1c6cf0a1ecba1de5a897
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooe-selftest: devtool: avoid parallel races by using temporary copy of core
Paul Eggleton [Thu, 26 Jul 2018 14:27:44 +0000 (16:27 +0200)]
oe-selftest: devtool: avoid parallel races by using temporary copy of core

Some of the devtool tests make changes to files under meta/ -
legitimately since we want these tests to be working with real recipes
and associated files. Unfortunately with the new oe-selftest
parallelisation this can break other tests if files go missing at the
wrong time (among other scenarios). To avoid this issue, simply take a
copy of the core repository and use that for these tests. (We copy the
entire repository since changing the path of meta/ influences COREBASE
and thus we need to have things like scripts/ alongside as well).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
6 years agopython3: fix depends of python3-tests
Markus Lehtonen [Mon, 14 Nov 2016 14:16:19 +0000 (16:16 +0200)]
python3: fix depends of python3-tests

Make the tests subpackage depend on all modules as test.regrtest uses most (if
not all) of them.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokdump: start kdump.service after basic.target
Yongxin Liu [Mon, 30 Jul 2018 09:16:32 +0000 (17:16 +0800)]
kdump: start kdump.service after basic.target

If kdump.service is set to run on boot and dump-capture kernel isn't
placed in /dev/root, kdump.service will fail to load the kernel,
since other partitions are not mounted yet. Starting kdump.service
after basic.target guarantees dump-capture kernel can be loaded in
this situation.

Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemd.py: increase default bus timeout
Chen Qi [Tue, 31 Jul 2018 05:09:37 +0000 (13:09 +0800)]
systemd.py: increase default bus timeout

Use SYSTEMD_BUS_TIMEOUT to set default timeout to 240s to avoid
timeout problem on slow qemu machines.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
6 years agosystemd: backport patch to allow setting dbus calls timeout
Chen Qi [Tue, 31 Jul 2018 03:22:38 +0000 (11:22 +0800)]
systemd: backport patch to allow setting dbus calls timeout

Backport 0001-sd-bus-make-BUS_DEFAULT_TIMEOUT-configurable.patch
which allows setting dbus calls timeout via SYSTEMD_BUS_TIMEOUT
environment variable.

This is needed as we are meeting timeout failures from the oeqa
runtime test case systemd.py.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
6 years agoparselogs.py: ignore network interface name changing failure
Chen Qi [Tue, 31 Jul 2018 02:21:20 +0000 (10:21 +0800)]
parselogs.py: ignore network interface name changing failure

The following error from systemd-udevd is not harmful. It's just
because our qemu targets are using eth0.

  Error changing net interface name 'eth0' to 'enp0s3': Device or resource busy

Note that systemd is using a different network interface naming scheme
from traditional ethX naming scheme. To make this error message go away,
we could symlink /etc/udev/rules.d/80-net-setup-link.rules to /dev/null
to recover traditional naming scheme. But I'm not sure if this will
cause regression in user experience for systemd users of OE.

So just ignore this error message so that parselogs.py test case does not
fail.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
6 years agooe_syslog.py: fix settings in OEHasPackage decorator
Chen Qi [Tue, 31 Jul 2018 01:25:01 +0000 (09:25 +0800)]
oe_syslog.py: fix settings in OEHasPackage decorator

1. For test_syslog_running, we should not restrict it to run for
   only busybox-syslog and sysklogd. So extend it to all syslog
   providers in oe-core and meta-openembedded.

2. For test_syslog_startup_config, fix to make it depend on the
   existence of busybox-syslog. The previous condition "!sysklogd
   && busybox" is incorrect, because busybox may be compiled without
   syslog support, and sysklogd and busybox-syslog conflict with
   each other.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
6 years agooeqa/selftest: Add package hardlink test
Richard Purdie [Mon, 30 Jul 2018 23:33:27 +0000 (23:33 +0000)]
oeqa/selftest: Add package hardlink test

We keep breaking the preservation of hardlinks during the packaging process.
Add a selftest which tests this to try and prevent this breaking again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage.bbclass: Fix hardlink preservation issue
Richard Purdie [Mon, 30 Jul 2018 23:02:23 +0000 (23:02 +0000)]
package.bbclass: Fix hardlink preservation issue

Recent changes broke the preservation of hardlinks during processing due to a missing index.
Fix this, reducing the size of the git recipe packages in particular (it contains many hardlinks).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomtd-utils: Revert "Return correct error number in ubi_get_vol_in"
Adriana Kobylak [Mon, 30 Jul 2018 17:56:29 +0000 (12:56 -0500)]
mtd-utils: Revert "Return correct error number in ubi_get_vol_in"

Add mtd-utils upstream patch that fixes a regression on the
mtd-utils tools such as ubinfo.

Details of the issue which affects mtd-utils 2.0.1 and 2.0.2:
http://lists.infradead.org/pipermail/linux-mtd/2018-June/081562.html

Upstream-Status: Accepted [http://git.infradead.org/mtd-utils.git/commit/0f833ac73ad631248826386e2918d8571ecf0347]

Signed-off-by: Adriana Kobylak <anoo@linux.ibm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtool: Fix problem with libtoolize in multilib installations
Richard Purdie [Mon, 30 Jul 2018 17:00:01 +0000 (17:00 +0000)]
libtool: Fix problem with libtoolize in multilib installations

Without this patch /usr/bin/libtoolize is different for each multilib
since their host-triplets are different, despite there being no difference in
the functionality of libtoolize itself.

This change just patches out the problematic line since its just a comment for the user
in help text. Ugly but solves the problem. This fixes issues where libtool and
libXX-libtool couldn't be installed into the same system.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib_script: Add support for multilib scripts
Richard Purdie [Mon, 30 Jul 2018 13:09:29 +0000 (13:09 +0000)]
multilib_script: Add support for multilib scripts

Whilst the package managers handle multilib ELF binaries well, they don't
handle scripts in the *bindir directories well. This adds support for
marking these up so that they can be handled using update-alternatives.

Its done this way so that non-multilib systems don't see any changes and
there is standardisation amongst the multilibs on how the alternatives are
named and prioritiesd. The priotitisation code needs to be added but this
change means there is somewhere to add it.

Recipe needs to set MULTILIB_SCRIPTS in the form <pkgname>:<scriptname>, e.g.
MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/file1 ${PN}:${base_bindir}/file2"
to indicate which script files to process from which packages.

libtool is used a as a reference to stop the libtool scripts conflicting
in a multilib case and allows the kernel-devsrc change to be merged.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers.inc: Update after recent additions/changes
Richard Purdie [Mon, 30 Jul 2018 08:33:50 +0000 (09:33 +0100)]
maintainers.inc: Update after recent additions/changes

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl_1.0: squash whitespace in CC_INFO
Andre McCurdy [Sat, 28 Jul 2018 20:39:23 +0000 (13:39 -0700)]
openssl_1.0: squash whitespace in CC_INFO

Squash whitespace in CC_INFO to avoid recipe whitespace changes to
CFLAG affecting the final openssl binaries (the value of CC_INFO gets
embedded in libcrypto, via buildinf.h).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: add PACKAGECONFIG option to control manpages
Andre McCurdy [Sat, 28 Jul 2018 20:39:22 +0000 (13:39 -0700)]
openssl_1.0: add PACKAGECONFIG option to control manpages

Creating the openssl manpages, which happens as part of do_install(),
can take a significant amount of time (e.g. ~50 seconds on a quad
core laptop). Provide a PACKAGECONFIG option to allow creation of the
manpages to be skipped completely if not required and inherit the
manpages class to automatically control the PACKAGECONFIG option
(based on the "api-documentation" distro feature).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>