]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
6 years agoopenssl_1.0: drop unmaintained darwin support
Andre McCurdy [Sat, 28 Jul 2018 20:39:21 +0000 (13:39 -0700)]
openssl_1.0: drop unmaintained darwin support

The fact that the darwin support only appears to consider x86 (and
not x86_64) suggests that it's not maintained or tested. In general
oe-core doesn't support building on darwin.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: drop obsolete exporting of AS, EX_LIBS and DIRS
Andre McCurdy [Sat, 28 Jul 2018 20:39:20 +0000 (13:39 -0700)]
openssl_1.0: drop obsolete exporting of AS, EX_LIBS and DIRS

Previously (when EXTRA_OEMAKE contained -e) exporting these variables
over-rode default values in the top-level openssl Makefile. However,
since -e was removed from EXTRA_OEMAKE as part of:

  http://git.openembedded.org/openembedded-core/commit/?id=537a404cfbb811fcb526cdb5f2e059257de6ef13

exporting these variables does nothing. The comment from that commit
that only AR is affected by removing -e wasn't correct, but the
effects of letting the openssl Makefile also control AS, EX_LIBS and
DIRS seem to be either benign or beneficial.

Since without -e make ignores DIRS from the environment and always
runs for all subdirs (including "test"), adding "test" to DIRS and
calling "make depend" again from do_compile_ptest() can be dropped.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: drop obsolete ca.patch
Andre McCurdy [Sat, 28 Jul 2018 20:39:19 +0000 (13:39 -0700)]
openssl_1.0: drop obsolete ca.patch

This patch adds a second line to the -help output of the CA.pl script
(which lists almost the same command line options as the line above
it but in a slightly different order). Although it's tagged as a
Debian backport, there's no patch like it in recent Debian patch sets
for openssl 1.0.2.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooeqa/selftest: check if rm_work is enabled
Anuj Mittal [Sat, 28 Jul 2018 08:53:16 +0000 (16:53 +0800)]
oeqa/selftest: check if rm_work is enabled

rm_work if enabled leads to some tests failing that rely on artifacts
being present. Check if rm_work.bbclass is included and show an error
and exit if it is.

