webos-image.bbclass: Fix function for luna-service2 privileged binaries permission warnings

:Release Notes:
Fixes for function which generates warning if luna-service privileged
file is accessible for everybody.

:Detailed Notes:
Some minor fixes for previously merged function.

:Testing Performed:
Build succeeded

:QA Notes:

:Issues Addressed:
[GF-10973] Ensure the LS2 services are executable only by root	24
[GF-37875] CCC: Meta-webos fix for wrong file permissions warning generation.

Open-webOS-DCO-1.0-Signed-off-by: Alexandr Smoktal <alexandr.smoktal@lge.com>

Change-Id: I8b17e44b253f72aa6ddcfd427d509b9aa0bd2518
Reviewed-on: https://g2g.palm.com/3404
Reviewed-by: Build Verification
Reviewed-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Tested-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
webos-image: luna-sysservice=14

:Release Notes:
luna-sysservice:submissions/14

:Detailed Notes:
luna-sysservice: submissions/13...submissions/14
- 8399516 Check for LS2 Hub error before processing callbacks

:Testing Performed:
Examine logs for crashes
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-38501] CCC: luna-sysservice=14
[GF-37898] Excessive crashes occuring in LS2: LSTransportMessageGetSenderServiceName

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>

Change-Id: I4ab69eaf2464ae711054354fd124239a6600ce3b
Reviewed-on: https://g2g.palm.com/3445
Reviewed-by: Roger Stringer <roger.stringer@lge.com>
Tested-by: Roger Stringer <roger.stringer@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
webos-image: activitymanager=114

:Release Notes:
activitymanager:submissions/114

:Detailed Notes:
activitymanager: submissions/113..submissions/114
- a5e8120 Added condition check for calling Telephony platformQuery API

:Testing Performed:
Test on device and ensure log message is eliminated
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-38383] CCC: activitymanager=114
[GF-36693] Fix activitymanager calls to LS2

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>

Change-Id: I06d97a9633f1996385bed999fbcfb5dcd1cd8841
Reviewed-on: https://g2g.palm.com/3441
Reviewed-by: Build Verification
Reviewed-by: Roger Stringer <roger.stringer@lge.com>
Tested-by: Roger Stringer <roger.stringer@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
libnsbmp: Fix build

:Release Notes:
Modify bug for qemux86 build.

:Detailed Notes:
Remove -Wl which was passed to g++ and build was failing with
i586-webos-linux-gcc: error: unrecognized command line option '-Wl'

:Testing Performed:
Check build success and make dynamic library, qemux86 as well.

:QA Notes:

:Issues Addressed:
[GF-38319] CCC: replace-makefile-with-cmake.patch for libnsbmp v0.1.0

Open-webOS-DCO-1.0-Signed-off-by: wonkyo.seo <wonkyo.seo@lge.com>

Change-Id: I4405c44532d199519bd64fd92c5eddc638e47929
Reviewed-on: https://g2g.palm.com/3435
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: configurator=54,v3.0.0

:Release Notes:
Update configurator for com.webos.mediadb

:Detailed Notes:
- ac4e6e0 Update configurator for com.webos.mediadb

:Testing Performed:
Verify logs
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-31429] mediadb: Extend mediadb support in DB8
[GF-38538] CCC: configurator=54,v3.0.0

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>
Change-Id: I8f4bb13fdad68560b4a7d6e92cf0968e623b226a
Reviewed-on: https://g2g.palm.com/3448
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: db8=85

:Release Notes:
DB8: submissions/85
Implements the final feature of the DB8-Shards project, supporting
garbage collection for obsolete records related to inactive shards:
When the 'purge' capability is invoke, a new set of code will identify
records relating to inactive shards which have either been maked as
transient or have been inactive for a defined number of days, and then
delete those records from the database.

:Detailed Notes:
DB8: submissions/84...submissions/85
- 5089775 Provide API for remove obsolete shard objects
- 519398c Add parameter to query for inactive records

