nodejs: Remove mksnapshot from emulator builds

:Release Notes:
Emulator builds of Node.js no longer call mksnapshot.

:Detailed Notes:
Emulator builds of Node.js no longer call mksnapshot. This will
need to be revisited for performance reasons, but is needed to get
the emulator build working again.

:Testing Performed:
Node.js built with --without-snapshot runs, build without segfaults on
startup.

:QA Notes:

:Issues Addressed:
[GF-42389] Node services appear to be broken
[GF-42545] CCC: nodejs=r5

Open-webOS-DCO-1.0-Signed-off-by: Mark Bessey <mark.bessey@lge.com>
Change-Id: I79915ec77fd4f515e5ed4340bf26356a360ca410
Reviewed-on: https://g2g.palm.com/3662
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: sleepd=20

:Release Notes:
Correct static analysis issues and convert to use PmLogLib for logging.

:Detailed Notes:
Static analysis uncovered a variety of issues (see GF-37173 for details)
including:
- Resource leaks
- Not testing correctly for file open failures
- unsafe parsing of time and date using sscanf
- High usage of goto causing memory leaks

submissions/19..submissions/20
6322504 Code Formatting Cleanup
04063a7 Logs Conversion
bea277e Coverity issues bug fixes

:Testing Performed:
Tested for regressions on device

:QA Notes:

:Issues Addressed:
[GF-5156]  sleepd: Log using the new pmloglib API
[GF-37173] sleepd: Coverity Issues
[GF-42620] CCC: sleepd=20

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@lge.com>
Change-Id: Ib150c53a524e4118723755d6c60587ffad930e83
Reviewed-on: https://g2g.palm.com/3674
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
webos-image: pmloglib=41

:Release Notes:
Disable PMLOG_TRACE on production build.
Use mainstream only on production build.

:Detailed Notes:
When process the production build PMLOG_TRACE should not be used.
PmLogLib.h now checks the flag and decides whether it can be used.
All configuration files for pmlog will be ignored except default.conf
on production build.
All the log messages will be recorded in /var/log/messages.

submissions/40..submissions/41
c85c11a Disable PMLOG_TRACE on production build
c591786 Use mainstream only on production build

:Testing Performed:
Compiled locally and tested on a device.

:QA Notes:

:Issues Addressed:
[GF-41949] pmloglib: Disable PMLOG_TRACES_ENABLED for production builds
[GF-11307] Disable context rules for production
[GF-42526] CCC: pmloglib=41 rdxd=139

Open-webOS-DCO-1.0-Signed-off-by: Hongjeon Ha <hj.ha@lge.com>
Change-Id: I8df7e2cd89dceda2d3d50163d09a4bd4591c7644
Reviewed-on: https://g2g.palm.com/3682
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Hongjeon Ha <hj.ha@lge.com>
Tested-by: Hongjeon Ha <hj.ha@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
buildhistory: Measure time needed for git status and git push

:Release Notes:
buildhistory checkout is huge, git status can take significant time.
This commit is to check if it's true for our builders.

:Detailed Notes:

:Testing Performed:
Only build tested.

:QA Notes:
No change in image.

:Issues Addressed:
[ES-271] Measure where time is going in our various OE builds

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: If42edfb73bbf6ab4c6ee7f9c36f20ab07bf0aa9c
Reviewed-on: https://g2g.palm.com/3635
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
uchardet: Add recipe for v0.0.1

:Release Notes:
The uchardet is a C language binding of the original C++ implementation
of the universal charset detection library by Mozilla.

:Detailed Notes:
This library is needed to detect the character encoding of text subtitles.

:Testing Performed:
Only build tested.

:QA Notes:

:Issues Addressed:
[GF-42749] Add uchardet library to the image

Change-Id: I12a321b6897abe2bbe2e8126760d98a5b726c586
Open-webOS-DCO-1.0-Signed-off-by: Hwangmok Cho <hwangmok.cho@lge.com>
Reviewed-on: https://g2g.palm.com/3624
Reviewed-by: Build Verification
Reviewed-by: Earnest Son <earnest.son@lge.com>
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: libpbnjson=21

:Release Notes:
Fixed JSON schema validation in multithreaded environment. Added JSON
schema validation doxygen documentation. Slightly improved JSON schema
validation performance.

:Detailed Notes:
libpbnjson: submissions/21..submissions/22
64be9d7 Fix JSON schema validation in multithreaded environment
885507f Improve memory allocations during validation against JSON schema
15f43bc Add performance measurements tests for schema validation
bd41dc0 Modify *_put functions to always take ownership
d319bbf Document schema validation

:Testing Performed:
miniBAT

:QA Notes:

:Issues Addressed:
[GF-38364] pbnjson: Document schema validation
[GF-9986]  libpbnjson: Refactor jobject_put and jarray_put() to take
           ownership even in case of error
