]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
7 years agoapt: fix rpath error during configure
Andreas Oberritter [Tue, 10 May 2016 19:56:29 +0000 (21:56 +0200)] 
apt: fix rpath error during configure

| checking for shared library run path origin... /bin/sh: ../apt-1.0.10.1/buildlib/config.rpath: No such file or directory

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_deb.bbclass: compress control.tar with the same algorithm as data.tar
Andreas Oberritter [Mon, 23 Mar 2015 14:41:51 +0000 (15:41 +0100)] 
package_deb.bbclass: compress control.tar with the same algorithm as data.tar

Yields better compression with xz and fixes a problem invoking gzip.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: always install dpkg-configure.service
Andreas Oberritter [Wed, 27 Aug 2014 21:03:09 +0000 (23:03 +0200)] 
dpkg: always install dpkg-configure.service

systemd.bbclass handles everything based on DISTRO_FEATURES.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: update packages and files to match Debian more closely
Andreas Oberritter [Wed, 27 Aug 2014 21:44:51 +0000 (23:44 +0200)] 
dpkg: update packages and files to match Debian more closely

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: simplify replacing perl interpreter in scripts
Andreas Oberritter [Thu, 28 Aug 2014 14:04:21 +0000 (16:04 +0200)] 
dpkg: simplify replacing perl interpreter in scripts

Target scripts already contain the correct value.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: clean-up packaging of start-stop-daemon
Andreas Oberritter [Thu, 28 Aug 2014 14:00:07 +0000 (16:00 +0200)] 
dpkg: clean-up packaging of start-stop-daemon

Dpkg-start-stop is not an intuitive name. Just call the package
start-stop-daemon. Don't rdepend on it, because it might be empty.

Install start-stop-daemon to /sbin to match Debian and busybox.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: set license field to more common "GPLv2+"
Andreas Oberritter [Wed, 27 Aug 2014 21:10:42 +0000 (23:10 +0200)] 
dpkg: set license field to more common "GPLv2+"

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: use PACKAGECONFIG
Andreas Oberritter [Wed, 27 Aug 2014 20:49:43 +0000 (22:49 +0200)] 
dpkg: use PACKAGECONFIG

Keep default dependencies as before. Set default compressor to xz
if selected, gzip otherwise.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: implement BAD_RECOMMENDATIONS
Andreas Oberritter [Mon, 25 Aug 2014 23:59:03 +0000 (01:59 +0200)] 
package_manager/deb: implement BAD_RECOMMENDATIONS

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: create Packages.xz
Andreas Oberritter [Tue, 2 Sep 2014 22:38:18 +0000 (00:38 +0200)] 
package_manager/deb: create Packages.xz

apt-get prefers it over Packages.gz.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: let apt-get handle postinst scripts
Andreas Oberritter [Thu, 28 Aug 2014 12:05:02 +0000 (14:05 +0200)] 
package_manager/deb: let apt-get handle postinst scripts

With all required environment variables and configuration options in
apt.conf in place, apt-get is able to install packages offline, i.e.
when creating the rootfs, including the execution of postinst scripts
and updating the package database. This is new behaviour.

At the time the deleted code would have executed, its work was already
done by apt-get.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: recommend gnupg
Andreas Oberritter [Fri, 22 Apr 2016 00:10:06 +0000 (02:10 +0200)] 
apt: recommend gnupg

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: more fine-grained packaging
Andreas Oberritter [Fri, 22 Apr 2016 00:09:20 +0000 (02:09 +0200)] 
apt: more fine-grained packaging

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: group variables (license, configuration, packaging)
Andreas Oberritter [Fri, 22 Apr 2016 00:01:24 +0000 (02:01 +0200)] 
apt: group variables (license, configuration, packaging)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: merge apt.inc into .bb
Andreas Oberritter [Thu, 21 Apr 2016 23:58:31 +0000 (01:58 +0200)] 
apt: merge apt.inc into .bb

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: merge with apt-native
Andreas Oberritter [Thu, 21 Apr 2016 23:55:22 +0000 (01:55 +0200)] 
apt: merge with apt-native

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: drop obsolete patches
Andreas Oberritter [Thu, 21 Apr 2016 23:40:23 +0000 (01:40 +0200)] 
apt-native: drop obsolete patches

0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch and
noconfigure.patch are obsolete due to dpkg's new --force-script-chrootless
option.

db_linking_hack.patch and environment.patch are marked as backports
from 2007.

no-curl.patch: curl-native is already a prerequisite.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: rewrite do_install
Andreas Oberritter [Thu, 21 Apr 2016 23:25:15 +0000 (01:25 +0200)] 
apt: rewrite do_install

