package.bbclass: Import fix for newer tar 1.27

:Release Notes:
package.bbclass in oe-core/dylan already has this fix backported, but
because we have own copy, we need to update it as well.

:Detailed Notes:
do_package was failing with newer tar 1.27 because we were missing this
change:
http://git.openembedded.org/openembedded-core/diff/meta/classes/package.bbclass?h=dylan&id=5e3ec61bacd393d461498d9e090306cc7bd8fa63
It is still compatible with older tar.

tar version 1.27 returns:
tar: --same-order option cannot be used with -c

with the commandlines we have been using. We can remove the -s option (which
is --same-order) to remove the error.

:Testing Performed:
Only build tested.

:QA Notes:
No change to image.

:Build Notes:
Invalidates almost all sstate signatures.

:Issues Addressed:
[ES-620] Fix current metadata to build correctly on 14.04 Ubuntu

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: Ia5013a98c41025c0b947909dc3bde38acad4cf6f
Reviewed-on: https://g2g.palm.com/5000
Reviewed-by: DCO Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Steve Lemke <steve.lemke@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
archive*.bbclass: Fix removing SRC_URI entries from WORKDIR

:Release Notes:
Imported from oe-core aa02769727203650bfebf38082a2dadcc7e3b443
with changes from this e-mail:
http://lists.openembedded.org/pipermail/openembedded-core/2013-December/087729.html

:Detailed Notes:
* archiver can sometimes overwrite or remove some files which are
  needed by other tasks.

  This happens in cases where file referenced in SRC_URI aren't
  unpacked and are used by other tasks directly from WORKDIR

  def archive_sources(d, stage_name): downloads sources from
  SRC_URI again to WORKDIR in order to create source tarball from them
  (normally it's ok, because source tarball is directly unpacked from
  DL_DIR so never stays in WORKDIR).

  def archive_sources_patches(d, stage_name): then creates the tarball
  itself and moves source and patch tarballs to deploy with:
  move_tarball_deploy(d, [source_tar_name, patch_tar_name])

  But in cases where source_tar_name == "required" file we're using:
    1) do_unpack downloads "required" from DL_DIR to WORKDIR,
    2) archive_sources overwrites it with another copy,
    3) archive_sources_patches removes it,
    4) do_deploy fails because it wants to install now non-existent
       ${WORKDIR}/required

* move duplicated ARCHIVE_SSTATE_* assignments from archive-*.bbclass
  to common archiver.bbclass
* introduce separate workdir for archiver ARCHIVE_SSTATE_WORKDIR and
  move ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR,
  ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR into it
* change archiver.bbclass to dump scripts-logs and diffgs-envdata into
  right directory (respect variables defined above instead of hardcoding
  the paths in code).
* use d.getVar* API
* unify workdir/work_dir usage for ${WORKDIR} and use separate variable
  archiver_workdir when it means ARCHIVE_SSTATE_WORKDIR

:Testing Performed:
Only build tested.

:QA Notes:
No change to image.

:Issues Addressed:
[GF-60602] Distribute source code to comply with the open source
           obligation

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: Ifbd868fcf4c5de667f9ac5a000373ce0a7783380
Reviewed-on: https://g2g.palm.com/4241
Reviewed-by: DCO Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
buildstats-summary: Show number of packagedata tasks

:Release Notes:
Ratio of populate_sysroot tasks isn't always very accurate indicator of
sstate reuse, add packagedata tasks which show also invalidated sstate
for runtime dependencies.

:Detailed Notes:
Count tasks with both normal and setscene tasks executed as building
from scratch, if normal task had to be executed for whatever reason we
shouldn't count it as reused from sstate.

:Testing Performed:
Only build tested.

:QA Notes:
No change to image.

:Issues Addressed:
[ES-670] Improve sstate-reuse statistics

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>

Change-Id: I425584ba6a2a63f768caa25c8e6baecc27ef977d
Reviewed-on: https://g2g.palm.com/5200
Reviewed-by: DCO Verification
Build: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
icecc: Exclude various components from building with icecc

:Release Notes:
Exclude various components from building with icecc because they fail to
compile.

:Detailed Notes:
perl, gcc, and linux-libc-headers fail to build with icecc because of
incorrect configuration for cross compilation.

:Testing Performed:
gcc, perl, and linux-libc-headers compiled successfully from source.

:QA Notes:
No change to image.

:Issues Addressed:
[BHV-4061] gcc, perl, and linux-libc-headers fail to compile with icecc

Open-webOS-DCO-1.0-Signed-off-by: Iyad Qumei <iyad.qumei@lge.com>

Change-Id: Id764fce5a326ef1e574702c1fab0885e456c1920
Reviewed-on: https://g2g.palm.com/5208
Reviewed-by: DCO Verification
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: luna-service2=184

