spec: Remove dependency between libsessiond and sessiond if multi-user is not used accepted/tizen/unified/20240201.165053 accepted/tizen/unified/x/20240205.063748
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 24 Jan 2024 01:39:13 +0000 (10:39 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 Jan 2024 08:53:41 +0000 (17:53 +0900)
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>
packaging/sessiond.spec

index 8d9df1a2bb5a4ba2f370e4188e63156497186e4a..db66e07f28c39e82e56b9ee4a5669cc42a05fb99 100644 (file)
@@ -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