Install missing files and directories (apt, apt-ftparchive,
apt-helper, apt-mark, trusted.gpg.d).

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: use default packaging rules for -dev package
Andreas Oberritter [Thu, 21 Apr 2016 23:04:18 +0000 (01:04 +0200)] 
apt: use default packaging rules for -dev package

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: use default packaging rules for base package, prepend apt-utils
Andreas Oberritter [Thu, 21 Apr 2016 23:02:44 +0000 (01:02 +0200)] 
apt: use default packaging rules for base package, prepend apt-utils

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: use default packaging rules for manpages
Andreas Oberritter [Thu, 21 Apr 2016 22:55:12 +0000 (00:55 +0200)] 
apt: use default packaging rules for manpages

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: use sed to prepare apt.conf.sample
Andreas Oberritter [Thu, 21 Apr 2016 22:50:13 +0000 (00:50 +0200)] 
apt-native: use sed to prepare apt.conf.sample

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt: merge apt-package.inc into .bb
Andreas Oberritter [Thu, 21 Apr 2016 22:42:21 +0000 (00:42 +0200)] 
apt: merge apt-package.inc into .bb

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: merge apt-native.inc into .bb
Andreas Oberritter [Thu, 21 Apr 2016 22:40:22 +0000 (00:40 +0200)] 
apt-native: merge apt-native.inc into .bb

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agopackage_manager/deb: pass option --force-script-chrootless to dpkg
Andreas Oberritter [Thu, 25 Sep 2014 22:31:08 +0000 (00:31 +0200)] 
package_manager/deb: pass option --force-script-chrootless to dpkg

Fixes removal of packages with new dpkg version.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoapt-native: Use option --force-script-chrootless for rootfs
Andreas Oberritter [Thu, 28 Aug 2014 03:50:36 +0000 (05:50 +0200)] 
apt-native: Use option --force-script-chrootless for rootfs

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives
Andreas Oberritter [Thu, 28 Aug 2014 14:05:50 +0000 (16:05 +0200)] 
dpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives

It needs to be relative to DPKG_INSTDIR when installing.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: update-alternatives-dpkg should conflict with other providers
Andreas Oberritter [Wed, 27 Aug 2014 21:45:35 +0000 (23:45 +0200)] 
dpkg: update-alternatives-dpkg should conflict with other providers

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agodpkg: implement offline mode for update-alternatives
Andreas Oberritter [Wed, 27 Aug 2014 15:37:20 +0000 (17:37 +0200)] 
dpkg: implement offline mode for update-alternatives

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agonfs-utils: add packageconfig options: blkid, ipv6, libmount, nfsv4, nfsv41 and tirpc
Andreas Oberritter [Mon, 26 Oct 2015 22:33:50 +0000 (23:33 +0100)] 
nfs-utils: add packageconfig options: blkid, ipv6, libmount, nfsv4, nfsv41 and tirpc

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agokeyutils: new recipe (version 1.5.9)
Andreas Oberritter [Mon, 6 Jun 2016 15:26:06 +0000 (17:26 +0200)] 
keyutils: new recipe (version 1.5.9)

Used by nfs-utils for nfsidmap, if available. Includes a backported patch for
musl and a description text from meta-ivi.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agogptfdisk: put sgdisk into its own package
Andreas Oberritter [Thu, 15 Sep 2016 14:37:15 +0000 (16:37 +0200)] 
gptfdisk: put sgdisk into its own package

This allows to avoid pulling in ncurses if only sgdisk is needed.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoconnman: enable connman-wait-online.service
Andreas Oberritter [Mon, 14 Nov 2016 23:37:28 +0000 (00:37 +0100)] 
connman: enable connman-wait-online.service

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoconnman: Simplify and fix packaging of VPN plug-ins
Andreas Oberritter [Wed, 6 Aug 2014 11:03:45 +0000 (13:03 +0200)] 
connman: Simplify and fix packaging of VPN plug-ins

- Use simple static packaging.
- Move VPN runtime dependencies from connman to the individual plug-ins.
- Create a connmann-ppp package containing libppp-plugin.so, which is
  a shared library needed by l2tp and pptp plug-ins.
- Let connman suggest VPN packages instead of recommending them, so they
  don't get installed by default.
- Remove unknown configure options (--with-pptp --with-l2tp)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
7 years agoruby: Update to 2.4.4
Armin Kuster [Thu, 3 May 2018 16:00:59 +0000 (09:00 -0700)] 
ruby: Update to 2.4.4

The dot releases are maint only.

2.4.4 included:
CVE-2017-17742: HTTP response splitting in WEBrick
CVE-2018-6914: Unintentional file and directory creation with directory traversal in tempfile and tmpdir
CVE-2018-8777: DoS by large request in WEBrick
CVE-2018-8778: Buffer under-read in String#unpack
CVE-2018-8779: Unintentional socket creation by poisoned NUL byte in UNIXServer and UNIXSocket
CVE-2018-8780: Unintentional directory traversal by poisoned NUL byte in Dir

2.4.3 includes:
CVE-2017-17405: Command injection vulnerability in Net::FTP

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: fix typo in gmp PACKAGECONFIG option
Andre McCurdy [Mon, 22 Jan 2018 23:38:06 +0000 (15:38 -0800)] 
ruby: fix typo in gmp PACKAGECONFIG option

