]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agoApache-2.0-with-LLVM-exception: Add new license file
Khem Raj [Tue, 30 Jul 2019 00:36:01 +0000 (17:36 -0700)]
Apache-2.0-with-LLVM-exception: Add new license file

As per SPDX 2.1 it should be
'Apache-2.0 WITH LLVM-exception'
but license parser refuses to parse it, so this
is closest we can get

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxserver-xorg: Backport patch to remove using sys/io.h
Khem Raj [Mon, 29 Jul 2019 22:58:09 +0000 (15:58 -0700)]
xserver-xorg: Backport patch to remove using sys/io.h

latest glibc dropped support for sys/io.h on arm, which is fixed in
upstream xserver, as a bonus we can drop musl specific patch which was
doing something similar up until now.

Fixes
|In file included from ../../../../xorg-server-1.20.4/hw/xfree86/int10/generic.c:15:
| ../../../../xorg-server-1.20.4/hw/xfree86/common/compiler.h:767:10: fatal error: 'sys/io.h' file not found
| #include <sys/io.h>
|          ^~~~~~~~~~
| 1 error generated.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofortran-helloworld: neaten recipe
Ross Burton [Wed, 31 Jul 2019 11:53:02 +0000 (12:53 +0100)]
fortran-helloworld: neaten recipe

Use ${FC} instead of constructing the fortran name/arguments explictly, and
clean up installation.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomtd-utils: Upgrade to 2.1.1
Adrian Bunk [Wed, 31 Jul 2019 10:34:16 +0000 (13:34 +0300)]
mtd-utils: Upgrade to 2.1.1

Add zstd PACKAGECONFIG to disable the zstd support that upstream
enables by default, zstd is not in oe-core.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibtasn1: upgrade 4.13 -> 4.14
Anuj Mittal [Wed, 31 Jul 2019 08:25:21 +0000 (16:25 +0800)]
libtasn1: upgrade 4.13 -> 4.14

* For changes in this version, see:
https://gitlab.com/gnutls/libtasn1/-/releases

* Remove the musl patch as it's no longer needed.

* Backport a patch to ensure LDFLAGS are not over-ridden.

License-Update: License clarification, no change in actual terms.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0:upgrade 2.60.5 -> 2.60.6
Yuan Chao [Wed, 31 Jul 2019 08:25:12 +0000 (16:25 +0800)]
glib-2.0:upgrade 2.60.5 -> 2.60.6

Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: CVE-2019-9947 is same as CVE-2019-9740
Anuj Mittal [Wed, 31 Jul 2019 04:55:27 +0000 (12:55 +0800)]
python: CVE-2019-9947 is same as CVE-2019-9740

See:
https://bugs.python.org/issue30458

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: fix CVE-2018-20852
Anuj Mittal [Wed, 31 Jul 2019 04:54:54 +0000 (12:54 +0800)]
python: fix CVE-2018-20852

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: add PACKAGECONFIG for db
Ross Burton [Tue, 30 Jul 2019 21:20:12 +0000 (22:20 +0100)]
perl: add PACKAGECONFIG for db

perl-cross makes it easy to cleanly disable the use of Berkeley DB if desired,
so add a PACKAGECONFIG for this.

More of the dependencies (such as gdbm) can be controlled in the same way, but
Berkeley DB is a prime contender: it's a large library which we have to ship an
old release for due to licensing issues, so there are users who may want to
strip it out of builds entirely.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: fix whitespace
Ross Burton [Tue, 30 Jul 2019 21:20:11 +0000 (22:20 +0100)]
perl: fix whitespace

There was some tabs embedded in spaces, fix those.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostress-ng: add a recipe that replaces the original stress
Alexander Kanavin [Tue, 30 Jul 2019 16:47:42 +0000 (18:47 +0200)]
stress-ng: add a recipe that replaces the original stress

The original stress is no longer maintained and the homepage
went down. This commit replaces it with a maintained
re-implementation by Ubuntu.

Stress-ng preserves command line option compatibility
(for the options that are used in rt-tests), so adjustment
is simply changing the name of the executable. Rt-tests is the only
user of stress(-ng) in oe-core.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobzip2: fix upstream version check
Alexander Kanavin [Tue, 30 Jul 2019 15:54:32 +0000 (17:54 +0200)]
bzip2: fix upstream version check

