]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
9 years agobitbake: cache: Increase cache version after task checksum calculation changes
Richard Purdie [Wed, 18 May 2016 22:20:21 +0000 (23:20 +0100)] 
bitbake: cache: Increase cache version after task checksum calculation changes

(Bitbake rev: 6df0425a9d5c4c520eb7845d8f6175d9641779a7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: Implement support for per-task exports
Christopher Larson [Sat, 30 Apr 2016 19:52:48 +0000 (12:52 -0700)] 
bitbake: Implement support for per-task exports

(Bitbake rev: 4506ccf1495c6ed6e8ed678f4baa166bc94d1761)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bb.cooker: show limited traceback for parsing ExpansionError
Christopher Larson [Sat, 30 Apr 2016 19:52:46 +0000 (12:52 -0700)] 
bitbake: bb.cooker: show limited traceback for parsing ExpansionError

It's useful to see tracebacks for ExpansionErrors, but only if we skip the
leading bitbake-internal elements, otherwise we see elements of the expansion
process.

As one example:

Before:

    ERROR: ExpansionError during parsing /scratch/yocto-new/external-as-needed/poky/meta/recipes-core/glibc/glibc-locale_2.23.bb: Failure expanding variable PV[:=], expression was ${@get_external_libc_version(d)} which triggered exception AttributeError: 'module' object has no attribute 'external'

After:

    ERROR: ExpansionError during parsing /scratch/yocto-new/external-as-needed/poky/meta/recipes-core/glibc/glibc-locale_2.23.bb
    Traceback (most recent call last):
      File "PV[:=]", line 1, in <module>
      File "/scratch/yocto-new/external-as-needed/meta-sourcery/recipes-external/glibc/glibc-external-version.inc", line 3, in get_external_libc_version(d=<bb.data_smart.DataSmart
    object at 0x7f05d2566950>):
             sopattern = os.path.join(d.getVar('base_libdir', True), 'libc-*.so')
        >    found_paths = oe.external.find_sysroot_files([sopattern], d)
             if found_paths:
    ExpansionError: Failure expanding variable PV[:=], expression was ${@get_external_libc_version(d)} which triggered exception AttributeError: 'module' object has no attribute 'external'

(Bitbake rev: 7ff5b9eed82b7f4fd138fc6d746a0b79efbea98a)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomakedevs: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:26:16 +0000 (14:26 -0500)] 
makedevs: fix security issues

This avoids makedevs failure to compile with compiler flags
which elevate common string formatting issues into an error
(-Wformat -Wformat-security -Werror=format-security).

[YOCTO #9549]

(From OE-Core rev: f6b0dd13ac90bb431bb51e0cbf1681a4d9fbea14)

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agozip: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:25:11 +0000 (14:25 -0500)] 
zip: fix security issues

This patch avoids zip recipe fails to compile with compiler
flags which elevate common string formatting issues into an
error (-Wformat -Wformat-security -Werror=format-security).

[YOCTO #9552]

(From OE-Core rev: f63a36360b7e138d2a63c84b5b1a8287ffe3d2ae)

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agostat: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:25:35 +0000 (14:25 -0500)] 
stat: fix security issues

This patch avoids stat fails to compile with compiler flags which
elevate common string formatting issues into an error (-Wformat
-Wformat-security -Werror=format-security).