[GF-38338] pbnjson: Measure and tune schema validation performance
[GF-42809] pbnjson: Fix reference counting of generic_validator (and
           alike) in multithreaded environment
[GF-43271] CCC: libpbnjson=21

Open-webOS-DCO-1.0-Signed-off-by: Mykola Kryvonos <mykola.kryvonos@lge.com>

Change-Id: I70b52e59f561ded86e6b9d91a3c62fcc3439cef0
Reviewed-on: https://g2g.palm.com/3708
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
alljoyn: remove script/end script to eliminate dangling /bin/sh

:Release Notes:
Upstart scripts using script/end script result in one extra /bin/sh
process hanging around

:Detailed Notes:
Replacing the 'script' blocks with 'exec' where possible reduced the
number of excess /bin/sh processes to 1.

:Testing Performed:
MiniBAT: See GF-43176

:QA Notes:

:Issues Addressed:
[GF-35091] Upstart scripts leaving many dangling /bin/sh procs
[GF-43176] CCC: alljoyn=r5

Open-webOS-DCO-1.0-Signed-off-by: Wonhong Kwon <wonhong.kwon@lge.com>

Change-Id: I36f0f93537f3c0ba66d243c76f77fb516721bd81
Reviewed-on: https://g2g.palm.com/3703
Reviewed-by: Wonhong Kwon <wonhong.kwon@lge.com>
Tested-by: Wonhong Kwon <wonhong.kwon@lge.com>
Reviewed-by: Ed Chejlava <ed.chejlava@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: db8=91

:Release Notes:
Fix problem with DB8 mountpoint symlink.
Fix db8 test gtest_db_media.
Reduce "info" logs, move debug information to
"debug" log chain.

:Detailed Notes:
submissions/89..submissions/91

4343391 Fix for gtest_db_media
4955382 Fix creating of mountpath symlink
f4b6606 Logs Cleanup

:Testing Performed:
unit tests
mini-BAT

:QA Notes:

:Issues Addressed:
[GF-42282] CCC: db8=91
[GF-37668] gtest_db_media has a failure
[GF-40003] shard mount path is unreliable
[GF-41258] mojodb is logging debug messages at info level

Open-webOS-DCO-1.0-Signed-off-by: Maksym Sditanov <maxim.sditanov@lge.com>

Change-Id: I5581901b59ba0300fbd04f6b26d9fce8a9d15588
Reviewed-on: https://g2g.palm.com/3576
Reviewed-by: Build Verification
Reviewed-by: Maksym Sditanov <maxim.sditanov@lge.com>
Tested-by: Maksym Sditanov <maxim.sditanov@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos_version: Add a bbclass for parsing WEBOS_VERSION

:Release Notes:
Split off the functions that parse WEBOS_VERSION into a separate bbclass
so that they can be used by other bbclasses.

:Detailed Notes:

:Testing Performed:
"make webos-image" succeeded.

:QA Notes:
No change to image.

:Build Notes:
This change will invalidate the sstate of all webOS components.

:Issues Addressed:
[GF-9265] Develop a scheme so that binary components that contain kernel
          modules don't need to depend on virtual/kernel

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@lge.com>
Change-Id: I024838b847d131ecad74d5b33f3d78fac804840e
Reviewed-on: https://g2g.palm.com/3718
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: libpbnjson=23

:Release Notes:
Improve JSON Schema validation performance and memory usage.

:Detailed Notes:
libpbnjson: submissions/22..submissions/23
197c50b Improve JSON schema validation performance
957b084 Remove redundant checks after memory allocations

:Testing Performed:
miniBAT

:QA Notes:

:Issues Addressed:
[GF-43049] pbnjson: Remove redundant checks after memory allocations
[GF-42811] pbnjson: Implement more static objects to improve memory
           footprint
[GF-43960] CCC: libpbnjson=23

Open-webOS-DCO-1.0-Signed-off-by: Mykola Kryvonos <mykola.kryvonos@lge.com>