As it is now working, we do not need an exception from the check anymore.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowebkitgtk: upgrade 2.24.2 -> 2.24.3
Alexander Kanavin [Tue, 30 Jul 2019 15:54:31 +0000 (17:54 +0200)]
webkitgtk: upgrade 2.24.2 -> 2.24.3

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocreaterepo-c: upgrade 0.14.2 -> 0.14.3
Alexander Kanavin [Tue, 30 Jul 2019 15:54:30 +0000 (17:54 +0200)]
createrepo-c: upgrade 0.14.2 -> 0.14.3

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibwebp: upgrade 1.0.2 -> 1.0.3
Alexander Kanavin [Tue, 30 Jul 2019 15:54:29 +0000 (17:54 +0200)]
libwebp: upgrade 1.0.2 -> 1.0.3

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibmodulemd: update to 2.6.0
Alexander Kanavin [Tue, 30 Jul 2019 15:54:28 +0000 (17:54 +0200)]
libmodulemd: update to 2.6.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobtrfs-tools: update 5.1.1 -> 5.2.1
Alexander Kanavin [Tue, 30 Jul 2019 15:54:27 +0000 (17:54 +0200)]
btrfs-tools: update 5.1.1 -> 5.2.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopatch: fix CVE-2019-13636
Anuj Mittal [Tue, 30 Jul 2019 09:52:39 +0000 (17:52 +0800)]
patch: fix CVE-2019-13636

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokmscube: update to latest revision
Zoltan Kuscsik [Tue, 30 Jul 2019 14:12:41 +0000 (16:12 +0200)]
kmscube: update to latest revision

Switch to gitlab URL, since previos location is now a mirror

Signed-off-by: Zoltan Kuscsik <zoltan.kuscsik@solution57.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/sstate: regenerate sstate when signing enabled
Joshua Lock via Openembedded-core [Tue, 30 Jul 2019 13:16:08 +0000 (13:16 +0000)]
classes/sstate: regenerate sstate when signing enabled

This change ensures that the task signatures changes, and therefore
sstate tasks are rerun, when signing is enabled. This has the
positive outcome that if signing is enabled new signed shared state
objects will be produced, rather than just signing shared state
objects for tasks where no work has been performed yet.

The downside of this change is that enabling/disabling sstate object
signing alters the taskhash and results in rebuilding the world.

Signed-off-by: Joshua Lock <jlock@vmware.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: add a patch fixing the native build on newer kernels
Bartosz Golaszewski [Sun, 28 Jul 2019 11:06:47 +0000 (13:06 +0200)]
qemu: add a patch fixing the native build on newer kernels

The build fails on qemu-native if we're using kernels after commit
0768e17073dc527ccd18ed5f96ce85f9985e9115. This adds an upstream
patch that fixes the issue.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/create-pull-request: fix putting subject containing / into cover letter
Paul Eggleton [Mon, 29 Jul 2019 21:54:43 +0000 (09:54 +1200)]
scripts/create-pull-request: fix putting subject containing / into cover letter

If a single-commit series had a shortlog containing a "/" character then
that prevented putting the shortlog into the subject of the cover letter
message. Use a different separating character with the sed command (one
much less likely to appear) in order to fix it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/create-pull-request: improve handling of non-SSH remote URLs
Paul Eggleton [Mon, 29 Jul 2019 21:54:42 +0000 (09:54 +1200)]
scripts/create-pull-request: improve handling of non-SSH remote URLs

When attempting to create a pull request, we look at the remote URL in
order to extract information to include in the cover letter. However,
the assumption was that the remote is an SSH URL i.e. containing '@'
which is not always the case (the pull and push URLs might be different,
or we might be pushing via https) - if it wasn't the script just gave up
leaving you to manually edit the URLs in the email. With a few minor
tweaks to the regexes the script will work for these cases as well.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoethtool: update to 5.2
Oleksandr Kravchuk [Mon, 29 Jul 2019 17:43:48 +0000 (19:43 +0200)]
ethtool: update to 5.2

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowebkitgtk: Reenable on mips
Adrian Bunk [Mon, 29 Jul 2019 11:37:19 +0000 (14:37 +0300)]
webkitgtk: Reenable on mips

It builds using the generic C_LOOP code.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobind: Remove RECIPE_NO_UPDATE_REASON and follow the ESV releases
Adrian Bunk [Mon, 29 Jul 2019 10:00:20 +0000 (13:00 +0300)]
bind: Remove RECIPE_NO_UPDATE_REASON and follow the ESV releases

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agognome: Remove the gnome class
Adrian Bunk [Mon, 29 Jul 2019 05:26:57 +0000 (08:26 +0300)]
gnome: Remove the gnome class

All that was left was
  inherit gnomebase gtk-icon-cache gconf mime
and especially inheriting the obsolete gconf is usually unwanted.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel.bbclass: fix installation of modules signing certificates
Dmitry Eremin-Solenikov [Sun, 28 Jul 2019 10:01:03 +0000 (13:01 +0300)]
kernel.bbclass: fix installation of modules signing certificates

If one has provided external key/certificate for modules signing, Kbuild
will skip creating signing_key.pem and will write only signing_key.x509
certificate. Thus we have to check for .x509 file existence rather than
.pem one.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub: upgrade 2.02 -> 2.04
Anuj Mittal [Mon, 29 Jul 2019 03:20:26 +0000 (11:20 +0800)]
grub: upgrade 2.02 -> 2.04

