]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
5 years agobitbake.conf: Point SDKPATH to /opt/DISTRO kraj/morty
Khem Raj [Fri, 1 May 2020 02:46:07 +0000 (02:46 +0000)] 
bitbake.conf: Point SDKPATH to /opt/DISTRO

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agointltool: Build nativesdk and do not use nativeperl
Khem Raj [Fri, 1 May 2020 02:29:39 +0000 (02:29 +0000)] 
intltool: Build nativesdk and do not use nativeperl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agolibxml-parser-perl: Build nativesdk as well
Khem Raj [Fri, 1 May 2020 02:28:51 +0000 (02:28 +0000)] 
libxml-parser-perl: Build nativesdk as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agobuildtools-tarball: Add perl modules needed for gcc and other tools
Khem Raj [Fri, 1 May 2020 02:28:05 +0000 (02:28 +0000)] 
buildtools-tarball: Add perl modules needed for gcc and other tools

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agobintuils: Fix relocation of ld.so.conf in nativesdk builds
Richard Purdie [Fri, 17 Jan 2020 17:21:39 +0000 (17:21 +0000)] 
bintuils: Fix relocation of ld.so.conf in nativesdk builds

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobinutils: Install non-alternatives links for nativesdk
Khem Raj [Thu, 30 Apr 2020 22:40:10 +0000 (22:40 +0000)] 
binutils: Install non-alternatives links for nativesdk

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agobuildtools-tarball: Add an ld.so.conf for nativesdk-binutils
Khem Raj [Thu, 30 Apr 2020 22:38:45 +0000 (22:38 +0000)] 
buildtools-tarball: Add an ld.so.conf for nativesdk-binutils

We need to search our own libdirs, then fall back to the system ones as our
customised dynamic loader will. Have ld.so.conf reflect that.

This ensures that binutils finds libraries here when linking too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agouninative: Switch from bz2 to xz
Khem Raj [Thu, 30 Apr 2020 22:36:42 +0000 (22:36 +0000)] 
uninative: Switch from bz2 to xz

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agobuildtools-extended-tarball.bb: Backport extended tools to morty
Khem Raj [Thu, 30 Apr 2020 22:35:08 +0000 (22:35 +0000)] 
buildtools-extended-tarball.bb: Backport extended tools to morty

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agoyocto-uninative: Update to 2.31
Khem Raj [Thu, 30 Apr 2020 22:34:43 +0000 (22:34 +0000)] 
yocto-uninative: Update to 2.31

Signed-off-by: Khem Raj <raj.khem@gmail.com>
7 years agobuild-appliance-image: Update to morty head revision
Richard Purdie [Thu, 24 May 2018 08:18:11 +0000 (09:18 +0100)] 
build-appliance-image: Update to morty head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.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

(From OE-Core rev: ce12ff394281a42448d92109568db33739b2b542)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for Morty context]
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)

(From OE-Core rev: a9b55cbec9f5ff11f92f50c529049e83ac898043)

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>
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)

(From OE-Core rev: 20d9821e9131c3d715ed629ad38eed802f737056)

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 agotest-dependencies.sh: remove /sysroots* between component builds
Martin Jansa [Wed, 25 Apr 2018 14:06:48 +0000 (14:06 +0000)] 
test-dependencies.sh: remove /sysroots* between component builds

