Hello community, here is the log from the commit of package slurm for openSUSE:Factory checked in at 2018-07-13 10:20:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/slurm (Old) and /work/SRC/openSUSE:Factory/.slurm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "slurm" Fri Jul 13 10:20:52 2018 rev:15 rq:622077 version:17.11.7 Changes: -------- --- /work/SRC/openSUSE:Factory/slurm/slurm.changes 2018-06-13 15:40:07.702931063 +0200 +++ /work/SRC/openSUSE:Factory/.slurm.new/slurm.changes 2018-07-13 10:21:02.230432906 +0200 @@ -1,0 +2,9 @@ +Wed Jul 11 12:04:55 UTC 2018 - [email protected] + +- Shield comments between script snippets with a %{!?nil:...} to + avoid them being interpreted as scripts - in which case the update + level is passed as argument (see chapter 'Shared libraries' in: + https://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets) + (bsc#1100850). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ slurm.spec ++++++ --- /var/tmp/diff_new_pack.6jGiq1/_old 2018-07-13 10:21:02.738433514 +0200 +++ /var/tmp/diff_new_pack.6jGiq1/_new 2018-07-13 10:21:02.738433514 +0200 @@ -562,12 +562,14 @@ %post -n libpmi%{pmi_so} -p /sbin/ldconfig %postun -n libpmi%{pmi_so} -p /sbin/ldconfig +%{!?nil: # On update the %%postun code of the old package restarts the # service. This breaks in case the ABI between slurm and its # plugins has changed as updates are not atomic. Since we cannot # fix the old scripts we need these macros as a workaround. # They should be removed at some point. # Do pretrans in lua: https://fedoraproject.org/wiki/Packaging:Scriptlets +} %define _test_rest() %{?with_systemd: os.remove("/run/%{1}.rst") if os.execute() and os.getenv("YAST_IS_RUNNING") ~= "instsys" then if os.execute("systemctl status %{1} &>/dev/null") then @@ -576,7 +578,9 @@ end } %define _rest() %{?with_systemd:[ -e /run/%{1}.rst ] && { systemctl status %{1} &>/dev/null || systemctl restart %{1}; }; rm -f /run/%{1}.rst;} +%{!?nil: # Until a posttrans macro has been added to macros.systemd, we need this +} %define _res_update() %{?with_systemd:%{expand:%%_restart_on_update %{?*}};} %pretrans -p <lua>