* For changes in this version, see:
http://git.savannah.gnu.org/cgit/grub.git/tree/NEWS?h=grub-2.04

* Remove backported patches and refresh others.

* Remove the musl patch as it's no longer needed.

* Use configure option --disable-werror instead of passing through CFLAGS.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibsdl2: upgrade 2.0.9 -> 2.0.10
Anuj Mittal [Mon, 29 Jul 2019 03:20:25 +0000 (11:20 +0800)]
libsdl2: upgrade 2.0.9 -> 2.0.10

License-Update: Change in Copyright Year.

Refresh the patch to apply on configure.ac instead of .in.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-tools: Fix build with glibc 2.30
Khem Raj [Sat, 27 Jul 2019 15:58:49 +0000 (08:58 -0700)]
lttng-tools: Fix build with glibc 2.30

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: Fix build with glibc 2.30
Khem Raj [Sat, 27 Jul 2019 15:58:48 +0000 (08:58 -0700)]
ltp: Fix build with glibc 2.30

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston: upgrade 6.0.0 -> 6.0.1
Denys Dmytriyenko [Thu, 25 Jul 2019 23:22:59 +0000 (19:22 -0400)]
weston: upgrade 6.0.0 -> 6.0.1

Weston 6.0.1 is released with build system fixes to smooth the
transition to Meson. Other miscellaneous bugfixes are also included.
https://lists.freedesktop.org/archives/wayland-devel/2019-June/040661.html

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowayland-protocols: upgrade 1.17 -> 1.18
Denys Dmytriyenko [Thu, 25 Jul 2019 23:22:58 +0000 (19:22 -0400)]
wayland-protocols: upgrade 1.17 -> 1.18

This version comes with documentational clarifications, bug fixes and minor
additions to existing protocols. See the commit log for details.
https://lists.freedesktop.org/archives/wayland-devel/2019-July/040756.html

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoepiphany: set imcompatible with tune mips
Kai Kang [Fri, 26 Jul 2019 09:34:43 +0000 (05:34 -0400)]
epiphany: set imcompatible with tune mips

webkitgtk doesn't work with tune mips and set imcompatible with it.
epiphany depends on webkitgtk and mask it too.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosubversion: add packageconfig boost
Kai Kang [Fri, 26 Jul 2019 09:34:42 +0000 (05:34 -0400)]
subversion: add packageconfig boost

subversion checks whether build with boost during do_configure. If boost
exists on build machine, it causes configure-unsafe QA issue:

| ERROR: subversion-1.12.0-r0 do_configure: QA Issue: This autoconf log
|  indicates errors, it looked at host include and/or library paths
|  while determining system capabilities.
| Rerun configure task after fixing this. [configure-unsafe]

Add a PACKAGECONFIG 'boost' to fix the issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-ust: Check for gettid libc API
Khem Raj [Fri, 26 Jul 2019 17:15:09 +0000 (10:15 -0700)]
lttng-ust: Check for gettid libc API

Fixes build with glibc 2.30

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibnss-nis: Fix build with glibc 2.30
Khem Raj [Fri, 26 Jul 2019 17:15:08 +0000 (10:15 -0700)]
libnss-nis: Fix build with glibc 2.30

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibdrm: Move amdgpu.ids file into libdrm-amdgpu package.
Piotr Tworek [Fri, 26 Jul 2019 15:30:19 +0000 (17:30 +0200)]
libdrm: Move amdgpu.ids file into libdrm-amdgpu package.

There is no point in shipping it in main libdrm package.

Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopulseaudio: don't include consolekit when systemd is enabled
Anuj Mittal [Fri, 26 Jul 2019 15:03:15 +0000 (23:03 +0800)]
pulseaudio: don't include consolekit when systemd is enabled

When using systemd, make sure that pulseaudio-server RDEPENDS on
module-systemd-login instead of module-console-kit both of which provide
the same functionality but for different init systems [1][2].

Even though both modules can co-exist, this helps avoid including
consolekit (which has been deprecated) in the images using systemd.

[1] https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index51h3
[2] https://github.com/pulseaudio/pulseaudio/commit/860d1cf3a76701ade38784822abb24285176227c

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibxkbcommon: RDEPENDS on libx11 compose data
Ming Liu [Fri, 26 Jul 2019 14:19:40 +0000 (22:19 +0800)]
libxkbcommon: RDEPENDS on libx11 compose data

This fixes a following runtime error:
| xkbcommon: ERROR: couldn't find a Compose file for locale "C"