* glibc is now the only component in morty release which is using TMPDIR/sysroots-components (normally used only after RSS):
  oe-core$ git grep "\${STAGING_DIR}-components"
  meta/recipes-core/glibc/glibc-locale.inc:LOCALETREESRC = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale"
  meta/recipes-core/glibc/glibc-mtrace.inc:SRC = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale/scripts"
  meta/recipes-core/glibc/glibc-package.inc:do_stash_locale[sstate-outputdirs] = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale"
  meta/recipes-core/glibc/glibc-package.inc:do_stash_locale[sstate-fixmedir] = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale"
  meta/recipes-core/glibc/glibc-scripts.inc:SRC = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale/scripts"

  test-dependencies selective pruning of TMPDIR, deletes sysroots, but not sysroots-components

  which leaves TMPDIR/sysroots-components files from qlibc.do_stash_locale behind and when next build started in the same workspace it failed, because it was trying to overwrite files already there.

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:06:47 +0000 (14:06 +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:06:46 +0000 (14:06 +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 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

(From OE-Core rev: 210cef54a09daf61e4c4237f9bb3afad161658b3)

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 agooe-selftest: no need to parse gpg output to determine the name of the signing key
Alexander Kanavin [Thu, 16 Feb 2017 14:36:35 +0000 (16:36 +0200)] 
oe-selftest: no need to parse gpg output to determine the name of the signing key

The parsing fails on my machine, and we use a key with a hardcoded name,
and so can provide it directly.

(From OE-Core rev: b69bad2c4e51a24868422f39619a0598fd2a0533)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.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 agosanity.bbclass: Improved error message
Juro Bystricky [Thu, 5 Apr 2018 01:41:40 +0000 (18:41 -0700)] 
sanity.bbclass: Improved error message

When a non-existing MACHINE is specified, sanity check issues
the following message:

    Please set a valid MACHINE in your local.conf or environment

However, MACHINE can also be set in multiconfig .conf file(s).
Hence we may have several different MACHINE settings within one
(multiconfig) build, so the present error message is fairly
ambiguous.

This patch remedies this by explicitly naming the offending MACHINE and
by amending the list of places where this erroneous MACHINE definition
could have originated.

    MACHINE=xyz is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

[YOCTO#10810]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a7cb408dd784178197687a2129e936620bf6a0d3)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibvorbis: CVE-2018-5146
Tanu Kaskinen [Sat, 31 Mar 2018 05:24:28 +0000 (08:24 +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

(From OE-Core rev: 7d5d262c03745e5c61e1e9c84f108d842d16e5ec)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibvorbis: CVE-2017-14632
Tanu Kaskinen [Sat, 31 Mar 2018 05:24:27 +0000 (08:24 +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

(From OE-Core rev: 6dcd8bdd5ffebafec5bbb811243f4dbf3a7038b8)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolibvorbis: CVE-2017-14633
Tanu Kaskinen [Sat, 31 Mar 2018 05:24:26 +0000 (08:24 +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

(From OE-Core rev: f398fb04549577922e6265c0969c6d6c35a11e7c)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopackage_manager: fix install_glob to use morty sdk pkgdir
Armin Kuster [Wed, 4 Apr 2018 17:10:09 +0000 (10:10 -0700)] 
package_manager: fix install_glob to use morty sdk pkgdir

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoglibc-package: Avoid race sstate races with do_stash_locale
Richard Purdie [Wed, 8 Feb 2017 12:29:04 +0000 (12:29 +0000)] 
glibc-package: Avoid race sstate races with do_stash_locale

The change to make do_stash_locale an sstate task between do_install and
do_package has some unforeseen problems since the function deletes part of
${D} but may or may not run depending on whether the task is installed from
sstate.

This cleans up the current "pre packaging" function to be more deterministic
and result in the same set of files, whichever code path we end up reaching
that point by. Its not an ideal sitation but it should avoid the race
failures we've seen on some builds.

(From OE-Core rev: 2a60bba00da9c4e2b1a1ce30e509dba82cc6c94a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoimage/packagegroup/populate_sdk: Drop do_populate_sysroot task properly
Richard Purdie [Wed, 25 Jan 2017 14:25:02 +0000 (14:25 +0000)] 
image/packagegroup/populate_sdk: Drop do_populate_sysroot task properly

Setting do_populate_sysroot as noexec means the code keeps thinking it can find
a manifest file for it. It also complicates sstate installtion since the code
would believe there is an sstate object there it should look for.

Instead, delete the task. This causes sdk failures as the dependencies are wrong
so fix those as well.

(From OE-Core rev: bd7d0314038a4c1a8e8c9ebdb7194f8e17db3fef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for getVar True bit]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agotoolchain-shar-extract: compare SDK and host gcc versions
Ed Bartosh [Wed, 25 Jan 2017 13:18:36 +0000 (15:18 +0200)] 
toolchain-shar-extract: compare SDK and host gcc versions

If ext sdk is built by gcc version higher than host gcc version
and host gcc version is 4.8 or 4.9 the installation is known to
fail due to the way uninative sstate package is built.

It's a known issue and we don't have a way to fix it for above
mentioned combinations of build and host gcc versions.

Detected non-installable combinations of gcc versions and
print an installation error.

[YOCTO #10881]

(From OE-Core rev: bfb9ea2604557804bd8c16adb57ccdd868a4020f)

Signed-off-by: Ed Bartosh <ed.bartosh@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 agopopulate_sdk_base.bbclass: add documentation packages to SDKs if api-documentation...
Alexander Kanavin [Wed, 2 Nov 2016 17:09:28 +0000 (19:09 +0200)] 
populate_sdk_base.bbclass: add documentation packages to SDKs if api-documentation is in DISTRO_FEATURES

(From OE-Core rev: d2b7b3fca328449cd87997be7f897b59433a153d)

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 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.

(From OE-Core rev: cb118806841e585ec6ca820360329ae7d122c0af)

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 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)

(From OE-Core rev: a043ec4fabad26861af83fdc54838544bb8bb3a8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for getVar True bit]
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 agobuildhistory: fix latest_srcrev in the common case
Christopher Larson [Wed, 28 Feb 2018 01:06:17 +0000 (17:06 -0800)] 
buildhistory: fix latest_srcrev in the common case

buildhistory was writing srcrevs.values() as SRCREV when only one
srcrev/branch exists. This returns a view of the dictionary values in python
3, and used to return a list in python 2, neither of which is an appropriate
value for SRCREV. It was resulting in latest_srcrev files like this:

    # SRCREV = "346584bf6e38232be8773c24fd7dedcbd7b3d9ed"
    SRCREV = "dict_values(['346584bf6e38232be8773c24fd7dedcbd7b3d9ed'])"

Which in turn would result in invalid output in buildhistory-collect-srcrevs.
Fix by calling `next(iter())` on the `.values()`

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit ef826a395612400924bbe49859d256b237ff59e1)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoselftest/signing: add --batch to gpg invocation when importing keys
Alexander Kanavin [Thu, 22 Mar 2018 13:55:17 +0000 (15:55 +0200)] 
selftest/signing: add --batch to gpg invocation when importing keys

Otherwise it may pop up windows asking for passphrases which breaks
automated testing.

Newer YP releases and master already have the fix.

[YOCTO #12521]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agogrub-efi: fix build failure
Maxin B. John [Thu, 22 Mar 2018 08:53:07 +0000 (10:53 +0200)] 
grub-efi: fix build failure

grub-efi build fails with the following error on Fedora 26:

| ../grub-2.00/util/raid.c: In function 'grub_util_raid_getmembers':
| ../grub-2.00/util/raid.c:91:13: error: In the GNU C Library, "makedev"
is defined
|  by <sys/sysmacros.h>. For historical compatibility, it is
|  currently defined by <sys/types.h> as well, but we plan to
|  remove this soon. To use "makedev", include <sys/sysmacros.h>
|  directly. If you did not intend to use a system-defined macro
|  "makedev", you should undefine it after including <sys/types.h>.
[-Werror]
|         makedev (disk.major, disk.minor));
|              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Resolve the build error by backporting the fix from upstream.

[YOCTO #12595]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolib/oe/terminal.py: use an absolute path to execute oe-gnome-terminal-phonehome
Armin Kuster [Sat, 24 Mar 2018 01:43:16 +0000 (18:43 -0700)] 
lib/oe/terminal.py: use an absolute path to execute oe-gnome-terminal-phonehome

A flaw was found on my Ubuntu 14.04.5 LTS, on which that gnome-terminal is
the default terminal, when I run any of the tasks:
bitbake busybox -c menuconfig/devshell/devpyshell
bitbake virtual/kernel -c menuconfig/devshell/devpyshell

I got a error as follows:
"Failed to execute child process "oe-gnome-terminal-phonehome" (No such file or directory)"

Seems the environment of the process calling Popen is not passed to the
child process, this behaviour is a known issue in Python bug tracker:
http://bugs.python.org/issue8557

It could be fixed by using an absolute path instead per test.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2117c148ef07d84bc605768e3b3671b0126b9337)
Signed-off-by: Andre McCurdy <armccurdy@gmail.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:09:16 +0000 (19:09 +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:58:56 +0000 (17:58 +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 agolibc-package.bbclass: split binary localedata even more if asked to
Andreas Oberritter [Thu, 1 Dec 2016 12:37:32 +0000 (13:37 +0100)] 
libc-package.bbclass: split binary localedata even more if asked to

If GLIBC_SPLIT_LC_PACKAGES is set to a non-zero value, convert
glibc-binary-localedata-XX-YY to be a meta package depending on
glibc-binary-localedata-XX-YY-lc-address and so on. This enables
saving quite some space if someone doesn't need LC_COLLATE for
example.

Some regex code was removed from output_locale_binary_rdepends,
because legitimize_package_name already converts to lowercase.

(From OE-Core rev: 40b4b31092058f8833ada3dfc254d362dd3139c1)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
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 agoglibc: Separate locale files to their own sstate task
Richard Purdie [Sat, 4 Feb 2017 17:28:18 +0000 (17:28 +0000)] 
glibc: Separate locale files to their own sstate task

Putting the locale and script files into the sysroot for use by their
specific recipes used to be a simple way to share the files. With RSS,
we don't want to copy these into many different recipes so put these
files in their own sstate task.

(From OE-Core rev: c283f2532851e2a65e08fe7b3fd71c5d9abb70f2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoglibc-locale.inc: avoid duplicate packages
Juro Bystricky [Tue, 23 Jan 2018 00:35:06 +0000 (16:35 -0800)] 
glibc-locale.inc: avoid duplicate packages

PACKAGES_DYNAMIC contained an identical set of packages twice.
I suspect this was a result of global search/replace when moving
recipes from eglibc to glibc long time ago.

(From OE-Core rev: 9d0f0fa80ffbafc2d4a1df0fa3ac5d84396a8182)

Signed-off-by: Juro Bystricky <juro.bystricky@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 agoglibc-locale.inc: fix typo in comment
Gianfranco Costamagna [Wed, 4 Oct 2017 21:12:46 +0000 (23:12 +0200)] 
glibc-locale.inc: fix typo in comment

(From OE-Core rev: 74ef87b31e33436e82f4985fa99b570726a5e564)

Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
Signed-off-by: Lorenzo Chianura <lorenzo.chianura@abinsula.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 agoarchiver: avoid archiving source for glibc-locale
Zhenbo Gao [Wed, 10 May 2017 07:50:26 +0000 (15:50 +0800)] 
archiver: avoid archiving source for glibc-locale

Avoid archiving source for glibc-locale as its tasks
do_fetch do_unpack and do_patch have already been deleted.

Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.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)

(From OE-Core rev: 38b0e8d9b1944a955e4ed682184dafdce20db4b9)

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 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)

(From OE-Core rev: bad37bfd766c39efe5a5db95668c855d1c45a059)

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 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)

(From OE-Core rev: 385dd115d00aabbcd970ef6b62353480d87a5a55)

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 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)

(From OE-Core rev: 1ca33a798f5edf4bb1e695a79a46088dd23b6858)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for the getVar True bit]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
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)

(From OE-Core rev: f223f90d07965eef8ddbb047abd1f75da99b1c08)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for getVar True bit]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
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)

(From OE-Core rev: b9a7821086b5165fda9f1c8a7c79a7997803f2a6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for getVar True bit]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
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)

(From OE-Core rev: 1267df89164d7dcbbf77668ac49452bd0df87b54)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup do to merge conflict]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopackage_manager: flush installed_pkgs file before oe-pkgdata-util uses it
Martin Jansa [Mon, 26 Jun 2017 06:52:54 +0000 (08:52 +0200)] 
package_manager: flush installed_pkgs file before oe-pkgdata-util uses it

* since this commit:
  commit f5a1013ffa9815f22e13989e2bcb83f966e7ce2c
  Author: Ross Burton <ross.burton@intel.com>
  Date:   Tue Apr 18 16:19:12 2017 +0100

    package_manager: don't race on a file when installing complementary
    packages

  the file isn't closed before oe-pkgdata-util uses it and this
  temporary file might look empty to oe-pkgdata-util, because it
  wasn't flushed yet. Which resulted in almost empty debugfs tarballs
  and no locale packages in regular rootfs.
* without this change:
  124K May 30 07:41 core-image-full-cmdline-raspberrypi3-64-20170530054003-dbg.rootfs.tar.gz
* with this change:
  173M May 30 07:29 core-image-full-cmdline-raspberrypi3-64-20170530052715-dbg.rootfs.tar.gz

(From OE-Core rev: 9b34200048b3d2b477a19b7ddc8d447f873adbb2)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 877d38db08aa7060d16405443cf70539c559fe82)
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopackage_manager: don't race on a file when installing complementary packages
Ross Burton [Tue, 18 Apr 2017 15:19:12 +0000 (16:19 +0100)] 
package_manager: don't race on a file when installing complementary packages

PackageManager.install_complementary() uses WORKDIR/installed_pkgs.txt as a
temporary file but if two tasks are executing for the same recipe which uses
this file (e.g. bitbake my-image my-image:do_populate_sdk) then it's possible
for the file to be overwritten or deleted.

Instead of using a static filename, use tempfile to generate a unique name and
ensure it is cleaned up when finished.

Also move the glob generation/expansion earlier in the function as if there are
no globs to install, we don't need to generate a package list.

(From OE-Core rev: f5a1013ffa9815f22e13989e2bcb83f966e7ce2c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup do to merge conflicts]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolib/oe/package_manager/sdk: Ensure do_populate_sdk_ext and do_populate_sdk repos...
Richard Purdie [Sun, 21 Jan 2018 23:17:16 +0000 (23:17 +0000)] 
lib/oe/package_manager/sdk: Ensure do_populate_sdk_ext and do_populate_sdk repos don't conflict

(From OE-Core rev: c9c0927bb6e71253cbdd5b6b780dca829526e1d8)

(From OE-Core rev: a18942b0b3b848ccfa4bc50c56a565c279da9d74)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup do to merge conflicts]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agolib/oe/package_manager: bail if createrepo can't be found
Ross Burton [Thu, 15 Dec 2016 17:19:46 +0000 (17:19 +0000)] 
lib/oe/package_manager: bail if createrepo can't be found