Fixes [YOCTO #12694]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoglibc-locale: Fix host-user-contaminated QA errors
Khem Raj [Sat, 21 Jul 2018 16:27:09 +0000 (09:27 -0700)]
glibc-locale: Fix host-user-contaminated QA errors

Fixes

ERROR: glibc-locale-2.27-r0 do_package_qa: QA Issue: glibc-locale: /glibc-binary-localedata-hy-am/usr/lib/locale/hy_AM/LC_MEASUREMENT.tmp is owned by uid 3004, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoiptables: Split the iptables modules into separate packages
Peter Kjellerstedt [Thu, 19 Jul 2018 18:19:38 +0000 (20:19 +0200)]
iptables: Split the iptables modules into separate packages

By splitting the iptables modules into separate packages it is
possible to pick and choose the modules to install and thereby reduce
the total size of the installed modules.

Backwards compatibility is maintained by adding a recommendation of
iptables-modules, which is a meta package that depends on all the
generated packages.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agowebkitgtk: fix compile failure on beaglebone
Hongxu Jia [Thu, 26 Jul 2018 02:39:47 +0000 (10:39 +0800)]
webkitgtk: fix compile failure on beaglebone

Since the following patch applied in upstream webkitgtk
...
commit 1a55d8c685b3e5b4dbeda202009e7527aa59eadd
Author: simon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Nov 23 22:20:09 2017 +0000

    FELighting cleanup and optimization
    https://bugs.webkit.org/show_bug.cgi?id=179933
...

It missed to tweak `paintingData.lightVector' which caused
PaintingData' has no member named 'lightVector' on ARM_NEON
(beaglebone)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodistutils/distutils3: do not try to fetch code during do_configure
Hongxu Jia [Thu, 26 Jul 2018 14:50:21 +0000 (22:50 +0800)]
distutils/distutils3: do not try to fetch code during do_configure

For distutils3, any setup.py invoking will cause setup_requires
argument to trigger a code fetching. Since the following commit
applied in oe-core, code fetching occurs during do_confugire
before the do_compile.
...
b805cef distutils: clean the build tree in do_configure
...

Refer what do_compile did, add var-NO_FETCH_BUILD to do_configure.

Sync with distutils3, add do_configure to distutils also.

[YOCTO #12084]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agovalgrind: fix compile ptest failure on mips32
Hongxu Jia [Fri, 27 Jul 2018 14:10:47 +0000 (22:10 +0800)]
valgrind: fix compile ptest failure on mips32

- Pass mips32's CFLAGS to tests

- Fix broken inline asm in tests on mips32-linux

- Build mips n32 successfully, support it.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agobuildtools-tarball: add python3-testtools and python3-subunit
Robert Yang [Fri, 27 Jul 2018 08:52:38 +0000 (16:52 +0800)]
buildtools-tarball: add python3-testtools and python3-subunit

They are required by oeqa.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-subunit: add it for oeqa
Robert Yang [Fri, 27 Jul 2018 07:36:17 +0000 (15:36 +0800)]
python3-subunit: add it for oeqa

- It is required by oeqa, add it so that we can add nativesdk-python3-subunit
  to buildtools-tarball.
- The original one is python-subunit_1.1.0.bb which is from meta-openstack
  layer, I divided it into python-subunit.inc and python3-subunit_1.1.0.bb
  and extended to nativesdk.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-testtools: add it for oeqa
Robert Yang [Fri, 27 Jul 2018 07:36:17 +0000 (15:36 +0800)]
python3-testtools: add it for oeqa

- It is required by oeqa, add it so that we can add nativesdk-python3-testtools
  to buildtools-tarball.
- The original one is python-testtools_2.3.0.bb which is from meta-openstack
  layer, I divided it into python-testtools.inc and python3-testtools_2.2.0.bb,
  and extended to nativesdk.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-pbr: add it for python3-testtools
Robert Yang [Fri, 27 Jul 2018 06:59:25 +0000 (14:59 +0800)]
python3-pbr: add it for python3-testtools

- The python3-testtools RDEPENDS on it.
- It is from meta-python, I extended it to nativesdk.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-extras: add it for python3-testtools
Robert Yang [Fri, 27 Jul 2018 06:59:25 +0000 (14:59 +0800)]
python3-extras: add it for python3-testtools

- The python3-testtools RDEPENDS on it.
- The original one is python-extras_1.0.0.bb which is from meta-openstack
  layer, I divided it into python-extras.inc and python3-extras_1.0.0.bb, and
  extended to nativesdk.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agotestsdk.bbclass: check python module testtools and subunit
Robert Yang [Fri, 27 Jul 2018 03:17:36 +0000 (11:17 +0800)]
testsdk.bbclass: check python module testtools and subunit

The testtools or subunit is not part of python's standard library, so check them
before use.

Fixed when they are not installed on host:
$ bitbake core-image-minimal -ctestsdk
Exception: ImportError: No module named 'testtools'

Now it can run with a warning:
WARNING: core-image-minimal-1.0-r0 do_testsdk: Failed to import testtools or subunit, the testcases will run serially

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopax-utils: remove
Ross Burton [Fri, 27 Jul 2018 14:23:04 +0000 (15:23 +0100)]
pax-utils: remove

This was packaged originally to perform QA tests on binaries (text relocations
and RPATHs), but we perform those tests at build-time now.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooeqa/runtime/scanelf: remove
Ross Burton [Fri, 27 Jul 2018 14:23:12 +0000 (15:23 +0100)]
oeqa/runtime/scanelf: remove

These tests are intended to search for bad RPATHs and text relocations, but we
do these tests at buildtime and as pax-utils is never installed in any default
images the tests are never executed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoicon-naming-utils: remove
Ross Burton [Fri, 27 Jul 2018 14:16:07 +0000 (15:16 +0100)]
icon-naming-utils: remove

The last user of this was the sato theme, removed in 2016.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogccmakedep: remove
Ross Burton [Fri, 27 Jul 2018 14:11:25 +0000 (15:11 +0100)]
gccmakedep: remove

Nothing uses this in oe-core or meta-oe, so drop it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibusb-compat: remove
Ross Burton [Fri, 27 Jul 2018 11:46:52 +0000 (12:46 +0100)]
libusb-compat: remove

Nothing in oe-core or meta-oe links to this now, so the recipe can finally be
removed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocups: depend on libusb1
Ross Burton [Fri, 27 Jul 2018 11:55:46 +0000 (12:55 +0100)]
cups: depend on libusb1

There is no need to depend on the compatibility library libusb-compat, as CUPS
links directly to libusb1.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agousbutils: upgrade to 010
Ross Burton [Fri, 27 Jul 2018 11:48:41 +0000 (12:48 +0100)]
usbutils: upgrade to 010

Upgrade to 010.

usbutils uses libusb1 not the older libusb-compat library.

Refresh (and submit upstream) the bashism removal for usb-devices.

Fix LICENSE as lsusb.py is GPLv2 or v3, and set per-package LICENSE fields as
appropriate.  The actual license texts are missing from the 010 tarball (fixed
in git) so point at the SPDX statements in the source files instead.

Remove FILES_${PN}-dev as usbutils.pc doesn't exist anymore.

Remove lsusb.py hashbang change as this doesn't cause any problems now
(installed hashbang is /usr/bin/env python3).

Remove spurious zlib build dependency that isn't required.

Remove spurious RDEPENDS_${PN}-ptest, which doesn't exist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agounzip: fix symlink problem
Ross Burton [Wed, 25 Jul 2018 20:55:17 +0000 (21:55 +0100)]
unzip: fix symlink problem

Large zip files can cause unzip to crash, take a patch from Fedora to fix it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoupdate-rc.d: move to git.yoctoproject.org
Ross Burton [Wed, 25 Jul 2018 10:11:12 +0000 (11:11 +0100)]
update-rc.d: move to git.yoctoproject.org

The update-rc.d repository is now on git.yoctoproject.org, and has merged all of
the patches we were carrying.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodbus-glib: merge bb and inc
Ross Burton [Wed, 25 Jul 2018 20:15:23 +0000 (21:15 +0100)]
dbus-glib: merge bb and inc

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoossp-uuid: remove
Ross Burton [Thu, 26 Jul 2018 22:44:18 +0000 (23:44 +0100)]
ossp-uuid: remove

This project is dead (upstream website doesn't respond anymore) and can mostly
be replaced with the uuid.h in util-linux.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoovmf: remove ossp-util from DEPENDS
Ross Burton [Thu, 26 Jul 2018 22:39:42 +0000 (23:39 +0100)]
ovmf: remove ossp-util from DEPENDS

This was added back in the meta-luv days[1] presumably under the impression that
it needs ossp-uuid but in reality we rename ossp-uuid's library and uuid.h comes
from util-linux.

[1] https://github.com/intel/luv-yocto/commit/e08817342b9ea7381944e6c10c555d1c5c62aa6e

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocurl: enable libidn
Ross Burton [Mon, 23 Jul 2018 12:29:43 +0000 (13:29 +0100)]
curl: enable libidn

Now that oe-core has libidn2 we can enable it by default in target curl builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agognutls: fix libidn dependencies
Ross Burton [Mon, 23 Jul 2018 11:43:39 +0000 (12:43 +0100)]
gnutls: fix libidn dependencies

gnutls only works with libidn2, so update the build dependency.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibidn2: add new version
Ross Burton [Fri, 20 Jul 2018 22:58:32 +0000 (23:58 +0100)]
libidn2: add new version

libidn 1.x is deprecated, add the parallel-installable libidn2.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoshadow: upgrade 4.2.1 -> 4.6
Chen Qi [Fri, 27 Jul 2018 08:04:34 +0000 (16:04 +0800)]
shadow: upgrade 4.2.1 -> 4.6

The following patches are removed because problems have been fixed in this version.
  0001-shadow-CVE-2017-12424
  fix-installation-failure-with-subids-disabled.patch
  usermod-fix-compilation-failure-with-subids-disabled.patch
  CVE-2017-2616.patch
  check_size_of_uid_t_and_gid_t_using_AC_CHECK_SIZEOF.patch
  0001-Do-not-read-login.defs-before-doing-chroot.patch

The following patches are rebased.
  0001-Disable-use-of-syslog-for-sysroot.patch
  0001-useradd-copy-extended-attributes-of-home.patch
  0001-useradd.c-create-parent-directories-when-necessary.patch
  allow-for-setting-password-in-clear-text.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocoreutils: upgrade 8.29 -> 8.30
Chen Qi [Fri, 27 Jul 2018 08:04:33 +0000 (16:04 +0800)]
coreutils: upgrade 8.29 -> 8.30

License-Update: Checksum for src/ls.c is changed but the license remains
the same. The change is only about year change.

Remove 0001-Unset-need_charset_alias-when-building-for-musl.patch as the
target this patches modifies no long exists.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocups: upgrade 2.2.6 -> 2.2.8
Chen Qi [Fri, 27 Jul 2018 08:04:32 +0000 (16:04 +0800)]
cups: upgrade 2.2.6 -> 2.2.8

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agofreetype: fix potential numeric overflow
Andrej Valek [Thu, 26 Jul 2018 13:24:27 +0000 (15:24 +0200)]
freetype: fix potential numeric overflow

bug: 54023
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolsof: upgrade 4.89 -> 4.91
Ovidiu Panait [Wed, 25 Jul 2018 13:06:39 +0000 (16:06 +0300)]
lsof: upgrade 4.89 -> 4.91

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodbus: Enable user-session package config
Alistair Francis [Wed, 18 Jul 2018 22:52:25 +0000 (15:52 -0700)]
dbus: Enable user-session package config

If targeting a X11 or Wayland session the user will want user-session
enabled. To target both of these just enable user-session all the time.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogcc-8: Upgrade to 8.2 release
Khem Raj [Fri, 27 Jul 2018 08:31:13 +0000 (01:31 -0700)]
gcc-8: Upgrade to 8.2 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopackage.bbclass: append to FILERPROVIDES_*/FILERDEPENDS_* variables instead of settin...
Martin Jansa [Thu, 26 Jul 2018 11:09:58 +0000 (11:09 +0000)]
package.bbclass: append to FILERPROVIDES_*/FILERDEPENDS_* variables instead of setting them

* this allows to work around some of the issues with file-rdeps
* e.g. in my case I have /usr/lib/libmali.so.0.1 which according to rpmdeps
  provides only following libmali*
  libmali.so(LIBMALI_1.0)
  libmali.so.0.1
  but many users of this link with libmali.so directly and according to
  rpmdeps require libmali.so which causes file-rdeps for a lot of
  recipes
* I was using simple work around to just set:
  RPROVIDES_${PN} = "libmali.so libGLESv2.so libEGL.so"
  but that doesn't work well with multilib, because the value gets
  expanded with MLPREFIX and
  RPROVIDES_${PN} = "lib32-libmali.so lib32-libGLESv2.so lib32-libEGL.so"
  doesn't help at all.

[YOCTO #9217] Many unsolveable QA warnings from build-deps and file-rdeps

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoautomake: fix race in parallel builds
Hongxu Jia [Thu, 26 Jul 2018 08:42:14 +0000 (16:42 +0800)]
automake: fix race in parallel builds

While native building, there is a parallel failure
[snip]
|: && mkdir -p doc && ./pre-inst-env /usr/bin/env perl
../automake-1.16.1/doc/help2man --output=doc/aclocal-1.16.1
aclocal-1.16
|help2man: can't get `--help' info from aclocal-1.16
|Try `--no-discard-stderr' if option outputs to stderr
Makefile:3693: recipe for target 'doc/aclocal-1.16.1' failed
[snip]

Correct Makefile rule to fix the issue

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest/wic: Fix/cleanup class setup code
Richard Purdie [Thu, 26 Jul 2018 12:03:46 +0000 (12:03 +0000)]
selftest/wic: Fix/cleanup class setup code

The code was using Wic instead of WicTestCase for image_is_ready and
native_sysroot which was confusing some tests. Fix image_is_ready.

For native_sysroot, convert the only user to just run the call itself
as there is no point in executing this for all the other tests which
don't use the value.

Whilst here, move _get_image_env_path to the base class alongside
its parent variabe and fix it to use WicTestCase.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/package: fix variable name in comment
Paul Eggleton [Thu, 26 Jul 2018 14:35:39 +0000 (16:35 +0200)]
classes/package: fix variable name in comment

The variable is PACKAGE_WRITE_DEPS as seen in the default below the
comment.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/loader: Ensure invalid test names don't trigger a traceback
Richard Purdie [Thu, 26 Jul 2018 15:03:40 +0000 (15:03 +0000)]
oeqa/loader: Ensure invalid test names don't trigger a traceback

oe-selftest -r <invalid test name>

currently triggers a traceback. Ensure this doesn't happen and the user gets a
sensible error message.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemurunner.py: fix is_alive() to avoid confusing with recycled pid
Robert Yang [Wed, 25 Jul 2018 08:34:33 +0000 (16:34 +0800)]
qemurunner.py: fix is_alive() to avoid confusing with recycled pid

[YOCTO #12493]

Fixed:
- qemu started with pid 10000
- qemu exited unexpectedly
- The pid 10000 is re-used by another different process.

The is_alive() returned True in such a case because both qemu_pidfile and
/proc/10000 exist, but it's another process, this patch fixed the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Avoid multilibbing on wordsize.h
Daniel Díaz [Wed, 25 Jul 2018 18:35:34 +0000 (13:35 -0500)]
glibc: Avoid multilibbing on wordsize.h

Once another header #includes <bits/wordsize.h>, there is a
potential recursion going on because the
multilib_header_wrapper.h #includes <bits/wordsize.h> again!

This should not happen because an __arm__ (32-bits) or an
__aarch64__ (64-bits) environment guarantees that we will
be getting the correct definition, but when building against
a different target (like BPF), recursion is what happens.

This can be seen, for instance, when building eBPF programs
from the kernel with `clang -target bpf', such as the ones
located in linux/tools/testing/selftests/bpf/.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: minor indent fixes
Andre McCurdy [Tue, 24 Jul 2018 02:38:55 +0000 (19:38 -0700)]
openssl: minor indent fixes

Fix inconsistent indent (and also make the openssl 1.1 recipe more
consistent and consistent with the openssl 1.0 recipe).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl: support musl-x32 build
Andre McCurdy [Tue, 24 Jul 2018 02:38:54 +0000 (19:38 -0700)]
openssl: support musl-x32 build

Align the openssl 1.1 recipe with changes made to openssl 1.0:

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

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl: remove uclibc remnants
Andre McCurdy [Tue, 24 Jul 2018 02:38:53 +0000 (19:38 -0700)]
openssl: remove uclibc remnants

Align the openssl 1.1 recipe with changes made to openssl 1.0:

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

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: avoid running make twice for target do_compile()
Andre McCurdy [Tue, 24 Jul 2018 02:38:52 +0000 (19:38 -0700)]
openssl_1.0: avoid running make twice for target do_compile()

Currently target builds call make twice as part of do_compile(). It
appears to be an accidental side effect of needing to only pass
CC_INFO on the make command line for target builds, since CC_INFO is
only referenced by the reproducible build patches.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: drop leading "-" from no-ssl3 config option
Andre McCurdy [Tue, 24 Jul 2018 02:38:51 +0000 (19:38 -0700)]
openssl_1.0: drop leading "-" from no-ssl3 config option

Although passing -no-ssl3 works, comments in the openssl Configure
script suggest doing so isn't really correct:

  s /^-no-/no-/; # some people just can't read the instructions

The documented way to pass no-<cipher> config options is without a
leading "-"

  https://github.com/openssl/openssl/blob/OpenSSL_1_0_2-stable/INSTALL

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: fix cryptodev-linux PACKAGECONFIG support
Andre McCurdy [Tue, 24 Jul 2018 02:38:50 +0000 (19:38 -0700)]
openssl_1.0: fix cryptodev-linux PACKAGECONFIG support

Since openssl isn't an autotools recipe, defining cryptodev-linux
related config options via PACKAGECONFIG hasn't worked correctly
since PACKAGECONFIG_CONFARGS stopped being automatically appended to
EXTRA_OECONF in 2016:

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

The issue appears to have been hidden as the flags are also hardcoded
in CFLAG - and therefore always enabled, regardless of the state of
the PACKAGECONFIG option. Fix by passing both EXTRA_OECONF and
PACKAGECONFIG_CONFARGS when running the openssl Configure script.
Although the openssl 1.1 recipe doesn't contain any PACKAGECONFIG
options yet, pre-emptively make the same fix there too.

Also only enable cryptodev-linux by default for target builds (based
on the historical comments in the recipe, that seems to have been the
original intention).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: drop curly brackets from shell local variables
Andre McCurdy [Tue, 24 Jul 2018 02:38:49 +0000 (19:38 -0700)]
openssl_1.0: drop curly brackets from shell local variables

Make clear distinction between local variables and bitbake variables.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: minor recipe formatting tweaks etc
Andre McCurdy [Tue, 24 Jul 2018 02:38:48 +0000 (19:38 -0700)]
openssl_1.0: minor recipe formatting tweaks etc

Drop redundant setting of S to its default value, fix inconsistent
indent and re-order variables to align more closely to the OE
style-guide.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl_1.0: merge openssl10.inc into the openssl_1.0.2o.bb recipe
Andre McCurdy [Tue, 24 Jul 2018 02:38:47 +0000 (19:38 -0700)]
openssl_1.0: merge openssl10.inc into the openssl_1.0.2o.bb recipe

The openssl10.inc include file only has one user, so we can improve
maintainability by merging the include file into the recipe which
uses it.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoshadow: fix CVE-2017-2616
Andrej Valek [Tue, 24 Jul 2018 11:08:29 +0000 (13:08 +0200)]
shadow: fix CVE-2017-2616

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-vaapi: Add patch for EGL CFLAGS for proper EGL support
Carlos Rafael Giani [Tue, 24 Jul 2018 10:52:21 +0000 (12:52 +0200)]
gstreamer1.0-vaapi: Add patch for EGL CFLAGS for proper EGL support

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-vaapi: Remove unnecessary FILESPATH modification
Carlos Rafael Giani [Tue, 24 Jul 2018 10:52:20 +0000 (12:52 +0200)]
gstreamer1.0-vaapi: Remove unnecessary FILESPATH modification

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugin-bad: Update packageconfigs
Carlos Rafael Giani [Tue, 24 Jul 2018 10:52:19 +0000 (12:52 +0200)]
gstreamer1.0-plugin-bad: Update packageconfigs

* Add packageconfigs for gl, libde265, lcms2, openh264, tinyalsa, ttml,
  webrtc, webrtcdsp
* Remove unnecessary gstglconfig.h line, since that file is no longer
  part of -bad (it is in -base now)
* Update EXTRA_OECONF flags, since new plugins got added to -bad
* Add ttml to the default packageconfigs since its dependencies are
  all in oe-core

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugin-good: Update packageconfigs
Carlos Rafael Giani [Tue, 24 Jul 2018 10:52:18 +0000 (12:52 +0200)]
gstreamer1.0-plugin-good: Update packageconfigs

* There is no twolame recipe in oe-core or in meta-openembedded, so
  disable it
* Reorder the packageconfigs alphabetically

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugin-base: Update packageconfigs
Carlos Rafael Giani [Tue, 24 Jul 2018 10:52:17 +0000 (12:52 +0200)]
gstreamer1.0-plugin-base: Update packageconfigs

* Add patches for gbm, libpng, libjpeg to conditionally enable/disable
  them in the configure script
* Reorder the packageconfigs alphabetically

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoautotools.bbclass: fix autoreconf bbnote commandline arguments
Andre McCurdy [Tue, 24 Jul 2018 02:32:18 +0000 (19:32 -0700)]
autotools.bbclass: fix autoreconf bbnote commandline arguments

Leaving -Wcross out of the bbnote version of the autoreconf command
seems to be a long standing inconsistency (dating back to the very
first commit in oe-core) but there's no obvious reason to do so.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopackagegroup-core-full-cmdline: clean up system-services dependencies
Ross Burton [Mon, 23 Jul 2018 16:53:25 +0000 (17:53 +0100)]
packagegroup-core-full-cmdline: clean up system-services dependencies

The 'system services' packagegroup depends on a number of packages which are not
system services, so remove them from the list.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogrub2.inc: set GRUBPLATFORM_arm to efi
Mingli Yu [Mon, 23 Jul 2018 07:37:42 +0000 (15:37 +0800)]
grub2.inc: set GRUBPLATFORM_arm to efi

* grub-efi support on arm is enabled as below
  commit:
  commit 65f9fb788371a9a08e3b0e6febecb9cc2aaeefe7
  Author: Kristian Amlie <kristian.amlie@northern.tech>
  Date:   Tue Jul 10 16:07:12 2018 +0200

     grub-efi: Provide target architecture for 32-bit ARM.

* But it fails on arm as below:
  | grub-mkimage: error: cannot open `./grub-core//serial.mod': No such file or directory.

  Set GRUBPLATFORM_arm = "efi" to fix the above error

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoapr: fix ptest hangs since enter non-terminating loop
Changqing Li [Mon, 23 Jul 2018 07:37:07 +0000 (15:37 +0800)]
apr: fix ptest hangs since enter non-terminating loop

ptest hangs in teststr since enter non-terminating loop,
fixed by a backport patch

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemd: Explicitly add hidden attribute to __start_BUS_ERROR_MAP and __stop_BUS_ERRO...
Khem Raj [Sat, 21 Jul 2018 17:06:00 +0000 (10:06 -0700)]
systemd: Explicitly add hidden attribute to __start_BUS_ERROR_MAP and __stop_BUS_ERROR_MAP

These symbols appear in dynsyms of libsystemd.so and musl loader
doesnt like it

Error relocating /mnt/a/oe/build/tmp/work/i586-bec-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0: __start_BUS_ERROR_MAP: symbol not found
Error relocating /mnt/a/oe/build/tmp/work/i586-bec-linux-musl/avahi/0.7-r0/recipe-sysroot//lib/libsystemd.so.0: __stop_BUS_ERROR_MAP: symbol not found

[YOCTO #12577]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agono-static-libs.inc: use `?=' to set a default DISABLE_STATIC
Hongxu Jia [Sat, 21 Jul 2018 16:27:15 +0000 (09:27 -0700)]
no-static-libs.inc: use `?=' to set a default DISABLE_STATIC

It could be overrided by basic variable setting `='.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemtap: fix unintialized memory accesses in dwflpp::function_entrypc
Victor Kamensky via Openembedded-core [Sat, 21 Jul 2018 03:38:53 +0000 (20:38 -0700)]
systemtap: fix unintialized memory accesses in dwflpp::function_entrypc

Observed failure in SystemTap v3.3 unit testing, It was tracked down
to unintialized memory access in dwflpp::function_entrypc method.

Upstream-Status: Backport
Signed-off-by: Victor Kamensky <kamensky@cisco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemtap: 3.2 -> 3.3
Victor Kamensky via Openembedded-core [Sat, 21 Jul 2018 03:38:52 +0000 (20:38 -0700)]
systemtap: 3.2 -> 3.3

Upgrade systemtap from 3.2 to 3.3: Removed all backported patches.
Removed "remove quotes around -I include" pending patch since 3.3
got similar fix already. Resolved merge conflict in and
regenerated monitor-option.patch patch.

Signed-off-by: Victor Kamensky <kamensky@cisco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoruby: security fix CVE 2018-1000073
Joe Slater [Fri, 20 Jul 2018 21:10:02 +0000 (14:10 -0700)]
ruby: security fix CVE 2018-1000073

Directory traversal vulnerability as described by
https://nvd.nist.gov/vuln/detail/CVE-2018-1000073.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolsb: fix usrmerge install paths
Ioan-Adrian Ratiu [Fri, 20 Jul 2018 11:18:16 +0000 (14:18 +0300)]
lsb: fix usrmerge install paths

${base_prefix} is set in bitbake.conf to empty. This makes lsb_release
always install under /bin which is a problem if usrmerge is in
DISTRO_FEATURES, because it needs to be installed under /usr/bin.

By using ${root_prefix} instead, we fix the usrmerge install path and
the following QA warning goes away while keeping the non-usrmerge path
identical.

WARNING: lsb-5.0-r0 do_package: QA Issue: lsb: Files/directories were
installed but not shipped in any package:
  /bin
  /bin/lsb_release
Please set FILES such that these items are packaged. Alternatively
if they are unneeded, avoid installing them or delete them within do_install.
lsb: 2 installed and not shipped files. [installed-vs-shipped]

Also if usrmerge is defined don't try to create the lib64 symlink
because base-files handles it to avoid the do_rootfs error

Collected errors:
 * check_data_file_clashes: Package lsb wants to install file
 tmp-glibc/work/x64-nilrt-linux/test-image/1.0-r0/rootfs/lib64
         But that file is already provided by package  * base-files

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolinux-firmware: add separate packages for all brcm files
Martin Jansa [Fri, 20 Jul 2018 11:15:27 +0000 (11:15 +0000)]
linux-firmware: add separate packages for all brcm files

* no changes in the content of previously existing packages

* include some silly commands I've used to "parse" WHENCE file to
  generate these, some manual changes are still needed, like separating
  cypress licensed files, removing duplicates when 2 files are included
  in the same package (bcm4356-pcie is exception because sdio and pcie
  files have different license).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolinux-firmware: update LICENSE for bcm43* packages according to WHENCE file
Martin Jansa [Fri, 20 Jul 2018 11:15:26 +0000 (11:15 +0000)]
linux-firmware: update LICENSE for bcm43* packages according to WHENCE file

* the license was updated
  brcm/brcmfmac43430-sdio.bin:
  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=ec734a30
  brcm/brcmfmac43340-sdio.bin:
  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=5ac5ad5c
  brcm/brcmfmac43362-sdio.bin:
  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=be1c535e
  brcm/brcmfmac4354-sdio.bin:
  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=a2921812

* this shows that with every upgrade the changes in WHENCE file should
  checked carefully

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolinux-firmware: add ${PN}-cypress-license handling from meta-raspberrypi
Martin Jansa [Fri, 20 Jul 2018 11:15:25 +0000 (11:15 +0000)]
linux-firmware: add ${PN}-cypress-license handling from meta-raspberrypi

* this will break meta-raspberrypi once more, by including
  ${PN}-cypress-license package twice in PACKAGES
  I've sent fix here:
  https://github.com/agherzan/meta-raspberrypi/pull/295

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemtap: improve reproducibility
Hongxu Jia [Fri, 20 Jul 2018 09:13:50 +0000 (17:13 +0800)]
systemtap: improve reproducibility

- Fix build path issue of .pyc files:
  Supply "--root" directory to the "install" command.

- Fix build path issue of c++ object files:
  Use relative dir to include header string_ref.

- Fix build path issue of c library generated by distutils:
  Add OE's CFLAGS which contains `-fdebug-prefix-map' options
  to setup.py

[YOCTO #12528]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agowic/engine: improve error reporting when using rm with wic
Anuj Mittal [Fri, 20 Jul 2018 07:44:50 +0000 (15:44 +0800)]
wic/engine: improve error reporting when using rm with wic

When trying to delete something from an ext partition using debugfs, we
don't show any error to the user when that operation fails.

Change this behavior to show the error generated by debugfs. Also,
fallback to use rmdir in case we are trying to delete a directory. However,
unlike mdeltree that is used for a FAT partition, there's no easy way to
delete a non empty directory. Show an error instead when that happens so
user can take appropriate action.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agologrotate: Improve configurability of the installed systemd service files
Peter Kjellerstedt [Thu, 19 Jul 2018 18:19:39 +0000 (20:19 +0200)]
logrotate: Improve configurability of the installed systemd service files

This makes it possible to add extra options to the logrotate
application (via ${LOGROTATE_OPTIONS}), and it allows the Persistent
option in logrotate.timer to be configured via
${LOGROTATE_SYSTEMD_TIMER_PERSISTENT}.

It also changes the sed expressions to allow for
${LOGROTATE_SYSTEMD_TIMER_BASIS} to contain commas without having to
prefix them with backslahes, e.g.:
LOGROTATE_SYSTEMD_TIMER_BASIS = "*-*-* *:00,30:00"

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoiputils: upgrade to s20190629
Ross Burton [Mon, 23 Jul 2018 12:36:57 +0000 (13:36 +0100)]
iputils: upgrade to s20190629

License-Update: change license checksums to check the License files themselves (BSD3 and GPL2),
and the tool-to-license file (LICENSE).  Changes to LICENSE will now be
detected.

Backport a patch to fix the build with musl.

Drop upstreamed patch.

Update libidn build-dependency to libidn2.

Patch in an install target and use that to install binaries, to avoid upstream
adding binaries that we don't ship.  Also ship all binaries that are installed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agognutls: rationalise libunistring arguments
Ross Burton [Mon, 23 Jul 2018 11:30:10 +0000 (12:30 +0100)]
gnutls: rationalise libunistring arguments

No need to pass --without-libunistring-prefix, and it looks a lot like we're
trying to disable it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolib/oe: split out machine to ELF data dictionary
Ross Burton [Fri, 20 Jul 2018 11:43:29 +0000 (12:43 +0100)]
lib/oe: split out machine to ELF data dictionary

6 years agobinutils: Upgrade to 2.31 release branch
Khem Raj [Tue, 17 Jul 2018 07:41:04 +0000 (00:41 -0700)]
binutils: Upgrade to 2.31 release branch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogrub: fix build with new binutils
Ross Burton [Wed, 18 Jul 2018 12:24:05 +0000 (13:24 +0100)]
grub: fix build with new binutils

6 years agobase-files: profile: Avoid using "command" to determine if programs exist
Peter Kjellerstedt [Thu, 19 Jul 2018 18:19:40 +0000 (20:19 +0200)]
base-files: profile: Avoid using "command" to determine if programs exist

Since the existence of "command" in itself is not guaranteed, using it
to determine if other executables exist is moot. Instead just run the
executables and let the shell determine if they exist. By piping stderr
to /dev/null we avoid unnecessary warnings in case they do not exist.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-pip: clean up obsolete
Hongxu Jia [Thu, 19 Jul 2018 14:59:06 +0000 (22:59 +0800)]
python3-pip: clean up obsolete

Since unify var-DISTUTILS_INSTALL_ARGS in distutils and setuptools,
- The local DISTUTILS_INSTALL_ARGS assignment is obsolete;
- The site.py is not be generated any more;
- The layout is in a standard pip dir (such as /usr/lib/python3.5/site-
  packages/pip rather than /lib/python3.5/site-packages/pip-10.0.1-
  py3.5.egg/pip), the pth file is not required;

`#!/usr/bin/env python3' is already used, do not manually sed.

[YOCTO #8446]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython-setuptools.inc: clean up useless local var-DISTUTILS_INSTALL_ARGS
Hongxu Jia [Thu, 19 Jul 2018 14:59:05 +0000 (22:59 +0800)]
python-setuptools.inc: clean up useless local var-DISTUTILS_INSTALL_ARGS

Since unify var-DISTUTILS_INSTALL_ARGS in distutils and setuptools,
The local var-DISTUTILS_INSTALL_ARGS broke do_install
...
error: option --script-dir not recognized
ERROR: python3 setup.py install execution failed.
...

[YOCTO #8446]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodistutils/setuptools, distutils3/setuptools3: improve reproducibility
Hongxu Jia [Thu, 19 Jul 2018 14:59:04 +0000 (22:59 +0800)]
distutils/setuptools, distutils3/setuptools3: improve reproducibility

- Unify var-DISTUTILS_INSTALL_ARGS in distutils and setuptools

- Supply "--root" directory to the "install" command, and use
  it as a prefix to strip off the purported filename encoded
  in bytecode files. (It strips build path prefix from .pyc files)

[YOCTO #8446]
[YOCTO #12084]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooeqa/sdk/sdkbuildproject: use os.path.join
Ross Burton [Thu, 19 Jul 2018 23:16:16 +0000 (00:16 +0100)]
oeqa/sdk/sdkbuildproject: use os.path.join

Instead of mushing two paths together and hoping that the slashes line up
correctly, use os.path.join.

Signed-off-by: Ross Burton <ross.burton@intel.com>