diff options
author | Hyokeun Jeon <hyokeun.jeon@samsung.com> | 2019-11-11 19:42:13 +0900 |
---|---|---|
committer | Hyokeun Jeon <hyokeun.jeon@samsung.com> | 2019-11-11 19:52:48 +0900 |
commit | 49dce2552476348f3b52d4588e4ed16e9c02acf4 (patch) | |
tree | 8de794c705b00f7cfa18e41ce38d02fc871d8049 | |
parent | 6735d58ea2747d79f4045cb04faf786daca501ec (diff) | |
download | abs-49dce2552476348f3b52d4588e4ed16e9c02acf4.tar.gz abs-49dce2552476348f3b52d4588e4ed16e9c02acf4.tar.bz2 abs-49dce2552476348f3b52d4588e4ed16e9c02acf4.zip |
run as dbus session
Change-Id: Idd2eb50ce396dfc11a0b67baff50c3caf4fb6a8e
-rw-r--r-- | build.template | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build.template b/build.template index 3ad0322..8353dee 100644 --- a/build.template +++ b/build.template @@ -65,12 +65,17 @@ TIDLC_PATH=`sed -n '/tidl/p' /home/build/.bashrc | cut -f2 -d':'` if [ ! -z ${TIDLC_PATH} ]; then echo "PATH=\$PATH:${TIDLC_PATH}" >> /home/build/.profile; fi su - build -c "tidlc --version" +DBUS_SESSION="dbus-run-session -- bash; echo build | gnome-keyring-daemon --unlock; " +su - build -c "gnome-keyring-daemon --help" +if [ $? -ne 0 ]; then + DBUS_SESSION=" " +fi for rs in $rs_list; do echo "BUILDING START TIME: `date`" #if [[ $rs == *"64.core"* ]]; then # echo "SKIP! 64-bit not supported!"; continue; #else - su - build -c "${ABS_CMD} build -r $rs -w ${BUILD_ROOT}/${PACKAGE} -s ABS -c ${BUILD_MODE} ${PARALLEL_JOBS} --profile-to-search ${PROFILE}" + su - build -c "${DBUS_SESSION} ${ABS_CMD} build -r $rs -w ${BUILD_ROOT}/${PACKAGE} -s ABS -c ${BUILD_MODE} ${PARALLEL_JOBS} --profile-to-search ${PROFILE}" #fi count=`ls -1 ${TMP_DIR}/*.tpk 2>/dev/null | wc -l` if [ $count != 0 ]; then |