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>
Wed, 6 Mar 2024 12:17:19 +0000 (13:17 +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 a863203..0329fc1 100644 (file)
@@ -9,6 +9,7 @@
 %define WITH_BACKLIGHT 0
 %define WITH_TIMEDATED 0
 %define WITH_RFKILL 0
+%define WITH_MACHINED 0
 
 Name:           systemd
 Version:        219
@@ -147,6 +148,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 \
@@ -319,7 +325,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
@@ -371,7 +379,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
@@ -465,7 +475,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
@@ -475,7 +487,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
@@ -502,7 +516,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