packaging: Disable gcrypt to remove dependency
authorHyeongsik Min <hyeongsik.min@samsung.com>
Tue, 19 Jul 2016 01:41:28 +0000 (10:41 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 26 Jan 2024 16:49:49 +0000 (17:49 +0100)
This patch removes gcrypt dependency to save resource and
will disable FSS(anti log-file tampering feature) as well.

In addition, importd depends on gcrypt. Thus, importd was disabled explictly.

Finally, machined feature was disabled because the feature is not used
and some parts of the feature depends on importd.

Change-Id: I44c7ec43d1861d67a18049cdff2821a849c636d6
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
packaging/systemd.spec

index 73d0911..9e15a7a 100644 (file)
@@ -10,6 +10,7 @@
 %define WITH_TIMEDATED 0
 %define WITH_RFKILL 0
 %define with_multiuser 1
+%define WITH_MACHINED 0
 
 Name:           systemd
 Version:        219
@@ -148,6 +149,11 @@ cp %{SOURCE1001} .
         --disable-timesyncd \
         --disable-resolved \
         --disable-networkd \
+%if ! %{?WITH_MACHINED}
+        --disable-machined \
+%endif
+        --disable-importd \
+        --disable-gcrypt \
         --libexecdir=%{_prefix}/lib \
         --docdir=%{_docdir}/systemd \
         --disable-static \
@@ -329,7 +335,9 @@ fi
 %{_bindir}/bootctl
 %{_bindir}/busctl
 %{_bindir}/kernel-install
+%if %{?WITH_MACHINED}
 %{_bindir}/machinectl
+%endif
 %{_bindir}/systemd-run
 %dir %{_prefix}/lib/kernel
 %dir %{_prefix}/lib/kernel/install.d
@@ -383,7 +391,9 @@ fi
 %if %{?WITH_TIMEDATED}
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.timedate1.conf
 %endif
+%if %{?WITH_MACHINED}
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.machine1.conf
+%endif
 %config(noreplace) %{_sysconfdir}/systemd/bootchart.conf
 %if %{?WITH_COREDUMP}
 %config(noreplace) %{_sysconfdir}/systemd/coredump.conf
@@ -485,7 +495,9 @@ fi
 %if %{?WITH_TIMEDATED}
 %{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
 %endif
+%if %{?WITH_MACHINED}
 %{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
+%endif
 %dir %{_datadir}/polkit-1
 %dir %{_datadir}/polkit-1/actions
 %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
@@ -497,7 +509,9 @@ fi
 %if %{?WITH_TIMEDATED}
 %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
 %endif
+%if %{?WITH_MACHINED}
 %{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
+%endif
 %dir %{_datadir}/factory/
 %dir %{_datadir}/factory/etc
 %dir %{_datadir}/factory/etc/pam.d
@@ -526,7 +540,9 @@ fi
 %{_libdir}/libsystemd-journal.so.*
 %{_libdir}/libsystemd-login.so.*
 %{_libdir}/libnss_myhostname.so.2
+%if %{?WITH_MACHINED}
 %{_libdir}/libnss_mymachines.so.2
+%endif
 
 %files devel
 %manifest %{name}.manifest