If createrepo isn't found then the errors later are mysterious, so explicitly
check and error out early if it isn't there.

(From OE-Core rev: e09636bbb3ea8ec58984197fd9c691bb908efe00)

(From OE-Core rev: c87361fc886432a9db584712bf3e41ecd0541960)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup do to merge conflicts]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agopackage_manager: remove strings and migrate to direct arrays
Stephano Cetola [Tue, 6 Dec 2016 15:30:59 +0000 (07:30 -0800)] 
package_manager: remove strings and migrate to direct arrays

When using subprocess call and check_output, it is better to use arrays
rather than strings when possible to avoid whitespace and quoting
problems.

[ YOCTO #9342 ]

(From OE-Core rev: b12cec9a5ef14ecb02be7feec65508cf5d65c795)

Signed-off-by: Stephano Cetola <stephano.cetola@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 agolib/oe/package_manager: .deb pre/postinst args
Linus Wallgren [Mon, 14 Nov 2016 16:20:13 +0000 (17:20 +0100)] 
lib/oe/package_manager: .deb pre/postinst args

The debian policy manual and MaintainerScripts wiki page states that the
postinst script is supposed to be called with the `configure` argument
at first install, likewise the preinst script is supposed to be called
with the `install` argument on first install.

https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
https://wiki.debian.org/MaintainerScripts

(From OE-Core rev: 3d9c3aae54589794ce3484fa1b21d1af2bd32661)

Signed-off-by: Linus Wallgren <linus.wallgren@scypho.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 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)

