]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
9 years agobitbake: toaster: tests: Remove references to LayerSource model
Michael Wood [Thu, 21 Jul 2016 13:43:28 +0000 (14:43 +0100)] 
bitbake: toaster: tests: Remove references to LayerSource model

Remove and replace layersource model references in the tests and test
data. Remove the orm/test as this only tested LayerSource interactions
which have now been removed.

(Bitbake rev: 61a47cbc92c856690cb0e8da7102b2e669eaee0a)

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: Replace references to LayerSource models
Michael Wood [Thu, 21 Jul 2016 13:43:27 +0000 (14:43 +0100)] 
bitbake: toaster: Replace references to LayerSource models

Replace references to the now deprecated layersource models across
Toaster with the new enums for layer source types.

(Bitbake rev: 48c09c62eb979d840132e58144f0d81ffee675b1)

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: lsupdates Add layerindex fetcher
Michael Wood [Thu, 21 Jul 2016 13:43:26 +0000 (14:43 +0100)] 
bitbake: toaster: lsupdates Add layerindex fetcher

Move and refactor the layerindex layer source update mechanism so that
we don't have to track the layerindex objects in the toaster database.
Move this out of the orm and into the management command.

Paves the way for future improvement to allow you to specify a layer
index server as an argument to the command.

(Bitbake rev: f83527edc6d52a34cd73a9c3650ee484407e2e0c)

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: models Remove LayerSource models and replace with enum
Michael Wood [Thu, 21 Jul 2016 13:43:25 +0000 (14:43 +0100)] 
bitbake: toaster: models Remove LayerSource models and replace with enum

We had a lot of complexity around different layer sources to allow for
multiple sources and different priorities for these source. This was
implemented using rigged abstract classes which represented the
different layer sources when in fact just an enum/flag on the
layer_version object is sufficient for our needs.

Remove the LayerSourcePriority object as this is not needed. We no longer
have a problem of multiple layers coming from multiple sources so this
is not needed. Two migrations are added to first remove the child models
which represented layersources. Then a second migration is needed to
remove the LayerSource model it's self as Django can't understand the
non-standard base class dependency. Triggering this issue:
https://docs.djangoproject.com/en/1.8/topics/migrations/#dependencies

Clean up a number of flake8 warnings in classes which were modified.