:Release Notes:
Fix crash in LSUnregister() when working with a dynamic peer.
Fix ls-monitor -c not catch call without service name.
Fix logging to use library context.

:Detailed Notes:
luna-service2 submissions/182..submissions/184:
05028ad Fix bhv-3965-crash-svc unit-test
8a1af94 Fix crash in LSUnregister() with dynamic peer
6ef45f9 Fix logging to use library context
7c904a4 Fix unit-test
01c2414 Fix ls-monitor -c not catch call w/o service name

:Testing Performed:
Mini BAT

:QA Notes:

:Issues Addressed:
[ANG-5035] ls-monitor compact mode does not catch method call from luna-send
[BHV-3077] luna-service2: rework logging to use new pmloglib library-context feature
[BHV-3965] luna-send crashes at location /lib/libc.so.6(gsignal+0x3c)
[BHV-4158] CCC: luna-service2=184

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: If953b5116499bf3361a4a4c122f0875b53b6958d
Reviewed-on: https://g2g.palm.com/5222
Reviewed-by: DCO Verification
Build: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
makedevs: Include whole makedevs.c instead of 2 patch files

:Release Notes:
Fix do_patch task with newer patch tool installed on host.

:Detailed Notes:
Newer patch-2.7.* doesn't allow paths containing ".."
http://git.savannah.gnu.org/cgit/patch.git/commit/?id=f663762bf0aa5089fee41d62a4e7528f436164d4

This whole bbappend should be removed when we upgrade to
oe-core 1.6 Daisy.

:Testing Performed:
Only build tested and verified that the source file is the same.

:QA Notes:
No change to image.

:Issues Addressed:
[ES-620] Fix current metadata to build correctly on 14.04 Ubuntu

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I8a2a8e9ccd420f7cb1973a3d61afa5260d9d7e1c
Reviewed-on: https://g2g.palm.com/5001
Reviewed-by: DCO Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Steve Lemke <steve.lemke@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Eric Blade <eric.blade@lge.com>
Tested-by: Eric Blade <eric.blade@lge.com>
libmikmod: Fix build with texinfo-5

:Release Notes:
Instead of backporting whole libmikmod upgrade from:
http://git.openembedded.org/meta-openembedded/commit/?id=636ce2e82daff0751a366f30bd2582a4be9a6aa7
import just the referenced patch for texinfo.

:Detailed Notes:

:Testing Performed:
Only build tested.

:QA Notes:
No change to image.

:Issues Addressed:
[ES-620] Fix current metadata to build correctly on 14.04 Ubuntu

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I8e86a013fa9d7d55b23001716b3ffc8347430737
Reviewed-on: https://g2g.palm.com/5002
Reviewed-by: DCO Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
native: Add recipe for python-tz-native,v2014.1

:Release Notes:
Provide a recipe for python-tz-native

:Detailed Notes:
python-tz is required for obtaining time-zones in luna-sysservice during
compilation

:Testing Performed:
ls BUILD-m14tv/sysroots/x86_64-linux/usr/lib/python2.7/site-packages |
grep pytz

shows:

pytz
pytz-2014.1-py2.7.egg-info

:QA Notes:
No change to image, only build-tested

:Issues Addressed:
[BHV-3657] need python-tz (pytz) to be present in OE/openwebos
[BHV-4070] CCC: Add recipe for python-tz-native=v2014.1

Open-webOS-DCO-1.0-Signed-off-by: Andrii Motsok <andrii.motsok@lge.com>

Change-Id: I5bdcb1b7cf80e0fe16a5874dcc09521018cb2ab5
Reviewed-on: https://g2g.palm.com/5213
Reviewed-by: DCO Verification
Build: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Build Verification
Tested-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: libpbnjson=32,v2.6.0

:Release Notes:
Enable logging with PmLogLib automatically.
Add NO_LOGGING cmake flag to avoid PmLogLib dependency.
Provide getType() for JSON value. New API to parse schema from jvalue.

:Detailed Notes:
libpbnjson submissions/31..submissions/32:
4f2bce2 Add NO_LOGGING flag to disable logging
23e96d0 Provide JSON value type in C++ API
1164956 introduce schema building by traversing jvalue
b1f6a64 transform yajl callbacks to schema builder methods
f9b1ba9 factor out schema builder
0e81cdb Factor out the mempool into its own source file
58f314e fix PJ_LOG_DBG, logging stub and weak magic
2ae4cf6 Log using new pmloglib API

:Testing Performed:
miniBAT + unit tests

:QA Notes:

:Issues Addressed:

[BHV-8] pbnjson: Refactor logging to use pmloglib
[BHV-36] pbnjson: Provide JSON value type in C++ API
[BHV-2369] pbnjson: Factor out the mempool into its own source file
[BHV-3085] Provide pbnjson API for schema construction from jvalue
[BHV-4549] CCC: libpbnjson=32,v2.6.0