(From OE-Core rev: c1f220f89496de51d3aa6eacd42cd8d3ddaad104)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From OE-Core rev: e1faf9ac7e89d33aba33547ede19a10aaa034207)
Fixup patch

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
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)

(From OE-Core rev: 152e045f42a66a0f74f6c097213f023c2c740292)

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)

(From OE-Core rev: 1612bce132314ad2ac41c796480c598457d600cc)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

(From OE-Core rev: 72885c4132e8ab7e6c70a4534870805d6ad7047f)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

(From OE-Core rev: 4b235f09dc3bfe76ae095c7ff99e0eb7b8badca7)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

(From OE-Core rev: 06b57932db48eeb42989c6eb0010e8b1b713b7e9)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

(From OE-Core rev: 61b365ab2ece1469cf85133112d48891cdfe310e)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

(From OE-Core rev: 7162fd28422355778dfa203db52d9b868cd496cb)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

(From OE-Core rev: 90b6eb24e90003cf7ba66d146e370408eb978441)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

(From OE-Core rev: bf2362cfa79722798c1798c82233190f8280a259)

Signed-off-by: Armin Kuster <akuster808@gmail.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 agogcc6: Fix unaligned STRD issue on ARM
Khem Raj [Tue, 7 Nov 2017 23:26:52 +0000 (15:26 -0800)] 
gcc6: Fix unaligned STRD issue on ARM

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