(From OE-Core rev: 9fb931b69ece7f8a644f9e25600bcbbc9266a761)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: remove spurious db build dependency
Ross Burton [Wed, 1 Nov 2017 09:57:53 +0000 (09:57 +0000)] 
ruby: remove spurious db build dependency

The dbm module uses gdbm by default which is also a build dependency.

(From OE-Core rev: 79121ff54420e5cc331552ca5620aed81a36aac9)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: upgrade to 2.4.2
Leonardo Sandoval [Thu, 12 Oct 2017 18:35:23 +0000 (11:35 -0700)] 
ruby: upgrade to 2.4.2

The CVE-2017-14064 patch is already at 2.4.2 as explained on
project's commit, so removing from the recipe & repo.

    commit 83735ba29a0bfdaffa8e9c2a1dc025c3b0b63153
    Author: hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
    Date:   Wed Apr 12 00:21:18 2017 +0000

        Merge json-2.0.4.

          * https://github.com/flori/json/releases/tag/v2.0.4
          * https://github.com/flori/json/blob/09fabeb03e73ed88dc8ce8f19d76ac59e51dae20/CHANGES.md#2017-03-23-204

        git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

(From OE-Core rev: 6e37a88af155d5e5453fb0f44bb11d6f8e406438)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for pyro context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoruby: upgrade to 2.4.1
Leonardo Sandoval [Mon, 22 May 2017 18:47:01 +0000 (11:47 -0700)] 
ruby: upgrade to 2.4.1

(From OE-Core rev: 3ff2d0bc7a8e7a7e8c8e953dc0ccf84d891688ef)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for pyro context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoscripts/test-dependencies.sh: remove
Martin Jansa [Wed, 25 Apr 2018 14:07:05 +0000 (14:07 +0000)] 
scripts/test-dependencies.sh: remove

* with RSS used in pyro this script isn't very useful anymore
* RSS makes sure that the dependencies are almost always deterministic
  the only case known to me where dependencies are different based on
  what was already built in TMPDIR are runtime dependencies resolved
  by shlibs code in package.bbclass (which is using global pkgdata, not
  specific to given recipe and its RSS) as described here:
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=9217#c4
  but for this case it's not worth running complete test-dependencies.sh
  runs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agosstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated...
Martin Jansa [Wed, 25 Apr 2018 14:07:04 +0000 (14:07 +0000)] 
sstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated with dash

