webos.inc: Change default PACKAGE_ARCH to MACHINE_ARCH

:Release Notes:
Some components are incorrectly kept as TUNE_PKGARCH even when they
depend on something that's MACHINE_ARCH. The build layout created by mcf
doesn't support sharing binary feeds and all officially supported
MACHINE-s have different architecture, so it's easier to change the
default PACKAGE_ARCH than to fix all the components with incorrect
TUNE_PKGARCH.

:Detailed Notes:
Hopefully the design of several components will be reevaluated later and
improved to support more TUNE_PKGARCH builds, like in this example:
https://github.com/webOS-ports/meta-webos-ports/commit/7bc124393f8e59c5eb5f74e76486bb2e2f6c7b64

:Testing Performed:
Only build tested.

:QA Notes:
No functional change to image.

:Build Notes:
- Invalidates almost all shared state.
- Because this commit causes many packages to be given a different
  PACKAGE_ARCH, to avoid confusion, incremental build trees should be
  rebuilt from scratch after pulling this commit, i.e., execute:
    $ rm -rf BUILD-*
    $ ./mcf.status

:Issues Addressed:
[GF-43076] Set PACKAGE_ARCH of all compiled components to be
           MACHINE_ARCH
[GF-46352] CCC: Set the package architecture of all compiled components
           to be MACHINE

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: Ia3a74b12794d92d657c838aca8bc21fc0ed8d104
Reviewed-on: https://g2g.palm.com/3808
Reviewed-by: Build 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: alljoyn=v3.4.2

:Release Notes:
Upgrade the version of AllJoyn open-source 3.3.0 to 3.4.2

:Detailed Notes:
Cleanup endpoints for which session routing has not been
set up until a timeout.
TCPTransport assertion failure due to number of connected endpoints.
Calling GetPeerGUID from RequestCredentialsAsync callback may cause
deadlock when AllJoyn is built with OpenSSL without multi-thread support

:Testing Performed:
Unit test : OK
MiniBAT : [GF-45941]

:QA Notes:

:Build Notes:
The following change must be merged simultaneously with this change:
https://gpro.palm.com/16610/

:Issues Addressed:
[GF-45941] CCC: alljoyn=v3.4.2

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

Change-Id: I1860b31b49487156c0557e86bc6617811883ee87
Reviewed-on: https://g2g.palm.com/3881
Reviewed-by: Build Verification
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
webos-image: libpbnjson=26,v2.2.0

:Release Notes:
JSON Schema uniqueItems property implemented. Added error reporting
during validation against schema and during schema parsing.

:Detailed Notes:
submissions/24..submissions/26
45dba1f Add JSON Schema validation error reporting
de0b789 Add error reporting during JSON Schema parsing
c1202cb Implement uniqueItems in JSON Schema validation

:Testing Performed:
Unit tests (with memchecker). miniBAT

:QA Notes:

:Issues Addressed:
[GF-41896] pbnjson: Implement 'uniqueItems' in JSON schema
[GF-43955] pbnjson: Provide information about validation error
[GF-51404] CCC: libpbnjson=26,v2.2.0

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

Change-Id: I45edc815d4f3a3201581daeb6ac76286e0b99fe7
Reviewed-on: https://g2g.palm.com/3908
Reviewed-by: DCO Verification
Build: Mykola Kryvonos <mykola.kryvonos@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: sleepd=23

:Release Notes:
Converts sleepd from relying on /dev/rtc to being able to use the system
monotonic clock.

:Detailed Notes:

When combined with changes to luna-sysservice, this will resolve many
problems with time-based events on devices without a real time clock
exposed via the /dev filesystem.

Changes submissions/22..submissions/23
42e4650 Cosmetic change to apply code formatting
2c6020e Replace RTC with monotonic clock
951eb7f extract out RTC interaction code
a6eafbe cleanup timeout_alarm public API
ec03752 Enable conditional use of -Werror in compile

:Testing Performed:
Mini BAT

:QA Notes:

:Issues Addressed:
[GF-6704] sleepd daemon looks unhappy
[GF-51627] CCC: sleepd=23

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@lge.com>