Fixes [YOCTO 12297]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 568227133be3f9f015679df3525f6c4f86304fd0)

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 7874fa86cb583fe6a178b95ead09430486197197)

7 years agogcc: Fix libssh_nonshared linker specs for ppc/musl
Khem Raj [Wed, 5 Jul 2017 17:34:44 +0000 (10:34 -0700)] 
gcc: Fix libssh_nonshared linker specs for ppc/musl

The change to link libssp_nonshared.a only for musl was to move
spec file changes to config/linux.h under a conditional when
DEFAULT_LIBC == LIBC_MUSL which worked fine for all but ppc
since gcc for ppc provided its own linux.h overrides which are
used. This patch duplicates the change in those headers too

Cherry-picked from oe-core master 9d39168a6acfa1f289a4448271c0bf9caaea10ec

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: Link libssp_nonshared.a only on musl targets
Khem Raj [Wed, 28 Jun 2017 02:11:44 +0000 (19:11 -0700)] 
gcc: Link libssp_nonshared.a only on musl targets

glibc already provides the content for libssp_nonshared
in libc_nonshared.a therefore we dont need to make it
universal.

This also fixed build issues on glibc when linking statically
and using -fstack-protector

Fixed errors like
/mnt/a/oe/build/tmp/work/i586-bec-linux/aufs-util/3.14+gitAUTOINC+bdfcc0dcfc-r0/recipe-sysroot/usr/lib/../lib/libc.a(stack_chk_fail.o): In function `__stack_chk_fail':                                                                       /usr/src/debug/glibc/2.26-r0/git/debug/stack_chk_fail.c:27: multiple definition of `__stack_chk_fail_local'                                                                                                                                   /mnt/a/oe/build/tmp/work/i586-bec-linux/aufs-util/3.14+gitAUTOINC+bdfcc0dcfc-r0/recipe-sysroot/usr/lib/../lib/libssp_nonshared.a(libssp_nonshared_la-ssp-local.o):/usr/src/debug/gcc-runtime/7.1.0-r0/gcc-7.1.0/build.i586-bec-linux.i586-bec-linux/i586-bec-linux/libssp/../../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/libssp/ssp-local.c:47: first defined here                                                                                                              collect2: error: ld returned 1 exit status