Signed-off-by: Ming Liu <ming.liu@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibx11-compose-data: add recipe
Ming Liu [Fri, 26 Jul 2019 14:19:39 +0000 (22:19 +0800)]
libx11-compose-data: add recipe

So far libx11 compose data is being required by some non-X11 recipes,
like weston -> libxkbcommon -> libx11-locale. But the libx11-locale
could not build without x11 distro feature enabled. This is not
reasonable.

To fix it, we introduce this new recipe, it uses the same source with
libx11 but dropped X11 dependencies, this makes it to be able to build
without x11 distro feature. It would be skipped if x11 distro feature
is enabled, in which case the libx11-locale would provide the libx11
compose data.

Signed-off-by: Ming Liu <ming.liu@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage_types.bbclass: make gzipped images rsyncable
Diego Rondini [Fri, 26 Jul 2019 08:18:57 +0000 (10:18 +0200)]
image_types.bbclass: make gzipped images rsyncable

Both gzip and pigz implement the --rsyncable option, allowing small changes to
images to save a lot of data when they are transferred using rsync. This patch
enables --rsyncable by default.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/sstate: don't use unsigned sstate when verification enabled
Joshua Lock via Openembedded-core [Fri, 26 Jul 2019 11:26:49 +0000 (11:26 +0000)]
classes/sstate: don't use unsigned sstate when verification enabled

When signature verification of shared state objects is enabled
(SSTATE_VERIFY_SIG) use of an unsigned object, even though it produces a
warning, seems unexpected. Instead skip unsigned objects and force the
non-accelerated task to be run.

Signed-off-by: Joshua Lock <jlock@vmware.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstate: fix log message
Joshua Lock via Openembedded-core [Fri, 26 Jul 2019 11:26:48 +0000 (11:26 +0000)]
sstate: fix log message

Referring to the sstate object as a staging package is an artefact of the
code's origins. Switch to referring to an "Sstate package" in order to be more
accurate and consistent with the rest of the file.

Signed-off-by: Joshua Lock <jlock@vmware.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibical: upgrade to 3.0.5
Ross Burton [Fri, 26 Jul 2019 10:21:58 +0000 (11:21 +0100)]
libical: upgrade to 3.0.5

Add PACKAGECONFIG options for ICU (enabled by default) and BDB (disabled by
default).

Note that this upgrade includes some API breakage.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackage: Improve determinism
Richard Purdie [Thu, 25 Jul 2019 21:54:34 +0000 (22:54 +0100)]
package: Improve determinism

Its possible in cases with multiple shlib providers we were not being
deterministic. Add in a couple of sorted() calls to fix the shlibs and
pkgconfig cases with this potential issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackagegroup-core-base-utils: Make it machine specific
Ricardo Ribalda Delgado [Thu, 25 Jul 2019 07:21:10 +0000 (09:21 +0200)]
packagegroup-core-base-utils: Make it machine specific

Recipe makes use of the variable MACHINE_FEATURES, which is machine
specific:

  ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "kbd", "", d)}

This patch avoids multiconfig errors such as:

ERROR: mc:qt5222:packagegroup-core-base-utils-1.0-r0 do_package_qa_setscene: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_package_qa_setscene(d)
     0003:
