summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2024-01-24 10:39:13 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2024-01-31 17:53:41 +0900
commit10c923c2023c68fe18ade72de2bf097ed54127c4 (patch)
treec0b1a72b96756ed82e4170893c3bf78f84362de3
parent1eca49086c5fd2dd98f40b915ff338b2e0a75efd (diff)
downloadsessiond-10c923c2023c68fe18ade72de2bf097ed54127c4.tar.gz
sessiond-10c923c2023c68fe18ade72de2bf097ed54127c4.tar.bz2
sessiond-10c923c2023c68fe18ade72de2bf097ed54127c4.zip
spec: Remove dependency between libsessiond and sessiond if multi-user is not usedaccepted/tizen/unified/x/20240205.063748accepted/tizen/unified/20240201.165053
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 <y0.cho@samsung.com>
-rw-r--r--packaging/sessiond.spec2
1 files changed, 2 insertions, 0 deletions
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