Cherry-picked from oe-core master d71eba26850838b2878efea3f8c392a2eb2ebbfb

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 21caa8bcda93ce67ef58548f7b85d0569d13d0b9)

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>
(cherry picked from commit d2631f45a057c53797b7ba657662f35f66a2b04e)

7 years agogcc-6.3.inc: Use ucontext_t not struct ucontext.
Juro Bystricky [Thu, 14 Sep 2017 23:18:08 +0000 (16:18 -0700)] 
gcc-6.3.inc: Use ucontext_t not struct ucontext.

Use ucontext_t not struct ucontext in linux-unwind.h files.

Current glibc no longer gives the ucontext_t type the tag struct
ucontext, to conform with POSIX namespace rules.  This requires
various linux-unwind.h files in libgcc, that were previously using
struct ucontext, to be fixed to use ucontext_t instead.  This is
similar to the removal of the struct siginfo tag from siginfo_t some
years ago.

Backport of patches by Joseph Myers, taken from
https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=249957

[YOCTO #12083]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit ec1c18d866c137b1fa523d0fcc29f65a28f59f44)

7 years agogcc: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:35 +0000 (11:15 +0200)] 
gcc: Remove unused patch

CVE-2016-4490 applied to gcc < 6.1.1, our version is 6.3

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d8329861bf6f48f6e541a04062b8d1f373dfcd78)