File: '/workdir/repo/poky/meta/classes/insane.bbclass', lineno: 1026, function: do_package_qa_setscene
     1022:SSTATETASKS += "do_package_qa"
     1023:do_package_qa[sstate-inputdirs] = ""
     1024:do_package_qa[sstate-outputdirs] = ""
     1025:python do_package_qa_setscene () {
 *** 1026:    sstate_setscene(d)
     1027:}
     1028:addtask do_package_qa_setscene
     1029:
     1030:python do_qa_staging() {

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosudo: use nonarch_libdir instead of libdir for tmpfiles.d
Chen Qi [Wed, 24 Jul 2019 09:36:54 +0000 (17:36 +0800)]
sudo: use nonarch_libdir instead of libdir for tmpfiles.d

In case of multilib, /usr/lib64/tmpfiles.d is not a path
that will be searched. So we need to use nonarch_libdir.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiso-codes: upgrade 4.2 -> 4.3
Zang Ruochen [Thu, 25 Jul 2019 00:59:43 +0000 (08:59 +0800)]
iso-codes: upgrade 4.2 -> 4.3

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopulseaudio: Backport upstream fix new alsa compatibility.
Piotr Tworek [Wed, 24 Jul 2019 20:33:50 +0000 (22:33 +0200)]
pulseaudio: Backport upstream fix new alsa compatibility.

Recent alsa upgrade stripped /usr/include/alsa directory from include
path reported by pkgconfig. Due to this pulseaudio 12.2 configure script
can find alsa's use-case.h header which in turn results in HAVE_ALSA_UCM
being undefined. This turn results in pa_alsa_ucm_device_update_available
symbol missing even though libalsa-util.so needs it. Once could argue
pulseaudio should not allow undefined symmbols in its shared modules.
Unfortunately it does and due to this current OE builds of pulseaudio
crash when the server tries to dlopen any module using libalsa-util.so.

Fix this by backporting ustream alsa header include fix.

Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-git: update to 2.1.12
Oleksandr Kravchuk [Wed, 24 Jul 2019 20:19:31 +0000 (22:19 +0200)]
python3-git: update to 2.1.12

Got rid of python-git since there is no python2 version of the package.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa/lib/oeqa: Remove ext4 for bootimg-biosplusefi
William Bourque [Wed, 24 Jul 2019 19:12:44 +0000 (15:12 -0400)]
meta/lib/oeqa: Remove ext4 for bootimg-biosplusefi

Remove "ext4" IMAGE_FSTYPES when generating core-image-minimal
for the bootimg-biosplusefi unittests; "wic" type is enough.

Signed-off-by: William Bourque <wbourque@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: fix https proxy issues
Chin Huat Ang [Thu, 25 Jul 2019 02:01:20 +0000 (10:01 +0800)]
cve-update-db-native: fix https proxy issues

When https_proxy is set, use proxy opener to open CVE metadata and
database URLs, otherwise fallback to the urllib.request.urlopen.

Also fix a minor issue where the json database which has been gzip
decompressed as byte object should be decoded as utf-8 string as
expected by update_db.

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage_types_wic: add syslinux-native dependency conditional
Naveen Saini [Thu, 25 Jul 2019 05:53:34 +0000 (13:53 +0800)]
image_types_wic: add syslinux-native dependency conditional

Add syslinux-native dependency only for IA host machines.

Able to build wic image successfully for below template which
uses legacy bios(syslinux):
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/scripts/lib/wic/canned-wks/directdisk-gpt.wks

[YOCTO #13276]

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Add partial support of drop-in configuration files to systemd-systemctl...
Frederic Ouellet [Thu, 25 Jul 2019 19:58:50 +0000 (15:58 -0400)]
systemd: Add partial support of drop-in configuration files to systemd-systemctl-native

Support for serive-name.service.d/ folders containing .conf files
It don't support all the partial folder names

See https://www.freedesktop.org/software/systemd/man/systemd.unit.html

Signed-off-by: Frederic Ouellet <fredericouellet@eaton.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorunqemu: add lockfile for port used when slirp enabled
Changqing Li [Thu, 25 Jul 2019 09:25:12 +0000 (17:25 +0800)]
runqemu: add lockfile for port used when slirp enabled

There is race condition when multi qemu starting with slirp,
add lockfile for each port to avoid problem like:

runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: Could not set up host forwarding rule 'tcp::2323-:23'

[YOCTO #13364]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agognutls: don't use HOSTTOOLS_DIR/bash as a shell on target
Ross Burton [Thu, 25 Jul 2019 15:20:23 +0000 (16:20 +0100)]
gnutls: don't use HOSTTOOLS_DIR/bash as a shell on target

The libopts configure script looks for a shell on the build host and assumes
it's good for the target. However in our builds it find $HOSTTOOLS_DIR/bash
which isn't useful, so patch out the detection and force $base_bindir/sh.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibidn2: remove build paths from libidn2.pc
Ross Burton [Thu, 25 Jul 2019 15:20:22 +0000 (16:20 +0100)]
libidn2: remove build paths from libidn2.pc

The libunistring m4 macros end up putting the full build-time library path into
the .pc file, which is no good on target.  Sed it out to stop build paths
leaking onto the target.

[ YOCTO #13403 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-pip: update to 19.2.1
Oleksandr Kravchuk [Thu, 25 Jul 2019 14:46:37 +0000 (16:46 +0200)]
python3-pip: update to 19.2.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiproute2: drop pointless configure-cross.patch
Rasmus Villemoes [Wed, 24 Jul 2019 08:23:49 +0000 (08:23 +0000)]
iproute2: drop pointless configure-cross.patch

The configure script has already found IPT_LIB_DIR via pkgconfig, so
the configure-cross.patch really just introduces dead and broken
fallback code.

Broken, because the SYSROOT variable does not actually get set to a
sensible value - the argument $1 passed to the configure script when
invoked from the Makefile is KERNEL_INCLUDE, which we set to
${STAGING_INCDIR} in EXTRA_OEMAKE. Obviously that directory does not
have /lib or /usr subdirectories, so we're not really helping the
fallback logic in check_ipt_lib_dir() - in fact, we're more or less
guaranteeing that we won't find those .so files.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocurl: upgrade 7.65.2 -> 7.65.3
Zang Ruochen [Wed, 24 Jul 2019 07:55:58 +0000 (15:55 +0800)]
curl: upgrade 7.65.2 -> 7.65.3

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibsdl: remove
Anuj Mittal [Wed, 24 Jul 2019 00:03:13 +0000 (08:03 +0800)]
libsdl: remove

All the users in OE-Core have moved to libsdl2. It will be moved to
meta-oe.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-libc-header: Fix ptrace.h and prctl.h conflict on aarch64
Khem Raj [Wed, 24 Jul 2019 06:56:15 +0000 (23:56 -0700)]
linux-libc-header: Fix ptrace.h and prctl.h conflict on aarch64

This is a backport from 5.2 release upstream, it fixes long standing
build failure on musl/aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomsmtp: upgrade 1.8.4 -> 1.8.5
Zang Ruochen [Wed, 24 Jul 2019 05:38:02 +0000 (13:38 +0800)]
msmtp: upgrade 1.8.4 -> 1.8.5

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostrace: Upgrade to 5.2
Khem Raj [Wed, 24 Jul 2019 02:43:45 +0000 (19:43 -0700)]
strace: Upgrade to 5.2

License-Updtate: Copyright years changed
https://github.com/strace/strace/commit/4b4a0e5a6e74e16dc2bb9b38d81415d9f57425d2#diff-7116ef0705885343c9e1b2171a06be0e

Drop backport patch for mips o32 build fix
Refresh patches to apply on 5.2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-uboot: remove useless special casing of arm64 Image
Bedel, Alban [Tue, 23 Jul 2019 14:13:36 +0000 (14:13 +0000)]
kernel-uboot: remove useless special casing of arm64 Image

Since commit a725d188b5 (kernel-uboot: compress arm64 kernels)
arm64 Image files are handled exactly like in the default case, making
this special case pointless. Remove it to make the code simpler.

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorng-tools: start rngd early in the boot process again
Bedel, Alban [Tue, 23 Jul 2019 14:11:46 +0000 (14:11 +0000)]
rng-tools: start rngd early in the boot process again

It do make sense to start rngd early in the boot process because
otherwise we would need to track every service that might need entropy
and explicitly configure it to start after rngd.

When used with systemd rngd blocked the shutdown process because it
simply missed the proper unit configuration. As the systemd
documentation explains, when using DefaultDependencies=no one also
have to explicitly configure the unit to properly stop at some point.
This is normaly achieved by having Before=shutdown.target and
Conflicts=shutdown.target set for the unit.

To have rngd started early again we reverte the changes done to
rngd.service in commit edf7606822 (rng-tools: fix rngd blocks system
shutdown). To have it properly stopped on shutdown we also add
Before=shutdown.target and Conflicts=shutdown.target.

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage_types: Remove remnants of hdddirect
Daniel Ammann [Tue, 23 Jul 2019 10:13:34 +0000 (12:13 +0200)]
image_types: Remove remnants of hdddirect

hdddirect was removed in commit 929ba563f1bc7195c4981b8e139c432b2cc388ea.

Signed-off-by: Daniel Ammann <daniel.ammann@bytesatwork.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogdk-pixbuf: enable x11 PACKAGECONFIG option
Naveen Saini [Tue, 23 Jul 2019 09:28:49 +0000 (17:28 +0800)]
gdk-pixbuf: enable x11 PACKAGECONFIG option

Currently gdk-pixbuf x11 loader is enabled only
for LSB build. But it is needed by other recipes like
Ice window manger(icewm) for X window system.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agompg123: upgrade 1.25.10 -> 1.25.11
Anuj Mittal [Tue, 23 Jul 2019 04:40:27 +0000 (12:40 +0800)]
mpg123: upgrade 1.25.10 -> 1.25.11

Release notes:
https://www.mpg123.de/#2019-07-18

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa/lib/oeqa: Test for bootimg-biosplusefi Source
William Bourque [Mon, 22 Jul 2019 20:13:54 +0000 (16:13 -0400)]
meta/lib/oeqa: Test for bootimg-biosplusefi Source

Add unittests for bootimg-biosplusefi SourcePlugin in wic module.
First test check wic creation works correctly.
Second test uses qemu to boot image and checks that it has both
EFI and BIOS files in a single partition.

Signed-off-by: William Bourque <wbourque@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic/plugins: Source that support both EFI and BIOS
William Bourque [Mon, 22 Jul 2019 20:11:29 +0000 (16:11 -0400)]
wic/plugins: Source that support both EFI and BIOS

Add a source plugin that support both EFI and legacy PC-Bios.
While using this plugin, both bootloaders configurations reside
in the same /boot partitions.
This plugin has very little code : to avoid code duplication,
we simply re-import bootimg-pcbios and bootmg-efi source and
call both their SourcePlugin methods.

Signed-off-by: William Bourque <wbourque@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-mako: update to 1.0.14
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:18:11 +0000 (02:18 +0200)]
python3-mako: update to 1.0.14

Got rid of python-git since there is no python2 version of the package.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-docutils: update to 0.15
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:18:09 +0000 (02:18 +0200)]
python3-docutils: update to 0.15

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-scons: update to 3.1.0
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:18:08 +0000 (02:18 +0200)]
python3-scons: update to 3.1.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomaintainers: Account for musl-obstack and libssp-nonshared
Khem Raj [Sat, 20 Jul 2019 18:00:58 +0000 (11:00 -0700)]
maintainers: Account for musl-obstack and libssp-nonshared

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoelfutils: Fix eu-* utils builds for musl
Khem Raj [Sat, 20 Jul 2019 18:00:57 +0000 (11:00 -0700)]
elfutils: Fix eu-* utils builds for musl

Re-organize the musl patches in three different areas namely
libs, utils and tests, this will help maintain them in future
version bumps

Add obstack dependency on musl targets which is needed for eu-*

PN and PN-binutils is not empty anymore on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl-obstack: Add recipe
Khem Raj [Sat, 20 Jul 2019 18:00:56 +0000 (11:00 -0700)]
musl-obstack: Add recipe

obstacks from GNUlib is used in some OE-Core packages e.g. elfutils
and other packages outside OE-Core, this recipe helps provide this
functionality standalone on musl systems, and helps in getting full
versions of dependent packages

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopam_systemd: Include missing.h for secure_getenv
Khem Raj [Sat, 20 Jul 2019 18:00:55 +0000 (11:00 -0700)]
pam_systemd: Include missing.h for secure_getenv

'secure_getenv' api is not uniformly implemented across all C libraries
therefore its good to include missing.h so it can use the alternative
implementation where its not awvailable

Fixes
../git/src/login/pam_systemd.c:344:13: error: implicit declaration of function 'secure_getenv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        v = secure_getenv(key);

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosysvinit: Include sys/sysmacros.h for major/minor definitions on musl too
Khem Raj [Mon, 22 Jul 2019 07:26:54 +0000 (00:26 -0700)]
sysvinit: Include sys/sysmacros.h for major/minor definitions on musl too

Fixes musl issue

implicit declaration of function 'minor' is invalid in C99 [-Wimplicit-function-declaration]
which eventually ends up with a linker error

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomdadm: Include sys/sysmacros.h for major/minor definitions
Khem Raj [Mon, 22 Jul 2019 07:26:32 +0000 (00:26 -0700)]
mdadm: Include sys/sysmacros.h for major/minor definitions

Fixes
implicit declaration of function 'minor' is invalid in C99 [-Wimplicit-function-declaration]

which eventually ends up with a linker error

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl: Upgrade to 1.1.23+
Khem Raj [Mon, 22 Jul 2019 07:26:14 +0000 (00:26 -0700)]
musl: Upgrade to 1.1.23+

License-Update: Added contributor list and copyright years
https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=7a6c8a0df1b685d788fd4d3763681bb3018806d7
https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=d6dcd4185bddff34724d6d539f834e9daf7dcf3d

- include release 1.1.23
- Add riscv support
- Add syscall numbers upto 5.1 kernel

Detailed log
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=ac304227bb3ea1787d581f17d76a5f5f3abff51f..0ce49d0a301b4142741b32773492af90f66ed3ca

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxinput: update to 1.6.3
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:29:18 +0000 (02:29 +0200)]
xinput: update to 1.6.3

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopiglit: fix SRC_URI
Anuj Mittal [Mon, 22 Jul 2019 00:22:57 +0000 (08:22 +0800)]
piglit: fix SRC_URI

