]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
7 years agoreport-error: Allow to upload reports automatically jansa/pyro
Martin Jansa [Fri, 14 Mar 2014 18:12:43 +0000 (19:12 +0100)] 
report-error: Allow to upload reports automatically

* useful when distro wants to collect build statistics from
  all users/developers without any manual interaction from them

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agometadata-revs: provide more information
Trevor Woerner [Sun, 13 Mar 2016 02:35:29 +0000 (21:35 -0500)] 
metadata-revs: provide more information

Provide many more details concerning the repositories that are used in a
particular build: the remote information, the layer, the local branch, the
remote branch the local branch tracks (if any), and the HEAD commit.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agobuildhistory.bbclass: metadata-revs show repo parent
Trevor Woerner [Sat, 12 Mar 2016 02:49:14 +0000 (21:49 -0500)] 
buildhistory.bbclass: metadata-revs show repo parent

Currently my build shows two "meta" repositories: one from meta-poky and one
from openembedded-core. Have the code which prints the repositories into
metadata-revs show the parent directories when repositories with multiple
sub-layers are used.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agorecipes: Replace "cp -a" with "cp -R --no-dereference --preserve=mode,links"
Martin Jansa [Thu, 25 Feb 2016 16:38:29 +0000 (17:38 +0100)] 
recipes: Replace "cp -a" with "cp -R --no-dereference --preserve=mode,links"

* Using "cp -a" leaks UID of user running the builds, causing
  many QA warnings.
* See this thread for details:
  http://lists.openembedded.org/pipermail/openembedded-core/2015-November/112904.html

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7 years agoqemux86: Add identical qemux86copy variant for tests
Martin Jansa [Fri, 9 Mar 2012 06:56:57 +0000 (07:56 +0100)] 
qemux86: Add identical qemux86copy variant for tests

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
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>
7 years agooeqa/runtime/buildcpio: Use our own mirror for source
Richard Purdie [Fri, 5 Jan 2018 16:09:47 +0000 (16:09 +0000)] 
oeqa/runtime/buildcpio: Use our own mirror for source

We see occasional network glitches which break this test. Use our own
mirror (which has a .gz instead of .bz2) to avoid the errors, we're not
trying to test network connectivity.

(From OE-Core rev: 01df65be2ae4bc337e10babeb9c2394d71ddff84)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemurunner: Simplify binary data handling
Richard Purdie [Tue, 21 Nov 2017 11:42:54 +0000 (11:42 +0000)] 
qemurunner: Simplify binary data handling

I have concerns that bad timing of the flow of data from the logger
might corrupt the output due to the way binary strings are handled
in qemurunner.

This simplifies the code to do the same thing it did before but much
more safely.

(From OE-Core rev: 20bc247316ab915465a4b1add6d09b48e07202ac)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1e87283e92a2765bb5d54d17138b208bc395953b)
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 agooeqa: Clean up logger handling
Richard Purdie [Wed, 8 Nov 2017 18:17:17 +0000 (18:17 +0000)] 
oeqa: Clean up logger handling

The logger handling in oeqa was confused at best. This patch:

a) Passes in a logger through various qemu runner pieces
b) Uses that logger consistently in the code
c) Creates a logger for QemuRunner outside the bitbake namespace
   meaning we don't conflict with the tinfoil logging changes

The result of this is more consistency. For runtime tests in testimage,
the logs always contain the debug info, nothing is shwon on the console.
For the oe-selftests, logs are intercepted and only shown if the test
fails.

(From OE-Core rev: ba8babc45141891d0624f9a181a580fa416e87ec)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agooeqa/targetcontrol: Drop unused get_target_controller function
Richard Purdie [Wed, 8 Nov 2017 14:14:24 +0000 (14:14 +0000)] 
oeqa/targetcontrol: Drop unused get_target_controller function

This funciton appears completely unused, drop it.