Change-Id: I5617a93a01573ea2d626f97afa2b2b9d6f9664fb
Reviewed-on: https://g2g.palm.com/3938
Reviewed-by: DCO Verification
Build: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: luna-service2=162,v3.5.2

:Release Notes:
Change library version to 3.5.2
Fixed hub memory cleanup for clients and roles.
Split roles/services directories into steady and volatile.
Accept and correctly handle service files with glob-style wildcards

:Detailed Notes:
126d2b9 Change library version to 3.5.2
64bda96 Fix hub memory cleanup
02beafc Add new ls-control command to rescan volatile dir
d2f1373 Implement wildcards in service files
ebd8755 Fix potential file descriptor leak

:Testing Performed:

:QA Notes:

:Issues Addressed:
[GF-45291] LS2: Investigate and fix potential memory leaks
[GF-40294] Add new api to LS2 to support scanning specific dir
[GF-45074] LS2: add support for patterns in service files
[GF-51666] CCC: luna-service2=162,v3.5.2

Open-webOS-DCO-1.0-Signed-off-by: Alekseyev Oleksandr<alekseyev.oleksandr@lge.com>
Change-Id: I1242ac07e3a4330625179df50e926f8d27b912b0
Reviewed-on: https://g2g.palm.com/3935
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>
luna-service2: Force LTTng tracepoints off unless explicitly enabled

:Release Notes:
LTTng tracepoints in luna-service2 are now disabled even when enabled
globally. They can re-enabled by setting (typically in a local build)
WEBOS_LTTNG_ENABLED_pn-luna-service2 = "1".

:Detailed Notes:
Enabling LTTng tracepoints in luna-service2 can cause an out of memory
condition because luna-service2 is used by many components, so they are
disabled by default.

:Testing Performed:
Checked by building.

:QA Notes:

:Issues Addressed:
[GF-45835] Put luna-service2 tracepoints behind a compile time flag

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

Change-Id: I1a7c9491cf984caa24bfad4f901b5291005570bb
Reviewed-on: https://g2g.palm.com/3914
Reviewed-by: DCO Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
webos-image: luna-sysservice=19

:Release Notes:
Fix bugs.
Drop old timezone related code.

:Detailed Notes:
submissions/17..submissions/19

075aa3b Fixed typo in readFile from Utils.cpp
879469a Fix some coverity reported issues
1f87d66 Coverity issues bug fixes
ec4846c Fix localtime path and drop unneeded code
26ce838 Check the timezone availability before setting time zone

:Testing Performed:
miniBAT

:QA Notes:

:Issues Addressed:
[GF-46358] broadcast time synchronization can't work
[GF-46363] luna-sysservice: Coverity reports high impact issues
[GF-45489] Coverity issues in luna-sysservice
[GF-44351] luna-sysservice can't change time-zone on squashfs image (read-only root)
[GF-44692] luna-sysservice shouldn't accept wrong time zones
[GF-51639] CCC: luna-sysservice=19

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

Change-Id: I43ad9c939388c553b93b1397f52fa88d81e9b176
Reviewed-on: https://g2g.palm.com/3933
Reviewed-by: DCO Verification
Build: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Tested-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: db8=96

:Release Notes:
Refactoring of ShardEngine
Performance improvment when data store into database
Add purge activity
Fix logging
Fix crashing when service stops
Fix setting of default locale (search issue and ICU)
Fix unit test
Move media mountpoint directory to /var/run/db8/mountpoints
Add ability to configure mountpoint directory via mojodb.conf

:Detailed Notes:
submissions/94..submissions/96
9e9fca0 Destroy PDM signal before connected slots
3dc2de8 Refactoring shard engine
1f3a357 Shard engine refactoring
d040449 Add purge activity to avoid quota exceed error
2375312 Change log macro from error to warning
30d285e Remove trailing spaces
8a0d1a9 Fix setting process for default Locale
8f4496d Put media links to /var/run/db8/mountpoints

:Testing Performed:
mini-BAT : See GF-46428

:QA Notes:

:Issues Addressed:
[GF-46421] Crashing of db8 when it stops
[GF-42440] db8: CPU share more than 50% in mojodb-luna when external
           storage is plugged in and off