Fixes build for older versions of git (like on CentOS 7) which don't
follow redirects properly if the .git suffix is missing and cause
errors:

| error: RPC failed; result=22, HTTP code = 404
| fatal: The remote end hung up unexpectedly

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiptables: upgrade 1.8.2 -> 1.8.3
Anuj Mittal [Mon, 22 Jul 2019 00:22:56 +0000 (08:22 +0800)]
iptables: upgrade 1.8.2 -> 1.8.3

Remove upstreamed patches and manually package symlinks which aren't
handled by do_split_package.

Changelog:
http://git.netfilter.org/iptables/log/?qt=range&q=v1.8.3...v1.8.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRevert "unzip: fix CVE-2019-13232"
Khem Raj [Sat, 20 Jul 2019 18:26:45 +0000 (11:26 -0700)]
Revert "unzip: fix CVE-2019-13232"

See [1]

This reverts commit 4df4de2ac8bc0e80446e1ad0ce67eb244e2d2a32.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2019-July/284859.html

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-pbr: update to 5.4.1
Oleksandr Kravchuk [Sat, 20 Jul 2019 16:29:37 +0000 (18:29 +0200)]
python3-pbr: update to 5.4.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoudev-extraconf: do not mount swap partitions
Oleksandr Kravchuk [Sat, 20 Jul 2019 15:57:50 +0000 (17:57 +0200)]
udev-extraconf: do not mount swap partitions