(From OE-Core rev: 31ccc70c4ea58e3781ea14eb534e00e9e06e131a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agotestimage: Pass the logger into OERuntimeTestContextExecutor.getTarget()
Richard Purdie [Wed, 8 Nov 2017 18:15:02 +0000 (18:15 +0000)] 
testimage: Pass the logger into OERuntimeTestContextExecutor.getTarget()

I have no idea why we didn't do this but it means the code has nowhere
to log to unless we do this. This means we can then use the logger
to log data to the task logs.

(From OE-Core rev: 1054965a2d44df2617127c0c47e34adc62c1bf4d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agooeqa/qemurunner: Use logger.debug, not logger.info
Richard Purdie [Wed, 8 Nov 2017 18:13:24 +0000 (18:13 +0000)] 
oeqa/qemurunner: Use logger.debug, not logger.info

Bitbake logs info messages to the console. These messages are really
there as debugging information. At the debug level, they will be shown
in failure logs and in the task logs but not on the console which
is what we want in this case.

(From OE-Core rev: 5c1cdd4f3ea59a202fff853e0390b9aa5859dc74)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemurunner: Ensure logging handler is removed
Richard Purdie [Tue, 7 Nov 2017 23:23:54 +0000 (23:23 +0000)] 
qemurunner: Ensure logging handler is removed

If we don't remove the handler we end up with duplicate log messages
which is undesireable.

(From OE-Core rev: 39e6194615b139e2b772084641940fffa2c9380f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agosshcontrol.py: in copy_to() always use scp
Erik Botö [Mon, 6 Nov 2017 18:13:06 +0000 (10:13 -0800)] 
sshcontrol.py: in copy_to() always use scp

The current implementation is broken when the localpath is a link.
Then only a symlink would be created on the target, instead of copying
the actual file.

[YOCTO #11524]

(From OE-Core rev: a9d446d9c42a67109ae87a156ae43dcbb0f56e1e)

Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemurunner: fix bad indentation in serial login
Ross Burton [Fri, 20 Oct 2017 16:24:04 +0000 (17:24 +0100)] 
qemurunner: fix bad indentation in serial login

(cherry picked from commit c4f57aed7a29000067c63a2821fddf18a88a23ce)
(From OE-Core rev: 2de7ffd9f0656ffd5b6fa002213e5f619480aba8)

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 agoqemurunner: print tail qemu log in case bootlog is empty
Leonardo Sandoval [Fri, 22 Sep 2017 23:05:41 +0000 (16:05 -0700)] 
qemurunner: print tail qemu log in case bootlog is empty

There are cases where the 'while loop' waiting for login prompt fails
and the bootlog variable does not get populated, thus use the the new
qemurunner member (self.msg) which stores all output coming from the qemu
process.

[YOCTO #12113]

(From OE-Core rev: 39ffa0f3779305c5e8ef86fe4572e961c5912021)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemurunner.py: wait for PID to appear in procfs
Juro Bystricky [Tue, 12 Sep 2017 19:23:27 +0000 (12:23 -0700)] 
qemurunner.py: wait for PID to appear in procfs

We need QEMU PID in order to access "/proc/<qemupid>/cmdline"
Having a valid QEMU PID does not mean we can access the proc entry
immediately, we need to wait for the /proc/<qemupid> to appear
before we can access it.

(From OE-Core rev: d2d069fa9910d1c7a94c898355a63fca03ec5ad8)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemurunner.py: refactor searching for QEMU PID
Juro Bystricky [Thu, 7 Sep 2017 00:33:58 +0000 (17:33 -0700)] 
qemurunner.py: refactor searching for QEMU PID

Ask QEMU to store the QEMU process PID in a file, this way we don't
have to parse running processes and analyze descendents.
This is done via QEMU command line argument "-pidfile".

[YOCTO #12001]

(From OE-Core rev: 67612dcd2a8a1aa1d683dddb0bd2f592886ff020)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agooeqa/qemurunner: Improve logging
Richard Purdie [Thu, 7 Sep 2017 09:49:19 +0000 (10:49 +0100)] 
oeqa/qemurunner: Improve logging

Python unittest intercepts stdout and stderr however qemurunner sets
up a streamhandler before that interception occurs, hence the messages
spam the unittest output.

By moving the logging init to the class init time, we use the unittest
stdout/stderr and this means unittest can only show the log output upon
failure. This cleans up the selftest and testimage output whilst still
showing logging upon failure.

(From OE-Core rev: 9099cecc727fe0ae5f1559582426d30ba7a9f4d3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoqemurunner: Tweak qemu pid starting timeout code
Richard Purdie [Tue, 29 Aug 2017 15:51:27 +0000 (16:51 +0100)] 
qemurunner: Tweak qemu pid starting timeout code

We're seeing timeouts in the autobuilder testing code. Increase these
timeouts to 120, print the length of time we're having to wait, change
the error messages to really be errors and don't print empty logs, its
not helpful, print a message about the empty log instead.

(From OE-Core rev: b87a33d9c86cc1d2ea196259020e1d3dc712ccef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoovmf-native: fix compile issue on new OS like FC27 and Ubuntu 17
Armin Kuster [Sat, 24 Feb 2018 20:51:48 +0000 (12:51 -0800)] 
ovmf-native: fix compile issue on new OS like FC27 and Ubuntu 17

Fixed this error:
| VfrUtilityLib.cpp:3375:26: error: ISO C++ forbids comparison between
pointer and integer [-fpermissive]
|    if (mStringFileName == '\0' ) {
|                           ^~~~
| VfrUtilityLib.cpp:3398:9: warning: ignoring return value of ‘size_t
fread(void*, size_t, size_t, FILE*)’, declared with attribute
warn_unused_result [-Wunused-result]
|    fread ((char *)StringPtr, sizeof (UINT8), Length, pInFile);
|    ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../Makefiles/footer.makefile:30: recipe for target 'VfrUtilityLib.o'
failed

[Yocto #12530]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoopenssl: Upgrade from 1.0.2k to 1.0.2n
robert_joslyn@selinc.com [Thu, 22 Feb 2018 06:29:08 +0000 (22:29 -0800)] 
openssl: Upgrade from 1.0.2k to 1.0.2n

Drop patches already applied upstream. Refresh parallel.patch using
latest version from master.

Remove x86-64 test binaries included in source code for ptest.

License-Update: Updated copyright years and a minor wording change

Signed-off-by: Robert Joslyn <robert_joslyn@selinc.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agop11-kit: take source code from official git
Alexander Kanavin [Thu, 1 Feb 2018 18:01:57 +0000 (20:01 +0200)] 
p11-kit: take source code from official git

The previous tarball URI seems to be gone.

Also, adjust a few things to make it actually build;
handling autotools-based projects from git checkouts is always harder
than taking them from tarballs :-(

(From OE-Core rev: b4542e867d54c56e6ef088fac28ae3d5e6c0d7bc)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.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 agopackage_rpm.bbclass: Fix matching of architecture independent packages
Otavio Salvador [Wed, 24 Jan 2018 20:39:11 +0000 (18:39 -0200)] 
package_rpm.bbclass: Fix matching of architecture independent packages

OE-Core changes the architecture independent RPM packages to use
"noarch" instead of "all". This change has been included in the commit
below:

,----
| commit 341810aff923ace6b1cc1e15e19383c4f8773b51
| Author: Alexander Kanavin <alexander.kanavin@linux.intel.com>
| Date:   Mon Jan 9 16:37:28 2017 +0200
|
|     package_rpm.bbclass: make architecture-independent .rpm packages
|     "noarch" instead of "all"
|
|     Too many places in dnf/rpm4 stack make that assumption; let's not
|     fight against it.
|
|     Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
`----

This is causing problems with machines that has "all" inside the
machine name.

Reported-by: Alexandru Palalau <ioan-alexandru.palalau@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 3e4ddeab65d4d2e4aaf03d442c2a1a8c7a2ce8a2)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoimage_types_wic.bbclass: Ensure '-c image_wic' works
Otavio Salvador [Tue, 19 Dec 2017 18:14:23 +0000 (16:14 -0200)] 
image_types_wic.bbclass: Ensure '-c image_wic' works

The 'wic' image may use files which has been deployed (e.g in
do_deploy) for some partitions that may need to be copied in a
specific partition or filesystem (e.g a bootloader).

When using 'bitbake <image> -c image_wic', from a clean build, the
contents of do_deploy must also be available so we need to ensure all
do_deploy of the image dependencies has been complete.

Reported-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f387c28640cbb209b8a8ed5734b21c754d9f7663)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agokernel-yocto/4.9: update to v4.9.82
Bruce Ashfield [Mon, 19 Feb 2018 18:08:20 +0000 (13:08 -0500)] 
kernel-yocto/4.9: update to v4.9.82

Updating to the korg -stable release of 4.9.82 which comprises the
following commits:

   3e598a7089ee Linux 4.9.82
   2de1085e8deb ftrace: Remove incorrect setting of glob search field
   df113487f844 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
   38e3bc59e0dd ovl: fix failure to fsync lower dir
   a468a3749bb5 acpi, nfit: fix register dimm error handling
   623c28ee02b3 ACPI: sbshc: remove raw pointer from printk() message
   3169a7c06e91 drm/i915: Avoid PPS HW/SW state mismatch due to rounding
   8fe7ceaf8a4e btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker
   3c83fe52b5c1 lib/ubsan: add type mismatch handler for new GCC/Clang
   3f8130127c0c lib/ubsan.c: s/missaligned/misaligned/
   1bb09d05a41c clocksource/drivers/stm32: Fix kernel panic with multiple timers
   944723bf84d3 pktcdvd: Fix pkt_setup_dev() error path
   86d408d10efd pinctrl: intel: Initialize GPIO properly when used through irqchip
   10ddc77ffb92 EDAC, octeon: Fix an uninitialized variable warning
   2d4e295284a9 xtensa: fix futex_atomic_cmpxchg_inatomic
   71611b37cca4 alpha: fix formating of stack content
   7d22d92ca6c9 alpha: fix reboot on Avanti platform
   68d18e90eeec alpha: fix crash if pthread_create races with signal delivery
   21f94109d0f1 signal/sh: Ensure si_signo is initialized in do_divide_error
   498b8b7453a3 signal/openrisc: Fix do_unaligned_access to send the proper signal
   5795b076bd7f Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version
   84bf682f5342 Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"
   6913d1b190b9 Bluetooth: btsdio: Do not bind to non-removable BCM43341
   df9658e80605 HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working
   71baf27d8c2b pipe: fix off-by-one error when checking buffer limits
   a705c24b5d50 pipe: actually allow root to exceed the pipe buffer limits
   91cebf98cd94 kernel/relay.c: revert "kernel/relay.c: fix potential memory leak"
   33a4459bdef1 kernel/async.c: revert "async: simplify lowest_in_progress()"
   da3b224658d3 fs/proc/kcore.c: use probe_kernel_read() instead of memcpy()
   1666d38f4ed6 media: cxusb, dib0700: ignore XC2028_I2C_FLUSH
   b2e7c63cad18 media: ts2020: avoid integer overflows on 32 bit machines
   d1d85ae79d5e media: dvb-frontends: fix i2c access helpers for KASAN
   b7f9df60f410 watchdog: imx2_wdt: restore previous timeout after suspend+resume
   eb10c5973eb2 ASoC: skl: Fix kernel warning due to zero NHTL entry
   76376783a453 ASoC: rockchip: i2s: fix playback after runtime resume
   f6741799aa53 KVM: arm/arm64: Handle CPU_PM_ENTER_FAILED
   ba88289e7acb KVM: nVMX: Fix races when sending nested PI while dest enters/leaves L2
   51e22c571fad arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
   68f2013e1ff8 crypto: sha512-mb - initialize pending lengths correctly
   a96e82079025 crypto: caam - fix endless loop when DECO acquire fails
   f2d4bed9eabf media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic
   437c4ec62efb media: v4l2-compat-ioctl32.c: don't copy back the result for certain errors
   30dcb0756b0f media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type
   30ac343c4222 media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32
   55e3f3e6846c media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha
   8465657a3be4 media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for subdevs
   9a7cd41be3ad media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
   eec955463de3 media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32
   daff4d009f4f media: v4l2-compat-ioctl32.c: avoid sizeof(type)
   81e0acf07015 media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
   02129c9bc235 media: v4l2-compat-ioctl32.c: fix the indentation
   f294548da645 media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF
   e78d9fdf5ecc media: v4l2-ioctl.c: don't copy back the result for -ENOTTY
   daaa81c48402 nsfs: mark dentry with DCACHE_RCUACCESS
   b93728341fb7 crypto: poly1305 - remove ->setkey() method
   45f31106baa3 crypto: mcryptd - pass through absence of ->setkey()
   c1ebf9f83547 crypto: cryptd - pass through absence of ->setkey()
   d2b492bda560 crypto: hash - introduce crypto_hash_alg_has_setkey()
   016572d31d32 ahci: Add Intel Cannon Lake PCH-H PCI ID
   72c0031a914e ahci: Add PCI ids for Intel Bay Trail, Cherry Trail and Apollo Lake AHCI
   3332b6f3276b ahci: Annotate PCI ids for mobile Intel chipsets as such
   058d13f85da6 kernfs: fix regression in kernfs_fop_write caused by wrong type
   b79d8854ee0e NFS: Fix a race between mmap() and O_DIRECT
   967f650f8835 NFS: reject request for id_legacy key without auxdata
   ca2c316f7cb4 NFS: commit direct writes even if they fail partially
   d1840343f948 NFS: Add a cond_resched() to nfs_commit_release_pages()
   e1df8c682df6 nfs/pnfs: fix nfs_direct_req ref leak when i/o falls back to the mds
   298dc6c6696b ubifs: Massage assert in ubifs_xattr_set() wrt. init_xattrs
   de14d0c124ca ubi: block: Fix locking for idr_alloc/idr_remove
   84f9d8536c8b ubi: fastmap: Erase outdated anchor PEBs during attach
   44ebd641be56 mtd: nand: sunxi: Fix ECC strength choice
   d80cd3e93653 mtd: nand: Fix nand_do_read_oob() return value
   d25d52ff1011 mtd: nand: brcmnand: Disable prefetch by default
   cbdabc7027b1 mtd: cfi: convert inline functions to macros
   198a7ddaf5d2 media: hdpvr: Fix an error handling path in hdpvr_probe()
   f320dd20224c media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner
   1ff1353a03c6 media: dvb-usb-v2: lmedm04: Improve logic checking of warm start
   7e2fb808d3c7 dccp: CVE-2017-8824: use-after-free in DCCP code
   a384e5437f70 sched/rt: Up the root domain ref count when passing it around via IPIs
   1c679981309b sched/rt: Use container_of() to get root domain in rto_push_irq_work_func()
   57ddb8eae517 usb: gadget: uvc: Missing files for configfs interface
   0b376535ad54 posix-timer: Properly check sigevent->sigev_notify
   83946c33b9b9 kaiser: fix compile error without vsyscall
   297c7cc4b565 dmaengine: dmatest: fix container_of member in dmatest_callback
   7e68916c361a CIFS: zero sensitive data when freeing
   f59eda16646a cifs: Fix autonegotiate security settings mismatch
   ee6858f72a39 cifs: Fix missing put_xid in cifs_file_strict_mmap
   ba4f9c192d3b powerpc/pseries: include linux/types.h in asm/hvcall.h
   7f3bd8db9974 Linux 4.9.81
   2760f452a718 x86/microcode: Do the family check first
   230ca8fb9515 drm: rcar-du: Fix race condition when disabling planes at CRTC stop
   758e22acf4fd drm: rcar-du: Use the VBK interrupt for vblank events
   1cb145c67260 ASoC: rsnd: avoid duplicate free_irq()
   24978c21f7ed ASoC: rsnd: don't call free_irq() on Parent SSI
   a7de0e9718c3 ASoC: simple-card: Fix misleading error message
   7c17a1e5852a crypto: tcrypt - fix S/G table for test_aead_speed()
   fc00dde96099 KVM/SVM: Allow direct access to MSR_IA32_SPEC_CTRL
   e5a83419c957 KVM/VMX: Allow direct access to MSR_IA32_SPEC_CTRL
   755502f810c6 KVM/VMX: Emulate MSR_IA32_ARCH_CAPABILITIES
   7013129a4034 KVM/x86: Add IBPB support
   6236b782eba3 KVM: VMX: make MSR bitmaps per-VCPU
   ff546f9d83d3 KVM: VMX: introduce alloc_loaded_vmcs
   46e24dfc2dfe KVM: nVMX: Eliminate vmcs02 pool
   b7649e177670 KVM: nVMX: mark vmcs12 pages dirty on L2 exit
   1edccf20b9d8 KVM: nVMX: vmx_complete_nested_posted_interrupt() can't fail
   19b1d4bdfe5c KVM: nVMX: kmap() can't fail
   34900390e966 x86/speculation: Fix typo IBRS_ATT, which should be IBRS_ALL
   4b234a253e52 x86/pti: Mark constant arrays as __initconst
   961cb14c615d x86/spectre: Simplify spectre_v2 command line parsing
   fe4333893936 x86/retpoline: Avoid retpolines for built-in __init functions
   eb99bd6341cb x86/kvm: Update spectre-v1 mitigation
   7552556f65af x86/paravirt: Remove 'noreplace-paravirt' cmdline option
   cda6b6074cc6 x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel
   f67e05d1506a x86/spectre: Fix spelling mistake: "vunerable"-> "vulnerable"
   359fde6bd0ec x86/spectre: Report get_user mitigation for spectre_v1
   0781a50a30d3 nl80211: Sanitize array index in parse_txq_params
   c26ceec69576 vfs, fdtable: Prevent bounds-check bypass via speculative execution
   c3193fd49f6f x86/syscall: Sanitize syscall table de-references under speculation
   398a39311c0b x86/get_user: Use pointer masking to limit speculation
   065eae4be83d x86/uaccess: Use __uaccess_begin_nospec() and uaccess_try_nospec
   ae75f83e79e4 x86/usercopy: Replace open coded stac/clac with __uaccess_{begin, end}
   e06d7bfb223e x86: Introduce __uaccess_begin_nospec() and uaccess_try_nospec
   1f03d140e2f5 x86: Introduce barrier_nospec
   8c33e2d23a68 x86: Implement array_index_mask_nospec
   579ef9ea20d6 array_index_nospec: Sanitize speculative array de-references
   899ab2cf9138 Documentation: Document array_index_nospec
   f03d00ba0b47 x86/asm: Move 'status' from thread_struct to thread_info
   572e50917811 x86/entry/64: Push extra regs right away
   d7f8d17406d6 x86/entry/64: Remove the SYSCALL64 fast path
   9eedeb72c412 x86/spectre: Check CONFIG_RETPOLINE in command line parser
   77d1424d2fb8 x86/retpoline: Simplify vmexit_fill_RSB()
   77b3b3ee2386 x86/cpufeatures: Clean up Spectre v2 related CPUID flags
   98911226d51e x86/cpu/bugs: Make retpoline module warning conditional
   557cbfa22211 x86/bugs: Drop one "mitigation" from dmesg
   18bc71dff630 x86/nospec: Fix header guards names
   31fd9eda7f69 x86/speculation: Add basic IBPB (Indirect Branch Prediction Barrier) support
   6c5e49150a51 x86/cpufeature: Blacklist SPEC_CTRL/PRED_CMD on early Spectre v2 microcodes
   a8799fd14d9f x86/pti: Do not enable PTI on CPUs which are not vulnerable to Meltdown
   af57d43c908f x86/msr: Add definitions for new speculation control MSRs
   c26a6bea26b3 x86/cpufeatures: Add AMD feature bits for Speculation Control
   40532f65cccc x86/cpufeatures: Add Intel feature bits for Speculation Control
   d3eba7744075 x86/cpufeatures: Add CPUID_7_EDX CPUID leaf
   a1745ad92f50 module/retpoline: Warn about missing retpoline in module
   ec86a1dad0c0 KVM: VMX: Make indirect call speculation safe
   fea3c9a54012 KVM: x86: Make indirect calls in emulator speculation safe
   734e687d1d7b x86/retpoline: Remove the esp/rsp thunk
   9692602ab850 KEYS: encrypted: fix buffer overread in valid_master_desc()
   0a01ecbd23a9 b43: Add missing MODULE_FIRMWARE()
   113d22965c78 media: soc_camera: soc_scale_crop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
   dd7b14c3e05e x86/microcode/AMD: Do not load when running on a hypervisor
   0a9b2dec6c12 x86/asm: Fix inline asm call constraints for GCC 4.4
   b671f40419bb soreuseport: fix mem leak in reuseport_add_sock()
   5771415d24bf ipv6: Fix SO_REUSEPORT UDP socket with implicit sk_ipv6only
   fa46d1437fab cls_u32: add missing RCU annotation.
   b980f718f525 tcp_bbr: fix pacing_gain to always be unity when using lt_bw
   73adb3b74efd vhost_net: stop device during reset owner
   ee46a8614204 tcp: release sk_frag.page in tcp_disconnect
   5db5cabbf09d r8169: fix RTL8168EP take too long to complete driver initialization.
   9f2f873d5a1c qmi_wwan: Add support for Quectel EP06
   97fe899816a6 qlcnic: fix deadlock bug
   ce43c07fcef8 net: igmp: add a missing rcu locking section
   7d3d60ef2256 ip6mr: fix stale iterator
   ffcf167d348e serial: core: mark port as initialized after successful IRQ change
   400d3c8b0c7f kaiser: allocate pgd with order 0 when pti=off
   ae1fc8de51b1 x86/pti: Make unpoison of pgd for trusted boot work for real
   0a61cd6caed7 kaiser: fix intel_bts perf crashes
   374c84de94af ASoC: pcm512x: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
   0ee4f5e7bbff pinctrl: pxa: pxa2xx: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
   781a2d683110 auxdisplay: img-ascii-lcd: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
   9fed3978c39b powerpc/64s: Allow control of RFI flush via debugfs
   1f0c936f431d powerpc/64s: Wire up cpu_show_meltdown()
   6aec12e1869e powerpc/powernv: Check device-tree for RFI flush settings
   7db0fff62f52 powerpc/pseries: Query hypervisor for RFI flush settings
   0ef9f8289edf powerpc/64s: Support disabling RFI flush with no_rfi_flush and nopti
   c3b82ebee6e0 powerpc/64s: Add support for RFI flush of L1-D cache
   48cc95d4e4d6 powerpc/64s: Convert slb_miss_common to use RFI_TO_USER/KERNEL
   00e40620a51e powerpc/64: Convert the syscall exit path to use RFI_TO_USER/KERNEL
   9d914324d966 powerpc/64: Convert fast_exception_return to use RFI_TO_USER/KERNEL
   8fd3f98d0f4d powerpc/64: Add macros for annotating the destination of rfid/hrfid
   be6641a7e6f7 powerpc/pseries: Add H_GET_CPU_CHARACTERISTICS flags & wrapper
   331b057d4f3c Linux 4.9.80
   1333c3e996eb spi: imx: do not access registers while clocks disabled
   5846849a1ac7 serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS
   9df847674ede usbip: vhci_hcd: clear just the USB_PORT_STAT_POWER bit
   57d4bb1beecb usb/gadget: Fix "high bandwidth" check in usb_gadget_ep_match_desc()
   92e64a1079fa usb: uas: unconditionally bring back host after reset
   f24d171a8100 usb: f_fs: Prevent gadget unbind if it is already unbound
   800de0fab17a USB: serial: simple: add Motorola Tetra driver
   f80079536bb6 usbip: list: don't list devices attached to vhci_hcd
   4c6fcc3425e1 usbip: prevent bind loops on devices attached to vhci_hcd
   ec719c52af16 USB: serial: io_edgeport: fix possible sleep-in-atomic
   aa6a93fd0c38 CDC-ACM: apply quirk for card reader
   c3b1f3137751 USB: cdc-acm: Do not log urb submission errors on disconnect
   068cc4ad2b23 USB: serial: pl2303: new device id for Chilitag
   2ef0d2ad5ce8 usb: option: Add support for FS040U modem
   55eaecffe3d6 tty: fix data race between tty_init_dev and flush of buf
   383e0620b70b staging: lustre: separate a connection destroy from free struct kib_conn
   f94b238fb856 drm/vc4: Move IRQ enable to PM path
   ace1911b7620 staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID
   0e216b0a0f74 usb: gadget: don't dereference g until after it has been null checked
   b4bfc8ef594a media: usbtv: add a new usbid
   c16c193e3abc ARM: dts: NSP: Fix PPI interrupt types
   9adb2a0f9a47 iwlwifi: mvm: fix the TX queue hang timeout for MONITOR vif type
   a248dc6a55b7 scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg
   fa64914313c1 scsi: aacraid: Prevent crash in case of free interrupt during scsi EH path
   fde77c712ac0 xfs: Properly retry failed dquot items in case of error during buffer writeback
   d96024440ee5 xfs: ubsan fixes
   9301165c4623 drm/omap: Fix error handling path in 'omap_dmm_probe()'
   f7170eb80aff drm/bridge: tc358767: fix 1-lane behavior
   8ae615fecee5 drm/bridge: tc358767: fix AUXDATAn registers access
   1bdfc52c331a drm/bridge: tc358767: fix timing calculations
   c55908604ecc drm/bridge: tc358767: fix DP0_MISC register set
   8d4bfe89aacf drm/bridge: tc358767: filter out too high modes
   5f6a0441ca0d drm/bridge: tc358767: do no fail on hi-res displays
   7b8623841f2b kmemleak: add scheduling point to kmemleak_scan()
   d2a67f7afcad SUNRPC: Allow connect to return EHOSTUNREACH
   c4ecc2f69643 quota: Check for register_shrinker() failure.
   d47907bcac94 net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit
   e11616d5e6c3 drm/amdgpu: don't try to move pinned BOs
   54a1fdff1b09 xfs: fortify xfs_alloc_buftarg error handling
   98ae1ca7534e bnxt_en: Fix an error handling path in 'bnxt_get_module_eeprom()'
   d5a746cf4797 hwmon: (pmbus) Use 64bit math for DIRECT format values
   3b7742374f3e lockd: fix "list_add double add" caused by legacy signal interface
   f25e222ccc50 nfsd: check for use of the closed special stateid
   f35ab8e2eeb8 grace: replace BUG_ON by WARN_ONCE in exit_net hook
   2a7d4a723d2e nfsd: Ensure we check stateid validity in the seqid operation checks
   5cd3586ca8d4 nfsd: CLOSE SHOULD return the invalid special stateid for NFSv4.x (x>0)
   c57767b60962 auxdisplay: img-ascii-lcd: Only build on archs that have IOMEM
   c6a34556f539 xen-netfront: remove warning when unloading module
   b5bfda0f8e29 xfs: always free inline data before resetting inode fork during ifree
   5c0b19bd8cff KVM: VMX: Fix rflags cache during vCPU reset
   b0fa04e8429e KVM: X86: Fix softlockup when get the current kvmclock
   90ef2c30ebd3 reiserfs: remove unneeded i_version bump
   8cfb3965ebcd btrfs: fix deadlock when writing out space cache
   030d4676a268 mac80211: fix the update of path metric for RANN frame
   03899a46c223 openvswitch: fix the incorrect flow action alloc size
   827558408206 drm/amdkfd: Fix SDMA oversubsription handling
   16980affa1b0 drm/amdkfd: Fix SDMA ring buffer size calculation
   8afdbb165a79 drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode
   409982cbb5eb bcache: check return value of register_shrinker
   6436981ba6d1 cpufreq: Add Loongson machine dependencies
   876b31fd9815 KVM: x86: ioapic: Preserve read-only values in the redirection table
   1d3ab3b2964e ACPI / bus: Leave modalias empty for devices which are not present
   a9f2c1693667 KVM: x86: ioapic: Clear Remote IRR when entry is switched to edge-triggered
   2f9e94ef498d KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race
   ec73d16bc7ce KVM: X86: Fix operand/address-size during instruction decoding
   114de9bfefa5 KVM: x86: Don't re-execute instruction when not passing CR2 value
   60d9b22b1ffc KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure
   d8f75b4c7f25 cpupower : Fix cpupower working when cpu0 is offline
   82e57cdce058 cpupowerutils: bench - Fix cpu online check
   036c227cdd1c drm/vc4: Account for interrupts in flight
   30942f91b5a5 igb: Free IRQs when device is hotplugged
   3a98d0753928 mtd: nand: denali_pci: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
   e29997d55268 gpio: ath79: add missing MODULE_DESCRIPTION/LICENSE
   cb1a0b51d103 gpio: iop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
   517931760e69 power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
   ddba3c67a5b8 HID: wacom: EKR: ensure devres groups at higher indexes are released
   b7edc45f3ada crypto: af_alg - whitelist mask and type
   1ce8e52f6f36 crypto: sha3-generic - fixes for alignment and big endian operation
   95259cb008ba crypto: aesni - handle zero length dst buffer
   f1803207b5ea crypto: ecdh - fix typo in KPP dependency of CRYPTO_ECDH
   cc1fa4a7b653 gpio: Fix kernel stack leak to userspace
   241c04f75e90 gpio: stmpe: i2c transfer are forbiden in atomic context
   efe3f94f83d2 tools/gpio: Fix build error with musl libc
   2a7076e71575 RDMA/mlx5: set UMR wqe fence according to HCA cap
   20e6f5bdf542 net/mlx5: Define interface bits for fencing UMR wqe
   56bc086358ca loop: fix concurrent lo_open/lo_release
   6c6f924f9c62 Linux 4.9.79
   f12d0602633d nfsd: auth: Fix gid sorting when rootsquash enabled
   f531fbb06a56 bpf: reject stores into ctx via st and xadd
   265d7657c9ba bpf: fix 32-bit divide by zero
   4606077802f2 bpf: fix divides by zero
   5cb917aa1f1e bpf: avoid false sharing of map refcount with max_entries
   fcabc6d00885 bpf: arsh is not supported in 32 bit alu thus reject it
   a3d6dd6a66c1 bpf: introduce BPF_JIT_ALWAYS_ON config
   5226bb3b9551 bpf: fix bpf_tail_call() x64 JIT
   c964ad34f6d9 x86: bpf_jit: small optimization in emit_bpf_tail_call()
   c98ff7299b40 hrtimer: Reset hrtimer cpu base proper on CPU hotplug
   9f3a6cadf494 x86/microcode/intel: Extend BDW late-loading further with LLC size check
   dc1932c69835 perf/x86/amd/power: Do not load AMD power module on !AMD platforms
   eecfa2eeefe3 flow_dissector: properly cap thoff field
   18717ee28ef5 tun: fix a memory leak for tfile->tx_array
   1105145cb3d5 mlxsw: spectrum_router: Don't log an error on missing neighbor
   3110e2134c97 gso: validate gso_type in GSO handlers
   cc99c6d59adf ip6_gre: init dev->mtu and dev->hard_header_len correctly
   1711ba166e5f be2net: restore properly promisc mode after queues reconfiguration
   00f9e47c6f9d ppp: unlock all_ppp_mutex before registering device
   260eb694b5a4 ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY
   014510b11781 net: Allow neigh contructor functions ability to modify the primary_key
   66c16a22e3b1 vmxnet3: repair memory leak
   0e52703d0746 tipc: fix a memory leak in tipc_nl_node_get_link()
   2f056e7def42 sctp: return error if the asoc has been peeled off in sctp_wait_for_sndbuf
   8e3534ea657e sctp: do not allow the v4 socket to bind a v4mapped v6 address
   0f51492d1bd5 r8169: fix memory corruption on retrieval of hardware statistics.
   1bd21b158e07 pppoe: take ->needed_headroom of lower device into account on xmit
   cf67be7a1a21 net: tcp: close sock if net namespace is exiting
   a44d91150f33 net: qdisc_pkt_len_init() should be more robust
   0ae16964f215 net: igmp: fix source address check for IGMPv3 reports
   283498b4ca35 lan78xx: Fix failure in USB Full Speed
   c2ceff11b46e ipv6: ip6_make_skb() needs to clear cork.base.dst
   fb50d8c9169e ipv6: fix udpv6 sendmsg crash caused by too small MTU
   8b0d3e81cdec ipv6: Fix getsockopt() for sockets with default IPV6_AUTOFLOWLABEL
   5bb5ae9718f6 dccp: don't restart ccid2_hc_tx_rto_expire() if sk in closed state
   5f6c581bcb3c eventpoll.h: add missing epoll event masks
   9a0be5afbfbb vsyscall: Fix permissions for emulate mode with KAISER/PTI
   1be7d46e775c um: link vmlinux with -no-pie
   d680db722516 orangefs: fix deadlock; do not write i_size in read_iter
   42f0aba58e00 Input: trackpoint - force 3 buttons if 0 button is reported
   19a7db1e2ef3 mm: fix 100% CPU kswapd busyloop on unreclaimable nodes
   e62b0c661f65 Revert "module: Add retpoline tag to VERMAGIC"
   c41bb027ed63 scsi: libiscsi: fix shifting of DID_REQUEUE host byte
   7b50205cf8b9 fs/fcntl: f_setown, avoid undefined behaviour
   0ccfbd4d6f02 reiserfs: don't preallocate blocks for extended attributes
   b7d25282b75e reiserfs: fix race in prealloc discard
   898eeca02a55 netfilter: xt_osf: Add missing permission checks
   2c3184ea8032 netfilter: nfnetlink_cthelper: Add missing permission checks
   2915f16bdce2 ACPICA: Namespace: fix operand cache leak
   3a53accd9c39 ACPI / scan: Prefer devices without _HID/_CID for _ADR matching
   542cde0e3cc2 ipc: msg, make msgrcv work with LONG_MIN
   685cce58f1c2 mm, page_alloc: fix potential false positive in __zone_watermark_ok
   714c19ef57a5 cma: fix calculation of aligned offset
   bc0e2174b092 hwpoison, memcg: forcibly uncharge LRU pages
   c57664bd1299 mm/mmap.c: do not blow on PROT_NONE MAP_FIXED holes in the stack
   1d8c402e0c46 drivers: base: cacheinfo: fix boot error message when acpi is enabled
   f5aaa5a2836d drivers: base: cacheinfo: fix x86 with CONFIG_OF enabled
   318e17d09cbc Prevent timer value 0 for MWAITX
   45ee9d5e97a4 KVM: arm/arm64: Check pagesize when allocating a hugepage at Stage 2
   41e4aa17bc02 can: af_can: canfd_rcv(): replace WARN_ONCE by pr_warn_once
   40bf2c0c1c9e can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once
   69e78e7214e3 usbip: Fix potential format overflow in userspace tools
   853c39f239eb usbip: Fix implicit fallthrough warning
   ce601a07bc50 usbip: prevent vhci_hcd driver from leaking a socket pointer address
   5c26ee198fca orangefs: initialize op on loop restart in orangefs_devreq_read
   fb39345e7314 orangefs: use list_for_each_entry_safe in purge_waiting_ops
   c36c940cd4aa x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernels

(From OE-Core rev: 2db2bfa47dd3e04b67e5a1642d36ac6f1eff245f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agodistutils-base.bbclass: Do not use -pie with hardening
Khem Raj [Tue, 6 Feb 2018 19:17:24 +0000 (11:17 -0800)] 
distutils-base.bbclass: Do not use -pie with hardening

Fix build when PIE is turned on. It tries to build
.so file using -pie and -shared flags together because
its doing compile and link in same step CFLAGS and LDFLAGS
are combined and does not work, ending in errors e.g.

| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/python-pygpgme/0.3-r0/recipe-sysroot/usr/l
ib/Scrt1.o: In function `_start_c':
| /usr/src/debug/musl/1.1.16+gitAUTOINC+179766aa2e-r0/git/crt/crt1.c:17: undefined reference to `main'
| collect2: error: ld returned 1 exit status

This error while cryptic is due to the fact that we are
building a shared library but also pass -pie flag to the link
step after specify LDHSARED ( which is -shared linker flags )

we can not use -pie when doing shared libs. This is true for all the python
modules inheriting setup tools

Disable the pie flags thusly for all modules using setuptools since
this setting is done in setuptools makefiles which are then used
during module compiles

Backport notes:
In master, this commit is reverted in master in favor of using GCCPIE =
"--enable-default-pie" in security_flags.inc. However, backporting that change
introduces many merge conflicts and will be a serious maintenance issue, so I
think it's safest to just backport this small change, which fixes build failures
in python-cffi and likely other recipes.

For completeness, this is the list of commits in OE-core master that will
supersede this change:

1c7e195c94764d680a12a49b870f04cd58860f81
  "gcc: Introduce a knob to configure gcc to default to PIE"
e93765ffb5718b0fce84f0b8123963176dea95e4
  "security_flags.inc: Delete pinnings for SECURITY_NO_PIE_CFLAGS"
fcfe6d4ab4460f8358e13023022a5e909941ca93
  distutils,setuptools: Delete use of SECURITY_NO_PIE_CFLAGS

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopython3-nose: rename ${bindir}/nosetests into ${bindir}/nosetests3
Denys Dmytriyenko [Tue, 6 Feb 2018 19:48:22 +0000 (11:48 -0800)] 
python3-nose: rename ${bindir}/nosetests into ${bindir}/nosetests3

This resolves a conflict when both python-nose and python3-nose are pulled
into an image and try to install ${bindir}/nosetests binary.

This matches with how other distros are solving this problem, e.g. Debian:
https://packages.debian.org/jessie/all/python3-nose/filelist

Also, other packages like python3-setuptools are already doing the same with
their binaries.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agogrub: Fix device mapper dependency
robert_joslyn@selinc.com [Wed, 7 Feb 2018 18:29:43 +0000 (10:29 -0800)] 
grub: Fix device mapper dependency

The lvm2 recipe in meta-oe was split, so the libdevmapper library is
provided by the libdevmapper recipe rather than lvm2.

Signed-off-by: Robert Joslyn <robert_joslyn@selinc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolinux-firmware: Add reference to iwlwifi-8000C firmware
Avinash Reddy Palleti [Wed, 7 Feb 2018 05:23:53 +0000 (10:53 +0530)] 
linux-firmware: Add reference to iwlwifi-8000C firmware

Adding reference to iwlwifi-8000c firmware which was removed erroneously in
commit  3e4b382c0c687a76f824cd84b478c4f778e15e3e

Signed-off-by: Avinash Reddy Palleti <avinash.reddy.palleti@intel.com>
Acked-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopython3-setuptools: extend to nativesdk
Chen Qi [Thu, 8 Feb 2018 20:25:28 +0000 (12:25 -0800)] 
python3-setuptools: extend to nativesdk

Extend python3-setuptools to nativesdk because nativesdk-python3-pip needs
it.

Also, adjust RDEPENDS variable setting to keep the runtime dependencies
for nativesdk package the same with the target one. The native package and
the target package's dependencies remain the same as before.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agotzdata: update to 2018c
Armin Kuster [Thu, 25 Jan 2018 16:33:43 +0000 (08:33 -0800)] 
tzdata: update to 2018c

The 2018c release of the tz code and data is available. It follows on the 2018a and 2018b releases, which were published but were not announced until now, due to problems discovered late in their release processes. 2018a had a build-failure typo, and 2018a and 2018b both had problems with ICU and Java, downstream packages which do not support a feature (negative DST offsets) used in 2018a and 2018b. The typo has been fixed, and data changes using negative DST offsets have been reverted pending development of a mechanism to export data to platforms lacking support for such data.

  Briefly:
  São Tomé and Príncipe switched from +00 to +01.
  Brazil's DST will now start on November's first Sunday.
  Use Debian-style installation locations, instead of 4.3BSD-style.
  New zic option -t.

  Changes to past and future time stamps

    São Tomé and Príncipe switched from +00 to +01 on 2018-01-01 at
    01:00.  (Thanks to Steffen Thorsen and Michael Deckers.)

  Changes to future time stamps

    Starting in 2018 southern Brazil will begin DST on November's
    first Sunday instead of October's third Sunday. (Thanks to
    Steffen Thorsen.)

  Changes to past time stamps

    Japanese DST transitions (1948-1951) were Sundays at 00:00, not
    Saturdays or Sundays at 02:00.  (Thanks to Takayuki Nikai.)

    A discrepancy of 4 s in timestamps before 1931 in South Sudan has
    been corrected.  The 'backzone' and 'zone.tab' files did not agree
    with the 'africa' and 'zone1970.tab' files.  (Problem reported by
    Michael Deckers.)

    The abbreviation invented for Bolivia Summer Time (1931-2) is now
    BST instead of BOST, to be more consistent with the convention
    used for Latvian Summer Time (1918-9) and for British Summer Time.

  Changes to build procedure

    The default installation locations have been changed to mostly
    match Debian circa 2017, instead of being designed as an add-on to
    4.3BSD circa 1986.  This affects the Makefile macros TOPDIR,
    TZDIR, MANDIR, and LIBDIR.  New Makefile macros TZDEFAULT, USRDIR,
    USRSHAREDIR, BINDIR, ZDUMPDIR, and ZICDIR let installers tailor
    locations more precisely.  (This responds to suggestions from
    Brian Inglis and from Steve Summit.)

    The default installation procedure no longer creates the
    backward-compatibility link US/Pacific-New, which causes
    confusion during user setup (e.g., see Debian bug 815200).
    Use 'make BACKWARD="backward pacificnew"' to create the link
    anyway, for now.  Eventually we plan to remove the link entirely.

    tzdata.zi now contains a version-number comment.
    (Suggested by Tom Lane.)

    The Makefile now quotes values like BACKWARD more carefully when
    passing them to the shell.  (Problem reported by Zefram.)

    Builders no longer need to specify -DHAVE_SNPRINTF on platforms
    that have snprintf and use pre-C99 compilers. (Problem reported
    by Jon Skeet.)

    The build procedure now works around mawk 1.3.3's lack of support
    for character class expressions.  (Problem reported by Ohyama.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 97927956a6629381b54973d01e16c5f039f5e5bb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit f266d17095441dd136c490578d7aae824ab16870)

7 years agotzcode: update to 2018c
Armin Kuster [Thu, 25 Jan 2018 16:33:42 +0000 (08:33 -0800)] 
tzcode: update to 2018c

removed patches now included in update.

The 2018a through 2018c releases reflect the following changes, which were either circulated on the tz mailing list or are relatively minor technical or administrative changes. This announcement has merged the set of changes made by the three releases, to make it easier to see the difference between 2017c and 2018c; please see the 2018c NEWS file for more details about intermediate versions.

Release 2018c - 2018-01-22 23:00:44 -0800
Release 2018b - 2018-01-17 23:24:48 -0800
Release 2018a - 2018-01-12 22:29:21 -0800

Changes to code

    zic has a new option -t FILE that specifies the location of the
    file that determines local time when TZ is unset. The default for
    this location can be configured via the new TZDEFAULT makefile
    macro, which defaults to /etc/localtime.

    Diagnostics and commentary now distinguish UT from UTC more
    carefully; see theory.html for more information about UT vs UTC.

    zic has been ported to GCC 8's -Wstringop-truncation option.
    (Problem reported by Martin Sebor.)

  Changes to documentation and commentary

    The zic man page now documents the longstanding behavior that
    times and years can be out of the usual range, with negative times
    counting backwards from midnight and with year 0 preceding year 1.
    (Problem reported by Michael Deckers.)

    The theory.html file now mentions the POSIX limit of six chars
    per abbreviation, and lists alphabetic abbreviations used.

    The files tz-art.htm and tz-link.htm have been renamed to
    tz-art.html and tz-link.html, respectively, for consistency with
    other file names and to simplify web server configuration.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit aae1131225b92d2f984a2de35b2e21592ae8195d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 017bbce4101e90388cf662e12157a788112e0727)

7 years agotzdata: update 2017c
Armin Kuster [Fri, 3 Nov 2017 19:54:36 +0000 (12:54 -0700)] 
tzdata: update 2017c

LICENSE changed do to rewording
https://github.com/eggert/tz/commit/7097a652778d35acf747d14f8bf7b3ced479bbc0#diff-9879d6db96fd29134fc802214163b95a

  Briefly:
  Northern Cyprus switches from +03 to +02/+03 on 2017-10-29.
  Fiji ends DST 2018-01-14, not 2018-01-21.
  Namibia switches from +01/+02 to +02 on 2018-04-01.
  Sudan switches from +03 to +02 on 2017-11-01.
  Tonga likely switches from +13/+14 to +13 on 2017-11-05.
  Turks & Caicos switches from -04 to -05/-04 on 2018-11-04.
  A new file tzdata.zi now holds a small text copy of all data.
  The zic input format has been regularized slightly.

  Changes to future time stamps

    Northern Cyprus has decided to resume EU rules starting
    2017-10-29, thus reinstituting winter time.

    Fiji ends DST 2018-01-14 instead of the 2018-01-21 previously
    predicted.  (Thanks to Dominic Fok.)  Adjust future predictions
    accordingly.

    Namibia will switch from +01 with DST to +02 all year on
    2017-09-03 at 02:00.  This affects UT offsets starting 2018-04-01
    at 02:00.  (Thanks to Steffen Thorsen.)

    Sudan will switch from +03 to +02 on 2017-11-01.  (Thanks to Ahmed
    Atyya and Yahia Abdalla.)  South Sudan is not switching, so
    Africa/Juba is no longer a link to Africa/Khartoum.

    Tonga has likely ended its experiment with DST, and will not
    adjust its clocks on 2017-11-05.  Although Tonga has not announced
    whether it will continue to observe DST, the IATA is assuming that
    it will not.  (Thanks to David Wade.)

    Turks & Caicos will switch from -04 all year to -05 with US DST on
    2018-03-11 at 03:00.  This affects UT offsets starting 2018-11-04
    at 02:00.  (Thanks to Steffen Thorsen.)

  Changes to past time stamps

    Namibia switched from +02 to +01 on 1994-03-21, not 1994-04-03.
    (Thanks to Arthur David Olson.)

    Detroit did not observe DST in 1967.

    Use railway time for Asia/Kolkata before 1941, by switching to
    Madras local time (UT +052110) in 1870, then to IST (UT +0530) in
    1906.  Also, treat 1941-2's +0630 as DST, like 1942-5.

    Europe/Dublin's 1946 and 1947 fallback transitions occurred at
    02:00 standard time, not 02:00 DST.  (Thanks to Michael Deckers.)

    Pacific/Apia and Pacific/Pago_Pago switched from Antipodean to
    American time in 1892, not 1879.  (Thanks to Michael Deckers.)

    Adjust the 1867 transition in Alaska to better reflect the
    historical record, by changing it to occur on 1867-10-18 at 15:30
    Sitka time rather than at the start of 1867-10-17 local time.
    Although strictly speaking this is accurate only for Sitka,
    the rest of Alaska's blanks need to be filled in somehow.

    Fix off-by-one errors in UT offsets for Adak and Nome before 1867.
    (Thanks to Michael Deckers.)

    Add 7 s to the UT offset in Asia/Yangon before 1920.

  Changes to zone names

    Remove Canada/East-Saskatchewan from the 'backward' file, as it
    exceeded the 14-character limit and was an unused misnomer anyway.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 77a8256d9cbfe24d470aac9b4cc2910a41ca0ee8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 2ea37fd4fad2e5ef21c119b03f09bcf2b0e7266e)

7 years agotzcode-native: update to 2017c
Armin Kuster [Fri, 3 Nov 2017 19:54:35 +0000 (12:54 -0700)] 
tzcode-native: update to 2017c

LICENSE changes do to rewording
https://github.com/eggert/tz/commit/7097a652778d35acf747d14f8bf7b3ced479bbc0#diff-9879d6db96fd29134fc802214163b95a

Backported to fixes from upstream too.

Changes to code

    zic and the reference runtime now reject multiple leap seconds
    within 28 days of each other, or leap seconds before the Epoch.
    As a result, support for double leap seconds, which was
    obsolescent and undocumented, has been removed.  Double leap
    seconds were an error in the C89 standard; they have never existed
    in civil timekeeping.  (Thanks to Robert Elz and Bradley White for
    noticing glitches in the code that uncovered this problem.)

    zic now warns about use of the obsolescent and undocumented -y
    option, and about use of the obsolescent TYPE field of Rule lines.

    zic now allows unambiguous abbreviations like "Sa" and "Su" for
    weekdays; formerly it rejected them due to a bug.  Conversely, zic
    no longer considers non-prefixes to be abbreviations; for example,
    it no longer accepts "lF" as an abbreviation for "lastFriday".
    Also, zic warns about the undocumented usage with a "last-"
    prefix, e.g., "last-Fri".

    Similarly, zic now accepts the unambiguous abbreviation "L" for
    "Link" in ordinary context and for "Leap" in leap-second context.
    Conversely, zic no longer accepts non-prefixes such as "La" as
    abbreviations for words like "Leap".

    zic no longer accepts leap second lines in ordinary input, or
    ordinary lines in leap second input.  Formerly, zic sometimes
    warned about this undocumented usage and handled it incorrectly.

    The new macro HAVE_TZNAME governs whether the tzname external
    variable is exported, instead of USG_COMPAT.  USG_COMPAT now
    governs only the external variables "timezone" and "daylight".
    This change is needed because the three variables are not in the
    same category: although POSIX requires tzname, it specifies the
    other two variables as optional.  Also, USG_COMPAT is now 1 or 0:
    if not defined, the code attempts to guess it from other macros.

    localtime.c and difftime.c no longer require stdio.h, and .c files
    other than zic.c no longer require sys/wait.h.

    zdump.c no longer assumes snprintf.  (Reported by Jonathan Leffler.)

    Calculation of time_t extrema works around a bug in GCC 4.8.4
    (Reported by Stan Shebs and Joseph Myers.)

    zic.c no longer mistranslates formats of line numbers in non-English
    locales.  (Problem reported by Benno Schulenberg.)

    Several minor changes have been made to the code to make it a
    bit easier to port to MS-Windows and Solaris.  (Thanks to Kees
    Dekker for reporting the problems.)

  Changes to documentation and commentary

    The two new files 'theory.html' and 'calendars' contain the
    contents of the removed file 'Theory'.  The goal is to document
    tzdb theory more accessibly.

    The zic man page now documents abbreviation rules.

    tz-link.htm now covers how to apply tzdata changes to clients.
    (Thanks to Jorge Fábregas for the AIX link.)  It also mentions MySQL.

    The leap-seconds.list URL has been updated to something that is
    more reliable for tzdb.  (Thanks to Tim Parenti and Brian Inglis.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 74af497f8d6b4e28d97c0f2cdb4ece90c2a6b8b5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit 12a538bbbc8d04e875f81bd65e9754d749273aac)