Open-webOS-DCO-1.0-Signed-off-by: Andrii Zora <andrii.zora@lge.com>

Change-Id: Iae2a0338f8df437ee992f138f813fa980902d811
Reviewed-on: https://g2g.palm.com/5257
Reviewed-by: DCO Verification
Build: Andrii Zora <andrii.zora@lge.com>
Reviewed-by: Andrii Zora <andrii.zora@lge.com>
Reviewed-by: Build Verification
Tested-by: Andrii Zora <andrii.zora@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: luna-init=9

:Release Notes:
Made ext-timezones.json generated from tzdata shipped with build.

:Detailed Notes:
submissions/8..submissions/9
64678c4 Add generation of ext-timezones.json

:Testing Performed:
miniBAT and checked contents of ext-timezones.json

:QA Notes:

:Issues Addressed:
[BHV-810] Find better way for obtaining time-zones in luna-sysservice
[BHV-3370] CCC: luna-init=9

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I1688b234f4a6ad5ae956aeb872c23ca42af58538
Reviewed-on: https://g2g.palm.com/5136
Reviewed-by: DCO Verification
Build: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
luna-service2: Add missing dependency on boost

:Release Notes:
bhv-3965-crash-svc.cpp is using boost/scope_exit.h, but CMakeLists.txt
doesn't check for boost availability and build fails in do_compile.

:Detailed Notes:
boost dependency was added in https://g2g.palm.com/5212

:Testing Performed:
Only build tested

:QA Notes:
No change to image.

:Issues Addressed:
luna-service2 submission 184 added an undeclared dependency on boost

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>

Change-Id: I05ccd5fa9f9c08c405a04629e924be1f97e385a2
Reviewed-on: https://g2g.palm.com/5277
Reviewed-by: DCO Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: db8=137

:Release Notes:
Fix etarnal loop in DB8,
add proper performance testing.

:Detailed Notes:
submissions/134..submissions/137
1261412 Fix for DB8 tests compilation problem
3d44c02 Fix time calculation in performance tests.
dea2cbb Fix hangup in delImpl function

:Testing Performed:
MiniBAT.

:QA Notes:

:Issues Addressed:
[BHV-3244] Fix time calculation in performance tests.
[ANG-5254] db8 consumes 100% on testing
[BHV-4635] CCC: db8=137

Open-webOS-DCO-1.0-Signed-off-by: Oleg Yablokov <oleg.yablokov@lge.com>

Change-Id: I70a5b90ce2c3c62801ccff9b8ee70bd668f5c62a
Reviewed-on: https://g2g.palm.com/5274
Reviewed-by: DCO Verification
Reviewed-by: Oleg Yablokov <oleg.yablokov@lge.com>
Build: Oleg Yablokov <oleg.yablokov@lge.com>
Reviewed-by: Build Verification
Tested-by: Oleg Yablokov <oleg.yablokov@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: smartkey-hun=15

:Release Notes:
Confirm the license of smartkey-hun-data

:Detailed Notes:
submissions/11..submissions/15
74a2abe Add some missed language codes to the dictionary of available
        languages
9282d5c Replace ru and sr GPLv3 dictionaries with the similar
        dictionaries under GPLv2
88574a8 Revert "Add new dictionary files with license text"
8dfb6a6 (tag: submissions/14) Add new dictionary files with license text
a493ec7 (tag: submissions/13) Fix detected defects from static analysis
c540a9e Fix detected defects from static analysis
869af49 (tag: submissions/12) Fix detected defects from static analysis
3cede5c Fix detected defects from static analysis

Add missed languages to the available languages dictionary
Replace GPLv3 dictionaries with dictionaries under compatible licenes

:Testing Performed:
MiniBAT, manual testing

:QA Notes:

:Issues Addressed:
[ANG-4409] [Open Source Compliance] Confirm the license of
           smartkey-hun-data
[ANG-5868] smartkey-hun doesn't return anything for request with
           russian language
[ANG-6087] CCC: smartkey-hun=15

Open-webOS-DCO-1.0-Signed-off-by: Andrii Motsok <andrii.motsok@lge.com>
Open-webOS-DCO-1.0-Signed-off-by: Susan Montooth <susan.montooth@lge.com>

Change-Id: I6e3f02c863d303328993546ea16a984da8f514a9
Originally-reviewed-on: https://g2g.palm.com/5280
Cherry-picked-from-commit: 79cc72c28b2037cce167817b4bae5d938927c190
Cherry-picked-from-branch: @afro
icecc: Disable icecc a bit sooner

:Release Notes:
Don't create unused directories when icecc is disabled.