7 years agogcc: Fix CVE-2016-6131 in libiberty
Yuanjie Huang [Wed, 15 Feb 2017 09:38:00 +0000 (01:38 -0800)] 
gcc: Fix CVE-2016-6131 in libiberty

[NVD] -- https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-6131

The demangler in GNU Libiberty allows remote attackers to cause a denial
of service (infinite loop, stack overflow, and crash) via a cycle in the
references of remembered mangled types.

[BZ #71696] -- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71696

2016-08-04  Marcel Böhme  <boehme.marcel@gmail.com>

PR c++/71696
* cplus-dem.c: Prevent infinite recursion when there is a cycle
in the referencing of remembered mangled types.
(work_stuff): New stack to keep track of the remembered mangled
types that are currently being processed.
(push_processed_type): New method to push currently processed
remembered type onto the stack.
(pop_processed_type): New method to pop currently processed
remembered type from the stack.
(work_stuff_copy_to_from): Copy values of new variables.
(delete_non_B_K_work_stuff): Free stack memory.
(demangle_args): Push/Pop currently processed remembered type.
(do_type): Do not demangle a cyclic reference and push/pop
referenced remembered type.

cherry-picked from commit of
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239143 138bc75d-0d04-0410-961f-82ee72b054a4

(From OE-Core rev: 3c288b181a4cfecc80b48994f4dd2df285e4d1d0)

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 96a16c4181d18b8580dad243350d589586cb2b07)

7 years agogcc-6: Add fix for missing no-PIE flags
Stephen Arnold [Mon, 13 Feb 2017 02:25:27 +0000 (18:25 -0800)] 
gcc-6: Add fix for missing no-PIE flags

Fixes build on hardened PAX host with gcc-5 (linker error on relocs).
Completes no-PIE config by adding to ALL_* flags variables.
Borrowed from Gentoo gcc patches, tested on 2 hardened amd64 hosts.

Upstream-Status: Inappropriate [configuration]

Commited by: Gentoo Toolchain Project <toolchain@gentoo.org>
(From OE-Core rev: c178791cd78d5a9ebc4d7b7790e647a9bafe9cf2)

Signed-off-by: Stephen Arnold <stephen.arnold42@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fcb236ea7cd1ac052719187fefed60ebf1a30ac8)

7 years agogcc-6: Sync gcc stddef.h with musl stddef.h
Khem Raj [Fri, 3 Feb 2017 22:45:26 +0000 (14:45 -0800)] 
gcc-6: Sync gcc stddef.h with musl stddef.h

