From 5a9c95d025580510a18f80694f807dfdd569410f Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Mon, 26 Jan 2015 10:52:01 +0100 Subject: [PATCH] Fix pkg_info binary usage during image creation BUG-Tizen=TC-2399 Linked to this change : https://review.tizen.org/gerrit/#/c/34380/ Change-Id: Ifee7f850bdec2d6d55c8b513bc888c99c1e523cc Signed-off-by: Baptiste DURAND --- packaging/pkgmgr.spec | 3 +++ tool/pkg_info.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packaging/pkgmgr.spec b/packaging/pkgmgr.spec index 2577d54..c842469 100644 --- a/packaging/pkgmgr.spec +++ b/packaging/pkgmgr.spec @@ -36,6 +36,9 @@ BuildRequires: pkgmgr-info-parser BuildRequires: libsmack BuildRequires: fdupes +## Work around for https://bugs.tizen.org/jira/browse/TC-2399 +BuildRequires: ail-vconf-devel + %description Packager Manager client library package for packaging diff --git a/tool/pkg_info.c b/tool/pkg_info.c index cd7d461..64ba940 100644 --- a/tool/pkg_info.c +++ b/tool/pkg_info.c @@ -28,6 +28,8 @@ #include #include #include +//Work around for https://bugs.tizen.org/jira/browse/TC-2399 +#include #include #include #include "package-manager.h" @@ -2216,7 +2218,8 @@ int main(int argc, char *argv[]) gettimeofday(&tv, NULL); starttime = tv.tv_sec * 1000l + tv.tv_usec / 1000l; - locale = vconf_get_str(VCONFKEY_LANGSET); + locale = ail_vconf_get_str(VCONFKEY_LANGSET); + //Work around for https://bugs.tizen.org/jira/browse/TC-2399 if (locale == NULL) { printf("locale is NULL\n"); ret = -1; -- 2.7.4