:Detailed Notes:
Import changes from
http://git.openembedded.org/openembedded-core/commit/?id=c3e8bfe30685e2357a6eb3ba8f4a014c7dc9f58e

:Testing Performed:
Only build tested.

:QA Notes:
No change to image.

:Issues Addressed:
[ES-725] ICECC environment is created regardless of the value of
         ICECC_DISABLED
[BHV-5829] CCC: ICECC disable icecc a bit sooner

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I479f0db1ab82c87a6cc314b6140245151796a89d
Reviewed-on: https://g2g.palm.com/5275
Reviewed-by: DCO Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
icecc: Exclude binutils from building with icecc

:Release Notes:
Exclude binutils from building with icecc because it fails to compile.

:Detailed Notes:

:Testing Performed:

:QA Notes:
No change to image.

:Issues Addressed:
[BHV-5900] binutils failed to build when icecc is enabled on jenkins.

Open-webOS-DCO-1.0-Signed-off-by: Iyad Qumei <iyad.qumei@lge.com>

Change-Id: Id48594b12547295f1b7c7619df861abeb6145afa
Reviewed-on: https://g2g.palm.com/5400
Reviewed-by: DCO Verification
Reviewed-by: Iyad Qumei <iyad.qumei@lge.com>
Tested-by: Iyad Qumei <iyad.qumei@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
icecc: Exclude linux-libc-headers from building with icecc

:Release Notes:
Exclude linux-libc-headers from building with icecc on x86
architectures.

:Detailed Notes:

:Testing Performed:

:QA Notes:
No change to image.

:Issues Addressed:
[ES-731] linux-libc-headers fail to compile with icecc for x86 MACHINEs

Open-webOS-DCO-1.0-Signed-off-by: Iyad Qumei <iyad.qumei@lge.com>

Change-Id: I6710441170e1b431686b09ff40ce1499e2e8da30
Reviewed-on: https://g2g.palm.com/5417
Reviewed-by: DCO Verification
Reviewed-by: Iyad Qumei <iyad.qumei@lge.com>
Tested-by: Iyad Qumei <iyad.qumei@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
icecc: Exclude nss from building with icecc

:Release Notes:
Exclude nss from building with icecc.

:Detailed Notes:
Three different errors for the same package, seen during different
target builds
1) nsinstall: Syntax error: word unexpected (expecting ")")
2) nsinstall.c:8:76: fatal error: stdio.h: No such file or directory
3) ld: cannot find crtbegin.o: No such file or directory

:Testing Performed:

:QA Notes:
No change to image.

:Issues Addressed:
[ES-789] Fix nss to build with icecc or exclude it

Open-webOS-DCO-1.0-Signed-off-by: Iyad Qumei <iyad.qumei@lge.com>

Change-Id: I555ba49c4f2950a615a488450f984f9b29e25b19
Reviewed-on: https://g2g.palm.com/5419
Reviewed-by: DCO Verification
Build: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: db8=138

:Release Notes:
Add API for notifications about removable storages,
enable c++11 flags,
remove main db in factory-reset case.

:Detailed Notes:
1a11477 Remove main db in factory-reset case
b4c8576 Enable c++11
a09af24 Add API for attaching storages

:Testing Performed:
MiniBAT, DB8 unit tests.

:QA Notes:

:Issues Addressed:
[BHV-1835] Factory Reset : Generate a lot of leveldb files irregularly
[BHV-2215] enable c++11 in db8
[BHV-3658] [DB8]: Implement API for attached storages notifications
[BHV-5942] CCC: db8=138

Open-webOS-DCO-1.0-Signed-off-by: Oleg Yablokov <oleg.yablokov@lge.com>

Change-Id: I0424e117967f691e0ab6a0df1381b4bc73d83f5e
Reviewed-on: https://g2g.palm.com/5416
Reviewed-by: DCO Verification
Build: Oleg Yablokov <oleg.yablokov@lge.com>
Reviewed-by: Oleg Yablokov <oleg.yablokov@lge.com>
Reviewed-by: Build Verification
Tested-by: Oleg Yablokov <oleg.yablokov@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: smartkey-hun=16

:Release Notes:
Added new dictionary files with their license texts

:Detailed Notes:
submissions/15..submissions/16
91ac160 Add new dictionary files with license text

:Testing Performed:
MiniBat done

:QA Notes:

:Issues Addressed:
[BHV-3934] Submit dictionaries files to smart-hun project
[BHV-5924] CCC: smartkey-hun=16

Open-webOS-DCO-1.0-Signed-off-by: pugalendhi ganesan <pugalendhi.ganesan@lge.com>

Change-Id: I0debcca66c8de04bcaf67039262d7bd96aec3383
Reviewed-on: https://g2g.palm.com/5415
Reviewed-by: DCO Verification
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
sqlite3: Rename bbappend to match new oe-core version

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>