]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agoinitramfs-framework: bump PR and fix install-efi and setup-live modules
California Sullivan [Mon, 11 Sep 2017 21:33:26 +0000 (14:33 -0700)] 
initramfs-framework: bump PR and fix install-efi and setup-live modules

Bump initramfs-framework PR, as it was missed in the previous
initramfs-framework patch.

These modules are shell scripts so they can be allarch.

Fix the SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS in layer.conf, as these
dependencies moved from the main recipe to these modules.

Finally, set the PR to 4 in the new module recipes to avoid breaking
package feeds.

Fixes [YOCTO #12024].

(From OE-Core rev: d8af496dde699fadb2b21ff45cd20cf31e8abaf7)

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostaging: gracefully abort if two recipes conflict in the sysroot
Ross Burton [Tue, 5 Sep 2017 19:24:20 +0000 (20:24 +0100)] 
staging: gracefully abort if two recipes conflict in the sysroot

When building the per-recipe sysroot keep track of what files we're installing
and where they came from, so we can detect when a file is installed by two
different recipes and tell the user what these recipes are (instead of just
showing a os.link() stack trace).

[ YOCTO #11631 ]

(From OE-Core rev: 606a8e0ca218f023e362c3678122d36d537f95de)

(From OE-Core rev: 2ebbeb61114e4b847e9164c621ac87b5cf03a299)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: upgrade: check that user has configured git properly
Paul Eggleton [Wed, 30 Aug 2017 23:54:07 +0000 (11:54 +1200)] 
devtool: upgrade: check that user has configured git properly

If user.name or user.email haven't been set then git rebase can't really
work properly. Check that the user has set these and error out if not.
(Elsewhere we are relying on OE's git patch functionality which forces
a dummy OE value - that's OK there as it's completely under OE's control
and therefore it's OK for a dummy OE user to be the committer, but here
the rebase may require intervention so it's reasonable to have the
user's actual name and email on the operation.)

Fixes [YOCTO #11947].

(From OE-Core rev: 129a3be07e272013be2db17552c13b4d8cc2cf6e)

(From OE-Core rev: 802829f1c38d8c5eee11ba1d9ddd37cf02597f6e)

Signed-off-by: paul <paul@peggleto-mobl.ger.corp.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo-helloworld: Use the Golang examples repository
Otavio Salvador [Fri, 8 Sep 2017 21:04:44 +0000 (18:04 -0300)] 
go-helloworld: Use the Golang examples repository

This updates the recipe to use the Golang examples repository so it
makes use of the unpack as well as standard tasks showing how easy it
can be.

(From OE-Core rev: 116d2ea1fe92725bb1265152f3db51598643a481)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo-dep: Add 0.3.0 release
Otavio Salvador [Fri, 8 Sep 2017 21:04:43 +0000 (18:04 -0300)] 
go-dep: Add 0.3.0 release

This is the Golang dependency management tool under development; it is
ready for production use and intended to be merged onto Golang
1.10. Until that, projects are starting to use it and making it
available on OE-Core reduces the Golang integration work for new
recipes.

(From OE-Core rev: 79e0401fa463736f28ad39f2f98cd23d8fd6fe88)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: add GO_INSTALL_FILTEROUT variable
Matt Madison [Fri, 8 Sep 2017 21:04:42 +0000 (18:04 -0300)] 
go.bbclass: add GO_INSTALL_FILTEROUT variable

When using the Go 'vendor' mechanism to bring in
dependencies for a Go package, the default GO_INSTALL
setting, which uses the '...' wildcard, will include
the vendored packages in the build, which produces
incorrect results.

There are also some Go packages that are structured
poorly, so that the '...' wildcard results in building
example or test code that should not be included in
the build, or fail to build.

This patch adds a mechanism for filtering out a
subset of the sources.  It defaults to filtering
out everything under the 'vendor' subdirectory
under package's main directory, which is the
normal location for vendored packages, but can
be overridden by a recipe to filter out other
subdirectories, if needed.

(From OE-Core rev: 9819353726d85780546158428bd97a253705017d)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: add do_unpack function to handle common cases
Matt Madison [Fri, 8 Sep 2017 21:04:41 +0000 (18:04 -0300)] 
go.bbclass: add do_unpack function to handle common cases

Go source trees have a particular structure, with all
sources located under ${GOROOT}/src/<import-path>.
The fetcher step implemented by the 'go get' command
automatically follows this structure, so we need
to do the same here.

Since most Go packages are hosted in git repositories,
this adds a custom do_unpack() function that sets
the destsuffix to match the expected directory structure,
for any git SRC_URIs that haven't had a destsuffix
explicitly set in the recipe.

This simplifies recipe writing for the most common
cases.

(From OE-Core rev: efcf6513b71021ea4bfe6fbaa326e6591dee487d)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: separate ${S} and ${B}
Matt Madison [Fri, 8 Sep 2017 21:04:40 +0000 (18:04 -0300)] 
go.bbclass: separate ${S} and ${B}

Add a do_configure task to populate ${B} by symlinking
in the src subdirectory under ${S}, which lets us point
GOPATH at ${B}.  This lets us take advantage of the
automatic directory creation and cleaning for do_configure.

This necessitates a change to do_install to split the
installation of the sources and built artifacts.  Taking
advantage of some additional tar options, we can eliminate
the extra staging area and extra recursive chown command.
So overall efficiency should be improved.

(From OE-Core rev: c62a083306c26b7e4deca1ff41336bb6b33d5b3a)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: Use an auxiliary variable to add the build dependencies
Otavio Salvador [Fri, 8 Sep 2017 21:04:39 +0000 (18:04 -0300)] 
go.bbclass: Use an auxiliary variable to add the build dependencies

This is going to easy the addition of nativesdk and virtual providers
in the future.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

(From OE-Core rev: 497136297f15858903b5170a8616d0cb427a995d)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: exported function cleanup
Matt Madison [Fri, 8 Sep 2017 21:04:38 +0000 (18:04 -0300)] 
go.bbclass: exported function cleanup

Since this is a class, it should follow the
class function export mechanism for its task
functions, and should set directory-related
flags for directories they need.

(From OE-Core rev: 0369a99ad1c9e3a9a6394c723461795460dc2c76)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: Enable parallel build
Otavio Salvador [Fri, 8 Sep 2017 21:04:37 +0000 (18:04 -0300)] 
go.bbclass: Enable parallel build

The parallel build is based on PARALLEL_MAKE variable but can be
overriden setting the GO_PARALLEL_BUILD one.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

(From OE-Core rev: 7a40ea8fc358aa134ad86862591329f94d0f3718)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: Use a global Go build flags
Otavio Salvador [Fri, 8 Sep 2017 21:04:36 +0000 (18:04 -0300)] 
go.bbclass: Use a global Go build flags

We now use a GOBUILDFLAGS to provide a global variable to control the
build flags to be given to Go.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

(From OE-Core rev: d6b8e7e94ba6dae44907c5a65bc0bdf0ccebdb15)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogoarch.bbclass: Add support for ARMv5
Otavio Salvador [Fri, 8 Sep 2017 21:04:35 +0000 (18:04 -0300)] 
goarch.bbclass: Add support for ARMv5

This adds support to return the proper ARMv5 format.

This change is based on the meta-golang[1] layer. Thanks to Matt
Madison <matt@madison.systems> for his work on this.

1. https://github.com/madisongh/meta-golang

(From OE-Core rev: e242e7c3617ded87582c5d384b15027498b0c1a4)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogoarch.bbclass: Replace logic for setting GOARM
Will Newton [Fri, 8 Sep 2017 21:04:34 +0000 (18:04 -0300)] 
goarch.bbclass: Replace logic for setting GOARM

The previous logic applied a regex to TUNE_FEATURES which could
set the GOARM value to 7 incorrectly, for example when dealing
with an arm1176 core. Simplify to check for the presence of
"armv7" instead. At the same time add a check for "armv6" and
set GOARM to 6 in that case.

(From OE-Core rev: 07b60c15e9ef650940afdde37bf3f3b9c50a336d)

Signed-off-by: Will Newton <willn@resin.io>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: Remove Go 1.6 and 1.7 releases
Otavio Salvador [Fri, 8 Sep 2017 21:04:33 +0000 (18:04 -0300)] 
go: Remove Go 1.6 and 1.7 releases

The OE-Core has no reason to support multiple versions of Go as this
increases the maintenance work and testing efforts. So we are going to
support just a single version from now on which currently is 1.8.3.

The 1.4 release is kept around as it is used for bootstrap, as such,
it cannot be removed.

(From OE-Core rev: 26abbf129d7ca0d36f6244f96fa8a572fd847899)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo.bbclass: Fix binary installation path detection
Otavio Salvador [Fri, 8 Sep 2017 21:04:32 +0000 (18:04 -0300)] 
go.bbclass: Fix binary installation path detection

Go toolchain changes the installation path when building for the same
architecture as the build host. This was already been considered in
the GO_BUILD_BINDIR variable but was not being used by the go class.

This fixes following error:

,----
| ERROR: go-dep-0.3.0-r0 do_package: QA Issue: go-dep: Files/directories
| were installed but not shipped in any package:
|   /usr/lib/x86_64-oel-linux/go/bin/dep
| Please set FILES such that these items are packaged. Alternatively if
| they are unneeded, avoid installing them or delete them within
| do_install.
`----

(From OE-Core rev: 56ce355b3d775e801d2ca89ee812571e794311cd)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogoarch.bbclass: Stop passing True as second argument of d.getVar
Otavio Salvador [Fri, 8 Sep 2017 21:04:31 +0000 (18:04 -0300)] 
goarch.bbclass: Stop passing True as second argument of d.getVar

The d.getVar has the second argument as True by default, avoid passing
it here.

(From OE-Core rev: 1a5026db41929d42bece22bd0ae60c13219a98f5)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: Make LINUX_VERSION_EXTENSION weaker
Saul Wold [Thu, 7 Sep 2017 14:18:21 +0000 (07:18 -0700)] 
linux-yocto: Make LINUX_VERSION_EXTENSION weaker

This allows for other layers to override this variable in addition
to providing the distro or local.conf to override it.

(From OE-Core rev: b6e72d0f8230f71ea06edf747f3a84c6410d458c)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/buildhistory-diff: use of argparse instead of optparse
Daniela Plascencia [Mon, 4 Sep 2017 21:05:26 +0000 (16:05 -0500)] 
scripts/buildhistory-diff: use of argparse instead of optparse

Optparse is deprecated since version 2.7 and won't be developed further.
Argparse should be used instead as it provides better tools for parsing
and handling arguments.

[YOCTO #9635]

(From OE-Core rev: e67b40c01fd98048035ca18595d87ae1be050ab4)

Signed-off-by: Daniela Plascencia <daniela.plascencia@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibfm: remove file which conflicts with libfm-extra
Ross Burton [Thu, 7 Sep 2017 12:30:35 +0000 (13:30 +0100)] 
libfm: remove file which conflicts with libfm-extra

Both libfm and libfm-extra provide /usr/include/libfm, so remove it from libfm
to avoid sysroot conflicts.

(From OE-Core rev: 1ca7d8d89e35f55082d1708639e2146794730a0c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosubversion: fix CVE-2017-9800
Wenzong Fan [Thu, 7 Sep 2017 09:49:06 +0000 (02:49 -0700)] 
subversion: fix CVE-2017-9800

A maliciously constructed svn+ssh:// URL would cause Subversion clients
before 1.8.19, 1.9.x before 1.9.7, and 1.10.0.x through 1.10.0-alpha3
to run an arbitrary shell command. Such a URL could be generated by a
malicious server, by a malicious user committing to a honest server(to
attack another user of that server's repositories), or by a proxy
server.

The vulnerability affects all clients, including those that use
file://, http://, and plain (untunneled) svn://.

Backport patch from:
http://svn.apache.org/viewvc?view=revision&amp;sortby=rev&amp;revision=1804691

Reference:
http://subversion.apache.org/security/CVE-2017-9800-advisory.txt

(From OE-Core rev: 6e1f8001a0f3c26cce9c692d25987a3c47ff2f74)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofoomatic: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 7 Sep 2017 09:05:09 +0000 (17:05 +0800)] 
foomatic: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 34cde8e965acca2706d3e3d8b5b3e9f4c3e010c3)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodiffutils: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 7 Sep 2017 09:05:08 +0000 (17:05 +0800)] 
diffutils: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 1d0c86a760aed27f706d6fc16c5cef8d1f958873)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoiputils: backport patch to fix arping hang problem
Chen Qi [Thu, 7 Sep 2017 02:37:10 +0000 (10:37 +0800)] 
iputils: backport patch to fix arping hang problem

arping hangs if SIGALARM is blocked. Backport a patch to fix this problem.

Unblock SIGALRM so that the previously called alarm() can prevent recvfrom()
from blocking forever in case the inherited procmask is blocking SIGALRM and
no packet is received.

(From OE-Core rev: 818d4a97763c69e9289fb99822535cd3ca7af6a2)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutil-linux: Add HOMEPAGE info into recipe file.
Huang Qiyu [Thu, 7 Sep 2017 04:02:44 +0000 (12:02 +0800)] 
util-linux: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 56cf3a05bcc3329b32d28962089f9229a63f655a)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: do the multilib_header magic also for bits/pthreadtypes-arch.h
Chunrong Guo [Thu, 7 Sep 2017 03:26:36 +0000 (11:26 +0800)] 
glibc: do the multilib_header magic also for bits/pthreadtypes-arch.h

Otherwise it will cause conflicts in mutlilib setting, as it
varies from one machine to another.

(From OE-Core rev: 30140990a8bbe920222204b4f19113f5a1662478)

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotexinfo-dummy-native: port to Python 3
Ross Burton [Wed, 2 Aug 2017 19:22:10 +0000 (20:22 +0100)] 
texinfo-dummy-native: port to Python 3

(From OE-Core rev: 1585ed0488c83e42f14c3a8fcb773366d544827c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: run bmaptool with native Python3
Ed Bartosh [Wed, 6 Sep 2017 12:08:25 +0000 (15:08 +0300)] 
wic: run bmaptool with native Python3

Modified wic code to run bmaptool using native Python3
from wic-tools native sysroot.

[YOCTO #11891]

(From OE-Core rev: 7fca44e03130c0860cc5df2093902773f426c774)

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>
8 years agobmap-tools: switch to Python 3
Ed Bartosh [Wed, 6 Sep 2017 12:08:24 +0000 (15:08 +0300)] 
bmap-tools: switch to Python 3

bmap-tools is the only recipe in oe-core that still uses
Python 2. Switching it to Python 3 should help to get rid of
building native Python 2 and its dependencies.

[YOCTO #11891]

(From OE-Core rev: 0d6130b30a1219b2bc2c57578f291311f69c676e)

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>
8 years agobmap-tools: upgrade to v3.4
Ed Bartosh [Wed, 6 Sep 2017 12:08:23 +0000 (15:08 +0300)] 
bmap-tools: upgrade to v3.4

Upgraded to the latest upstream release.

(From OE-Core rev: fa36678698108023242f2afbd4e54d6709f84420)

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>
8 years agocve-check-tool: change BB_NO_NETWORK error to a warning
Mikko Rapeli [Wed, 6 Sep 2017 11:08:16 +0000 (14:08 +0300)] 
cve-check-tool: change BB_NO_NETWORK error to a warning

It is perfectly fine to execute cve_check tasks against a cached
CVE database during a BB_NO_NETWORK build.

(From OE-Core rev: acc9994a77972c49a98aabbfd579973885c95f10)

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobootchart2: update python interpreter
Kai Kang [Wed, 6 Sep 2017 10:22:46 +0000 (18:22 +0800)] 
bootchart2: update python interpreter

For bootchart2-native, the python interpreter "#!FIXMESTAGINGDIRHOST/usr/bin/python3"
of file pybootchartgui is not right.

Use '#!${USRBINPATH}/env python3' instead to fix the issue.

(From OE-Core rev: 024caf6b0848118799fb15b912db7c5e1fc65488)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxdg-utils: Add HOMEPAGE info into recipe file.
Huang Qiyu [Wed, 6 Sep 2017 07:13:53 +0000 (15:13 +0800)] 
xdg-utils: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 1f8dae4ca60db21e8c24bf5bcf2153ebd26773f5)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-setuptools: extend to nativesdk
Chen Qi [Wed, 6 Sep 2017 04:54:46 +0000 (12:54 +0800)] 
python3-setuptools: extend to nativesdk

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

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

(From OE-Core rev: b9f0c54fd8b4f5f157e5f088bb304ddab0387ae6)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-pip: extend to nativesdk
Chen Qi [Wed, 6 Sep 2017 04:54:45 +0000 (12:54 +0800)] 
python3-pip: extend to nativesdk

Extend python3-pip to nativesdk because some nativesdk python3 packages
need it, e.g. nativesdk-python3-django from meta-python layer.

(From OE-Core rev: 31f1e5f438d19aa329e5f38b1ab4e7d521eff8a1)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemtap: Bump SRCREV for 4.12 Linux kernel support
Saul Wold [Tue, 5 Sep 2017 23:22:02 +0000 (16:22 -0700)] 
systemtap: Bump SRCREV for 4.12 Linux kernel support

This SRCREV bump brings in support for the 4.12 Linux Kernel, this kernel
also has some newer CONFIG settings. The newer DEBUG_INFO and DEBUG_INFO_DWARF4
settings can be used with systemtap to get the full information.  We do not
normally enabled these for a 'production' (standard) kernel, but can be
enabled via menuconfig.

When installing staprun and stapbpf on the target and native ensure we
don't try to create a new group and chown it.  There is no need since we
will be running as root, so we add a patch to comment that code out.

(From OE-Core rev: 026403cc7f995ecc32a99f269399a08abc221c77)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib-2.0: recommend shared-mime-info
Ross Burton [Tue, 5 Sep 2017 15:06:06 +0000 (16:06 +0100)] 
glib-2.0: recommend shared-mime-info

Large portions of GIO are not that useful without the MIME database.  Add a
recommends to shared-mime-info so that GIO works out of the box, but can be
removed (using BAD_RECOMMENDATIONS) if shared-mime-info is too large and isn't
required.

[ YOCTO #11792 ]

(From OE-Core rev: 51e4f9ca5368af5cefa26f4ca50b282e858982f8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoshared-mime-info: enable nativesdk builds
Ross Burton [Tue, 5 Sep 2017 16:15:30 +0000 (17:15 +0100)] 
shared-mime-info: enable nativesdk builds

Also remove the redundant DEPENDS_class-native, as the native class generates
this value automatically.

(From OE-Core rev: 7d2d73bf5e9fba30ae79e535adff256b94248e62)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: selftest: add test_wic_rm_ext test case
Ed Bartosh [Tue, 5 Sep 2017 11:54:42 +0000 (14:54 +0300)] 
wic: selftest: add test_wic_rm_ext test case

Tested if 'wic rm' correctly removes files from the ext4 partition
of the wic image.

(From OE-Core rev: 693b555e4f419b5d24f9f86c44354866492f8bb0)

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>
8 years agowic: selftest: add test_wic_cp_ext test case
Ed Bartosh [Tue, 5 Sep 2017 11:54:41 +0000 (14:54 +0300)] 
wic: selftest: add test_wic_cp_ext test case

Tested if 'wic cp' correctly copies files to the ext4 partition
of the wic image.

(From OE-Core rev: 7970907c72d9533fd63d2c8796bbeb9be86b3fc3)

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>
8 years agowic: selftest: add test_wic_ls_ext test case
Ed Bartosh [Tue, 5 Sep 2017 11:54:40 +0000 (14:54 +0300)] 
wic: selftest: add test_wic_ls_ext test case

Tested if 'wic ls' correctly lists directory contents
of the ext* partition.

(From OE-Core rev: 6ae3ff957b5c28c7853966cd5a7665772c594546)

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>
8 years agowic: update help content
Ed Bartosh [Tue, 5 Sep 2017 11:54:39 +0000 (14:54 +0300)] 
wic: update help content

Added ext* partitions to the description of 'wic ls',
'wic cp' and 'wic rm' commands.

(From OE-Core rev: fcff05d666e55a017f11851aa4aad6c3ba9d4ff0)

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>
8 years agowic: implement ext fs support for 'wic rm'
Ed Bartosh [Tue, 5 Sep 2017 11:54:38 +0000 (14:54 +0300)] 
wic: implement ext fs support for 'wic rm'

Implemented removing files or directories from the ext
partition using debugfs tool.

(From OE-Core rev: be530b7c7beae6f9fc95eed245cb37066d56581e)

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>
8 years agowic: implement ext fs support for 'wic cp'
Ed Bartosh [Tue, 5 Sep 2017 11:54:37 +0000 (14:54 +0300)] 
wic: implement ext fs support for 'wic cp'

Implemented copying files to the ext partition
using debugfs tool.

(From OE-Core rev: 1a2bc70e6f85f414e7af48489e24c09ff335486d)

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>
8 years agowic: implement ext fs support for 'wic ls'
Ed Bartosh [Tue, 5 Sep 2017 11:54:36 +0000 (14:54 +0300)] 
wic: implement ext fs support for 'wic ls'

Implemented listing directory contents for ext file
system using debugfs tool.

(From OE-Core rev: b591ba6f4d684aef3d7666bbdc678954e3255df5)

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>
8 years agosysstat: Add ability to enable lm-sensors
Mark Hatle [Tue, 5 Sep 2017 02:10:52 +0000 (21:10 -0500)] 
sysstat: Add ability to enable lm-sensors

Add lm-sensors PACKAGECONFIG option.

Change from setting LFLAGS="" to --disable-strip, otherwise lm-sensors will not link
properly.

(From OE-Core rev: ff9f629d70a9016f8f40d3d68c80111897c7a2c3)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopsplash: Initialize psplash only if a framebuffer exists
Mark Hatle [Tue, 5 Sep 2017 02:10:32 +0000 (21:10 -0500)] 
psplash: Initialize psplash only if a framebuffer exists

psplash-init exits if there is no framebuffer device detected.
This is done to avoid the following error message from
occurring when booting up:

"Error opening /dev/fb0: No such file or directory"

(From OE-Core rev: 2348dda6b8a86352e72ef41b24df3a19e8bc98ce)

Signed-off-by: Aws Ismail <aws.ismail@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-compat-layer.py: Fix trace when layers can't be processed
Mark Hatle [Tue, 5 Sep 2017 02:10:11 +0000 (21:10 -0500)] 
yocto-compat-layer.py: Fix trace when layers can't be processed

When all of the requested layers have unsatisfied dependencies, an error
can occur.  Check for the condition to avoid the traceback:

Traceback (most recent call last):
  File "../scripts/yocto-compat-layer.py", line 203, in <module>
    ret =  main()
  File "../scripts/yocto-compat-layer.py", line 194, in main
    if not results[layer_name].wasSuccessful():
AttributeError: 'NoneType' object has no attribute 'wasSuccessful'

(From OE-Core rev: 32c9b3d99a0c27f6736696082b9da812a8464bf8)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel: Stop using update-alternatives
Otavio Salvador [Tue, 5 Sep 2017 06:04:44 +0000 (03:04 -0300)] 
kernel: Stop using update-alternatives

The update-alternatives where using relative links so not being really
in use since December 2016 (see OE-Core:c7bc46b9 "kernel: Fix
symlinks") so instead we now generate the relative symlinks during the
do_install task and drop the update-alternatives use at all.

Acked-by: Saul Wold <sgw@linux.intel.com>
(From OE-Core rev: 10a1b293191268e6792ac8e27bd6427f1974c7ce)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: add ld.so locks in _libc_fork
Zhixiong Chi [Tue, 5 Sep 2017 04:29:44 +0000 (12:29 +0800)] 
glibc: add ld.so locks in _libc_fork

The patch in this Bugzilla entry was requested by a customer:
  https://sourceware.org/bugzilla/show_bug.cgi?id=4578
  https://www.sourceware.org/bugzilla/show_bug.cgi?id=19282

If a thread happens to hold dl_load_lock and have r_state set to RT_ADD or
RT_DELETE at the time another thread calls fork(), then the child exit code
from fork (in nptl/sysdeps/unix/sysv/linux/fork.c in our case) re-initializes
dl_load_lock but does not restore r_state to RT_CONSISTENT. If the child
subsequently requires ld.so functionality before calling exec(), then the
assertion will fire.

The patch acquires dl_load_lock on entry to fork() and releases it on exit
from the parent path.  The child path is initialized as currently done.
This is essentially pthreads_atfork, but forced to be first because the
acquisition of dl_load_lock must happen before malloc_atfork is active
to avoid a deadlock.

The __libc_fork() code reset dl_load_lock, but it also needed to reset
dl_load_write_lock.

(From OE-Core rev: f2e586ebf59a9b7d5b216fc92aeb892069a4b0c1)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_[deb|ipk]: improve multiprocess logic when creating deb/ipk packages
Leonardo Sandoval [Mon, 4 Sep 2017 21:35:48 +0000 (14:35 -0700)] 
package_[deb|ipk]: improve multiprocess logic when creating deb/ipk packages

Current implementation does not handle possible exceptions coming from child
processes, the latter responsible for creating packages. With the aim to have more
control, use pipes to communicate exceptions and stop package creation in case
of failure.

Helps to debug [YOCTO #12012].

(From OE-Core rev: 11350a67ba137f560d04aa643ff500a7ff112c73)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_deb, ipk: improve subprocess output on package manager command
Leonardo Sandoval [Mon, 4 Sep 2017 21:35:47 +0000 (14:35 -0700)] 
package_deb, ipk: improve subprocess output on package manager command

Redirecting stderr to stdout helps debugging issues, i.e instead of just
getting the return code, get also the error log from the pkg manger
This commit is in the way to figure out the root cause of [YOCTO #12012],
where dpkg-deb fails with a 2 return code and according to the man page,
there are multiple issues leading to the same code.

(From OE-Core rev: 9ff023fb26f5f0ce19e757beda00ccc32c009b21)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: status: Sort entries before printing
Ola x Nilsson [Mon, 4 Sep 2017 14:18:37 +0000 (16:18 +0200)] 
devtool: status: Sort entries before printing

Sorted entries are easier to read.

(From OE-Core rev: d0a123ec564f6d36977e472f8bc63f9c050ee616)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-doc.bbclass: add all directories where .so files are found to library search...
Alexander Kanavin [Wed, 23 Aug 2017 17:06:21 +0000 (20:06 +0300)] 
gtk-doc.bbclass: add all directories where .so files are found to library search path

This should reduce the need to manually specify the path in recipes.

(From OE-Core rev: 40e8a15d7f0a39788164c3ed4fcdb6969af499b5)

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>
8 years agoinsane.bbclass: write QA issues to log file only when they are in ERROR_QA or WARN_QA
Martin Jansa [Mon, 21 Aug 2017 20:56:24 +0000 (22:56 +0200)] 
insane.bbclass: write QA issues to log file only when they are in ERROR_QA or WARN_QA

* QA check which aren't included in WARN_QA and ERROR_QA are shown
  during the build only as NOTE message (not shown at all with default
  knotty setting), so it might be surprising to see them later in qa.log
  file

(From OE-Core rev: 35ab2c7b08359f22f74106339841f8134123adf4)

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>
8 years agorootfs: improve postinst intercept logging
Ross Burton [Mon, 4 Sep 2017 20:13:17 +0000 (21:13 +0100)] 
rootfs: improve postinst intercept logging

Ensure we capture stderr, always write the output to the log, and don't be so
emotional in the warning message.

(From OE-Core rev: 87110e971c548d9d3eb7296ea6772d18e0226e53)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: Replace "append +=" with normal "append =" in layerappend.py
Robert P. J. Day [Sat, 2 Sep 2017 16:49:20 +0000 (12:49 -0400)] 
oeqa: Replace "append +=" with normal "append =" in layerappend.py

(From OE-Core rev: 0fae16b67542c59b059aa359146c38040785f200)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinitramfs-framework: split setup-live and install-efi into separate recipes
California Sullivan [Sat, 2 Sep 2017 00:04:58 +0000 (17:04 -0700)] 
initramfs-framework: split setup-live and install-efi into separate recipes

Having these the initramfs-framework recipe forced initramfs-framework
users to build several tools they didn't need, and made it more
difficult to declare the recipe as allarch.

Fixes [YOCTO #12024].

(From OE-Core rev: e4cc1a22dd4fc9b3b12808c86213eb613f1ecb51)

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopsplash: upgrade to latest git revision
Ross Burton [Sat, 2 Sep 2017 00:23:31 +0000 (01:23 +0100)] 
psplash: upgrade to latest git revision

Non-housekeeping commits:

2015f70 Fix text width calculation.
5b3c1cc Add --fbdev option to psplash like --rotation.
505aeca psplash: fix remaining unused-parameter warnings
e3e0ab4 psplash: remove unused parameter length from parse_command
121720e psplash-fb: remove unused parameter from psplash_fb_text_size
9f6baa6 psplash-fb: fix sign-compare warning

(From OE-Core rev: 43b1475afcbfe5aaa741e40d6a81f52763010822)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoalsa-utils: Do not hardcode path to /lib/udev
Peter Kjellerstedt [Fri, 1 Sep 2017 17:49:29 +0000 (19:49 +0200)] 
alsa-utils: Do not hardcode path to /lib/udev

Use ${nonarch_base_libdir}/udev instead. This avoids problems when
usrmerge is enabled in DISTRO_FEATURES and udev support is disabled.

(From OE-Core rev: 0a4372705a030ca54ed420cdfec33d46ab93499c)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest/case: Add recipeinc method
Ola x Nilsson [Mon, 28 Aug 2017 14:58:15 +0000 (16:58 +0200)] 
oeqa/selftest/case: Add recipeinc method

The recipeinc method returns the absolute path of the test_recipe.inc
file of a specified recipe.  It replaces four instances of identical
code, and make it possible to access the filename from a testcase for
cleanup.

The write_recipeinc and append_recipeinc methods are changed to return
the path to the file in case that is useful.

The test_recipe.inc file is usually cleaned up in a finally block,
but that block executes before any teardown operations.  This blocks
any teardown that requires the presence of the test_recipe.inc file.

(From OE-Core rev: cdb431676456f47da1a3b70caddf49f083948798)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest: Add missing IDs to various test cases
Jose Perez Carranza [Fri, 1 Sep 2017 20:30:24 +0000 (13:30 -0700)] 
oeqa/selftest: Add missing IDs to various test cases

Add decorator @OETestID() with Tesopia TC-ID to the test cases
that did not have it properly set.

[YOCTO #11873]

(From OE-Core rev: aa5b9edbd9c4495befe1912a5b401b536be39d5b)

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopulseaudio: Backport a patch to replace use of VLAIS
Khem Raj [Fri, 1 Sep 2017 05:20:40 +0000 (22:20 -0700)] 
pulseaudio: Backport a patch to replace use of VLAIS

Fix build with clang

(From OE-Core rev: ff980856d1b6ec392d684bfe758c8304933c18bd)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner.py: refactor searching for QEMU PID
Juro Bystricky [Thu, 7 Sep 2017 00:33:58 +0000 (17:33 -0700)] 
qemurunner.py: refactor searching for QEMU PID

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

[YOCTO #12001]

(From OE-Core rev: 67612dcd2a8a1aa1d683dddb0bd2f592886ff020)

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

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

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

(From OE-Core rev: 9099cecc727fe0ae5f1559582426d30ba7a9f4d3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: update pyro to rocko as stable release
David Reyna [Fri, 8 Sep 2017 04:50:48 +0000 (21:50 -0700)] 
bitbake: toaster: update pyro to rocko as stable release

Update the Toaster stable release selection to 'Rocko' and
the bitbake version to '1.36'.

[YOCTO #12037]

(Bitbake rev: ed3aab90dbf9b6efefd9eb66d81123cb94d3c7da)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: handle early exceptions
David Reyna [Fri, 8 Sep 2017 04:50:47 +0000 (21:50 -0700)] 
bitbake: toaster: handle early exceptions

Stop the pending build and report to the user if there is
an internal exception due to a git error, a bitbake server
error, or if the server-only mode halts due to for example
a user syntax error in a layer or recipe.

These exceptions were not caught because they occure before
the normal toastergui processing was started.

[YOCTO #12056]

(Bitbake rev: 2cd664097c29ad07b08c82d07a239ca199abbc9a)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: tests/fetch: handle network failures gracefully
Ross Burton [Thu, 7 Sep 2017 09:24:25 +0000 (10:24 +0100)] 
bitbake: tests/fetch: handle network failures gracefully

If there is a network failure the return value from latest_versionstring() is
('','') which later causes an exception when comparing versions.

Improve this by checking the return value and failing the test early.

[ YOCTO #12053 ]

(Bitbake rev: 3f034d2172bf64ecc43577b43e0cf032a54b1358)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: fetch2: add stub latest_versionstring to FetchMethod
Ross Burton [Thu, 7 Sep 2017 09:24:24 +0000 (10:24 +0100)] 
bitbake: fetch2: add stub latest_versionstring to FetchMethod

(Bitbake rev: c45453d1f6bc7bcecd84f58e2f7d93d6bd1e8499)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: Replace deprecated git branch parameter "--set-upstream"
Andre Rosa [Thu, 7 Sep 2017 09:15:55 +0000 (11:15 +0200)] 
bitbake: Replace deprecated git branch parameter "--set-upstream"

Since 2017-08-17 (git version 2.14.1.473.g3ec7d702a) using deprecated
git branch parameter "--set-upstream" causes a fetcher error. Replace
it by "--set-upstream-to".

https://git.kernel.org/pub/scm/git/git.git/commit/?id=52668846ea2d41ffbd87cda7cb8e492dea9f2c4d
says, it's deprecated since 2012-08-30 so hopefully all still supported
host distributions have new enough git to support "--set-upstream-to".

ERROR: PACKAGE do_unpack: Fetcher failure: ...;
git -c core.fsyncobjectfiles=0 branch --set-upstream master origin/master failed with exit code 128, output:
fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead.

ERROR: PACKAGE do_unpack: Function failed: base_do_unpack

(Bitbake rev: 2ab50074c1a6c56a8a178755de108447d7b7acaf)

Signed-off-by: Andre Rosa <andre.rosa@lge.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa-gl: Fix build after recent mesa PACKAGECONFIG changes
Jussi Kukkonen [Mon, 4 Sep 2017 08:39:24 +0000 (11:39 +0300)] 
mesa-gl: Fix build after recent mesa PACKAGECONFIG changes

48d39cf43b added "opengl" PACKAGECONFIG option to mesa: before that
the configuration was always enabled. "opengl" should have been added
to mesa-gl default PACKAGECONFIG but wasn't: do it now.

(From OE-Core rev: cc319b6dcc5b4a5019fb91c9771b12ce17f3c953)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-plugins-good: fix 4k playback for v4l2 decoder
Nicolas Dechesne [Mon, 4 Sep 2017 08:23:34 +0000 (10:23 +0200)] 
gstreamer1.0-plugins-good: fix 4k playback for v4l2 decoder

Backport a fix already merged upstream in master and 1.12 branch, it fixes 4K video
playback on any platform that uses v4l2 codecs, such as Dragonboard 820c.

(From OE-Core rev: b662944b28080dfb68833d4a81655262b04ada67)

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutil-linux: split out ionice into its own package
André Draszik [Mon, 4 Sep 2017 07:57:02 +0000 (08:57 +0100)] 
util-linux: split out ionice into its own package

For systems that don't otherwise depend on the full
util-linux package, ionice is a mere 31k (on mipsel).

(From OE-Core rev: 50d6f2c21eca162b82d5cbe135b87c1b1ea871b9)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocve-check.bbclass: detect patched CVE's also from patch file names
Mikko Rapeli [Mon, 4 Sep 2017 06:22:14 +0000 (09:22 +0300)] 
cve-check.bbclass: detect patched CVE's also from patch file names

While poky master branch has been fixed so that all CVE patch files have
the:

CVE: CVE-2017-1234556

strings in the patch comments, many older versions of poky and other meta
layers are not, but the CVE patches quite often have the CVE id in the
patch file name.

If the CVE: string also found, there are no duplicates in the report.

(From OE-Core rev: 5ee5b0c66627c9e974c838b86e2e659c2f601f2a)

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs-postcommands: add test for unsatisfied RRECOMMENDS
Jose Alarcon [Mon, 4 Sep 2017 05:12:24 +0000 (08:12 +0300)] 
rootfs-postcommands: add test for unsatisfied RRECOMMENDS

The do_rootfs log contains a number of unsatisfied package
recommendations. At the moment those are only visible when
reviewing the rootfs log.

This patch adds an extra check to surface any unsatisfied
recommendation  as WARNINGS to the build output.

Enable this check with:
ROOTFS_POSTPROCESS_COMMAND += "rootfs_log_check_recommends;"

(From OE-Core rev: 9d049bf7941f30e35c51775684559e95185fba96)

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs-postcommands: remove empty line
Jose Alarcon [Mon, 4 Sep 2017 05:12:23 +0000 (08:12 +0300)] 
rootfs-postcommands: remove empty line

(From OE-Core rev: 76a801da7fe5651d9e8310a2b32c275e1700daf3)

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemtap: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 04:55:08 +0000 (13:55 +0900)] 
systemtap: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 492f43f1aa402a60902fafb2d524ae67007f59bd)

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocurl: fix CVE-2017-1000099, 1000100, 1000101
Wenzong Fan [Mon, 4 Sep 2017 03:31:10 +0000 (20:31 -0700)] 
curl: fix CVE-2017-100009910001001000101

Backport upstream commits to fix:
- CVE-2017-1000099
  https://curl.haxx.se/docs/adv_20170809C.html
  https://curl.haxx.se/CVE-2017-1000099.patch

- CVE-2017-1000100
  https://curl.haxx.se/docs/adv_20170809B.html
  https://curl.haxx.se/CVE-2017-1000100.patch

- CVE-2017-1000101
  https://curl.haxx.se/docs/adv_20170809A.html
  https://curl.haxx.se/CVE-2017-1000101.patch

(From OE-Core rev: 2eb590bbeab4dbf2583a78fcbaf3723757116123)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogconf: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 03:15:53 +0000 (12:15 +0900)] 
gconf: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 5fca1aa08e2ca2de5a9ee6cdedaab057cbfd7a03)

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreadline: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 03:06:02 +0000 (12:06 +0900)] 
readline: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 516e0dda595c3c40bda4f4d3f4fd86225ace55c9)

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperf: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 03:00:18 +0000 (12:00 +0900)] 
perf: Add HOMEPAGE info into recipe file.

(From OE-Core rev: c46e49c06e16e46422f925662cd2c8c698dc04ee)

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocups: Add HOMEPAGE info into recipe file.
Fan Xin [Mon, 4 Sep 2017 01:58:40 +0000 (10:58 +0900)] 
cups: Add HOMEPAGE info into recipe file.

(From OE-Core rev: b4fb21c5d21dc1b0e3a4560aa51f43b0915e6de0)

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocurl: enable threaded resolver
André Draszik [Mon, 4 Sep 2017 09:42:44 +0000 (10:42 +0100)] 
curl: enable threaded resolver

Multi-threaded applications using libcurl crash
on DNS timeouts when built using OE.

The reason is as follows:
By default, libcurl implements DNS timeouts using a
timer (alarm()) and a pair of setjmp()/longjmp().
This approach is unsafe in multi-threaded applications
for various reasons, as e.g. explained in the relevant
man-pages.

To avoid this, libcurl can be compiled with a built-in
threaded resolver, or against the c-ares asynchronous
resolver library.

To keep extra dependencies to a minimum, and to mimic
other distributions (debian at least), and because
c-ares is not available in OE-core, add a PACKAGECONFIG
to be able to enable use of of the built-in threaded
resolver and enable it by default.

(From OE-Core rev: 41f1e44fce976c4140cda62a41349e91e69d04ef)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: cooker: clear extra config settings and remote datastores on client disconnect
Paul Eggleton [Mon, 4 Sep 2017 02:00:31 +0000 (14:00 +1200)] 
bitbake: cooker: clear extra config settings and remote datastores on client disconnect

When the UI disconnects, we can throw away any server-side remote
datastores we created in response to calls from the UI, and we *must*
drop everything in extraconfigdata or it will taint any future
operations.

Dropping extraconfigdata upon disconnect fixes taskhash mismatch errors
when running devtool.DevtoolTests.test_devtool_update_recipe_local_files
within oe-selftest with BB_SERVER_TIMEOUT=100 in OpenEmbedded.

(Bitbake rev: 1ca2eec459424892391f060442ef38cf28d6a54a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: cooker.py: Fix layer priority processing
Mark Hatle [Sat, 2 Sep 2017 15:09:43 +0000 (10:09 -0500)] 
bitbake: cooker.py: Fix layer priority processing

If you have a layer with a blank BBFILE_PATTERN the layer was ignored
when processing the list of layers with priorities.  This list is not
only used for processing recipes, but also by additional programs such
as bitbake-layers show-layers.

Without this change, a layer that provides configuration or classes
only does now show up in show-layers, which is used by the
yocto-compat-layer.py script.  This causes a failures in the compatibility
check.

(Bitbake rev: a0eaf8c0f228f984bafff09e4e9739f758dc1a9b)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: siggen: move reset() definition to base SignatureGenerator class
Paul Eggleton [Mon, 4 Sep 2017 09:03:12 +0000 (21:03 +1200)] 
bitbake: siggen: move reset() definition to base SignatureGenerator class

If we're implementing reset() in SignatureGenerator at all (and we need
to for a basic non-OE BitBake setup where that is the default signature
generator), then we need it to be clearing out the internal values
properly.

(Bitbake rev: 13f52d38fdbcb84c2a0c46f85baa44b22d53fdc1)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: edit column list not sorted
David Reyna [Mon, 4 Sep 2017 04:02:23 +0000 (21:02 -0700)] 
bitbake: toaster: edit column list not sorted

The list of columns in the many 'Edit Columns' pop-ups became unsorted
with the 'Toaster Table' implementation. These entries need to be
gathered and sorted in the column processing.

[YOCTO #12004]

(Bitbake rev: 17aa1ef8f0a00dd3456aac199e558a2f96bf7ad9)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: recipe links broken for default layers
David Reyna [Mon, 4 Sep 2017 04:02:22 +0000 (21:02 -0700)] 
bitbake: toaster: recipe links broken for default layers

The default layers are missing the recipe link definitions in
the fixture files, and because they are predefined they do not
get the updated information from the Layer Index.

[YOCTO #12006]

(Bitbake rev: 2ff5592baf011de9c778d3c2481b8ed3912f1a4b)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: missing ToasterSetting import
David Reyna [Mon, 4 Sep 2017 04:02:21 +0000 (21:02 -0700)] 
bitbake: toaster: missing ToasterSetting import

The file "lsupdates.py" is missing the import of 'ToasterSetting',
and that breaks setting up and updating Toaster and its database.

[YOCTO #12036]

(Bitbake rev: d4aef1f1f03d88acc76423b55d8bd6c137f66f44)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: set default pokydirname if no external layers
Olaf Mandel [Sun, 3 Sep 2017 05:24:07 +0000 (22:24 -0700)] 
bitbake: toaster: set default pokydirname if no external layers

If no external layers are defined, pokydirname is not set. Rectify
this by taking the 'be.sourcedir' as the pokydirname.

[YOCTO #12015]

(Bitbake rev: 3b0f04c7b00aaf44ba146c432fcb5d6fd7dafcea)

Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: debug message for lists layers missing separators
Olaf Mandel [Sun, 3 Sep 2017 05:24:06 +0000 (22:24 -0700)] 
bitbake: toaster: debug message for lists layers missing separators

One of the debug messages during build contains a list of all layers
but without spaces or other separators between them. Use pformat
instead.

[YOCTO #12014]

(Bitbake rev: 9fe38f94b54a8644ac6f493c49e63dd6da5bfbdf)

Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: Order column in Tasks selectable
Awais Belal [Sun, 3 Sep 2017 05:24:05 +0000 (22:24 -0700)] 
bitbake: toaster: Order column in Tasks selectable

The build page provides tables related to performance that
cover build time, CPU time and disk IO. The "Edit columns"
drop down does not allow selection of the Order column and
makes it hidden as well which is not accurate from user
interaction point of view.
This patch enables the hideable property for the Order column
so it is hidden by default but the user can enable it through
the drop down if need be.

[YOCTO #11040]

(Bitbake rev: 1f1cc1edb21aeec684ef7323554794b33d84d414)

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: toaster: display error when the fstype select is empty
David Reyna [Sun, 3 Sep 2017 05:24:04 +0000 (22:24 -0700)] 
bitbake: toaster: display error when the fstype select is empty

There must be at least one FSTYPE selected in the Toaster bitbake
variable editor page. When the user deselects all the "Save"
button gets disabled, but the error message is missing.

[YOCTO #8126]

(Bitbake rev: 193577655b7491126ca5fa91fa76d79329e900c2)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-dev: Removed bad reference for creating patches.
Scott Rifenbark [Fri, 1 Sep 2017 21:27:04 +0000 (14:27 -0700)] 
kernel-dev: Removed bad reference for creating patches.

We do not want to mix traditional kernel development with
kernel development using devtool.  This reference implied that
was okay to do.

(From yocto-docs rev: 38c3a5d3b47e15880ca10ed30ae4a450ecc851cd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-dev: Added output to kernel clone example.
Scott Rifenbark [Fri, 1 Sep 2017 21:12:19 +0000 (14:12 -0700)] 
kernel-dev: Added output to kernel clone example.

(From yocto-docs rev: d5880262ab74499fbeef620af7907ee6e5d328fd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-dev: Removed bare clone stuff for trad. kernel dev.
Scott Rifenbark [Fri, 1 Sep 2017 21:01:56 +0000 (14:01 -0700)] 
kernel-dev: Removed bare clone stuff for trad. kernel dev.

Bare clone setup is no longer recommended or necessary for
traditional kernel development.  All that is required is to
clone the kernel Git repo locally.

(From yocto-docs rev: cbe6d79da4fc2d5bba530b0fe6abead7783bdfbe)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-dev: Some cleanup of the output for the kernel flow ex.
Scott Rifenbark [Thu, 31 Aug 2017 23:38:31 +0000 (16:38 -0700)] 
kernel-dev: Some cleanup of the output for the kernel flow ex.

(From yocto-docs rev: 30bbe308339ad0665d59d8238e9420d1d594332e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobsp-guide, mega-manual: Updated BSP dev flow figure
Scott Rifenbark [Thu, 31 Aug 2017 22:12:15 +0000 (15:12 -0700)] 
bsp-guide, mega-manual: Updated BSP dev flow figure

Removed spelling warning that was underlining "BSP" in the figure

(From yocto-docs rev: 354fe8c39057ab3aec24474ead65d2d13a5bb3b7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual, kernel-dev: Working kernel flow process using devtool
Scott Rifenbark [Wed, 30 Aug 2017 20:34:52 +0000 (13:34 -0700)] 
dev-manual, kernel-dev: Working kernel flow process using devtool

A work-in-progress of an example that modifies the kernel
using the devtool.  The procedure is not complete yet as it
does not run properly.

(From yocto-docs rev: 462ba2e46f237c294f05805ad5044291a085975d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodev-manual: Added "next steps" for setting up a native linux host
Scott Rifenbark [Mon, 28 Aug 2017 17:59:13 +0000 (10:59 -0700)] 
dev-manual: Added "next steps" for setting up a native linux host

The end of this section did not direct the user to the next
logical step for preparing a development host.  I added a
paragraph to guide the user to the next area they would need
to read based on their development methods.

(From yocto-docs rev: 4a1aa7800e7bca82dddef0ed83e14e075b3aa9f2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>