:Testing Performed:
Examine logs
Run unit tests
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-38938] CCC: db8=85
[GF-4449]  DB8 Ext: Support garbage collection of obsolete shards
[GF-38358] DB8 query need option to pass through records for inactive shards
[GF-38548] Provide API for remove obsolete shards

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>

Change-Id: I00b44a1beaf28c6aaae151deeaca63b6f2e3b43c
Reviewed-on: https://g2g.palm.com/3464
Reviewed-by: Roger Stringer <roger.stringer@lge.com>
Tested-by: Roger Stringer <roger.stringer@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: db8=86

:Release Notes:
db8: submissions/86
- Fix an issue in #85 which caused a segfault in a unit test
- Fix a bug in the new method MojObject::delString()
- Add transient state info to method output 'shardInfo'
- Change a log line from MojLogNotice to MojLogInfo to reduce logging
    of MojDbLevelQuery::getById()

:Detailed Notes:
db8: submissions/85...submissions/86
- e9420f9 Add transient state info
- fe8913f Change log macro to reduce heavy log
- 1df2cb4 Bugfix for MojDbShardManagerTest

:Testing Performed:
DB8 unit test suite
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-39119] CCC: db8=86
[GF-38580] Change logfrom MojLogNotice to ...Info to reduce heavy log
[GF-38800] shardInfo doesn't return 'transient' setting
[GF-38959] MojDbShardEngine test hangs in test_db_core

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>

Change-Id: I8893fa83dc5c2c0a16229b5bf69ba5348e7f609e
Reviewed-on: https://g2g.palm.com/3472
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
upstart: Modify initctl's set-env to process a list

:Release Notes:
Extend the functionality of the set-env command of initctl to process
multiple NAME=VALUE settings.

:Detailed Notes:
Each invocation of "initctl set-env --global" was measured to take
roughly 12 ms. When it's necessary to set a large number of global
environment variables, this will end up taking a fair amount of time.
By simply extending the set-env command to process multiple NAME=VALUE
settings, only one invocation of initctl is needed.

Also add comments to the existing patch files.

:Testing Performed:
Confirmed that when multiple values were given to set-env --global,
they were all present in the environment of subsequently spawned
processes.

:QA Notes:

:Issues Addressed:
[GF-38599] Upstart: modify initctl's set-env command to process more
           than one argument
[GF-38994] CCC: upstart=1.8-0webos1

Open-webOS-DCO-1.0-Signed-off-by: Ed Chejlava <ed.chejlava@lge.com>
Change-Id: Id443808f0b8b99eebe9f491d261dc7c2bacef0d5
Reviewed-on: https://g2g.palm.com/3456
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Sangwoo Kang <sangwoo82.kang@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: mojoservicelauncher=78

:Release Notes:
- This changes the path that run-js-service uses to find roles files for
  devmode-installed services.
- Also, adds an error message when run-js-service is invoked without
  parameters.

:Detailed Notes:
submissions/76..submissions/78
1294308 Fix output when running run-js-service w/o params
565baa7 Add support for devmode-installed services to mojoservicelauncher

:Testing Performed:
Didn't break any existing services, but devmode service has some issues,
so couldn't do an end-to-end test.

:QA Notes:

:Issues Addressed:
[GF-13324] Nodejs must support devmode-installed services with
           roles/service files at /var/palm/ls2-dev/*
[GF-34311] Typing run-js-service without parameters generates confusing
           output
[GF-38794] CCC:  mojoservicelauncher=78

Open-webOS-DCO-1.0-Signed-off-by: Mark Bessey <mark.bessey@lge.com>
Change-Id: If4756136c26e4302a4db304837b87ff4683cb499
Reviewed-on: https://g2g.palm.com/3462
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
prepare-submission.sh: Add simple script for creating webos tags

:Release Notes:
Creating submission or version tags is a bit error prone, most common
issues are:
* tags are moved after they have been used in build
* tags aren't annotated, so we cannot find who created or moved tag
* tags don't match expected format or minimal submission (1),
  version (0.1.0)
* developers are tagging latest commit in their local tree (after they
  check that it was merged on gerrit), but even when it's the same
  commit it has different revision in master branch, because it was
  cherry-picked by gerrit.

:Detailed Notes:
This script checks for issues listed above, creates correct tags,
pushes tags and allows automatic update of WEBOS_VERSION in recipe
when -r parameter is used. It will also show how commit subject and
git log --oneline in ":Detailed Notes:" should look.

:Testing Performed:
Created couple of tags with every possible combination of used
parameters on normal clone as well as on bare clone, bare+mirror
clone cannot be used -> script detects that and shows error.

:QA Notes:
No change in image

:Issues Addressed:
[GF-13693] Create tool to prepare submissions

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I9fe5d66c1e5cbb5e10628af6dd61d1b6c15d660d
Reviewed-on: https://g2g.palm.com/3000
Reviewed-by: Build 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>
upstart: Fix update-alternatives setup

:Release Notes:
sysvcompat package was removed from upstart 1.8 version, but
alternatives now included directly in ${PN} weren't added to
ALTERNATIVE_${PN}, so that u-a wasn't used for e.g. telinit
and sysvinit and upstart were conflicting.

:Detailed Notes:
Fixes do_rootfs issue like:
| Collected errors:
|  * check_data_file_clashes: Package sysvinit wants to install file
        rootfs/sbin/telinit
| 	But that file is already provided by package  * upstart
|  * opkg_install_cmd: Cannot install package sysvinit-dbg.

Drop unused PRIORITY variable, because people can assume that it has
something to do with update-alternatives.

:Testing Performed:
Only build tested and confirmed that telinit is using u-a.

:QA Notes:
No user visible change in image.

:Issues Addressed:
[GF-2635] Upgrade to Upstart 1.8

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: Ib1c9b582980fc65734cffec059de3322f9445be6
Reviewed-on: https://g2g.palm.com/3307
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Ed Chejlava <ed.chejlava@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
upstart: Add udev dependency and drop unpackaged icons

:Release Notes:
Building upstart autodetects its dependency only if udev is built first.
Explicitly adding the DEPENDS should fix that.

:Detailed Notes:
Currently building upstart 1.8 may generate an error depending on
whether udev was already built or not.  If it was not, you will see:
WARN: packages/armv7a-vfp-neon-oe-linux-gnueabi/upstart/upstart/latest
      lost dependency on libudev
Explicitly adding the dependency in an RDEPENDS statement fixes
that problem.
Also adding a new patch file to stop the icon files from being built
when we don't ship them.

:Testing Performed:
cleanall-udev, cleanall-upstart then make upstart.  Watch output for
WARNING: QA Issue: upstart: Files/directories were installed but not shipped
  /usr/share/icons
  /usr/share/icons/hicolor
...
Also note that udev is built after upstart now, when previously
it was not.

:QA Notes:

:Issues Addressed:
[GF-35138] upstart-1.8 autodetects udev dependency

Open-webOS-DCO-1.0-Signed-off-by: Ed Chejlava <ed.chejlava@lge.com>

Change-Id: I33f6d5433c6f355639f39c803e2254a759ee461f
Reviewed-on: https://g2g.palm.com/3310
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Ed Chejlava <ed.chejlava@lge.com>
qmake5.bbclass: Add WEBOS_INSTALL_PREFIX

:Release Notes:
Add WEBOS_INSTALL_PREFIX to EXTRA_QMAKEVARS_PRE, the default parameters
for qmake.

:Detailed Notes:

:Testing Performed:
Verified in bitbake build that this variable passed to qmake and
Makefile generated based on this variable contained a correct path.

:QA Notes:

:Issues Addressed:
[GF-34262] webos_qmake5 bb-class should provide enough information about
           sysbus files installation paths
[GF-38915] CCC: starfish-luna-surface-manager=60 luna-surfacemanager=36
           qml-starfish-components=11 qml-webos-bridge=13
           qt-features-webos=10 qml-starfish-components=11

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Change-Id: I5a38cd3b3975c09e7c8a465c664a83108dda6f6f
Reviewed-on: https://g2g.palm.com/3089
Reviewed-by: Mikko Levonmaa <mikko.levonmaa@lge.com>
Tested-by: Mikko Levonmaa <mikko.levonmaa@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
webos-image: Update for change in format of SetEnvInit.conf

:Release Notes:
As of starfish-initscripts submission 40, the format for how 
ROOTFS_READ_ONLY is set changed in SetEnvInit.conf.

:Detailed Notes:

:Testing Performed:
Built and booted target successfully.
miniBAT run - results attached to GF-39256

:QA Notes:

:Issues Addressed:
[GF-38599] Upstart: modify initctl's set-env command to process more
           than one argument
[GF-39256] CCC: Update webos-image.bbclass for change in format of 
           SetEnvInit.conf

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

Change-Id: Ia629932f2219fa0a8f138b11d1f6a3f76433d3ea
Reviewed-on: https://g2g.palm.com/3487
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
meta-webos: db8=87,v3.1.0

:Release Notes:
Add "%%" operator in filter to search "substring" and update test case.
The user can specify a single element or an arrary of elements.

:Detailed Notes:
submissions/86...submissions/87
- a612d1f Increment DB8 version from 3.0 to 3.1
- e0f32a0 Add "substring" search in filter clause

:Testing Performed:
DB8 unit tests
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-37501] DB8: Add substring search in filter
[GF-39177] CCC: db8=87,v3.1.0

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>
Change-Id: Ic9836f439a6eba7bdcba9373b29b7405aadeabf5
Reviewed-on: https://g2g.palm.com/3481
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: activitymanager=115,v3.0.0

:Release Notes:
- Use correct API name for ConnMgr to get connection status.
- Update version to v3.0 since now dependent on v3.x of DB8 and PmLog

:Detailed Notes:
submissions/114...submissions/115
- ef0e528 Increment version from 2.0 to 3.0
- c3d6985 Changed the Connection Manager getstatus API Name

:Testing Performed:
run on device and examine logs
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-39184] ActivityManager is not parsing status from ConnMgr
[GF-39198] CCC: activitymanager=115,v3.0.0

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>
Change-Id: Ib35afb7185fe09fc1326458f9435b76614fcee0b
Reviewed-on: https://g2g.palm.com/3484
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: pmlogdaemon=111 pmloglib=40

:Release Notes:
Arrange log messages
Use WEBOS_DISTRO_PRERELEASE to disable key-value validation

:Detailed Notes:
Removed useless log messages and added some logs
Inherited webos_prerelease_dep and get WEBOS_DISTRO_PRERELEASE

Changes included in pmlogdaemon submissions/111
0f95cc4 Modify process start time to execute ASAP
3b98a7e pmlogdaemon: Arrange log messages

Changes included in pmloglib submissions/40
9b5c490 Use WEBOS_DISTRO_PRERELEASE in production builds

:Testing Performed:
Compiled locally and tested on a device.
- PmLogCtl has used to test this fixing.
- Full clean local build performed to ensure no components failed
to compile due to use of the -Werror option.A
- Verification build pulled down for mini-BAT

:QA Notes:

:Issues Addressed:
[GF-39126] CCC: pmlogdaemon=111 rdxd=135 uploadd=47 pmloglib=40
[GF-7721] pmloglib: Use WEBOS_DISTRO_PRERELEASE to disable ...
[GF-38840] Arrange log messages which are related on log ...

Open-webOS-DCO-1.0-Signed-off-by: Hongjeon Ha <hj.ha@lge.com>

Change-Id: I1fb0927a2a8b0257f94c39f6bf1204664baa7916
Reviewed-on: https://g2g.palm.com/3475
Reviewed-by: Hongjeon Ha <hj.ha@lge.com>
Tested-by: Hongjeon Ha <hj.ha@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: filecache=59 pmklogd=14 powerd=22

:Release Notes:
Modify process start time to support bootime

:Detailed Notes:
UX components are the most important components in bootime.
In order to improve bootime for UX components,
we need to modify some components's start time.
- init-boot-done : The position for important components
- minimal-boot-done : The position for rest components

filecache:
submissions/57..submissions/59
b254f84 Remove 'stopped finish' start condition
0ad059e Modify process start time to support bootime

pmklogd:
submissions/13..submissions/14
c901f84 Cosmetic change to apply code formatting
6393831 Modify process start time to execute ASAP

powerd:
submissions/21..submissions/22
6a8c72f Remove 'stopped finish' start condition
e5b4c04 Modify process start time to support bootime

:Testing Performed:
miniBAT : See GF-39168

:QA Notes:

:Issues Addressed:
[GF-35147] [Boottime] Make best boot sequence
           to support showcase-app initialization
[GF-39168] CCC: connman=starfish9 dropbear=starfish8
           pulseaudio=r20 com.palm.service.devmode=7
           filecache=59 keymanager=63 pmklogd=14
           pmlogctld=83 powerd=22 sleepd=19 rdxd=136 uploadd=48

Open-webOS-DCO-1.0-Signed-off-by: Sangwoo Kang <sangwoo82.kang@lge.com>

Change-Id: I4564f428934872b49b019a4f4fb1d8fe571f8c90
Reviewed-on: https://g2g.palm.com/3485
Reviewed-by: Sangwoo Kang <sangwoo82.kang@lge.com>
Tested-by: Sangwoo Kang <sangwoo82.kang@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Changhyeok Bae <changhyeok.bae@lge.com>
Tested-by: Changhyeok Bae <changhyeok.bae@lge.com>
alljoyn: Add patch to fix a lot of context switches on idle system

:Release Notes:
This patch is to prevent a lot of process context switchs
in some network environments(more than 50 TVs under the same subnet)

:Detailed Notes:
If there is a zombie connection during the endpoint authentication,
the TCPTransport Manager kills it

:Testing Performed:
tested on official build(#1371)
MiniBAT done

:QA Notes:

:Issues Addressed:
[GF-37747] Excessive process context switches on idle system
[GF-16486] alljoyn-daemon creating significant number of context switches
[GF-39558] CCC: alljoyn=r3 Excessive process context switches

Open-webOS-DCO-1.0-Signed-off-by: Seongho Kim <seongho.kim@lge.com>

Change-Id: If7b908cb82ab878572d31b4cd4f18033913100d3
Reviewed-on: https://g2g.palm.com/3495
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
webos-image: db8=88

:Release Notes:
- Fix 'put' to allow add records with shardId, by using
    'admin' privileges when updating the Kind:1 record.
- Remove needless "MojErrCheck" macro in MojDbLunaServiceDb::open

:Detailed Notes:
submissions/87...submissions/88
- d5cb738 Remove needless "MojErrCheck" macro
- 26f35ac Use 'admin' privileges when updating Kind:1 kind

:Testing Performed:
- tested on build:
- Used 'put' to add some records associated with a shard
- After marking the shard as transient and removing the device, ran
   the 'purge' operation and observed that they were removed.
- DB8 unit test suite
- mini-BAT

:QA Notes:

:Issues Addressed:
[GF-39359] "db not open error" is reported ...
[GF-39676] Permissions issues with the Kind:1 kind
[GF-40176] CCC: db8=88

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@lge.com>
Change-Id: Ia8a838f36f7adcfe09df82f916f098d8bb58462c
Reviewed-on: https://g2g.palm.com/3549
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>