[YOCTO #9550]

(From OE-Core rev: f03c1f41933e9997a01a8b1dcdf9fb18579de1d1)

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopixman: Fix build on arches not defining FE_INVALID exception
Khem Raj [Wed, 18 May 2016 04:40:22 +0000 (21:40 -0700)] 
pixman: Fix build on arches not defining FE_INVALID exception

Nios2 e.g. only supports round to nearest in glibc

(From OE-Core rev: 074bf42d72ee2f5b155814eb24d52e06e2cebb9e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools-tarball: add nativesdk-locale-base-en-us
Robert Yang [Wed, 18 May 2016 07:43:45 +0000 (00:43 -0700)] 
buildtools-tarball: add nativesdk-locale-base-en-us

It is required by python3's bitbake.

(From OE-Core rev: 342701f25db0943fb1038ac3741a1feaab8458fd)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools-tarball: replace nativesdk-python with nativesdk-python3
Robert Yang [Wed, 18 May 2016 07:43:44 +0000 (00:43 -0700)] 
buildtools-tarball: replace nativesdk-python with nativesdk-python3

(From OE-Core rev: 97b5b150b3d3e82a5a42c1ea4351eed60aba7906)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools-tarball: remove nativesdk-python-pexpect
Robert Yang [Wed, 18 May 2016 07:43:43 +0000 (00:43 -0700)] 
buildtools-tarball: remove nativesdk-python-pexpect

It was added for testing, and not needed any more after:
4a8a74c62836a20610daf029d4cec0b3087758b2
Author: Robert Yang <liezhi.yang@windriver.com>
Date:   Mon Mar 21 02:25:50 2016 -0700

    gpg_sign.py: get rid of pexpect

So remove it.

(From OE-Core rev: 8ae1a5328e7ca820611fc1911195ebce6dc92237)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-git: add it for buildtools-tarball
Robert Yang [Wed, 18 May 2016 07:43:42 +0000 (00:43 -0700)] 
python3-git: add it for buildtools-tarball

Need add python3-git to buildtools-tarball for the py3 build.

(From OE-Core rev: fa19a541deb46dec1f4fbd60f08584daa06e2d6b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-gitdb: add it for python3-git
Robert Yang [Wed, 18 May 2016 07:43:41 +0000 (00:43 -0700)] 
python3-gitdb: add it for python3-git

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb

(From OE-Core rev: b13babf07d77bcbed21c24761e2f4ada9ba85507)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-async: add it for python3-gitdb
Robert Yang [Wed, 18 May 2016 07:43:40 +0000 (00:43 -0700)] 
python3-async: add it for python3-gitdb

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb -> python3-async

(From OE-Core rev: 816a518ecab232e4efe26ad203ce42c4543a79ca)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-smmap: add it for python3-gitdb
Robert Yang [Wed, 18 May 2016 07:43:39 +0000 (00:43 -0700)] 
python3-smmap: add it for python3-gitdb

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb -> python3-smmap

(From OE-Core rev: 762c280259b90d2cb827b8f8dc62490e36bd7df8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouseradd: use bindir_native for pseudo PATH
Martin Jansa [Wed, 18 May 2016 09:57:33 +0000 (11:57 +0200)] 
useradd: use bindir_native for pseudo PATH

* useradd/userdel functions will fail for recipes which override their target prefix
  (e.g. to /opt/foo), because it will try to use pseudo from native-sysroot/opt/foo/bin/pseudo

(From OE-Core rev: 96189e71a86c0f4833e8e51d678208fd908bfe30)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssh: Backport fix for CVE-2015-8325
Jussi Kukkonen [Wed, 18 May 2016 12:11:56 +0000 (15:11 +0300)] 
openssh: Backport fix for CVE-2015-8325

PAM environment vars must be ignored when UseLogin=yes

(From OE-Core rev: 0a06be81cb650def54a4c2059bd728c75954306f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssh: Upgrade 7.1p2 -> 7.2p2
Jussi Kukkonen [Wed, 18 May 2016 12:11:55 +0000 (15:11 +0300)] 
openssh: Upgrade 7.1p2 -> 7.2p2

Remove patches that are in the release.

(From OE-Core rev: 5e24780ac0fea9012f28f6e3f1040c431d3a742e)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: Improve listing by reducing unneeded spacing
Humberto Ibarra [Wed, 18 May 2016 16:17:59 +0000 (11:17 -0500)] 
scripts/oe-selftest: Improve listing by reducing unneeded spacing

The --list-tests option assumes a terminal of 150 characters wide,
which is clearly wrong. The output for this command is messy and
hard to understand for lower widths. Every command should look
good in a 80 characters terminal.

Unfortunately, this can't be done at the moment. The bad naming of
testcases have made the test names incredibly long.

This patch reduces spacing between columns and shows the tests
names in a concise and understandable way. The format is even the
same one required for running a testcase. Once the testcase naming
improves, this output will look even better.

[Yocto #9534]

(From OE-Core rev: 53da74155942febd520836cabf3aa727c53ce5ca)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: wic: add test_bmap test case
Ed Bartosh [Wed, 18 May 2016 12:34:19 +0000 (15:34 +0300)] 
oe-selftest: wic: add test_bmap test case

Tested generation of .bmap file using wic --bmap command
line option.

(From OE-Core rev: 1f21c46e517685ff1363d3b6f4fd840300b1930b)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add help for --bmap commandline option
Ed Bartosh [Wed, 18 May 2016 12:34:18 +0000 (15:34 +0300)] 
wic: add help for --bmap commandline option

Included description of -m/--bmap option to the help page
produced by 'wic help create'.

[YOCTO #9413]

(From OE-Core rev: 7c749d4cfe1642d70a6b3643422ef69dec1775fe)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: implement --bmap option
Ed Bartosh [Wed, 18 May 2016 12:34:17 +0000 (15:34 +0300)] 
wic: implement --bmap option

This option enables generation of <image>.bmap file for the
result image using native bmaptool.

[YOCTO #9413]

(From OE-Core rev: d64c7b37c40b052510419b4d6629b83319c833e4)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: add bmaptool to the list of utilities
Ed Bartosh [Wed, 18 May 2016 12:34:16 +0000 (15:34 +0300)] 
wic: add bmaptool to the list of utilities

Added bmaptool -> bmap-tools pair to the dictionary
executable -> recipe as bmaptool is going to be used by wic
to generate .bmap file.

[YOCTO #9413]

(From OE-Core rev: 4684ac5f4d823a6afedc57aad0aa417bb17ba950)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomkefidisk.sh: mount images as read-only
Raymond Tan [Tue, 17 May 2016 05:41:09 +0000 (13:41 +0800)] 
mkefidisk.sh: mount images as read-only

Mount the hddimg and rootfs.img as read-only when creating the bootable
image on the medium. Otherwise, the md5 checksum values of the hddimg will
be altered. As this changed checksum value might cause issue for users
whom would reuse the hddimg.

(From OE-Core rev: a1391c8a603f0ed972ee0bcc8c74999f5f43be43)

Signed-off-by: Raymond Tan <raymond.tan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-smartpm: Remove unnecessary error reporting improvement patch
Klauer, Daniel [Tue, 17 May 2016 12:59:25 +0000 (12:59 +0000)] 
python-smartpm: Remove unnecessary error reporting improvement patch

The error reporting improvements were merged upstream (smartpm 406541f569)
and refactored later (smartpm 20af0aac33), yet a part of the patch was
kept here (oe-core 5fc580fc44).

Due to the upstream refactoring the patch still applies cleanly, but it
isn't actually needed. The added changes are duplicate or dead code.

(From OE-Core rev: f1cfa9ab5d79198671275cea2c9864ce0cbcb9f0)

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-smartpm: Don't ignore error if RPM transaction fails without problems
Klauer, Daniel [Tue, 17 May 2016 12:58:04 +0000 (12:58 +0000)] 
python-smartpm: Don't ignore error if RPM transaction fails without problems

SmartPM could misinterpret RPM transaction error as success,
if ts.run() (RPM Python API) returns an empty problems list.

This could happen for example if the RPM database is partially corrupted
such that the transaction does not have any problems like conflicts or
missing dependencies, but still can't be committed.

The added patch fixes the problem in the upstream sources;
one of the existing patches has to be adjusted to still apply.

(From OE-Core rev: 1dc5f5d5c844585eec114be9480e0e4d8e60d09c)

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-smartpm: Fix channel command --remove-all option (again)
Klauer, Daniel [Tue, 17 May 2016 12:55:39 +0000 (12:55 +0000)] 
python-smartpm: Fix channel command --remove-all option (again)

SmartPM's --remove-all option was unusable, because the fix from
commit 03266e89a6 was lost in commit 5fc580fc44. Thus, add a new
patch to fix --remove-all.

It seems like the previous fix was lost by mistake:
Upstream merged the *old* version of the patch (smartpm 406541f569),
and when SmartPM in oe-core was upgraded to the new upstream release,
the --remove-all fix from the *new* patch was not carried over.

(From OE-Core rev: ba2adda60dd34b6a8feba413e3207dd8e4580294)

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-numpy: fix build failure with python-matplotlib
Armin Kuster [Tue, 17 May 2016 06:58:37 +0000 (23:58 -0700)] 
python-numpy: fix build failure with python-matplotlib

Fix for aarch64, mips64 and ppc64

numpy/core/include/numpy/npy_common.h:149:10: error:
|          #error Unsupported size for type off_t

(From OE-Core rev: dff54b8affad38ffcd5f80308f4c3a265dc2dbae)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooetest.py: Use the real ExportTestContext in exported tests
Mariano Lopez [Mon, 2 May 2016 13:19:19 +0000 (13:19 +0000)] 
oetest.py: Use the real ExportTestContext in exported tests

There are parts of the fuctionallity missing when using the
dummy ExportTestContext class in runexported.py.

This changes the use of ExportTestContext dummy class from
runexported.py to the real class in oetest.py.

(From OE-Core rev: b0f105eecf25d334dd5fd0d936ec98cb8430ed23)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooetest.py: Add default pscmd to oeTest
Mariano Lopez [Mon, 2 May 2016 13:19:18 +0000 (13:19 +0000)] 
oetest.py: Add default pscmd to oeTest

pscmd is used by some tests to get the process
running on the target. If the test are exported
there won't be any pscmd attibute in the oeTest.

This adds "ps" as default pscmd.

(From OE-Core rev: 44aa8c3b6747179a0c4c156fc4922d838cdc19a4)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage.bbclass: Remove exported test
Mariano Lopez [Mon, 2 May 2016 13:19:17 +0000 (13:19 +0000)] 
testimage.bbclass: Remove exported test

Exported tests now have their own class, so
the code in testimage is not needed anymore.

(From OE-Core rev: bd4dbe4f5ba334690fcb6f26eb06c793ac026b55)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runexported.py: Remove host dumper
Mariano Lopez [Mon, 2 May 2016 13:19:16 +0000 (13:19 +0000)] 
oeqa/runexported.py: Remove host dumper

The host dumper is used to get information about the host
running the test when a test fails. This is used for the
autobuilders of Yocto Project.

Now that exported tests have thier own class the host dumper
is not necessary anymore.

(From OE-Core rev: fab3e4865a356ceb73d7deab5b4fd38ed795ca72)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestexport.bbclass: Split testimage class
Mariano Lopez [Mon, 2 May 2016 13:19:15 +0000 (13:19 +0000)] 
testexport.bbclass: Split testimage class

This adds a new class that only export tests of images,
the code was taken from testimage class and most of it
wasn't modified. Just add some vars for the new class.

testexport class require testimage class to get the
test suites defined for all the images.

(From OE-Core rev: 3e4c429337966eea263b4258700843c909f496ec)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/oetest.py: Add class ExportTestContext
Mariano Lopez [Mon, 2 May 2016 13:19:14 +0000 (13:19 +0000)] 
oeqa/oetest.py: Add class ExportTestContext

Adding the class is needed to separate the exported test
from the test image; both test run under different conditions,
i.e. an exported test doesn't require to change the signal
handling.

This change adds clasess ExportTestContext and ImageTestContext,
both of them inherits from RuntimeTestContext. Also refactors
RuntimeTestContext class, to keep the code common in this class.

(From OE-Core rev: ef9618a6e7f99e485cc6b59484d11807475c7823)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopseudo: Work around issues with glibc 2.24
Richard Purdie [Wed, 18 May 2016 18:28:29 +0000 (19:28 +0100)] 
pseudo: Work around issues with glibc 2.24

There are issues with a change made to RTLD_NEXT behaviour in glibc 2.24
and that change was also backported to older glibc versions in some distros
like Fedora 23. This adds a workaround whilst the pseudo maintainer fixes
various issues properly.

(From OE-Core rev: 21c38a091c4a1917f62a942c4751b0fd11dce340)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: Add missing patch hunk back
Richard Purdie [Wed, 18 May 2016 22:13:06 +0000 (23:13 +0100)] 
glibc: Add missing patch hunk back

This hunk of patch went missing during the glibc upgrade to 2.24
and without it, uninative-tarball doesn't work properly. This adds
it back so we can spin a new version of uninative.

(From OE-Core rev: a76cbbd5633301dfcd29f18545e1e6f32e3b2448)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosdk-manual: Fixed three broken links to sections within manual.
Scott Rifenbark [Tue, 10 May 2016 00:22:56 +0000 (17:22 -0700)] 
sdk-manual: Fixed three broken links to sections within manual.

(From yocto-docs rev: 6c98ba1f0ac57e6ee9d2b77a4421e62bcb52a4c8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopkgconfig: Update AM_GLIB_GNU_GETTEXT macro
Jussi Kukkonen [Tue, 17 May 2016 12:18:55 +0000 (15:18 +0300)] 
pkgconfig: Update AM_GLIB_GNU_GETTEXT macro

This fixes
  error: m4_copy: won't overwrite defined macro: glib_DEFUN
with glib-2.0 >= 2.48.

(From OE-Core rev: 84b11bce72296d04a0e6bc9f18669284017c3704)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognome-doc-utils: Update AM_GLIB_GNU_GETTEXT macro
Jussi Kukkonen [Tue, 17 May 2016 12:18:54 +0000 (15:18 +0300)] 
gnome-doc-utils: Update AM_GLIB_GNU_GETTEXT macro

This fixes
  error: m4_copy: won't overwrite defined macro: glib_DEFUN
with glib-2.0 >= 2.48.

(From OE-Core rev: ce508c68bbea40d7f51c1975566ca70fcaa743a3)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoweston: Upgrade 1.9.0 -> 1.10.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:50 +0000 (16:22 +0300)] 
weston: Upgrade 1.9.0 -> 1.10.0

Support for multiple new protocols, many new features:
https://lists.freedesktop.org/archives/wayland-devel/2016-February/027039.html

* Weston now depends on wayland-protocols (which is protocol
  collection split off from weston).
* Remove upstreamed patches, add a patch to fix the wayland-protocols
  path used during build.
* Use HTTPS for tarball download

(From OE-Core rev: 9965dbeb89537be6ab97dc317b629fb24e5e6bbb)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowayland-protocols: Add recipe
Jussi Kukkonen [Mon, 16 May 2016 13:22:49 +0000 (16:22 +0300)] 
wayland-protocols: Add recipe

wayland-protocols is a collection of Wayland protocols split
out from weston. It is a build dependency for Weston 1.10.
* Added a patch to enable allarch build.
* Use HTTPS for tarball uri.

(From OE-Core rev: fc1f9c487de5a54a767932bcee7db039e3bcef30)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowayland: Upgrade 1.9.0 -> 1.10.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:48 +0000 (16:22 +0300)] 
wayland: Upgrade 1.9.0 -> 1.10.0

Yes, Wayland now depends on another xml parser (just for build time
dtd validation).

Use HTTPS for tarball uri.

(From OE-Core rev: 7d278ef0a28f47c75570f0f9c5d627d07f925045)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-2.0: Upgrade 2.46.2 -> 2.48.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:38 +0000 (16:22 +0300)] 
glib-2.0: Upgrade 2.46.2 -> 2.48.1

* Remove now unnecessary readlink patches and
  ignore-format-nonliteral-warning.patch
* Port relocate-modules.patch
* Add ${datadir}/gettext/its to FILES_${PN}-dev: this could be done in
  gettext.bbclass but so far glib is the first and only ITS rule
  installer

(From OE-Core rev: c99e920a344b29e053781008faa0328f416fdcc4)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-layers: convert to plugin-based
Christopher Larson [Sat, 30 Apr 2016 19:41:00 +0000 (12:41 -0700)] 
bitbake: bitbake-layers: convert to plugin-based

This uses bb.utils.load_plugins, based on the plugin handling in recipetool
and devtool in oe-core.

(Bitbake rev: 5e542df9b966a99b5a5b8aa7cf6100174aff54b2)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: knotty: Fix output buffering issues
Richard Purdie [Mon, 16 May 2016 21:52:00 +0000 (22:52 +0100)] 
bitbake: knotty: Fix output buffering issues

We need to flush the footer removal, else it may not be outputted until
the buffer is flushed as part of StreamHandler and this would lead to
it removing the ERROR output just printed which is extremely confusing.

Also ensure the footer is cleared before printing a summary as in
some cases it wasn't being removed, also leading to user confusion.

(Bitbake rev: 0e030c4d074c41859608dab5f3ad26b05f56b306)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: siggen: Fixes to handle sigdata/siginfo files only containing basehash data
Richard Purdie [Mon, 16 May 2016 21:51:08 +0000 (22:51 +0100)] 
bitbake: siggen: Fixes to handle sigdata/siginfo files only containing basehash data

The signature data file comparison functions are meant to be able to
handle data files containing just the base hash data. This had regressed
in some places so add fixes to allow these comparisons to be made. The
runtime components in the data files are optional.

(Bitbake rev: 2a6659fd748e255a02c2f9d047829d6edfe65317)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toaster: don't show "Rebuild" button for cancelled cli builds
Elliot Smith [Thu, 12 May 2016 14:10:38 +0000 (15:10 +0100)] 
bitbake: toaster: don't show "Rebuild" button for cancelled cli builds

[YOCTO #8515]

(Bitbake rev: 71a45c600e47af5a19412bc3c5a9ba242bfb4638)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toasterui: capture keyboard interrupts the same way as knotty
Elliot Smith [Thu, 12 May 2016 14:10:37 +0000 (15:10 +0100)] 
bitbake: toasterui: capture keyboard interrupts the same way as knotty

knotty captures two levels of keyboard interrupt: a single interrupt
or two interrupts in a row. These then trigger stateShutdown
and stateForceShutdown respectively.

toasterui doesn't have an equivalent way of capturing interrupts and
using them to shut down bitbake. Now that we are no longer using
knotty + XMLRPCServer for our command line builds (since switching to
per-project build directories), we see some odd side effects of this,
such as builds continuing after they have been interrupted on the
command line.

Bring toasterui in line with knotty (copy-paste most of the code
in knotty.py which deals with interrupts) so that a keyboard
interrupt actually shuts down the bitbake server (if not in
observe only mode).

Additionally use the cancel_cli_build() method to set the Build
status to CANCELLED in Toaster's db when we get keyboard interrupts.
This means that builds interrupted on the command line show as
cancelled (same as if they'd been cancelled from the Toaster UI),
as specified in the UI designs.

[YOCTO #8515]

(Bitbake rev: d39d2edca95900da433074ee95a192d7bfe7090d)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: buildinfohelper: add method to set current build as CANCELLED
Elliot Smith [Thu, 12 May 2016 14:10:36 +0000 (15:10 +0100)] 
bitbake: buildinfohelper: add method to set current build as CANCELLED

This will be used from toasterui to cancel the current command-line
build when a keyboard interrupt is captured.

[YOCTO #8515]

(Bitbake rev: 1486c770327b53bb5e04baa5f3ea26d8154aed63)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toaster: toastergui tests Fix toastertable tests
Michael Wood [Mon, 16 May 2016 13:50:41 +0000 (14:50 +0100)] 
bitbake: toaster: toastergui tests Fix toastertable tests

After clean ups remove api assumptions. Our table data often contains
html snippets to display certain things such as dependency pop overs or
simply links to other parts of the UI. Take these into account when
testing the values of the table data.

(Bitbake rev: 7f61a68f2caba538e302ca9c2727bb43a6c77c64)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toaster: toastertables: Clean up and fix up a number of items
Michael Wood [Mon, 16 May 2016 13:50:40 +0000 (14:50 +0100)] 
bitbake: toaster: toastertables: Clean up and fix up a number of items

 - Remove the unused 'computation' field
 - Remove the code to try to make the tables behave like an api
 - Remove custom JSON encoder in favour of DjangoJSONEncoder
 - Simplify get_data and add comments
 - Add exception type instead of using generic Exception
 - Clean up python style warnings

(Bitbake rev: 16d8198e8f6668c5fa5467ff4bda86c5d66a6cad)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Security fix CVE-2016-4490
Armin Kuster [Fri, 6 May 2016 07:11:57 +0000 (00:11 -0700)] 
gcc: Security fix CVE-2016-4490

(From OE-Core rev: 2fef37fab6967410aff33744c8843bcae028de56)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Security fix CVE-2016-2226
Armin Kuster [Fri, 6 May 2016 07:11:56 +0000 (00:11 -0700)] 
gcc: Security fix CVE-2016-2226

(From OE-Core rev: 9b85d69584fdb0d2c607fa820b4515ee38202ab9)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Security fix CVE-2016-4489
Armin Kuster [Fri, 6 May 2016 07:11:55 +0000 (00:11 -0700)] 
gcc: Security fix CVE-2016-4489

(From OE-Core rev: 84a1642f89801648728c61d3af42926b95533e07)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Security fix CVE-2016-4488
Armin Kuster [Fri, 6 May 2016 07:11:54 +0000 (00:11 -0700)] 
gcc: Security fix CVE-2016-4488

(From OE-Core rev: 4d8096d77139e31f80b4cb54b6b747bbf19bb959)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoeudev: remove eudev-hwdb from RRECOMMENDS_eudev
Robert Yang [Mon, 16 May 2016 01:42:21 +0000 (18:42 -0700)] 
eudev: remove eudev-hwdb from RRECOMMENDS_eudev

The eudev-hwdb needs 12M after install, this made small images like
core-image-minimal much biggher than before, and may also hurt the
devices which use udev, so remove it RRECOMMENDS_eudev by default.

(From OE-Core rev: dfb2dc45943d64f3d6da84c0d7b99ac5254fc738)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomesa-demos: OpenVG demos with single frame need eglSwapBuffer
Tom Hochstein [Mon, 16 May 2016 15:35:33 +0000 (10:35 -0500)] 
mesa-demos: OpenVG demos with single frame need eglSwapBuffer

sp and text demos rendering single frame. to display the
single frame rendered needed a eglSwapBuffer to diplay to window.
Hence added eglutPostRedisplay to display the frame.

(From OE-Core rev: 894885ab5de473abf860b8444e591fa2ec804a14)

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/base: get_lic_checksum_file_list imporve validaton of url's
Aníbal Limón [Wed, 11 May 2016 16:41:55 +0000 (11:41 -0500)] 
classes/base: get_lic_checksum_file_list imporve validaton of url's

When specify an URL different that supported file:// the function
returns an empty path causing an exception without notice the user
that the URL is Malformed.

[YOCTO #9211]

(From OE-Core rev: 6c28251d3d187b60ceb534055dbd8b4fffd06429)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocoreutils: fix for native and nativesdk
Dengke Du [Tue, 26 Apr 2016 05:59:19 +0000 (22:59 -0700)] 
coreutils: fix for native and nativesdk

The do_install_append is used for moving/renaming for ALTERNATIVE, but
it breaks native, for example there is no ln, but ln.coreutils, that
makes coreutils-native don't work. This patch fixes the problem.

(From OE-Core rev: 1b5b831d1bbb92760ce01b38347cf0bcaa1bb59f)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-buildenv-internal: add BBPATH_EXTRA to BB_ENV_EXTRAWHITE_OE
Robert Yang [Mon, 25 Apr 2016 08:47:43 +0000 (01:47 -0700)] 
oe-buildenv-internal: add BBPATH_EXTRA to BB_ENV_EXTRAWHITE_OE

So that user can easily make their own conf files such as conf/site.conf
work. For example, poky's default BBPATH in bblayers.conf is:
BBPATH = "${TOPDIR}"
Will change it to:
BBPATH_EXTRA ??= ""
BBPATH = "${BBPATH_EXTRA}${TOPDIR}"

When user sets BBPATH_EXTRA in env to their own dir which contains
conf/site.conf, it will work.

Note, BBPATH_EXTRA must end with ":", we can't set BBPATH as
"${BBPATH_EXTRA}:${TOPDIR}" since the sanity would fail when
BBPATH_EXTRA is null.

[YOCTO #7837]

(From OE-Core rev: a3d223284854a21c84e8f6d075d23b32789afa01)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognu-efi: set COMPATIBLE_HOST_armv4 to null
Robert Yang [Thu, 21 Apr 2016 06:16:47 +0000 (23:16 -0700)] 
gnu-efi: set COMPATIBLE_HOST_armv4 to null

It doesn't build with armv4:
lib1funcs.S: Assembler messages:
Assembler messages:
gnu-efi-3.0.3/lib/arm/lib1funcs.S:140: Error: selected processor does not support `clz r3,r1' in ARM mode
gnu-efi-3.0.3/lib/arm/div64.S:95: Error: selected processor does not support `clz r2,r4' in ARM mode
gnu-efi-3.0.3/lib/arm/lib1funcs.S:140: Error: selected processor does not support `clz r2,r0' in ARM mode
[snip]

(From OE-Core rev: a3e958fae0cd6349a03fececcaa3d880c73b9298)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocogl-1.0: set COMPATIBLE_HOST_armv4 to null
Robert Yang [Thu, 21 Apr 2016 06:16:47 +0000 (23:16 -0700)] 
cogl-1.0: set COMPATIBLE_HOST_armv4 to null

It doesn't build with armv4:
cogl-texture-deprecated.c  -fPIC -DPIC -o deprecated/.libs/cogl-texture-deprecated.o
{standard input}: Assembler messages:
{standard input}:831: Error: selected processor does not support `clz r3,r0' in ARM mode
make[4]: *** [deprecated/cogl-fixed.lo] Error 1
[snip]

(From OE-Core rev: 858dc0b21e2b65b90c115411c678ae8ca80134e5)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssh: change URI to http:
Ross Burton [Mon, 16 May 2016 09:42:24 +0000 (10:42 +0100)] 
openssh: change URI to http:

The OpenBSD FTP server isn't accepting connections from wget, which breaks
fetches.  Luckily they also have a HTTP server on the same host.

[ YOCTO #9628 ]

(From OE-Core rev: 8b10f0af3c434145b460fd5d7a9f394dc1284260)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl: use PACKAGESPLITFUNCS instead of populate_packages_prepend
Guojian Zhou [Mon, 16 May 2016 08:53:38 +0000 (16:53 +0800)] 
perl: use PACKAGESPLITFUNCS instead of populate_packages_prepend

This is cleaner and leads to more accurate profiles.

(From OE-Core rev: 76727170def4fe540bed28f79fca09037a1b3fe4)

Signed-off-by: Guojian Zhou <guojian.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibsolv: upgrade to 0.6.20
Maxin B. John [Mon, 16 May 2016 12:15:29 +0000 (15:15 +0300)] 
libsolv: upgrade to 0.6.20

0.6.19 -> 0.6.20

Added the following patch to fix build with musl:
        0001-Add-fallback-fopencookie-implementation.patch

(From OE-Core rev: dcc5d6bc2e3e5848f36fe1001b8cb65576047b7d)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibproxy: update to version 0.4.13
Maxin B. John [Mon, 16 May 2016 12:15:28 +0000 (15:15 +0300)] 
libproxy: update to version 0.4.13

1. libproxy moved from google-code to github
2. Remove upstreamed patch:
        a) 0001-test-Include-sys-select.h-for-select.patch

(From OE-Core rev: 34e2db8ea7eb51be8549f343d6ff19cdd7db3ff1)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxproto: Upgrade 7.0.28 -> 7.0.29
Jussi Kukkonen [Mon, 16 May 2016 13:22:47 +0000 (16:22 +0300)] 
xproto: Upgrade 7.0.28 -> 7.0.29

(From OE-Core rev: 9e83b6d4657b58fea844d4d9d3320b8c25f0cc7e)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoexpat: Upgrade 2.1.0 -> 2.1.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:46 +0000 (16:22 +0300)] 
expat: Upgrade 2.1.0 -> 2.1.1

* Remove backported CVE patch
* Update autotools patch
* Update SRC_URI to match current archive type

(From OE-Core rev: 8a5a90aa6a7f398803f432038d56cdfea1651aaa)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibsoup-2.4: Upgrade 2.52.2 -> 2.54.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:45 +0000 (16:22 +0300)] 
libsoup-2.4: Upgrade 2.52.2 -> 2.54.1

(From OE-Core rev: 69803cf99577c6eefc8074aa40be85cefb154c4b)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agojson-glib: Upgrade 1.0.4 -> 1.2.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:44 +0000 (16:22 +0300)] 
json-glib: Upgrade 1.0.4 -> 1.2.0

(From OE-Core rev: 3930105ec36581f4b4bce10ffd33f84509a83cd0)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinputproto: Upgrade 2.3.1 -> 2.3.2
Jussi Kukkonen [Mon, 16 May 2016 13:22:43 +0000 (16:22 +0300)] 
inputproto: Upgrade 2.3.1 -> 2.3.2

(From OE-Core rev: 1355114f89084a340671408d8e19abbd2faf81cc)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogsettings-desktop-schemas: Upgrade 3.19.3 -> 3.20.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:42 +0000 (16:22 +0300)] 
gsettings-desktop-schemas: Upgrade 3.19.3 -> 3.20.0

(From OE-Core rev: 2f20857b82d960517bdfddf7598e88d9e44acb96)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdk-pixbuf: Upgrade 2.32.3 -> 2.34.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:41 +0000 (16:22 +0300)] 
gdk-pixbuf: Upgrade 2.32.3 -> 2.34.0

(From OE-Core rev: b6ba695f38e5bbe5465d786a4661b9a3d9405455)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopango: Upgrade 1.38.1 -> 1.40.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:40 +0000 (16:22 +0300)] 
pango: Upgrade 1.38.1 -> 1.40.1

(From OE-Core rev: 8c3cebc2313bfec9a0e313fd21d1bac9c250580c)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-networking: Upgrade 2.46.1 -> 2.48.2
Jussi Kukkonen [Mon, 16 May 2016 13:22:39 +0000 (16:22 +0300)] 
glib-networking: Upgrade 2.46.1 -> 2.48.2

(From OE-Core rev: e68c645a5f1da9808b6450456847f367e9416e17)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: Ensure we sort the value used for SSTATETASKS for determinism
Richard Purdie [Mon, 16 May 2016 21:53:25 +0000 (22:53 +0100)] 
sstate: Ensure we sort the value used for SSTATETASKS for determinism

This avoids 'basehash changed' errors with python 3 but could break
build determinism in general.

(From OE-Core rev: 488f88fc12eea9788e5db1de354f0118e2c58878)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/oeqa: Update for print statements and file() -> open() for python3
Richard Purdie [Mon, 16 May 2016 07:29:52 +0000 (08:29 +0100)] 
classes/oeqa: Update for print statements and file() -> open() for python3

Found some more syntax cleanups needed for python3.

(From OE-Core rev: 1181d86e8707c5b8e8d43d5e785d7d9cf01fa491)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa: Print function python3 fixes
Richard Purdie [Sun, 15 May 2016 09:23:25 +0000 (10:23 +0100)] 
oeqa: Print function python3 fixes

Use print functions for comptibility with python3.

(From OE-Core rev: 0c89a8a276b67a9292ee3100003c789126bd9ea9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotcmode-default: Bump glibc,gdb
Khem Raj [Fri, 13 May 2016 16:46:52 +0000 (09:46 -0700)] 
tcmode-default: Bump glibc,gdb

glibc 2.24, gdb 7.11

(From OE-Core rev: 95b0270e82b5d05d651c05e9c86681978013b346)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosecurity_flags: Enable security flags on leafpad, ltp and libuser.
Aníbal Limón [Fri, 13 May 2016 19:49:28 +0000 (14:49 -0500)] 
security_flags: Enable security flags on leafpad, ltp and libuser.

Now we have patches that solves the security formatting issues into
those packages.

(From OE-Core rev: 901cfa5a217f78464f8b81a990039fe60810650f)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoleafpad: Fix security formating issues.
Aníbal Limón [Fri, 13 May 2016 19:49:27 +0000 (14:49 -0500)] 
leafpad: Fix security formating issues.

[YOCTO #9546]

(From OE-Core rev: 9f9d7e4934597bef099ee3986093d2b31592e040)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibuser: Fix security string formatting issues.
Aníbal Limón [Fri, 13 May 2016 19:49:26 +0000 (14:49 -0500)] 
libuser: Fix security string formatting issues.

[YOCTO #9547]

(From OE-Core rev: c3f5a05f8d482608be964d200938ae3ed745fe09)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoltp: Fixes security string printf on testcases/network/nfsv4/acl/acl1.c
Aníbal Limón [Fri, 13 May 2016 19:49:24 +0000 (14:49 -0500)] 
ltp: Fixes security string printf on testcases/network/nfsv4/acl/acl1.c

[YOCTO #9548]

(From OE-Core rev: 9738bbcee1f0ad274a2c62bb483311ef99238ea6)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.4: gcc6 build fixes (powerpc and mips)
Bruce Ashfield [Fri, 13 May 2016 16:46:53 +0000 (09:46 -0700)] 
linux-yocto/4.4: gcc6 build fixes (powerpc and mips)

Khem provided fixes to fix gcc6 build issues, these are safe for
all gcc versions, so we integrate them directly.

(From OE-Core rev: f1c75b93a4e11425e595c5ce043fbb0276a41931)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc-initial.inc: fix py3 SyntaxError in cfgscript print()
Tim Orling [Sat, 14 May 2016 08:28:42 +0000 (09:28 +0100)] 
glibc-initial.inc: fix py3 SyntaxError in cfgscript print()

Update so this works with python3.

(From OE-Core rev: 20190566db6d77ee0ccd799587db3dfa35e8029a)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautotools.bbclass: fix py3 SyntaxError in cfgscript print()
Tim Orling [Sat, 14 May 2016 08:28:39 +0000 (09:28 +0100)] 
autotools.bbclass: fix py3 SyntaxError in cfgscript print()

Update so this works with python3.

(From OE-Core rev: f533a1f78411f5537f1395496aa39f453fee581c)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/decorators: Use wraps consistently
Richard Purdie [Sat, 14 May 2016 08:26:52 +0000 (09:26 +0100)] 
oeqa/decorators: Use wraps consistently

We want the decorator to leave the function names of the test unchanged. Some
decorators are already using wraps for this but not all. Fix this to be consistent
allowing inspection of the test to give the wanted values.

(From OE-Core rev: 9e4d60b29ff5667d23a89953ce7139b34c11d40b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: Update SRCREV for genericx86* for 4.4
Alejandro Hernandez [Fri, 13 May 2016 16:58:46 +0000 (16:58 +0000)] 
linux-yocto: Update SRCREV for genericx86* for 4.4

Upgrades to Linux version 4.4.10

(From meta-yocto rev: c2d6a13ed0f314085869c8b3ee3033928f41b335)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: Update SRCREV for genericx86* for 4.1
Alejandro Hernandez [Fri, 13 May 2016 16:58:45 +0000 (16:58 +0000)] 
linux-yocto: Update SRCREV for genericx86* for 4.1

Upgrades to Linux version 4.1.22

(From meta-yocto rev: 76eecb8b487f571acfaa4d56375baec37d3f454f)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toaster: use new syntax of except statement
Ed Bartosh [Tue, 10 May 2016 14:10:30 +0000 (17:10 +0300)] 
bitbake: toaster: use new syntax of except statement

Used except 'except (<exception1>, <exception2>):' syntax as it's
supported by python 2 and pythone 3.

Old syntax 'except <exception1>, <exception2>:' is not supported
by python 3.

[YOCTO #9584]

(Bitbake rev: d19e305ffa44a848b02ede63dc5de8d2640089e6)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toaster: use print function in toaster script
Ed Bartosh [Tue, 10 May 2016 08:31:14 +0000 (11:31 +0300)] 
bitbake: toaster: use print function in toaster script

Used print() function instead of print statement
to make toaster script to work with both python 2 and python 3

[YOCTO #9584]

(Bitbake rev: 09d37ee51219edcd0be6fd24c82fce392533b39b)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toaster: use 'in' instead of has_key
Ed Bartosh [Tue, 10 May 2016 13:27:19 +0000 (16:27 +0300)] 
bitbake: toaster: use 'in' instead of has_key

Dictionary method has_key is deprecated in python 2 and absent
in python 3.

Used '<key> in <dict>' statement to make the code working on
both python 2 and python 3.

[YOCTO #9584]

(Bitbake rev: 3d7ad7ba0d1a6f688ae885817c049f2a8ced11b5)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: server/process: Fix missing log messages issue
Richard Purdie [Thu, 12 May 2016 22:27:25 +0000 (23:27 +0100)] 
bitbake: server/process: Fix missing log messages issue

Currently if the server dies, its possible that log messages are never
displayed which is particularly problematic if one of those messages
is the exception and backtrace the server died with.

Rather than having the event queue exit as soon as the server disappears,
we should pop events from the queue until its empty before exiting.

This patch tweaks that code so that even if the server is dead and we're
going to exit, we return any events left in the pipe. This makes
debugging certain failures much easier.

(Bitbake rev: 29f6ade68fb2b506a23a7eb3a00cdcffa291b362)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cooker/toasterui: Drop SEND_DEPENDS_TREE UI feature
Richard Purdie [Fri, 13 May 2016 13:02:56 +0000 (14:02 +0100)] 
bitbake: cooker/toasterui: Drop SEND_DEPENDS_TREE UI feature

Now the event is sent unconditionally we can drop this feature
as its no longer needed.

(Bitbake rev: 473deeb0fc6065693e1fcfcbb8b79753103db537)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: runqueue.py: always emit bb.event.DepTreeGenerated
Patrick Ohly [Thu, 12 May 2016 15:00:10 +0000 (17:00 +0200)] 
bitbake: runqueue.py: always emit bb.event.DepTreeGenerated

The data included in the event is useful for implementing a pre-build
check that warns about unexpected components, for example because of
an incorrect configuration or changed dependencies.

Such a check can be done in a .bbclass that gets inherited
globally. But in contrast to a UI, such a class cannot request that
the event shall be emitted, and thus the event has to be emitted
whether there is a consumer or not.

This was done conditionally earlier out of concerns about the
performance impact. But now events are handled more efficiently, so
that concern no longer seems valid: in some simple testing (admittedly
on a fast build workstation), the two lines (generating the data and
emitting the event with it) only took about 0.05 seconds (measured
with timeit). That was for a build with roughly 500 recipes (from
pn-buildlist aka depgraph['pn']), triggered via the command line. That
was even with a consumer of the data active and doing some work, so it
should be even faster when there is no consumer.

(Bitbake rev: 5ddaf5b7ed1001d2dd3f67e7a6d704afa85479d2)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoselftest: add bmap test
Ed Bartosh [Mon, 2 May 2016 12:22:34 +0000 (15:22 +0300)] 
selftest: add bmap test

Added test_bmap to imagefeatures tests.
It tests if bmap file is generated for the images and
if the image is sparse.

[YOCTO #9414]

(From OE-Core rev: db27d8fbb44d2cdd524ac992630c781fd0c45b1b)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage types: add bmap generation option
Alexander D. Kanevskiy [Mon, 2 May 2016 12:22:33 +0000 (15:22 +0300)] 
image types: add bmap generation option

bmap image conversion type allows to create block map files
for sparse images. Bmap file can be used together with bmap-tools
for efficiently flash images to raw devices (hdd or usb drive)

[YOCTO #9414]

(From OE-Core rev: d3495d7b5ac90439691bafc5717a3bf1cf014737)

Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobmap-tools: initial commit, version 3.2
Ed Bartosh [Mon, 2 May 2016 12:22:32 +0000 (15:22 +0300)] 
bmap-tools: initial commit, version 3.2

Bmap-tools - tools to generate block map (AKA bmap) and flash images
using bmap. Bmaptool is a generic tool for creating the block map
(bmap) for a file and copying files using the block map.

The idea is that large file containing unused blocks, like raw system
image files, can be copied or flashed a lot faster with bmaptool than
with traditional tools like "dd" or "cp".

[YOCTO #9414]

(From OE-Core rev: d18429a5b899de95fa2896aa46ce6c4a04739be5)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage_types: add support for zip compression
Patrick Ohly [Fri, 6 May 2016 14:58:44 +0000 (17:58 +0300)] 
image_types: add support for zip compression

Support for the other compression format is not always readily
available on all OSes. Using zip instead of, say, xz is less
efficient, but perhaps more user-friendly for users on such OSes.

(From OE-Core rev: 27764738aa928959ca564e7299cf205c08684661)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: use next builtin instead of .next method
Ed Bartosh [Wed, 4 May 2016 13:06:27 +0000 (16:06 +0300)] 
wic: use next builtin instead of .next method

Generators in Python 3 don't have .next method. It's recommended
to use 'next' builtin instead. As it also present in Python >= 2.6
it should make wic code compatible with both Python 2 and Python 3.

[YOCTO #9412]

(From OE-Core rev: 9b7ab632e47d786dd979262015dbfb1254103f83)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: don't encode unicode strings
Ed Bartosh [Wed, 4 May 2016 13:06:26 +0000 (16:06 +0300)] 
wic: don't encode unicode strings

Removed check for unicode type as it doesn't work in Python 3.
This check is not needed for wic as all its output seem to be
strings. This allows to run code under both pythons.

[YOCTO #9412]

(From OE-Core rev: a56924b4a0102e401b5e37d857a08bab15da974e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>