Swap is a special filesystem that cannot be mounted, so do not try to,
otherwise we will have service that tries and fails to mount it with
the following error:

systemd[1]: Mounting /run/media/nvme0n1p3...
mount[1229]: mount: /run/media/nvme0n1p3: unknown filesystem type 'swap'.

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopsplash: create psplash tmpfs mount directory in psplash-init
Stefan Agner [Sat, 20 Jul 2019 00:12:37 +0000 (02:12 +0200)]
psplash: create psplash tmpfs mount directory in psplash-init

The psplash binary uses TMPDIR as directory to store the FIFO to
communicate with the psplash tools. This directory can be in any
location an init system determines to be suitable, psplash-init
uses /mnt/ for it. Rather than creating the mount directory in
the recipe, just create it in the init script itself. This allows
other init scripts to use a different location without having
an unnecessary .psplash directory in /mnt.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agompeg2dec: Fix PIE build and avoid relocation in text section on ARM
Khem Raj [Sat, 20 Jul 2019 06:16:28 +0000 (23:16 -0700)]
mpeg2dec: Fix PIE build and avoid relocation in text section on ARM

This a backport from upstream

Fixes package_qa on arm

ERROR: QA Issue: ELF binary 'TOPDIR/build/tmpfs/work/armv7vet2hf-neon-yoe-linux-gnueabi/mpeg2dec/0.5.1-r0/packages-split/libmpeg2/usr/lib/libmpeg2.so.0.1.0' has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoffmpeg: upgrade to 4.1.4
Ross Burton [Fri, 19 Jul 2019 20:19:58 +0000 (21:19 +0100)]
ffmpeg: upgrade to 4.1.4

