From ba6e5f27b2d1582e9dd5c4a054b5fe782ff1b20c7761b03304662e5e8cffa3bf Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Thu, 11 May 2023 09:29:22 +0000 Subject: [PATCH] avoid macros with empty bodies OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=93 --- macros.systemd | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/macros.systemd b/macros.systemd index e3fb274..e291470 100644 --- a/macros.systemd +++ b/macros.systemd @@ -110,6 +110,7 @@ fi \ # %service_del_postun_without_restart() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# service_del_postun_without_restart}} \ +: \ %{nil} # On uninstall, tell systemd to reload its unit files. @@ -181,6 +182,7 @@ fi \ %systemd_user_postun() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_postun}} \ +: \ %{nil} %systemd_user_postun_with_restart() \ @@ -196,21 +198,23 @@ fi \ # journal catalog, udev rules, binfmt and sysctl. # -%udev_hwdb_update() %{nil} +%udev_hwdb_update() :%{nil} -%udev_rules_update() %{nil} +%udev_rules_update() :%{nil} -%journal_catalog_update() %{nil} +%journal_catalog_update() :%{nil} # Currently the 2 following macros don't have any interesting users. Leave them # empty until a specific need appears. %sysctl_apply() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# sysctl_apply}} \ +: \ %{nil} %binfmt_apply() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# binfmt_apply}} \ +: \ %{nil} #