[GF-42446] db8: Determine and modify quota by service in Mojodb.conf
[GF-44430] Add purge activities for tempdb and mediadb services
[GF-43661] A service is logging multiple error messages
[GF-40467] A service is throwing a DB8 error
[GF-35815] gtest_db_core has 5 failures
[GF-45408] db8: Replace /media/mountpoints with /var/run/db8/mountpoints
[GF-46428] CCC: db8=96

Open-webOS-DCO-1.0-Signed-off-by: Maksym Sditanov <maxim.sditanov@lge.com>
Change-Id: I03831f1e6eb0e5285ed4fb4599ca13fdc0facde4
Reviewed-on: https://g2g.palm.com/3895
Reviewed-by: DCO Verification
Build: Maksym Sditanov <maxim.sditanov@lge.com>
Reviewed-by: Maksym Sditanov <maxim.sditanov@lge.com>
Reviewed-by: Build Verification
Tested-by: Maksym Sditanov <maxim.sditanov@lge.com>
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-preferred-providers: Add webos-shutdownscripts to initscripts

:Release Notes:
Add webos-shutdownscripts to what's currently in
VIRTUAL-RUNTIME_initscripts, because if another layers replaces them
with something else, webos-shutdownscript will need to be replaced as
well.

:Detailed Notes:

:Testing Performed:
Checked rootfs content.

:QA Notes:

:Issues Addressed:
[GF-5716] Clean up rootfs and duplicate files

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

Change-Id: I2796c3cb0a5c984e54886086007db407747de89e
Reviewed-on: https://g2g.palm.com/3922
Reviewed-by: DCO Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
Build: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>
webos-image: nodejs-module-webos-pmlog=16

:Release Notes:
Fix debug logging for nodejs pmlog plugin

:Detailed Notes:
API implementation is fixed to call PmLogString API with correct
parameters for debug level.

submissions/15..submissions/16
d63e2ca Fix debug logging for nodejs pmlog plugin

:Testing Performed:
Compiled and tested locally

:QA Notes:

:Issues Addressed:
[GF-51790] nodejs pmlog plugin does not log debug messages
[GF-51961] CCC: nodejs-module-webos-pmlog=16

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

Change-Id: I2c166f0daacf3dc6b7c3b77d7da454b0bbfa4f1a
Reviewed-on: https://g2g.palm.com/3961
Reviewed-by: DCO Verification
Build: Gayathri Srinivasan <gayathri.srinivasan@lge.com>
Reviewed-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>
Tested-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: activitymanager=119

:Release Notes:
Fix Defects From Static Analysis (Coverity).

:Detailed Notes:
submissions/118..submissions/119
99ae471 Coverity issues bug fixes

:Testing Performed:
See test results on GF-51356.

:QA Notes:

:Issues Addressed:
[GF-51356] Activity Manager : Fix Issue From Static Analysis (Coverity)
[GF-51605] CCC: activitymanager=119

Open-webOS-DCO-1.0-Signed-off-by: heekwon kang <hk.kang@lge.com>

Change-Id: I1c3baa2b62368b032988d4705f781b2726338192
Reviewed-on: https://g2g.palm.com/3931
Reviewed-by: DCO Verification
Reviewed-by: Heekwon Kang <hk.kang@lge.com>
Tested-by: Heekwon Kang <hk.kang@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
tzdata: Add bbappend to setup writable conf files

:Release Notes:
Allow changing the time zone when rootfs is read-only by having
/etc/localtime and /etc/timezone be symlinks to files under
/var/luna/preferences.

:Testing Performed:
Verified that:
- symlinks in /etc points to /var/luna/preferences
- /var/luna/preferences/localtime point to
  /usr/share/zoneinfo/Universal
- /var/luna/preferences/timezone contains Universal

:QA Notes:

:Issues Addressed:
[GF-44351] luna-sysservice can't change time zone when rootfs is
           read-only
[GF-51667] CCC: tzdata=webos1

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Change-Id: Ie8c9d6067fce57911796953483e5f6e0efb98fad
Reviewed-on: https://g2g.palm.com/3769
Reviewed-by: DCO Verification
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Joungyong Choi <joungyong.choi@lge.com>
Tested-by: Joungyong Choi <joungyong.choi@lge.com>
webos-image: smartkey-hun=11