[YOCTO #9853]

(Bitbake rev: 26624740418de95adb1f4a970a30a5f1149ebb79)

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: bldcollector admin Remove LayerSourceAdmin
Michael Wood [Thu, 21 Jul 2016 13:43:24 +0000 (14:43 +0100)] 
bitbake: toaster: bldcollector admin Remove LayerSourceAdmin

Remove the LayerSource admin from django admin interface. LayerSources
are not going to be manageable from the admin interface.

(Bitbake rev: 1c20ffcf88c5b73f6cf5e9b69b81e6bc8cd2493d)

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: loadconf remove Loading LayerSources
Michael Wood [Thu, 21 Jul 2016 13:43:23 +0000 (14:43 +0100)] 
bitbake: toaster: loadconf remove Loading LayerSources

We don't need to configure layer sources in the initial configuration as
this information is provided by the models.

(Bitbake rev: fd56c152699bc4c2d22b87728d0fefbff5209135)

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: lib/bb/progress: avoid possibility of start event being reported twice
Paul Eggleton [Fri, 22 Jul 2016 12:18:39 +0000 (00:18 +1200)] 
bitbake: lib/bb/progress: avoid possibility of start event being reported twice

In MultiStageProgressReporter, set a guard when we start the progress
so that it can't happen more than once. This fixes "Initialising
tasks.." being shown twice in succession when running bitbake in
non-interactive terminal mode.

(Bitbake rev: 923e68e069127ee7f6e11b91eb1cfa09d502a110)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: knotty: don't display ETA for tasks with progress
Paul Eggleton [Fri, 22 Jul 2016 12:18:38 +0000 (00:18 +1200)] 
bitbake: knotty: don't display ETA for tasks with progress

It turns out that progress information we can extract from a task is
rarely apportioned closely enough to the time taken for the ETA to be
accurate, so showing it is going to be misleading most of the time for
anything but the most basic of examples. Let's just remove it and avoid
misleading (or worse, annoying) the user.

Fixes [YOCTO #9986].

(Bitbake rev: 235db4870b11db97250979e647b54cdb5ce4fbb6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: knotty: fix some minor bugs in BBProgress
Paul Eggleton [Fri, 22 Jul 2016 12:18:37 +0000 (00:18 +1200)] 
bitbake: knotty: fix some minor bugs in BBProgress

If you specify custom widgets then we don't want to assume where the
"extra" position is - you should have to specify it, and if it isn't
specified it shouldn't just wipe out the last widget or you can start to
see odd behaviour if you're modifying the code.

(Bitbake rev: 19e33c10feb1637589ceb05b5e8d58b1e012ccb8)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: fetch: copy files with -H
Enrico Scholz [Thu, 26 May 2016 00:08:06 +0000 (02:08 +0200)] 
bitbake: fetch: copy files with -H

When using a PREMIRROR with plain (non-unpack) files, a SRC_URI like

SRC_URI = "file://devmem2.c"

will cause devmem2.c to be a symlink in the WORKDIR pointing to the
local PREMIRROR.

Trying to apply a patch on this file will either modify the file on
the PREMIRROR or will fail due to sanity checks:

ERROR: devmem2-1.0-r7 do_patch: Command Error: 'quilt --quiltrc /cache/build-ubuntu/sysroots/x86_64-oe-linux/etc/quiltrc push' exited with 1  Output:
Applying patch devmem2-fixups-2.patch
File devmem2.c is not a regular file -- refusing to patch

(Bitbake rev: cfd481fe9799e7a4c6bfac32e56cc91cfcd81088)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cache: Don't interleave pickle cache file writing
Richard Purdie [Fri, 22 Jul 2016 10:28:57 +0000 (11:28 +0100)] 
bitbake: cache: Don't interleave pickle cache file writing

For some reason the data written in this way is coming back out the
files out of order. I've not been able to simplify the test case to a
point where this was standalone reproducible. Simplify the code and
write out the cache files sequentially since this seems to avoid the
errors and makes the code more readable.

(Bitbake rev: 14ec47f5f0566dbd280fae8a03160c8500ad3929)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cache: Add better cache loading sanity checks
Richard Purdie [Fri, 22 Jul 2016 10:28:23 +0000 (11:28 +0100)] 
bitbake: cache: Add better cache loading sanity checks

We've seen cache corruption where the pairs come out in a different
order to the way we saved them for unknown reasons. Add better sanity
checking to give a more user friendly error rather than a crash/traceback.

Also allows the system to reparse and recover.

(Bitbake rev: 4be4a15491530bd6dc018033ad3d4b2562ab6e23)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cache: Drop/simplify pointless type checking
Richard Purdie [Fri, 22 Jul 2016 10:27:51 +0000 (11:27 +0100)] 
bitbake: cache: Drop/simplify pointless type checking

Since we no longer have random data like version fields in these structures
and we can assume any extra cache data subclasses our class, simplify the
code.

This is mostly reindenting after removal of the pointless type checks.

(Bitbake rev: 5eb36278ac9975de1945f6da8161187320d90ba7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cache: Improve versions fields handling
Richard Purdie [Fri, 22 Jul 2016 10:27:21 +0000 (11:27 +0100)] 
bitbake: cache: Improve versions fields handling

Firstly, don't store the versions fields in memory in the cache objects
data store. This just complicates the code for no good reason.

Secondly, write the version fields to all cache files, not just the
core one. This makes everything consistent and easier.

(Bitbake rev: cb666262b2f986b5d9331dfb30458ef1a151fa4d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cache: Correctly handle missing extra caches
Richard Purdie [Thu, 21 Jul 2016 16:27:35 +0000 (17:27 +0100)] 
bitbake: cache: Correctly handle missing extra caches

If an "extras" cache file is corrupted, the system would not notice
and later fail with errors about missing entries. Add a test for this
which means we can fall back to re-parsing in those cases.

[YOCTO #9902]

(Bitbake rev: 51843d8f2bbe2e54db7593ca61984abe70423ef6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cache: Move the parsing message to a more logical place
Richard Purdie [Thu, 21 Jul 2016 16:25:19 +0000 (17:25 +0100)] 
bitbake: cache: Move the parsing message to a more logical place

Otherwise you can look at the log and wonder why parsing isn't happening
when it really is due to other code paths.

(Bitbake rev: b48d95677a4d285a77cda2892179965f7f8f06dd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4
Alejandro Hernandez [Tue, 19 Jul 2016 16:46:25 +0000 (16:46 +0000)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4

(From meta-yocto rev: 6b55634430188b37ccf19b264502270a64ce4d58)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: Update genericx86* SRCREVs for linux-yocto 4.1
Alejandro Hernandez [Tue, 19 Jul 2016 16:46:24 +0000 (16:46 +0000)] 
linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.1

(From meta-yocto rev: b3abc0b3866d5e030ebdc358b9562c900dd4e0f7)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake: implement idle timeout for xmlrpc server
Ed Bartosh [Tue, 19 Jul 2016 20:20:34 +0000 (23:20 +0300)] 
bitbake: bitbake: implement idle timeout for xmlrpc server

Idle timeout can be specified either by -T/--idle-timeout option or
by sessing BBTIMEOUT environment variable. Bitbake xmlrpc server
will unload itself when timeout exprired, i.e. when server is idle
for more than <idle timeout> seconds.

[YOCTO #5534]

(Bitbake rev: 5fa0b3a19e7d0f40790f737abeddf499d53f1f6a)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake: implement --foreground command line option
Ed Bartosh [Tue, 19 Jul 2016 19:54:38 +0000 (22:54 +0300)] 
bitbake: bitbake: implement --foreground command line option

This option makes bitbake xmlrpc server to run in foreground.
It should be useful for debugging purposes.

(Bitbake rev: 9d4254be5853a546a346bf0d19919dcfba12773d)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Added new section on command-line execution
Scott Rifenbark [Wed, 8 Jun 2016 01:24:27 +0000 (18:24 -0700)] 
bitbake: bitbake-user-manual: Added new section on command-line execution

Needed a section on executing a list of task and recipe combinations.

(Bitbake rev: 6f6cd0674fd1595f4e74b7da692e0c348b2660c6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Applied review edits to "Recursive Dependencies"
Scott Rifenbark [Tue, 19 Jul 2016 18:35:26 +0000 (11:35 -0700)] 
bitbake: bitbake-user-manual: Applied review edits to "Recursive Dependencies"

Added a minor tweak to the third paragraph to be more inclusive
of the topic.

Fixes [YOCTO #9970]

(Bitbake rev: a5d36e8bccf35ffbca41a4facaa041d36f587529)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Fixed typo in the BBDEBUG variable description.
Scott Rifenbark [Sat, 16 Jul 2016 19:04:57 +0000 (12:04 -0700)] 
bitbake: bitbake-user-manual: Fixed typo in the BBDEBUG variable description.

In the BBDEBUG variable description, the "-d" parameter needed to
be "-D".  Fixed it.

Fixes [YOCTO #9950]

(Bitbake rev: 475e7611f6c5b884d86152cb0b334e9d96849608)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Added review changes to BBCLASSEXTEND description
Scott Rifenbark [Thu, 14 Jul 2016 19:52:30 +0000 (12:52 -0700)] 
bitbake: bitbake-user-manual: Added review changes to BBCLASSEXTEND description

Fixes [YOCTO #9909]

Added some technical clarifications to the existing note to be clear
about what is causing the limitations in this case.  Applied some
formatting fixed to for the use of the include word.

(Bitbake rev: e9ad2e0f6d2681dd793cc39c468eb86e57fd6f48)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Added review changes to recursive section.
Scott Rifenbark [Thu, 14 Jul 2016 19:00:09 +0000 (12:00 -0700)] 
bitbake: bitbake-user-manual: Added review changes to recursive section.

Applied formatting to a "after" word that should be
<filename>after</filename>.  Also added a new clarifying paragraph in
the "Recursive Dependencies" section.

Fixes [YOCTO #9861]

(Bitbake rev: ada90f68afd17cb85cb5957f3f91b537ee3599f6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Addeds support for the Perforce Fetcher
Andrew Bradford [Thu, 14 Jul 2016 18:42:56 +0000 (11:42 -0700)] 
bitbake: bitbake-user-manual: Addeds support for the Perforce Fetcher

Added a new Perforce Fetcher section in the same spirit as the existing
sections for other supported fetchers.  Changes included the new section,
removal of the bulleted item that mentioned this fetcher as an
"additional" fetcher, and the creation of a new variable in the glossary
named P4DIR.

(Bitbake rev: 47e03b1789ee1c18407dbac33a6c235752019865)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Added clarifying note to BBCLASSEXTEND variable.
Scott Rifenbark [Tue, 12 Jul 2016 21:08:32 +0000 (14:08 -0700)] 
bitbake: bitbake-user-manual: Added clarifying note to BBCLASSEXTEND variable.

Fixes [YOCTO #9909]

Added a note that talks about how the BBCLASSEXTEND mechanism
adds recipe variants.

(Bitbake rev: 185c9c5fc205fe9c9daf5238f11b92bd0954f5c6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Added a note providing examples of task dependencies
Scott Rifenbark [Tue, 12 Jul 2016 20:41:12 +0000 (13:41 -0700)] 
bitbake: bitbake-user-manual: Added a note providing examples of task dependencies

Fixes [YOCTO #9861]

In the "Dependencies internal to the .bb File" section, I placed a
note providing more detail on how recipes are built regarding task
dependency.

(Bitbake rev: c2e72928fbd21d622860a54a55f4239ba27c07a2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Updated dependency section for tasks
Scott Rifenbark [Mon, 11 Jul 2016 21:24:22 +0000 (14:24 -0700)] 
bitbake: bitbake-user-manual: Updated dependency section for tasks

Fixes [YOCTO #9861]

I updated the section on dependencies to give a couple of examples
for task dependencies within a single recipe and dependencies for
tasks between two individual recipes.

(Bitbake rev: 231deeb2b0b3847cba971ca30c16e29357100ae6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Updated the defaults for getVar and getVarFlag
Scott Rifenbark [Thu, 9 Jun 2016 17:32:39 +0000 (10:32 -0700)] 
bitbake: bitbake-user-manual: Updated the defaults for getVar and getVarFlag

There is no default.

Fixes [YOCTO #9683]

(Bitbake rev: 886afd6d876c9ae04cf681931db8f1774dc53096)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-user-manual: Added new section on command-line execution
Scott Rifenbark [Wed, 8 Jun 2016 01:24:27 +0000 (18:24 -0700)] 
bitbake: bitbake-user-manual: Added new section on command-line execution

Needed a section on executing a list of task and recipe combinations.

(Bitbake rev: 17f7f366df3a5951ae88e24c43aecf3d65d83c14)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoboost: fix CVE-2012-2677
Kai Kang [Mon, 18 Jul 2016 09:06:36 +0000 (17:06 +0800)] 
boost: fix CVE-2012-2677

Backport patch to fix CVE-2012-2677 for boost from:

https://svn.boost.org/trac/boost/changeset/78326

(From OE-Core rev: 0a2df616a5c3316704742f1dcf37b450920e0280)

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>
9 years agopackage_manager.py: Avoid installing an empty package list
Mark Hatle [Tue, 19 Jul 2016 07:42:32 +0000 (15:42 +0800)] 
package_manager.py: Avoid installing an empty package list

It is possible in an attempt only install, that everything listed is not
available to be installed.  This will have the effect of clearing the
package list.  However, we only check for an empty package list at
the beginning of the function.  We need to also check before running the
install, otherwise we can fail due to 'error: no package(s) given".

(From OE-Core rev: 9ae6a2830dacb3c335754a6da91bd5cc30546b31)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: Update to 2.24 after hard-freeze
Khem Raj [Tue, 19 Jul 2016 04:43:07 +0000 (21:43 -0700)] 
glibc: Update to 2.24 after hard-freeze

Drop upstreamed patch

(From OE-Core rev: 96f951af74dd8dcea1372249fb84c2c615a7bba3)

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>
9 years agowic: rawcopy: make source filenames unique
Ed Bartosh [Thu, 30 Jun 2016 16:29:18 +0000 (19:29 +0300)] 
wic: rawcopy: make source filenames unique

Rawcopy plugin copies source files to build folder before using them
to assemble result image. After assembling the image wic renames
source files to <image>.p<partition number>. If the same source file
is used in multiple partitions wic breaks trying to rename file that
doesn't exist.

Added <line number> suffix to the files when copying them to the
build dir. This should make filename unique even if the same source
file is used for multiple partitions.

[YOCTO #9826]

(From OE-Core rev: 43a809bfe99024083b4ab4eb9895b084c9c4fa80)

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>
9 years agobuildhistory-diff: reduce PKGR noise
Ed Bartosh [Fri, 8 Jul 2016 14:35:20 +0000 (17:35 +0300)] 
buildhistory-diff: reduce PKGR noise

When using PR service the buildhistory-diff output contains a lot of
PKGR changes: In practice the mass of PKGR updates hide other important
changes as they often account for 80% of all changes.

Skipped incremental and decremental changes of PKGR versions to reduce
amount of the script output. All changes are still included in the
output if script is run with -a/--report-all command line option.

[YOCTO #9755]

(From OE-Core rev: a343788b11f6c4f92ae8d2035fe8cb54f922227e)

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>
9 years agosystemd: allow add users to groups in rootfs postprocess
Stephano Cetola [Thu, 14 Jul 2016 18:12:40 +0000 (11:12 -0700)] 
systemd: allow add users to groups in rootfs postprocess

Currently the functionality checks for the "u" and "g" flags to create users and
groups, but not the "m" flag to add users to groups. This change first checks to
be sure that the users and groups are created, creates them if necessary, then
adds the user to the group.

(From OE-Core rev: f0a77bee3d092cf79b7e584b943a623eddd6e13d)

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinitrdscripts/init-install*: Select install target instead of looping through
California Sullivan [Wed, 13 Jul 2016 00:41:58 +0000 (17:41 -0700)] 
initrdscripts/init-install*: Select install target instead of looping through

Its not immediately apparent that more than one install target could be
available. With this change we list the available devices up front then
prompt the user for which one to use, reducing confusion.

Fixes [YOCTO #9919].

(From OE-Core rev: e68774f684543fd75250e56ea88a5e0cb0a2dd0a)

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>
9 years agooeqa/controllers: Add test target for Systemd-boot
Jose Perez Carranza [Wed, 13 Jul 2016 19:01:57 +0000 (14:01 -0500)] 
oeqa/controllers: Add test target for Systemd-boot

A new test target is neede to test Systemd-boot similar
to gummiboot. Created a copy of GummibootTarget class
and named as SystemdbootTarget, at this point the
gummibootTarget will remain until documentation is
updated with new systed information.

(From OE-Core rev: d1fd3a7dbc363bdc02d810f796b3b810cb13f029)

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooetest.py: Fix problem when there is more than one json file for package extraction
Mariano Lopez [Wed, 13 Jul 2016 11:47:09 +0000 (11:47 +0000)] 
oetest.py: Fix problem when there is more than one json file for package extraction

This allow to have more than one test to have json file in order
to install packages in the DUT without using a package manager.

[YOCTO #9926]

(From OE-Core rev: 129c2b4589710aa24e23108f2728f1625b72cb06)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: print errors when failed to find test
Robert Yang [Tue, 12 Jul 2016 12:04:01 +0000 (05:04 -0700)] 
oe-selftest: print errors when failed to find test

For example:
$ oe-selftest --run-tests-by name hello world
2016-07-12 00:33:28,678 - selftest - ERROR - Failed to find test: hello
2016-07-12 00:33:28,679 - selftest - ERROR - Failed to find test: world

(From OE-Core rev: 665a0f93bde0d61e0c7ceab072ca3f1f22b2f700)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oeqa/utils/commands.py: Move updateEnv() from runexported.py
Mariano Lopez [Thu, 7 Jul 2016 14:48:55 +0000 (14:48 +0000)] 
lib/oeqa/utils/commands.py: Move updateEnv() from runexported.py

updateEnv() can be used in other places so move the
function to utils/commands.py

(From OE-Core rev: 380e5d80898cac4ffc9715b3f597d0b62a0643ff)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cooker: Fix incorrect dot file generation
Richard Purdie [Wed, 20 Jul 2016 15:08:17 +0000 (16:08 +0100)] 
bitbake: cooker: Fix incorrect dot file generation

In the runqueue cleanup/conversion, "dep" was mistakenly used where "tid" should
be leading to incorrect task-depends.dot files and causing general confusion.
Fix this, its clearly incorrect looking at the code.

(Bitbake rev: 689730dbb068c5ea3593e7b92fe5d5e5c0c3760a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: toaster-tests: add class SeleniumTestCaseBase for browser tests
Aníbal Limón [Tue, 19 Jul 2016 15:49:10 +0000 (16:49 +0100)] 
bitbake: toaster-tests: add class SeleniumTestCaseBase for browser tests

In order to reuse the Selenium helper outside a Django
environment (for functional testing), add a new module
containing the base class SeleniumTestCaseBase, which only
inherits unittest.TestCase

Add a class SeleniumTestCase with multiple inheritance of
StaticLiveServerTestCase and SeleniumTestCaseBase to prevent
existing tests from breaking.

(Bitbake rev: 1177b3f368d8b7f8557eb649adb2e327b6df801c)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agointltool: remove broken XML::Parser detection
Ross Burton [Tue, 19 Jul 2016 11:04:12 +0000 (12:04 +0100)] 
intltool: remove broken XML::Parser detection

intltool.m4 has a chunk of code that runs during configure which probes for a
perl binary and verifies that it has the XML::Parser module.  However in builds
using intltool-native the perl binary that it finds is likely to not be the one
that the intltool scripts will be using as the scripts hardcode nativeperl yet
the m4 fragment searches for "perl" in $PATH.  If the host perl doesn't have
XML::Parser the configure will fail, despite the fact that the scripts will
work.

Solve this by taking an old patch from the upstream bug system to simply remove
the check in intltool.m4 as it's generally useless, and remove existing patches
that almost but not quite solved this issue.

(From OE-Core rev: 9900000d404b09a701d5368d529eb515e054e3f0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agointltool: merge .bb and .inc
Ross Burton [Tue, 19 Jul 2016 10:42:25 +0000 (11:42 +0100)] 
intltool: merge .bb and .inc

There's no use in having these split, so merge them together for clarity.

(From OE-Core rev: bf88f089c3bb8ceef7338436a1688a44399efc57)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/recipetool: update recipe test to pass SHA
Ross Burton [Mon, 18 Jul 2016 20:43:35 +0000 (21:43 +0100)] 
oeqa/recipetool: update recipe test to pass SHA

(From OE-Core rev: 71dd4c05c41e8b363dc1ecac1f5105d316ee82dc)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/devtool: update recipe test as libmatchbox changed
Ross Burton [Mon, 18 Jul 2016 20:43:12 +0000 (21:43 +0100)] 
oeqa/devtool: update recipe test as libmatchbox changed

(From OE-Core rev: b36712eef14c20007e0adb01cc7d4bce9e7926bb)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-input-libinput: Upgrade 0.16.0 -> 0.19.0
Jussi Kukkonen [Fri, 15 Jul 2016 08:28:14 +0000 (11:28 +0300)] 
xf86-input-libinput: Upgrade 0.16.0 -> 0.19.0

Note that the xorg configuration file for input-libinput now sorts
lower than it used to (90 -> 60).

(From OE-Core rev: 9bbdf41999ddf34855af72327d82e1390da97888)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-input-evdev: Upgrade 2.10.2 -> 2.10.3
Jussi Kukkonen [Fri, 15 Jul 2016 08:22:12 +0000 (11:22 +0300)] 
xf86-input-evdev: Upgrade 2.10.2 -> 2.10.3

(From OE-Core rev: e925641c168082a0b1de43d113dbd0b66ef77814)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxkeyboard-config: Upgrade 2.17 -> 2.18
Jussi Kukkonen [Fri, 15 Jul 2016 08:18:37 +0000 (11:18 +0300)] 
xkeyboard-config: Upgrade 2.17 -> 2.18

(From OE-Core rev: 7e7048545e4a4b6b52ba63a5043a36d1bc00aefa)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibxfixes: Upgrade 5.0.1 -> 5.0.2
Jussi Kukkonen [Fri, 15 Jul 2016 08:10:50 +0000 (11:10 +0300)] 
libxfixes: Upgrade 5.0.1 -> 5.0.2

(From OE-Core rev: c1bc50445ff92b4b2915af1cf41f5f8b09f4e375)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoweston: Upgrade 1.10.0 -> 1.11.0
Jussi Kukkonen [Fri, 15 Jul 2016 08:07:31 +0000 (11:07 +0300)] 
weston: Upgrade 1.10.0 -> 1.11.0

Remove now unnecessary patch, rebase others.
Add musl build fix patch.

(From OE-Core rev: f915e81336a63331bc6e4b920089d1495ae7f63f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowayland: Upgrade 1.10.0 -> 1.11.0
Jussi Kukkonen [Fri, 15 Jul 2016 07:31:42 +0000 (10:31 +0300)] 
wayland: Upgrade 1.10.0 -> 1.11.0

Add a musl build fix patch.

(From OE-Core rev: 9b3d71ef63b5ebcd6540bbb2668478da87ecc911)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowayland-protocols: Upgrade 1.3 -> 1.4
Jussi Kukkonen [Fri, 15 Jul 2016 07:29:33 +0000 (10:29 +0300)] 
wayland-protocols: Upgrade 1.3 -> 1.4

Remove backported patch.

(From OE-Core rev: 4c6de7dc96648db134cff85250026e307d0700b0)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomesa: Upgrade 11.2.2 -> 12.0.1
Jussi Kukkonen [Fri, 15 Jul 2016 07:13:31 +0000 (10:13 +0300)] 
mesa: Upgrade 11.2.2 -> 12.0.1

Massive mesa upgrade (OpenGL 4.3, GLVND support, vulkan driver
for intel etc), although many new things are disabled by default.

License file change does not change the actual licenses.

piglit results (with piglit update on ML) on an old NUC with Intel
HD5000 for reference:
       pass:   33972
       fail:     306
      crash:       2
       skip:   30857
       warn:       7
      total:   65144

(From OE-Core rev: 6da724dc9cb72e77aa8b1613c3ad71fefc81903f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomesa-demos: Require X11 distro feature
Jussi Kukkonen [Mon, 18 Jul 2016 11:54:48 +0000 (14:54 +0300)] 
mesa-demos: Require X11 distro feature

Mesa-demos theoretically does not require X11 (apart from xdemos/)
but reality is that every other binary requires glut. So:
 * 'non-glut' part of mesa-demos requires X11
 * current freeglut recipe also depends on X11

There is apparently wayland support in freeglut now: This recipe
should be modified when meta-oe freeglut recipe has that feature.

The change became necessary now because mesa no longer mistakenly
installs GL files when X11 is disabled (and mesa-demos configure
currently requires GL).

(From OE-Core rev: d02a3a745fbb7b534f22de861e7a43e7dacc7970)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: add do_image_qa task to run QA checks on the constructed image
Joshua Lock [Thu, 14 Jul 2016 13:36:32 +0000 (14:36 +0100)] 
image: add do_image_qa task to run QA checks on the constructed image

This task runs all functions in IMAGE_QA_COMMANDS after the image
construction has completed in order to validate the resulting image.

Image sanity checks should either be Python functions which raise
bb.build.FuncFailed on failure or shell functions with return a
non-zero exit code.

Python functions may instead raise an oe.utils.ImageQAFailed
Exception which takes an extra argument, a description of the
failure.

   python image_check_python_ok () {
       if True:
           raise bb.build.FuncFailed('This check always fails')
       else:
           bb.note("Nothing to see here")
   }

   image_check_shell_ok () {
       if true
           exit 1
       else
           exit 0
       fi
   }

[YOCTO #9448]

(From OE-Core rev: c9bef2ecf1a30159d11781184829f41844a58c13)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: Security fix CVE-2016-5636
Armin Kuster [Sat, 16 Jul 2016 23:04:15 +0000 (16:04 -0700)] 
python3: Security fix CVE-2016-5636

Affects python3 < 3.5.1
Base Score (4.4) Medium

(From OE-Core rev: a7cbd6805febadaad60d1e05899e10e9a8a36c26)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython2: Security fix CVE-2016-5636
Armin Kuster [Sat, 16 Jul 2016 23:04:14 +0000 (16:04 -0700)] 
python2: Security fix CVE-2016-5636

Affects python2 < 2.7.11
Base score (4.4) Medium

(From OE-Core rev: 4d1f651047a045955b436357753c7e094468b4ed)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobzip2: Security fix CVE-2016-3189
Armin Kuster [Sat, 16 Jul 2016 23:04:13 +0000 (16:04 -0700)] 
bzip2: Security fix CVE-2016-3189

Affects bzip2 <= 1.0.6
CVSS v2 Base Score: 4.3 MEDIUM

(From OE-Core rev: 979c61e47d416b940ca53e22acffdacb2625cf89)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl: Security fix CVE-2016-2178
Armin Kuster [Sat, 16 Jul 2016 23:04:12 +0000 (16:04 -0700)] 
openssl: Security fix CVE-2016-2178

affects  openssl <=  1.0.2h
CVSS v2 Base Score: 2.1 LOW

(From OE-Core rev: 5b3df0c5e8885ea34f66b41fcf209a9960fbbf5e)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl: Security fix CVE-2016-2177
Armin Kuster [Sat, 16 Jul 2016 23:04:11 +0000 (16:04 -0700)] 
openssl: Security fix CVE-2016-2177

Affects openssl <= 1.0.2h
CVSS v2 Base Score: 7.5 HIGH

(From OE-Core rev: 2848c7d3e454cbc84cba9183f23ccdf3e9200ec9)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxmlto: only target requires coreutils
Robert Yang [Mon, 18 Jul 2016 03:05:52 +0000 (20:05 -0700)] 
xmlto: only target requires coreutils

The coreutils added to RDEPENDS was for tail command which is everywhere
on the build host, so only add it to target. There was a side effect if
coreutils-native was build, when its commands install to sysroots, they
would be removed during rebuild, and cause other recipes fail to build:

/path/to/tmp/sysroots/x86_64-linux/usr/bin/mkdir -p lib/sys
make: /path/to/tmp/sysroots/x86_64-linux/usr/bin/mkdir: Command not found

(From OE-Core rev: 4a0e3ca3733e2b6f3f20065421dbb9da2058014c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopiglit: Fix build on musl/arm
Khem Raj [Sat, 9 Jul 2016 08:00:54 +0000 (01:00 -0700)] 
piglit: Fix build on musl/arm

(From OE-Core rev: 336c1caeb86996cd316256ad15f392b9597ae414)

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>
9 years agoxuser-account: remove GROUPADD_PARAM
Robert Yang [Mon, 11 Jul 2016 15:25:50 +0000 (08:25 -0700)] 
xuser-account: remove GROUPADD_PARAM

The group shutdown had been provided by base-passwd, otherwise, it may cause
sysvinit failed to build:

$ bitbake xuser-account sysvinit && bitbake xuser-account sysvinit -ccleansstate && bitbake sysvinit
[snip]
| chown: invalid user: root.shutdown
[snip]

(From OE-Core rev: d72793ca3cbedca3eaca2a7c62f4c93d3c3af358)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipes-graphics: Added native and nativesdk support for some libraries
Felipe F. Tonello [Fri, 15 Jul 2016 16:36:32 +0000 (17:36 +0100)] 
recipes-graphics: Added native and nativesdk support for some libraries

These libraries are used in some recipes outside oe-core, so we should add
this class support to avoid duplication and bbappends on other layers.

(From OE-Core rev: 2db2724c4386fc07bd667060eb12b479747e0d35)

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotcl: fix sed command in do_install
Robert Yang [Tue, 24 May 2016 02:34:18 +0000 (19:34 -0700)] 
tcl: fix sed command in do_install

The -I= and -L= is used for cross compile, target doesn't need, and
binconfig.class can handle usr/bin/crossscripts/tclConfig.sh.

Fix do_configure error for the recipe which uses tclConfig.sh, for
example, postgresql.do_configure:
configure: error: header file <tcl.h> is required for Tcl

(From OE-Core rev: c6f24481b2fc965eeebca5508d68f1b9e5b3f212)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-git-proxy: don't depend on syslinux
André Draszik [Fri, 15 Jul 2016 15:03:27 +0000 (16:03 +0100)] 
oe-git-proxy: don't depend on syslinux

gethostip comes from syslinux. It seems odd to depend on a bootloader
to clone a git repository.

Switch to using getent from the c-library, which should be available
on every system.

We now also support the case where a hostname resolves to more than
one IP address.

(From OE-Core rev: c91dbf3ca2faec95195c85b65aa6cab7de9bca2c)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosysstat: upgrade to 11.3.5
Chen Qi [Fri, 15 Jul 2016 01:49:38 +0000 (09:49 +0800)] 
sysstat: upgrade to 11.3.5

(From OE-Core rev: 3434f3cfe40d140fec2660d24508eeeaec4f66a8)

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>
9 years agosudo: upgrade to 1.8.17p1
Chen Qi [Fri, 15 Jul 2016 01:49:37 +0000 (09:49 +0800)] 
sudo: upgrade to 1.8.17p1

(From OE-Core rev: 0564ab21fe403dd3e43240f7cfad619a356cee06)

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>
9 years agocups: upgrade to 2.1.4
Chen Qi [Fri, 15 Jul 2016 01:49:36 +0000 (09:49 +0800)] 
cups: upgrade to 2.1.4

(From OE-Core rev: 2524b8380f8c701dc173d81e39cda833e21e7003)

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>
9 years agobyacc: upgrade to 20160606
Chen Qi [Fri, 15 Jul 2016 01:49:35 +0000 (09:49 +0800)] 
byacc: upgrade to 20160606

(From OE-Core rev: 4cd2db8850c76a842d6a4e85eddd1bf66dd56a6b)

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>
9 years agoat: upgrade to 3.1.20
Chen Qi [Fri, 15 Jul 2016 01:49:34 +0000 (09:49 +0800)] 
at: upgrade to 3.1.20

configure-fix-with-without-selinux.patch is removed as it has been merged.

(From OE-Core rev: c28379fbe62b75a3156bef4d9191fc69155a6297)

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>
9 years agolibxsettings-client: Remove as unneeded
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:05 +0000 (15:20 +0300)] 
libxsettings-client: Remove as unneeded

xsettings-client is not meant to be a shared library and the only
user in oe-core (libmatchbox) now has an in-tree copy.

(From OE-Core rev: ed5cbf977dca8f3d85c8d933071c6e49fb4bd95f)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibmatchbox: Upgrade 1.11 -> 1.12
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:04 +0000 (15:20 +0300)] 
libmatchbox: Upgrade 1.11 -> 1.12

libmatchbox now has a in-tree xsettings-client.

* Use git SRC_URI like the other matchbox components.
* Remove upstreamed patch.
* Update license info (xsettings code is MIT).
* Stop depending on libxsettings-client

(From OE-Core rev: f28b0359c9e993233d5985e27152dc5cb4fbfd13)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomatchbox-keyboard: Upgrade to 0.1.1
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:03 +0000 (15:20 +0300)] 
matchbox-keyboard: Upgrade to 0.1.1

(From OE-Core rev: 9b4783572db0a7f4462c1ca6a7e6b95c319f3d19)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosato-screenshot: Upgrade 0.2 -> 0.3
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:02 +0000 (15:20 +0300)] 
sato-screenshot: Upgrade 0.2 -> 0.3

(From OE-Core rev: e9ff03c4af75914b9abb5c5237e6a08aa631d332)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomatchbox-panel-2: Upgrade 2.10 -> 2.11
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:01 +0000 (15:20 +0300)] 
matchbox-panel-2: Upgrade 2.10 -> 2.11

New release finishes the port from buggy ScalingImage to
ScalingImage2.

(From OE-Core rev: cb476bac7306f45c14d5c6c4c5d8351e5582ee40)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibpng: update to 1.6.23
Maxin B. John [Fri, 15 Jul 2016 12:09:15 +0000 (15:09 +0300)] 
libpng: update to 1.6.23

1.6.22 -> 1.6.23

License files changes are due to updates in Copyright date and Version

(From OE-Core rev: 83a43b1bd124b6306e0f852ad3961f4672fbc7dd)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-firmware: update to revision cccb6a0da9
Maxin B. John [Fri, 15 Jul 2016 12:09:14 +0000 (15:09 +0300)] 
linux-firmware: update to revision cccb6a0da9

Upgrade to revision cccb6a0da9

(From OE-Core rev: 418a0ebb318b32068a26addc4846e9c3aa2a044d)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonss: Fix build on mips/clang
Khem Raj [Fri, 15 Jul 2016 10:03:25 +0000 (03:03 -0700)] 
nss: Fix build on mips/clang

This issue is also reported here
https://trac.macports.org/ticket/51709
Patch is also from same ticket

(From OE-Core rev: 119ff60101ed6fd542f1280d37a24411d8b14264)

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>
9 years agowic: oe-selftest: build bmap-tools-native
Ed Bartosh [Fri, 15 Jul 2016 06:53:47 +0000 (09:53 +0300)] 
wic: oe-selftest: build bmap-tools-native

bmap-tools-native is required to generate .bmap file. Without it
wic fails with this error when run with --bmap option:
    Error: A native program bmaptool required to build
           the image was not found

Added bmap-tools-native to the list of requirements to build
in Wic.setUpLocal method.

(From OE-Core rev: dd11ab551f9bf1d8761d0430f19510a9caa53a12)

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>
9 years agomusl: Fix mips regressions in 1.1.15
Khem Raj [Thu, 14 Jul 2016 15:15:17 +0000 (08:15 -0700)] 
musl: Fix mips regressions in 1.1.15

Bobby Bingham (2):
      remove or1k version of sem.h
      remove obsolete gitignore rules

Rich Felker (4):
      remove obsolete and unused gethostbyaddr implementation
      fix asctime day/month names not to vary by locale
      fix regression in tcsetattr on all mips archs
      revert unrelated change that slipped into last commit

(From OE-Core rev: 681b75cb7c1ad88774d611119c9a7f6d076ff2c5)

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>
9 years agobinutils: backport fix for TLSDESC relocations with no TLS segment on arch64
Ross Burton [Thu, 14 Jul 2016 18:59:47 +0000 (19:59 +0100)] 
binutils: backport fix for TLSDESC relocations with no TLS segment on arch64

As exposed by WebKit on aarch64 hosts, which causes binutils to throw an
internal error.

[ YOCTO #9509 ]

(From OE-Core rev: b31294e4f34dfb530c40526ab56c07aedb76e31b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/license.bbclass: don't set [dirs] and [cleandirs]
Ross Burton [Thu, 7 Jul 2016 13:34:18 +0000 (14:34 +0100)] 
classes/license.bbclass: don't set [dirs] and [cleandirs]

There's no need to set these as the restore from sstate will create the
directories as required.

(From OE-Core rev: 3ab3ebc06d22f0776091e39237235ea50c4503b2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: use the host locale archive in nativesdk builds
Ross Burton [Wed, 6 Jul 2016 09:54:29 +0000 (10:54 +0100)] 
glibc: use the host locale archive in nativesdk builds

The nativesdk libc when used by buildtools has a hard requirement on supporting
a UTF-8 locale because Python 3 needs a UTF-8 locale.  However we currently only
ship the C locale, which means that Python attempts to lookup the user's locale
(for example, en_NZ.UTF-8) in the locale archive under it's prefix it fails and
falls back to C.  This the results in Python using ASCII instead of UTF-8 for
file encoding, and bitbake breaks.

Th obvious solution would be to ship all locales, but this would add
approximately 250MB to the size of the buildtools tarball (which is currently
around 30MB).  Generating a binary locale archive reduces this down to 100MB,
but this is still a drastic increase in footprint.  If we ship a subset of
locales in the tarball then there will be users whose locale isn't in the
tarball, and they'll have to change their locale to an "approved" one, which
isn't the best of messages to send to new users.

The alternative is to tell the nativesdk libc that the locale archive isn't
under it own prefix but is in fact at /usr/lib/locale/locale-archive, so the
buildtools libc uses the host locale archive. The locale archive format appears
to be at least fairly stable: our glibc 2.24 can read the locale archive
generated by glibc 2.17 (Centos 7).

[ YOCTO #9775 ]

(From OE-Core rev: 75321b6b0f2c0ac667b9350b387b01a188e195c8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl: fix CVE-2016-2381
Kai Kang [Thu, 14 Jul 2016 08:53:08 +0000 (16:53 +0800)] 
perl: fix CVE-2016-2381

Backport patch to fix CVE-2016-2381 from perl upstream:

http://perl5.git.perl.org/perl.git/commitdiff/ae37b791a73a9e78dedb89fb2429d2628cf58076

(From OE-Core rev: 07ca8a0131f43e9cc2f720e1cdbcb7ba7c074886)

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>
9 years agoopkg: upgrade to v0.3.3
Alejandro del Castillo [Wed, 13 Jul 2016 21:05:34 +0000 (16:05 -0500)] 
opkg: upgrade to v0.3.3

Bug fix release to address two regressions:

*  Fix build breakage when using configure option --enable-sha256
*  Do not remove packages if removal operation is not valid due to
   installed dependents

(From OE-Core rev: 9219e87c6add5bcc95ac00a019a6c24083846f50)

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add finish subcommand
Paul Eggleton [Wed, 13 Jul 2016 21:04:25 +0000 (09:04 +1200)] 
devtool: add finish subcommand

Add a subcommand which will "finish" the work on a recipe. This is
effectively the same as update-recipe followed by reset, except that the
destination layer is required and it will do the right thing depending
on the situation - if the recipe file itself is in the workspace (e.g.
as a result of devtool add), the recipe file and any associated files
will be moved to the destination layer; or if the destination layer is
the one containing the original recipe, the recipe will be overwritten;
otherwise a bbappend will be created to apply the changes. In all cases
the layer path can be loosely specified - it could be a layer name, or
a partial path into a recipe. In the case of upgrades, devtool finish
will also take care of deleting the old recipe.

This avoids the user having to figure out the correct actions when
they're done - they just do "devtool finish recipename layername" and
it saves their work and then removes the recipe from the workspace.

Addresses [YOCTO #8594].

(From OE-Core rev: fa550fcb9333d59b28fc0e4aebde888831410f5c)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: upgrade: record original recipe files
Paul Eggleton [Wed, 13 Jul 2016 21:04:24 +0000 (09:04 +1200)] 
devtool: upgrade: record original recipe files

This provides us with the information we need to remove the original
version recipe and associated files when running "devtool finish" after
"devtool upgrade".

(From OE-Core rev: 92eb42c347af919cd9f8739515fdf806c12b5ba8)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: refactor to allow calling separately
Paul Eggleton [Wed, 13 Jul 2016 21:04:23 +0000 (09:04 +1200)] 
devtool: update-recipe: refactor to allow calling separately

This will be called by "devtool finish" to allow it to update the recipe
or create the bbappend depending on the destination.

(From OE-Core rev: 5067cdc73483b53d46d9bf584723e41957c7ec54)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: reset: refactor to allow calling separately
Paul Eggleton [Wed, 13 Jul 2016 21:04:22 +0000 (09:04 +1200)] 
devtool: reset: refactor to allow calling separately

This will be called by "devtool finish" to allow it to reset the recipe
at the end.

(From OE-Core rev: b8d398516556eaf97679e28ad58448f570984b52)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/recipeutils: fix a few issues in find_layerdir()
Paul Eggleton [Wed, 13 Jul 2016 21:04:21 +0000 (09:04 +1200)] 
lib/oe/recipeutils: fix a few issues in find_layerdir()

* Allow the function to be called with the base layer path (in which
  case it will just return the same path)
* Ensure that the function doesn't recurse indefinitely if it's called
  on a file that's not inside a layer
* Correct the doc comment for accuracy

(From OE-Core rev: 912026d85c2f535be2f60c45979162ea25c7f356)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: don't copy local files that haven't changed
Paul Eggleton [Wed, 13 Jul 2016 21:04:20 +0000 (09:04 +1200)] 
devtool: update-recipe: don't copy local files that haven't changed

If there are files in the oe-local-files directory which are identical
to the original version, then we shouldn't be copying them to the
destination layer. This is particularly important when using the -a
option to create a bbappend.

(From OE-Core rev: 9230bfcc839eb35630949f0a8ed058ca1fa944b1)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: find and use existing files directories
Paul Eggleton [Wed, 13 Jul 2016 21:04:19 +0000 (09:04 +1200)] 
devtool: update-recipe: find and use existing files directories

devtool update-recipe was defaulting to the ${BPN} named directory when
adding patches next to a recipe, but that meant if you already had files
in a ${BP} named directory (i.e. name and version) or "files" then you'd
end up with two directories next to the recipe, which is usually not
what you want. To avoid this, look through FILESPATH and take the first
one that's the same level or one level down from the recipe and already
exists, if any.

(From OE-Core rev: c7a8190cf8bdf86ba850b6780b8e951e90232c06)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobash: fix string format errors when enabling security flags
Ross Burton [Thu, 14 Jul 2016 09:21:51 +0000 (10:21 +0100)] 
bash: fix string format errors when enabling security flags

If security_flags.inc is included then bash 3.2.48 fails to build:

| ../bash-3.2.48/print_cmd.c:1152:3: error: format not a string literal and no format arguments [-Werror=format-security]
|    cprintf (indentation_string);

Backport a patch from upstream to solve this.

(From OE-Core rev: 293d90d757d0d1e292c90cb0e9c576faf911ffcc)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobash: ensure LDFLAGS is passed when building ptest
Ross Burton [Thu, 14 Jul 2016 09:07:17 +0000 (10:07 +0100)] 
bash: ensure LDFLAGS is passed when building ptest

(From OE-Core rev: 71794837b477a78e2f5408348e269f58f9b1ec7e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibevdev: Upgrade 1.5.1 -> 1.5.2
Jussi Kukkonen [Wed, 13 Jul 2016 12:54:09 +0000 (15:54 +0300)] 
libevdev: Upgrade 1.5.1 -> 1.5.2

(From OE-Core rev: 8dd7655211adff5731f0e8f187fad35d9e09862a)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibrsvg: Upgrade 2.40.15 -> 2.40.16
Jussi Kukkonen [Wed, 13 Jul 2016 12:54:08 +0000 (15:54 +0300)] 
librsvg: Upgrade 2.40.15 -> 2.40.16

(From OE-Core rev: 21cd050707a276b93736f0d28f849bfb31efb562)

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