From: Youngjae Cho Date: Wed, 24 Jan 2024 01:39:13 +0000 (+0900) Subject: spec: Remove dependency between libsessiond and sessiond if multi-user is not used X-Git-Tag: accepted/tizen/unified/20240201.165053^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10c923c2023c68fe18ade72de2bf097ed54127c4;p=platform%2Fcore%2Fsystem%2Fsessiond.git spec: Remove dependency between libsessiond and sessiond if multi-user is not used In environments that have no multi-user, sessiond does nothing. However, libsessiond can work alone. For example, subsession_get_user_list() provides a way that fetches user list without sessiond. However, libsessiond is bound to sessiond by the below specification. %package -n libsessiond Requires: sessiond = %{version}-%{release} Therefore, one who needs "only" libsessiond has no choice but pulls sessiond in together. This is matter on a system with insufficient memory, with no use of multi-user environment as sessiond consumes memory while does nothing. Currently security-manager is one example that pulls libsessiond in. Change-Id: I22fb3b0917a2ee2ad6e36f56426c23767ce648ef Signed-off-by: Youngjae Cho --- diff --git a/packaging/sessiond.spec b/packaging/sessiond.spec index 8d9df1a..db66e07 100644 --- a/packaging/sessiond.spec +++ b/packaging/sessiond.spec @@ -17,7 +17,9 @@ BuildRequires: pkgconfig(dlog) %package -n libsessiond Summary: Subsession support library Group: System/Libraries +%if ("%{sec_buildconf_product_lite_tizen}" != "y") Requires: sessiond = %{version}-%{release} +%endif Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description -n libsessiond