From 47dbb99073b4966e8b74b9c09dbff0cd22e88697 Mon Sep 17 00:00:00 2001 From: Shuhrat Dehkanov Date: Thu, 28 May 2015 20:27:09 +0900 Subject: [PATCH] Remove sysman dependency Change-Id: I14f9b3469efc10608435ba26ff81af07863a6f0e --- packaging/org.tizen.settings-tv-ref.spec | 1 - ug/system/clock/CMakeLists.txt | 2 -- ug/system/clock/src/ug_clock_utils.c | 16 ++-------------- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/packaging/org.tizen.settings-tv-ref.spec b/packaging/org.tizen.settings-tv-ref.spec index a51ac57..2139bd2 100644 --- a/packaging/org.tizen.settings-tv-ref.spec +++ b/packaging/org.tizen.settings-tv-ref.spec @@ -27,7 +27,6 @@ BuildRequires: pkgconfig(capi-network-wifi) BuildRequires: pkgconfig(capi-network-connection) BuildRequires: pkgconfig(capi-media-sound-manager) BuildRequires: pkgconfig(wifi-direct) -BuildRequires: pkgconfig(sysman) BuildRequires: gettext-devel BuildRequires: vconf #BuildRequires: pkgconfig(capi-appfw-tvcontext) diff --git a/ug/system/clock/CMakeLists.txt b/ug/system/clock/CMakeLists.txt index 155d397..8836c87 100644 --- a/ug/system/clock/CMakeLists.txt +++ b/ug/system/clock/CMakeLists.txt @@ -28,9 +28,7 @@ pkg_check_modules(UG_CLOCK_PKGS REQUIRED elementary aul ui-gadget-1 - sysman ) - #ecore-x SET(PKGS_LDFLAGS "${PKGS_LDFLAGS} ${UG_CLOCK_PKGS_LDFLAGS}") diff --git a/ug/system/clock/src/ug_clock_utils.c b/ug/system/clock/src/ug_clock_utils.c index 4cb0969..a164582 100644 --- a/ug/system/clock/src/ug_clock_utils.c +++ b/ug/system/clock/src/ug_clock_utils.c @@ -15,7 +15,6 @@ */ #include -#include #include "dbg.h" #include "ug_clock_utils.h" @@ -313,6 +312,7 @@ static struct tm *_get_current_time() } /** +* FIXME: sysman is not supported anymore * Set date and time of system. * * This function sets date and time of system using sysman interface @@ -324,17 +324,5 @@ static struct tm *_get_current_time() */ static void _set_datetime(struct tm *t) { - int r; - time_t tt; - - if (!t) { - _ERR("invalid struct tm pointer."); - return; - } - - tt = mktime(t); - - r = sysman_set_datetime(tt); - if (r == -1) - _ERR("sysman set date and time failed. r: %d", r); + _ERR("FIXME: sysman is not supported anymore"); } -- 2.7.4