Add a PACKAGECONFIG for the use of XCB and enable by default if X11 is in
DISTRO_FEATURES.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoffmpeg: don't use hardcoded lookup tables
Ross Burton [Fri, 19 Jul 2019 20:19:57 +0000 (21:19 +0100)]
ffmpeg: don't use hardcoded lookup tables

ffmpeg can generate lookup tables at build time instead of runtime, but this is
no longer a recommended option.  The size impact is significant (12% of the
total libavcodec size, nearly 2MB), the runtime impact of dynamic tables isn't
too costly, and only a few codecs actually use the pre-generated tables (MP3,
notably).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson.bbclass: export STRIP=${BUILD_STRIP}
Ross Burton [Fri, 19 Jul 2019 22:58:41 +0000 (23:58 +0100)]
meson.bbclass: export STRIP=${BUILD_STRIP}

In Meson the environment variables are always the native tools, so export
STRIP=${BUILD_STRIP} along with CC et al to silence this Meson warning:

WARNING: Env var STRIP seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibtool: remove host information from libtool
Joe Slater [Fri, 19 Jul 2019 22:05:31 +0000 (15:05 -0700)]
libtool: remove host information from libtool

Import patch from Debian.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agounfs3: set upstream tag regex to avoid false-positives
Ross Burton [Fri, 19 Jul 2019 21:25:55 +0000 (22:25 +0100)]
unfs3: set upstream tag regex to avoid false-positives

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofreetype: upgrade to 2.10.1
Ross Burton [Fri, 19 Jul 2019 21:16:19 +0000 (22:16 +0100)]
freetype: upgrade to 2.10.1

Also switch SRC_URI to the nongnu mirrors as they're more reliable than
Sourceforge.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: clean up JSON fetching
Ross Burton [Fri, 19 Jul 2019 20:33:19 +0000 (21:33 +0100)]
cve-update-db-native: clean up JSON fetching

Currently the code fetches the compressed JSON, writes it to a temporary file,
uncompresses that with gzip and passes the fake file object to update_db().

Instead, uncompress the gzip'd data in memory and pass the JSON directly to
update_db().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: improve metadata parsing
Ross Burton [Fri, 19 Jul 2019 20:33:18 +0000 (21:33 +0100)]
cve-update-db-native: improve metadata parsing

The metadata parser is fragile: first it coerces a bytes() to a str() (so the
string is b'LastModifiedDate:2019...'), assumes the first line is the date, and
then uses a regex to parse (which then includes the trailing quote as part of
the date).

Clean this up by parsing the bytes as UTF-8 (ASCII is probably fine, but this is
safer), iterate through the lines and split on colons to find the right
key/value pair.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: use executemany() to optimise CPE insertion
Ross Burton [Fri, 19 Jul 2019 20:33:17 +0000 (21:33 +0100)]
cve-update-db-native: use executemany() to optimise CPE insertion

Instead of calling execute() repeatedly, rewrite the function to be a generator
and use executemany() for performance.

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