GCC provides some of std* headers including stddef.h
and it syncs with glibc definitions via __needed* defines
to find which datatypes are expected to be defined on top
of glibc. we need same for musl.

Drop unused 0048-ARM-PR-target-71056-Don-t-use-vectorized-builtins-wh.patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 7da04721a620ad741ea50adf116e6b5afd47caa5)

7 years agogcc6: Upgrade to 6.3.0
Khem Raj [Wed, 21 Dec 2016 20:08:31 +0000 (12:08 -0800)] 
gcc6: Upgrade to 6.3.0

6.3.0 is a bugfix release in gcc 6 series

Cherry-picked from oe-core master 36ffcd1d7d2ab9dcc91e9c09623a6613a248bc69

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 agobuildstats.bbclass: Avoid index exception in /proc/PID/io parsing
Pavel Modilaynen [Wed, 31 Jan 2018 19:10:38 +0000 (19:10 +0000)] 
buildstats.bbclass: Avoid index exception in /proc/PID/io parsing

There is some probability (depends on system load) to get empty
or line containing "0" as the last line while reading /proc/PID/io.
Avoid build failure by checking if line contains separator
":" before split.

Backport from pyro commit b26feaf51af55f17fad79dbd53dd3ec0a37c38ff

Signed-off-by: Pavel Modilaynen <pavelmn@axis.com>
Signed-off-by: Daniel Lublin <daniel@lublin.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agognutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
Khem Raj [Sat, 2 Dec 2017 00:37:37 +0000 (00:37 +0000)] 
gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17

When using distros which use old kernels gnutls fails to build
due to missing SYS_getrandom, therefore we need to check for this
before using it.
Fixes errorr e.g.

| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function 'have_getrandom':
| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error: 'SYS_getrandom' undeclared (first use in this function)
|  #  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 agoruby: update to 2.4.3
Armin Kuster [Mon, 19 Feb 2018 21:06:35 +0000 (13:06 -0800)] 
ruby: update to 2.4.3

This fixes a segfault in arm64 multilib.

Drop CVE-2017-14064.patch

Additional CVE included are 2.4.3:
CVE-2017-17405: Command injection vulnerability in Net::FTP

Additional CVE included are 2.4.2:
CVE-2017-0898: Buffer underrun vulnerability in Kernel.sprintf
CVE-2017-10784: Escape sequence injection vulnerability in the Basic authentication of WEBrick
CVE-2017-14033: Buffer underrun vulnerability in OpenSSL ASN1 decode
CVE-2017-14064: Heap exposure in generating JSON

Ruby Gems:
DNS request hijacking vulnerability. (CVE-2017-0902)
ANSI escape sequence vulnerability. (CVE-2017-0899)
DoS vulnerability in the query command. (CVE-2017-0900)
vulnerability in the gem installer that allowed a malicious gem to overwrite arbitrary files. (CVE-2017-0901)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoinsane: consider INSANE_SKIP without package-specifier too
Ross Burton [Wed, 13 Sep 2017 10:25:09 +0000 (11:25 +0100)] 
insane: consider INSANE_SKIP without package-specifier too

this is needed for the updated linux-firmware as it needs this INSANE_SKIP support

(From OE-Core rev: 618093c6b7c919f25094f56b82610bee7c97f99f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 604939186cc08ab0429ebe00f3e32661847f0cf0)

Adjusted for pyro context
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adjusted for morty contect
Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 years agoportmaper: checkuri fails.
Armin Kuster [Sat, 6 Jan 2018 06:29:50 +0000 (22:29 -0800)] 
portmaper: checkuri fails.

ERROR: portmap-6.0-r9 do_checkuri: Fetcher failure for URL: 'http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.0.tgz'. URL http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.0.tgz doesn't work

change to fossies

[ Yocto #12453 ]

(From OE-Core rev: 1c98acf52b702a2bc39e20c8a27850c830063bb4)

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>