ail_files += "/usr/dbspace"
+
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "dlog-native"
+
+DEPENDS_class-target += " ail-native"
\ No newline at end of file
LANG=C
export LANG
unset DISPLAY
+ CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
+ CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
+ FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
LD_AS_NEEDED=1; export LD_AS_NEEDED ;
CFLAGS+=" -fpic"
vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse
vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse
vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s system::vconf_inhouse
- chsmack -a User ${D}${prefix}/kdb/db/ail
- chsmack -a User ${D}${prefix}/kdb/db/ail/ail_info
- chsmack -a User ${D}${prefix}/kdb/db/menuscreen
- chsmack -a User ${D}${prefix}/kdb/db/menuscreen/desktop
- chsmack -a User ${D}${prefix}/kdb/db/menu_widget
- chsmack -a User ${D}${prefix}/kdb/db/menu_widget/language
+ chsmack -a User $D${prefix}/kdb/db/ail
+ chsmack -a User $D${prefix}/kdb/db/ail/ail_info
+ chsmack -a User $D${prefix}/kdb/db/menuscreen
+ chsmack -a User $D${prefix}/kdb/db/menuscreen/desktop
+ chsmack -a User $D${prefix}/kdb/db/menu_widget
+ chsmack -a User $D${prefix}/kdb/db/menu_widget/language
CHDBGID="6010"
update_DAC_for_db_file()
{
fi
}
ail_initdb
- mkdir -p ${D}${prefix}/share/applications
- mkdir -p ${D}${prefix}/share/applications
- mkdir -p ${D}${prefix}/dbspace
- update_DAC_for_db_file ${D}${prefix}/dbspace/.app_info.db
- update_DAC_for_db_file ${D}${prefix}/dbspace/.app_info.db-journal
- chsmack -a 'User' ${D}${prefix}/dbspace/.app_info.db*
+ mkdir -p $D${prefix}/share/applications
+ mkdir -p $D${prefix}/share/applications
+ mkdir -p $D${prefix}/dbspace
+ update_DAC_for_db_file $D${prefix}/dbspace/.app_info.db
+ update_DAC_for_db_file $D${prefix}/dbspace/.app_info.db-journal
+ chsmack -a 'User' $D${prefix}/dbspace/.app_info.db*
}
ldconfig
if [ $1 == 0 ]; then
- rm -f ${D}${prefix}/dbspace/.app_info.db*
+ rm -f $D${prefix}/dbspace/.app_info.db*
fi
}
--- /dev/null
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cf9de2c..a03506e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -33,7 +33,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
+ INCLUDE(FindPkgConfig)
+
+-pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 dlog db-util xdgmime vconf libtzplatform-config)
++pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 db-util xdgmime vconf libtzplatform-config)
+ STRING(REPLACE ";" " " EXTRA_CFLAGS "${LPKGS_CFLAGS}")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
+
+diff --git a/initdb/CMakeLists.txt b/initdb/CMakeLists.txt
+index 73474d8..040a8cb 100755
+--- a/initdb/CMakeLists.txt
++++ b/initdb/CMakeLists.txt
+@@ -3,7 +3,7 @@
+ SET(INITDB ail_initdb)
+ SET(SRCS src/initdb.c)
+
+-pkg_check_modules(INITDB_PKGS REQUIRED vconf dlog db-util sqlite3)
++pkg_check_modules(INITDB_PKGS REQUIRED vconf db-util sqlite3)
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
+
+diff --git a/src/ail_private.h b/src/ail_private.h
+index efa2f66..867152b 100755
+--- a/src/ail_private.h
++++ b/src/ail_private.h
+@@ -36,7 +36,7 @@
+ #undef LOG_TAG
+ #define LOG_TAG "AIL"
+
+-#if 1
++#if 0
+ #include <dlog.h>
+ #define _E(fmt, arg...) LOGE("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
+ #define _D(fmt, arg...) LOGD("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
+diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt
+index e898c7e..be1bbfa 100755
+--- a/tool/CMakeLists.txt
++++ b/tool/CMakeLists.txt
+@@ -15,7 +15,7 @@ SET(FILTERSRCS src/ail_filter.c)
+ SET(PKG ail_package)
+ SET(PKGSRCS src/ail_package.c)
+
+-pkg_check_modules(INITDB_PKGS REQUIRED vconf dlog db-util sqlite3)
++pkg_check_modules(INITDB_PKGS REQUIRED vconf db-util sqlite3)
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
+
--- /dev/null
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index eb292f3..b57a806 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,7 +14,6 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+ INCLUDE(FindPkgConfig)
+ pkg_check_modules(pkgs REQUIRED
+ sqlite3
+- dlog
+ glib-2.0
+ icu-i18n
+ )
+@@ -29,7 +28,7 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
+ ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"")
+-ADD_DEFINITIONS("-DDB_UTIL_USING_PLATFORM_DBG")
++#ADD_DEFINITIONS("-DDB_UTIL_USING_PLATFORM_DBG")
+ ADD_DEFINITIONS("-DDB_UTIL_ENABLE_TRACE")
+ ##ADD_DEFINITIONS("-DDB_UTIL_ENABLE_DEVDEBUG")
+
+diff --git a/db-util.pc.in b/db-util.pc.in
+index a1df72b..5f7e6f6 100644
+--- a/db-util.pc.in
++++ b/db-util.pc.in
+@@ -8,6 +8,6 @@ includedir=@INCLUDEDIR@
+ Name: db-util
+ Description: DB Utility
+ Version: @VERSION@
+-Requires: sqlite3 dlog glib-2.0 icu-i18n
++Requires: sqlite3 glib-2.0 icu-i18n
+ Libs: -L${libdir} -lSLP-db-util
+ Cflags: -I${includedir}
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+DEPENDS_remove_class-native = "dlog-native"
\ No newline at end of file
LANG=C
export LANG
unset DISPLAY
+ CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
+ CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
+ FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
LD_AS_NEEDED=1; export LD_AS_NEEDED ;