From 10c923c2023c68fe18ade72de2bf097ed54127c4 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Wed, 24 Jan 2024 10:39:13 +0900 Subject: [PATCH] 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 --- packaging/sessiond.spec | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.34.1