:Release Notes:
Add validation for non-digital input parameters for smartKey interface
functions: listAutoReplace, listUserWords. Removed input parameter of
numAutoReplace.

:Detailed Notes:
submissions/10..submissions/11
d047cc2 Removed limitations for listAutoReplace

:Testing Performed:
MiniBAT

:QA Notes:

:Issues Addressed:
[GF-10662] com.palm.smartKey:listAutoReplace - returns True for invalid
           offset and limit
[GF-10663] com.palm.smartKey:listUserWords - returns True for invalid
           offset and limit
[GF-10665] com.palm.smartKey:numAutoReplace - returns True for invalid
           parameters
[GF-45288] CCC: smartkey-hun=11

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I927ab48548fe07733f1ff0f2537bf37f2f37f801
Reviewed-on: https://g2g.palm.com/3984
Reviewed-by: DCO Verification
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Tested-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
smartkey-hun: Split data off into a separate package

:Release Notes:
Move this component's data into a separate smartkey-hun-data package and
install it by default.

:Detailed Notes:
smartkey-hun-data contains the ${webos_prefix}/smartkey tree.

:Testing Performed:
Only build tested and checked in buildhistory.

:QA Notes:

:Issues Addressed:
[GF-51669] Split data off from smartkey-hun into a separate
           smartkey-hun-data package

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I102e7eb5adb4626588451d0eaf5d2d62da87bb8b
Reviewed-on: https://g2g.palm.com/3985
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>
smartkey-hun: Create .inc file usable for Qt5 version

:Release Notes:
Split off the "meat" of the recipe into a .inc file for re-use when
creating a recipe for a Qt5 version of smartkey-hun.

:Detailed Notes:
- Having an .inc allows changing the Qt dependency and qmake inherit.
- Install Upstart 1.10 jobs in anticipation of switch to it.
- Drop cleaning of ${S}/SmartKeyQt4.pro; it's automatically recreated in
  do_configure.

:Testing Performed:
Only build tested and checked in buildhistory.

:QA Notes:

:Issues Addressed:
[GF-40650] Split off the "meat" of the recipe into a .inc file

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I62fce2886832576c18bbc2f1617af03d7aee6c71
Reviewed-on: https://g2g.palm.com/3941
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: pmloglib=46 pmklogd=16

:Release Notes:
pmloglib: Fix buffer overflow
pmklogd: Close lock file if open succeeds but lockf() fails.

:Detailed Notes:
pmloglib: Crash is occured when kv-pair comes 0 and log message's
          length is over than 1024.
pmklogd: Error detected in Coverity run

pmloglib: submissions/45..submissions/46
f824c23 Fix buffer overflow
6553566 Prevent Potential SegFault

pmloglib: submissions/15..submissions/16
26ceb03 Correct low probablility resource leak

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

:QA Notes:

:Issues Addressed:
[GF-52111] CCC: pmlogdaemon=46
[GF-52090] pmklogd: Low Probability Resource Leak

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

Change-Id: I5b6f90e6981abadbdce6f2c21f36a0751455edb2
Reviewed-on: https://g2g.palm.com/3992
Reviewed-by: DCO Verification
Build: Hongjeon Ha <hj.ha@lge.com>
Reviewed-by: Hongjeon Ha <hj.ha@lge.com>
Reviewed-by: Build Verification
Tested-by: Hongjeon Ha <hj.ha@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
webos-image: sleepd=24

:Release Notes:
Corrects minor logging related coverity issues

:Detailed Notes:
An incorrect number of parameters was being passed to a DEBUG level log
statment. Change is largely cosmetic in nature.

:Testing Performed:
Mini BAT

:QA Notes:

:Issues Addressed:
[GF-52219] sleepd: Fix bugs after coverity report
[GF-52256] CCC: sleepd=24

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@lge.com>

Change-Id: I2674ecf9a50280458944b8fef8c425350e332ea0
Reviewed-on: https://g2g.palm.com/3991
Reviewed-by: DCO Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>