Change-Id: I63e23c97e7975b70518d2062a7df4de7760701e5
Reviewed-on: https://g2g.palm.com/3735
Reviewed-by: Build Verification
Reviewed-by: Mykola Kryvonos <mykola.kryvonos@lge.com>
Tested-by: Mykola Kryvonos <mykola.kryvonos@lge.com>
Build: Mykola Kryvonos <mykola.kryvonos@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: upstart=r5 (don't install unnecessary files)

:Release Notes:
There are a fair number of unused files installed with Upstart 1.8. This
change moves them into separate packages that aren't installed by
default.

:Detailed Notes:
Upstart 1.8 includes these files that are not used:
These move to the upstart-udev-bridge package:
- /etc/init/upstart-*-bridge.conf (4 files)
- /sbin/upstart-*-bridge (4 files)
These move to the upstart-systemd package:
- /etc/dbus-1/system.d/Upstart.conf
These move to the upstart-dev package:
- /bin/init-checkconf
- /bin/upstart-monitor
- /bin/initctl2dot

:Testing Performed:
Built locally and verified that the unsuffixed upstart package contained
only the need files.

:QA Notes:
This should be invisible to you. If anything changes due to this fix
(other than a little more free space in flash), it is a bug.

:Issues Addressed:
[GF-38231] upstart: Remove unneeded files installed on the target
[GF-42936] CCC: upstart=r5

Open-webOS-DCO-1.0-Signed-off-by: Ed Chejlava <ed.chejlava@lge.com>
Change-Id: Ifc3e40b530111d4047b82b3ec543d745352bdfaf
Reviewed-on: https://g2g.palm.com/3698
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: luna-service2=158

:Release Notes:
Luna-service2 debug and security improvements.
Luna-service2 build fix.

:Detailed Notes:
luna-service: submissions/157..submissions/158
e3d321e Enable asserts in developer images
6465e9f Move ls-monitor ot /usr/sbin
e5636a9 Re-order include directories

:Testing Performed:
On device and emulator.

:QA Notes:

:Issues Addressed:
[GF-39090] LS2: Enable asserts for testing builds
[GF-42258] LS2: Move ls-monitor to /usr/sbin
[GF-38496] luna-service2 submissions/154 does not compile on the desktop
[GF-42816] CCC: luna-service2=158

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

Change-Id: Idf94120051fe239d07b5102954b497e070df2f60
Reviewed-on: https://g2g.palm.com/3693
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Build: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: Invent WEBOS_DISABLE_LS2_SECURITY setting

:Release Notes:
Add a new setting WEBOS_DISABLE_LS2_SECURITY to disable LS2 security

:Detailed Notes:
A new variable WEBOS_DISABLE_LS2_SECURITY can be used in bitbake configuration
files to disable LS2 security.
Default value of the variable(false) is weakly set in LS2's recipe

:Testing Performed:
Checked that the setting impacts the security configuration

:QA Notes:

:Issues Addressed:
[GF-39397] Add a new setting WEBOS_DISABLE_LS2_SECURITY to disable LS2 security

Open-webOS-DCO-1.0-Signed-off-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>

Change-Id: I0ad1f53452881702b5c9a0b0ff0005592f062fd5
Reviewed-on: https://g2g.palm.com/3589
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Tested-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: configurator=55

:Release Notes:
Move some info logs to debug

:Detailed Notes:
Info level is used for logging metrics information. Many debugging
logs were placed in the info level. They are now moved to debug.

:Testing Performed:
Compiled locally and tested on device.
Verified the log file does not have unwanted info messages.

submissions/54..submissions/55
897355a Move some info and notice logs to debug

:QA Notes:

:Issues Addressed:
[GF-42671] Configurator is logging debug messages at info level
[GF-43852] CCC: configurator=55

Open-webOS-DCO-1.0-Signed-off-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>

Change-Id: I47026da2eb65a069714aaa5fadc69fcd9f8da00a
Reviewed-on: https://g2g.palm.com/3725
Reviewed-by: Build Verification
Reviewed-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>
Tested-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
mtp: Add recipes for libmtp=v1.1.6 mtpfs=v1.1

:Release Notes:
Add library supporting communication with media transfer protocol.
Add utility to fuse-mount MTP device.

:Detailed Notes:

:Testing Performed:
Tested libmtp is built successfully.
Tested mtpfs is built successfully.

:QA Notes:

:Issues Addressed:
[GF-42947] CCC: Add libmtp=v1.1.6 mtpfs=v1.1

Open-webOS-DCO-1.0-Signed-off-by: jaesung5.lee <jaesung5.lee@lge.com>
Change-Id: Ibb6f710cec2445cb89dd22792442974cbe3c38d4
Reviewed-on: https://g2g.palm.com/3700
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Build Verification
Build: Jaesung Lee <jaesung5.lee@lge.com>
Reviewed-by: Jaesung Lee <jaesung5.lee@lge.com>
Tested-by: Jaesung Lee <jaesung5.lee@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
webos-image: pmloglib=42 db8=92

:Release Notes:
Add logic for message id validation
Modify ErrPrint() and add WarnPrint()
Modify openlog() option parameter

:Detailed Notes:
pmloglib: submissions/41..submissions/42
034474e Add logic for message id validation
1646039 Modify ErrPrint() and add WarnPrint()

db8: submissions/91..submissions/92
fa1e492 Modify openlog() option parameter

[pmloglib]
When log messages which are higer than debug come into
pmloglib, if they have empty message id, it will be recorded error
message like below.
"user.err a.out [23431] PmLogCtl EMPTY_MSGID {} MSGID must not be empty"
ErrPrint() recorded error message at "/var/log/messages" even some
module is using it's own log file. So now, ErrPrint() receives one
more parameter for it's context name and error messages will be
recorded at their own log files.
[db8]
pid need not be appended since pmloglib is doing it.

:Testing Performed:
Compiled locally and tested on a device.

:QA Notes:

:Issues Addressed:
[GF-44004] Message ID should be included in log message only
           it's not a debug level.
[GF-43173] LunaSysMgrJS is generating err log message, size exceeded
[GF-43866] PmLogLib generates error log only at "/var/log/messages"
           if they have wrong format.
[GF-43868] mojodb shows process id along with process name
[GF-43873] CCC: pmloglib=42 db8=92

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

Change-Id: Ib9e859ca87a86a29552078c4c5162766fea2ef4f
Reviewed-on: https://g2g.palm.com/3756
Reviewed-by: Build Verification
Reviewed-by: Eunmin Lim <eunmin.lim@lge.com>
Tested-by: Eunmin Lim <eunmin.lim@lge.com>
webos-image: luna-sysservice=17

:Release Notes:
Added device and OS information functions.
Time functions improvements.
Fixed builds with Qt lower then 5.0
Log bugfix.

:Detailed Notes:
luna-sysservice: submissions/15..submissions/17
0fc46dd Re-organize Logging.h to handle undef USE_PMLOG
9aab06e Add Device and OS Information API
383323e Log related bug fix
4fe83e7 Include broadcast-time as source for time-sync
a78bb08 Make json schema more strict
7107306 Remove reply in callback on reply from powerd
50c31a0 Allow to subuscribe on getEffectiveBroadcast
17ba9c8 Add calendar-time to response for BroadcastTime
56338c0 Add UTC value to getEffectiveBroadcastTime

:Testing Performed:
miniBAT.

:QA Notes:

:Issues Addressed:
[GF-42852] Need a way to read nyx OSInfo from web app
           (luna-service call)
[GF-41271] LunaSysService is logging debug messages at info level
[GF-42286] System time should be able to sync from broadcast signal
[GF-42288] setBroadcastTime accepts empty parameter
[GF-42136] Segfault in luna-sysservice during response on luna-service2
           generated error message (desktop build)
[GF-41609] sys manager must provide a way to subscribe to Effective
           Broadcast Time
[GF-40249] Provide API to obtain EBT from luna-sysservice
[GF-41588] we need UTC string back in getEffectiveBroadcastTime
[GF-43971] CCC: luna-sysservice=17

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

Change-Id: If8c36f99aab3d57d15cfcbe7802e622e6d2364f0
Reviewed-on: https://g2g.palm.com/3736
Reviewed-by: Build Verification
Reviewed-by: Eunmin Lim <eunmin.lim@lge.com>
Tested-by: Eunmin Lim <eunmin.lim@lge.com>
webos-image: luna-service2=160

:Release Notes:
submissions/158..submissions/160
Control the main points that alone call passes
Asserts should be disabled only in Mass Production builds

:Detailed Notes:
ddf95d5 Add tracepoint to control a flow of a call
5c6a63e Fix asserts in developer images

:Testing Performed:
Intenal unit tests were passed successfully with memory error detection

:QA Notes:

:Issues Addressed:
[GF-39729] Add tracepoints in LS2 service
[GF-43805] LS2: Fix asserts in development images.
[GF-44317] CCC: luna-service2=160

Open-webOS-DCO-1.0-Signed-off-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>

Change-Id: I5d02e826388fa7949f2ea81ae7ff366d5578d22c
Reviewed-on: https://g2g.palm.com/3750
Reviewed-by: Build Verification
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: Enable tracepoints for luna-service2

:Release Notes:
Apply global tracepoint setting to luna-service2

:Detailed Notes:

:Testing Performed:
Traces were collected successfully

:QA Notes:

:Issues Addressed:
[GF-44468] CCC: Enable tracepoints for luna-service2
[GF-39729] Add tracepoints in LS2 service

Open-webOS-DCO-1.0-Signed-off-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>

Change-Id: I8b38ac10a0d71edcbf284685ad48dc29ce234bf0
Reviewed-on: https://g2g.palm.com/3763
Reviewed-by: Build Verification
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Revert "webos-image: Enable tracepoints for luna-service2"

Revert https://g2g.palm.com/#/c/3763/ because of build failure.

This reverts commit 74f2f2bf45348d233f8b1b1d0a332541b950566d.

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

Change-Id: Id7365e113853aa606401ae16e75208a203d126ae
Reviewed-on: https://g2g.palm.com/3770
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>