* I had some components where the MACHINE name was also included in PV of allarch recipe
  which was tripping the script into saying that they have different signatures (because
  for one MACHINE was the string in PV replaced with 'MACHINE' and not for other MACHINEs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agosstate-sysroot-cruft.sh: Extend the whitelist
Martin Jansa [Wed, 25 Apr 2018 14:07:03 +0000 (14:07 +0000)] 
sstate-sysroot-cruft.sh: Extend the whitelist

* add more php5 entries

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibpng: update SRC_URI to use osl
Armin Kuster [Thu, 19 Apr 2018 16:00:57 +0000 (09:00 -0700)] 
libpng: update SRC_URI to use osl

ERROR: libpng-1.6.28-r0 do_checkuri: Fetcher failure for URL: 'http://downloads.sourceforge.net/project/libpng/libpng16/1.6.28/libpng-1.6.28.tar.xz'. URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.28/libpng-1.6.28.tar.xz doesn't work
ERROR: libpng-1.6.28-r0 do_checkuri: Function failed: do_checkuri

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agompfr: Update SRC_URI to use gnu
Armin Kuster [Thu, 19 Apr 2018 15:49:40 +0000 (08:49 -0700)] 
mpfr: Update SRC_URI to use gnu

ERROR: mpfr-native-3.1.5-r0 do_checkuri: Fetcher failure for URL: 'http://www.mpfr.org/mpfr-3.1.5/mpfr-3.1.5.tar.xz'. URL http://www.mpfr.org/mpfr-3.1.5/mpfr-3.1.5.tar.xz doesn't work
ERROR: mpfr-native-3.1.5-r0 do_checkuri: Function failed: do_checkuri

Found gnu has the same copy

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agobyacc: Fic SRC_URI to use yocto sources loc.
Armin Kuster [Thu, 19 Apr 2018 15:03:45 +0000 (08:03 -0700)] 
byacc: Fic SRC_URI to use yocto sources loc.

ERROR: byacc-native-20161202-r0 do_checkuri: Fetcher failure for URL: 'ftp://invisible-island.net/byacc/byacc-20161202.tgz'. URL ftp://invisible-island.net/byacc/byacc-20161202.tgz doesn't work
ERROR: byacc-native-20161202-r0 do_checkuri: Function failed: do_checkuri

Use the file saved in the Yocto Project sources repos

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibpng: fix MIRRORS usage
Ross Burton [Fri, 28 Jul 2017 15:55:55 +0000 (16:55 +0100)] 
libpng: fix MIRRORS usage

MIRRORS needs to be pairs of values for the original URL to match and the
location find it on the mirror.

(From OE-Core rev: a649f3da630e8ca2d3ca58b610f3918720dd5229)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoneon: update SRC_URI
Armin Kuster [Thu, 19 Apr 2018 14:00:05 +0000 (07:00 -0700)] 
neon: update SRC_URI

ERROR: neon-0.30.2-r0 do_checkuri: Function failed: do_checkuri
ERROR: neon-native-0.30.2-r0 do_checkuri: Fetcher failure for URL: 'http://www.webdav.org/neon/neon-0.30.2.tar.gz'. URL http://www.webdav.org/neon/neon-0.30.2.tar.gz doesn't work

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibpng: use SourceForge mirror
Ross Burton [Mon, 24 Jul 2017 20:34:49 +0000 (21:34 +0100)] 
libpng: use SourceForge mirror

The Gentoo mirror also deletes old versions when they're not used, so revert
back to the canonical SourceForge site, adding /older-releases/ to MIRRORS to
handle new releases moving the version we want.

Original idea by Maxin B. John <maxin.john@intel.com>.

(From OE-Core rev: 791a3493c88c9c249f21f6d893b2061e1d8a0af6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Updated for Pyro context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agogdb: fix header ordering for TRAP_HWBKPT
Daniel Díaz [Thu, 12 Apr 2018 22:55:08 +0000 (17:55 -0500)] 
gdb: fix header ordering for TRAP_HWBKPT

This error can appear in gdb/nat/linux-ptrace.c because of
the order in which some headers are processed:
| In file included from ../../gdb-7.11.1/gdb/nat/linux-ptrace.c:20:0:
| ../../gdb-7.11.1/gdb/nat/linux-ptrace.h:175:22: error: expected identifier before numeric constant
|  # define TRAP_HWBKPT 4
|                       ^
| Makefile:2357: recipe for target 'linux-ptrace.o' failed
| make[2]: *** [linux-ptrace.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory '/oe/build/tmp-rpb-glibc/work/aarch64-linaro-linux/gdb/7.11.1-r0/build-aarch64-linaro-linux/gdb'
| Makefile:8822: recipe for target 'all-gdb' failed
| make[1]: *** [all-gdb] Error 2
| make[1]: Leaving directory '/oe/build/tmp-rpb-glibc/work/aarch64-linaro-linux/gdb/7.11.1-r0/build-aarch64-linaro-linux'
| Makefile:846: recipe for target 'all' failed
| make: *** [all] Error 2

A patch from GDB's current master solves the issue.

(From OE-Core rev: 4aaf747099714ec11158571527396ed9e818729e)

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
7 years agoglibc: add missing TRAP_BRANCH/TRAP_HWBKPT definitions
Fathi Boudra [Thu, 12 Apr 2018 22:55:07 +0000 (17:55 -0500)] 
glibc: add missing TRAP_BRANCH/TRAP_HWBKPT definitions

Patch submitted upstream, pending to be merged:
https://sourceware.org/bugzilla/show_bug.cgi?id=21286

(From OE-Core rev: 11ebb5054e5ec1171ade90249e3a30ac8174a35a)

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
7 years agolibmpc: fix SRC_URI
Oleksandr Kravchuk [Mon, 19 Feb 2018 01:32:08 +0000 (02:32 +0100)] 
libmpc: fix SRC_URI

(From OE-Core rev: 462021964a79a6c940cbce80a31a2ea3283e797c)

(From OE-Core rev: 04e5af853927cff2072fb4278a9d9fa2bd99812f)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agodistcc: Change SRC_URI
Armin Kuster [Fri, 23 Mar 2018 04:57:20 +0000 (21:57 -0700)] 
distcc: Change SRC_URI

ERROR: distcc-3.2-r0 do_fetch: Fetcher failure: Unable to find revision d8b18df3e9dcbe4f092bed565835d3975e99432c in branch 3.2 even from upstream
ERROR: distcc-3.2-r0 do_fetch: Fetcher failure for URL: 'git://github.com/distcc/distcc.git;branch=3.2'. Unable to fetch URL from any source.
ERROR: distcc-3.2-r0 do_fetch: Function failed: base_do_fetch

[v2]
upstream deleted the branch and the hash no longer exists.

Took the git snapshot from yocto and created a copy on my github.
There was no offical 3.2 release, only rc versions.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoe2fsprogs: fix compatibility with glibc 2.27
Tanu Kaskinen [Wed, 21 Mar 2018 17:08:38 +0000 (19:08 +0200)] 
e2fsprogs: fix compatibility with glibc 2.27

glibc 2.27 added function copy_file_range(), and e2fsprogs happens to
have a different function with the same name. The conflict made
e2fsprogs-native build fail.

Here's a backport of a fix from upstream, the fix was released in
e2fsprogs 1.43.8.

The master branch doesn't need this fix, since it has new enough
e2fsprogs version. At least rocko, pyro and morty need this, I haven't
checked older stable branches. Apparently the problematic function was
introduced in e2fsprogs version 1.43.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemu: fix memfd_create with glibc 2.27
Ross Burton [Mon, 19 Mar 2018 15:59:32 +0000 (17:59 +0200)] 
qemu: fix memfd_create with glibc 2.27

glibc 2.27 has added memfd_create() but this conflicts with a copy in qemu, so
take a patch from upstream to fix building with glibc 2.27.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopackage_manager.py: Explicit complementary fail
Niko Mauno [Fri, 16 Mar 2018 09:01:53 +0000 (11:01 +0200)] 
package_manager.py: Explicit complementary fail

When running bitbake -c populate_sdk <image_name>, it is expected that
packages matching SDKIMAGE_INSTALL_COMPLEMENTARY name mask (unless
declared in PACKAGE_EXCLUDE_COMPLEMENTARY) are installed to resulting
SDK. Underlying mechanism issues a package manager install call for set
of complementary packages. However the mechanism doesn't seem to inform
the user all too obviously in case the package manager command behind
install_complementary() method fails -- and since it is combined with
attempt_only=True option, user might end up wondering why several *-dev,
*-dbg packages are missing from resulting SDK.

Improve associated install() method behaviour in affected OpkgPM and
DpkgPM classes so that a problematic state of affairs becomes directly
obvious for bitbake user, resulting in shell output like:

  WARNING: someimage-1.0-r0 do_populate_sdk: Unable to install packages.
  Command '...' returned 1:
  Collected errors:
   * Solver encountered 1 problem(s):
   * Problem 1/1:
   *   - package somepkg-dev-1.0-r0.x86 requires somepkg = 1.0-r0, but
         none of the providers can be installed
   *
   * Solution 1:
   *   - allow deinstallation of someotherpkg-1.1-r1.x86

   *   - do not ask to install a package providing somepkg-dev

   * Solution 2:
   *   - do not ask to install a package providing somepkg-dev

(From OE-Core rev: 2502bd591c37bf532d02dc6b37fc1e8b5224fb0a)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0d4459e7086fced5e9e0b4ad10378c9eddec56a8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibvorbis: CVE-2018-5146
Tanu Kaskinen [Sat, 31 Mar 2018 05:21:32 +0000 (08:21 +0300)] 
libvorbis: CVE-2018-5146

Prevent out-of-bounds write in codebook decoding. The bug could allow
code execution from a specially crafted Ogg Vorbis file.

References:
https://www.debian.org/security/2018/dsa-4140
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-5146

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibvorbis: CVE-2017-14632
Tanu Kaskinen [Sat, 31 Mar 2018 05:21:31 +0000 (08:21 +0300)] 
libvorbis: CVE-2017-14632

Xiph.Org libvorbis 1.3.5 allows Remote Code Execution upon freeing
uninitialized memory in the function vorbis_analysis_headerout() in
info.c when vi->channels<=0, a similar issue to Mozilla bug 550184.

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14632

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibvorbis: CVE-2017-14633
Tanu Kaskinen [Sat, 31 Mar 2018 05:21:30 +0000 (08:21 +0300)] 
libvorbis: CVE-2017-14633

In Xiph.Org libvorbis 1.3.5, an out-of-bounds array read vulnerability
exists in the function mapping0_forward() in mapping0.c, which may lead
to DoS when operating on a crafted audio file with vorbis_analysis().

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14633

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosdk: streamline locale removal
Ross Burton [Fri, 16 Mar 2018 11:28:32 +0000 (11:28 +0000)] 
sdk: streamline locale removal

For some reason dnf is aborting with the fairly useless "failed to read RPMDB"
error during SDK creation.  Luckily as we're just deleting locale packages we
can pass False to remove() to use RPM directly, which doesn't crash.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agocross-localedef-native: add way to specify which locale archive to write
Ross Burton [Thu, 1 Mar 2018 18:26:28 +0000 (18:26 +0000)] 
cross-localedef-native: add way to specify which locale archive to write

localedef has no way to specify which locale archive to use, and the
compile-time default isn't useful as it points to the work directory.

Add support to read an environmental variable for the path, and don't fail to
write a new locale archive.

(From OE-Core rev: bf0f205a3c3714926649bd69db29e4df1c0ea112)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage-manager: add install_glob()
Ross Burton [Thu, 1 Mar 2018 18:26:30 +0000 (18:26 +0000)] 
package-manager: add install_glob()

(From OE-Core rev: 8d1b530c82de386d4183f5673c060b9d416a3835)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_manager: improve install_complementary
Ross Burton [Thu, 1 Mar 2018 18:26:29 +0000 (18:26 +0000)] 
package_manager: improve install_complementary

- No need to use bb.utils.which() as subprocess will search $PATH
- Clarity flow by moving the install inside the try/except

(From OE-Core rev: f4d22b7195dd8f08fe26dd353c7e860208e87d6a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosdk: generate locale archive and remove packages
Ross Burton [Thu, 1 Mar 2018 18:26:33 +0000 (18:26 +0000)] 
sdk: generate locale archive and remove packages

(From OE-Core rev: c6f1010a47df33b40320aa5784181b659a3254d7)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopopulate_sdk_base: depend on nativesdk-glibc-locale
Ross Burton [Fri, 2 Mar 2018 20:52:54 +0000 (20:52 +0000)] 
populate_sdk_base: depend on nativesdk-glibc-locale

If we're building a SDK and we're using glibc so may be installing locales,
add a build-dependency on natiesdk-glibc-locale so the locales we need will
exist.

(From OE-Core rev: 8d6869a0a89d8cf3c6e57723fab2750ba2c885db)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopopulate_sdk: install UTF-8 locales in SDKs
Ross Burton [Thu, 1 Mar 2018 18:26:32 +0000 (18:26 +0000)] 
populate_sdk: install UTF-8 locales in SDKs

As glibc 2.27 can't read older locale-archives, SDKs using glibc 2.27 on hosts
using glibc earlier than 2.27 won't be able to find any locales, so bitbake
won't start and Python can't use UTF-8.

So by default install all locales into the SDK.  Special-case Extensible SDKs by
installing no locales as they ship glibc in a buildtools, and that will have the
locales.

Locale installation requires cross-localedef, so add that to DEPENDS.

Also remove the explicit en_US addition in buildtools-tarball as it is now
redundant.

(From OE-Core rev: 96896568d197cd06302713c24c0f7d91bfaea6c1)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosdk: only install locales if we're using glibc
Ross Burton [Fri, 2 Mar 2018 20:53:10 +0000 (20:53 +0000)] 
sdk: only install locales if we're using glibc

Using glibc-locale to install locales only makes sense if we're using glibc.

(From OE-Core rev: 8fc80734053645fa893694dfe33ddaee99aa9a1a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosdk: install specified locales into SDK
Ross Burton [Thu, 1 Mar 2018 18:26:31 +0000 (18:26 +0000)] 
sdk: install specified locales into SDK

(From OE-Core rev: 9b1c3dbe79f67d3b46e0f90a73bce6c61f094a50)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc: relocate locale paths in nativesdk
Ross Burton [Thu, 1 Mar 2018 18:26:27 +0000 (18:26 +0000)] 
glibc: relocate locale paths in nativesdk

nativesdk is built with a specific prefix but this will be different at install
time, however glibc hard-codes the path to locale files. Expand these strings to 4K and move them to a magic segment which we can relocate when the SDK is installed.

(From OE-Core rev: 59e0679378aac27c4fea0b06721e0a184a93c100)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglibc: don't use host locales in nativesdk
Ross Burton [Thu, 1 Mar 2018 18:26:26 +0000 (18:26 +0000)] 
glibc: don't use host locales in nativesdk

(From OE-Core rev: d7ded85766852689a0d774c896a11d0609004ab2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodefault-distrovars: don't rename locales for nativesdk
Ross Burton [Thu, 1 Mar 2018 18:26:25 +0000 (18:26 +0000)] 
default-distrovars: don't rename locales for nativesdk

(From OE-Core rev: 909da982c74b2ed931a65dda248557cb18f773e0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: Add comm to HOSTTOOLS
Niko Mauno [Mon, 29 Jan 2018 17:47:24 +0000 (19:47 +0200)] 
bitbake.conf: Add comm to HOSTTOOLS

This mitigates following issues during u-boot do_compile() step --
otherwise, if comm is not available, they are quietly ignored:

  .../scripts/check-config.sh: line 33: comm: command not found
  .../scripts/check-config.sh: line 39: comm: command not found

Since 'comm' is provided by coreutils package, adding it to HOSTTOOLS
was considered a lower impact fix compared to adding coreutils-native
buildtime dependency to u-boot recipe.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoworld-broken.inc: blacklist portmap on musl
Richard Purdie [Thu, 15 Mar 2018 10:50:15 +0000 (03:50 -0700)] 
world-broken.inc: blacklist portmap on musl

portmap was dropped in rocko and later and doesn't work with libtirpc
so don't build it for musl

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouninative: Add compatiblity version check
Richard Purdie [Wed, 14 Mar 2018 16:52:18 +0000 (09:52 -0700)] 
uninative: Add compatiblity version check

If glibc is newer on the host than in uninative, the failure mode is
pretty nasty for clusters where the sstate is shared, including the Yocto
Project autobuilder.

This check aborts the use of uninative in such scenarios where a newer
glibc version appears and avoids corruption of sstate caches.

We use ldd to check the glibc version since that is included in libc-bin
(or equivalent) which locales use so it should always be present.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoyocto-uninative: Upgrade to 1.8 version with glibc 2.27
Richard Purdie [Sat, 10 Mar 2018 03:46:00 +0000 (19:46 -0800)] 
yocto-uninative: Upgrade to 1.8 version with glibc 2.27

Now distros are starting to ship glibc 2.27 we need a uninatve version
which contains glibc 2.27 which is in the 1.8 version.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agounfs3: Fix libtirpc usage for unfs3-native version
Richard Purdie [Mon, 12 Mar 2018 22:23:53 +0000 (15:23 -0700)] 
unfs3: Fix libtirpc usage for unfs3-native version

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agounfs3: Fix build with musl
Khem Raj [Mon, 12 Mar 2018 04:40:51 +0000 (21:40 -0700)] 
unfs3: Fix build with musl

Should also fix build on new build hosts where
with glibc 2.27 rpc support is dropped in favor
of libtirpc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibtirpc: Extend to native and nativesdk recipes
Khem Raj [Mon, 12 Mar 2018 04:40:52 +0000 (21:40 -0700)] 
libtirpc: Extend to native and nativesdk recipes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibtirpc: stop dropping in NIS headers
Ross Burton [Tue, 20 Feb 2018 00:39:57 +0000 (00:39 +0000)] 
libtirpc: stop dropping in NIS headers

libtirpc prior to 1.0.2 assumed that the system provided nis.h but this isn't
always true.  Until now we've been using a tarball of the missing files from
Gentoo, but libtirpc 1.0.2 added a copy of nis.h to the sources so this isn't
required anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: upgrade to 1.0.2
Maxin B. John [Wed, 19 Jul 2017 15:01:25 +0000 (18:01 +0300)] 
libtirpc: upgrade to 1.0.2

1.0.1 -> 1.0.2

Remove these Backported and upstreamed patches:
        1. 0001-Fix-for-CVE-2017-8779.patch
        2. libtirpc-0.2.1-fortify.patch
        3. libtirpc-1.0.2-rc3.patc

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Fix CVE-2017-8779
Fan Xin [Wed, 7 Jun 2017 08:29:03 +0000 (17:29 +0900)] 
libtirpc: Fix CVE-2017-8779

This vulnerability is also called "rpcbomb".
Backport upstream patch to fix this vulnerability.
CVE: CVE-2017-8779

Signed-off-by: Fan Xin<fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Fix build error due to missing stdint.h> include
Khem Raj [Mon, 22 May 2017 05:00:41 +0000 (22:00 -0700)] 
libtirpc: Fix build error due to missing stdint.h> include

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Enable des APIs for musl
Khem Raj [Tue, 18 Apr 2017 16:40:13 +0000 (09:40 -0700)] 
libtirpc: Enable des APIs for musl

Use memset() API instead of __bzero()
Drop the patch removing des_* functions for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Expose key_secretkey_is_set API
Khem Raj [Wed, 19 Apr 2017 16:45:45 +0000 (09:45 -0700)] 
libtirpc: Expose key_secretkey_is_set API

libnsl needs this API

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtirpc: Backport fixes from 1.0.2rc3
Khem Raj [Wed, 19 Apr 2017 01:58:35 +0000 (18:58 -0700)] 
libtirpc: Backport fixes from 1.0.2rc3

These fixes are needed for it to work with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc: Remove patch causing ICE on x86_64 valgrind compile
Richard Purdie [Sun, 11 Mar 2018 12:12:49 +0000 (05:12 -0700)] 
gcc: Remove patch causing ICE on x86_64 valgrind compile

| ../../valgrind-3.12.0/VEX/priv/host_ppc_isel.c: In function 'iselInt64Expr':
| ../../valgrind-3.12.0/VEX/priv/host_ppc_isel.c:3270:1: internal compiler error: Segmentation fault
|  }
|  ^
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.
| rm -f libvexmultiarch-amd64-linux.a
| Makefile:1813: recipe for target 'priv/libvex_amd64_linux_a-host_ppc_isel.o' failed

Remove the patch to gcc causing this until the issue can be figured out.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc6: Backport few more patches
Juro Bystricky [Thu, 1 Mar 2018 18:32:43 +0000 (10:32 -0800)] 
gcc6: Backport few more patches

Backported series of patches from https://github.com/hjl-tools/gcc.git
branch /hjl/indirect/gcc-6-branch/master which contains
an IA patch series for security related issues

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agogcc6: enable FL_LPAE flag for armv7ve cores
Andre McCurdy [Fri, 10 Nov 2017 06:10:13 +0000 (22:10 -0800)] 
gcc6: enable FL_LPAE flag for armv7ve cores

The following commit added the FL_LPAE flag to FL_FOR_ARCH7VE, but
neglected to also add it to the armv7ve compatible cores defined in
arm-cores.def.

  https://github.com/gcc-mirror/gcc/commit/af2d9b9e58e8be576c53d94f30c48c68146b0c98

The result is that gcc 6.4 now refuses to allow -march=armv7ve and
-mcpu=XXX to be used together, even when -mcpu is set to an armv7ve
compatible core:

  arm-linux-gnueabi-gcc -march=armv7ve -mcpu=cortex-a7 -Werror ...
  error: switch -mcpu=cortex-a7 conflicts with -march=armv7ve switch [-Werror]

Fix by defining flags for armv7ve compatible cores directly from
FL_FOR_ARCH7VE, rather than re-creating the armv7ve flags
independently by combining FL_FOR_ARCH7A with the armv7ve specific
FL_THUMB_DIV and FL_ARM_DIV flags.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agogcc7/gcc6: Fix unaligned STRD issue on ARM
Khem Raj [Tue, 7 Nov 2017 23:26:52 +0000 (15:26 -0800)] 
gcc7/gcc6: Fix unaligned STRD issue on ARM

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

Fixes [YOCTO 12297]

Cherry-picked from oe-core master 568227133be3f9f015679df3525f6c4f86304fd0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 568227133be3f9f015679df3525f6c4f86304fd0)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agogcc6: Upgrade to 6.4
Khem Raj [Sat, 14 Oct 2017 15:48:57 +0000 (08:48 -0700)] 
gcc6: Upgrade to 6.4

Cherry-picked from oe-core master 7874fa86cb583fe6a178b95ead09430486197197

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agogcc-6.3: Backport patch to fix ICE on ARM
Khem Raj [Sat, 7 Oct 2017 17:29:23 +0000 (10:29 -0700)] 
gcc-6.3: Backport patch to fix ICE on ARM

Fixes
internal compiler error: Max. number of generated reload insns per insn is achieved (90)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc-runtime: Disable libitm on riscv
Khem Raj [Fri, 6 Oct 2017 00:50:47 +0000 (17:50 -0700)] 
gcc-runtime: Disable libitm on riscv

Cherry-picked from oe-core master 21caa8bcda93ce67ef58548f7b85d0569d13d0b9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agoopenssh: Atomically generate host keys
Joshua Watt [Wed, 28 Feb 2018 18:30:32 +0000 (12:30 -0600)] 
openssh: Atomically generate host keys

Generating the host keys atomically prevents power interruptions during the
first boot from leaving the key files incomplete, which often prevents users
from being able to ssh into the device.

[YOCTO #11671]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 43fc3d8e180c168dbe5dd5faa577e69a279bd1bd)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolinux-yocto-rt/4.1: update to include spectre fixes
Armin Kuster [Wed, 7 Mar 2018 20:58:50 +0000 (12:58 -0800)] 
linux-yocto-rt/4.1: update to include spectre fixes

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolinux-yocto/4.1: updated to include spectre fixes
Armin Kuster [Wed, 7 Mar 2018 20:57:31 +0000 (12:57 -0800)] 
linux-yocto/4.1: updated to include spectre fixes

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolinux-yocto-tiny/4.1: update with spectre fixes
Armin Kuster [Wed, 7 Mar 2018 20:53:09 +0000 (12:53 -0800)] 
linux-yocto-tiny/4.1: update with spectre fixes

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolinux-yocto-tiny/4.1: update to 4.1.49 plus meltdown
Armin Kuster [Sat, 24 Feb 2018 02:30:50 +0000 (18:30 -0800)] 
linux-yocto-tiny/4.1: update to 4.1.49 plus meltdown

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolinux-yocto-rt/4.1: update to 4.1.49 plus meltdown
Armin Kuster [Sat, 24 Feb 2018 02:28:52 +0000 (18:28 -0800)] 
linux-yocto-rt/4.1: update to 4.1.49 plus meltdown

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolinux-yocto/4.1: update to 4.1.49 plus meltdown
Armin Kuster [Sat, 24 Feb 2018 02:26:10 +0000 (18:26 -0800)] 
linux-yocto/4.1: update to 4.1.49 plus meltdown

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agobitbake.conf: add tools required by testimage to HOSTTOOLS conditionally
Chen Qi [Thu, 1 Feb 2018 12:22:18 +0000 (12:22 +0000)] 
bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally

Add tools required by testimage to HOSTTOOLS only when testimage is
inherited. These tools, as described in the comment, are only required
by the testimage task. So this change should not have negtive effect.
This would also solve build error on hosts which miss some tool such as scp.

Cherry-picked from rocko 8ca61a5464743ff85b6d26886112750d6ddd13e0

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake.conf: add ssh to HOSTTOOLS_NONFATAL
Chen Qi [Mon, 12 Feb 2018 10:19:18 +0000 (10:19 +0000)] 
bitbake.conf: add ssh to HOSTTOOLS_NONFATAL

We changed to make tools required by testimage to be included conditionally.
This resulted in users who use ssh for git fetching having failures.

Add ssh to HOSTTOOLS_NONFATAL to make things work for the above situation.

[YOCTO #12227]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>