Hello community, here is the log from the commit of package slurm for openSUSE:Factory checked in at 2018-04-20 17:32:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/slurm (Old) and /work/SRC/openSUSE:Factory/.slurm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "slurm" Fri Apr 20 17:32:10 2018 rev:13 rq:599202 version:17.11.5 Changes: -------- --- /work/SRC/openSUSE:Factory/slurm/slurm.changes 2018-04-16 12:49:03.804950020 +0200 +++ /work/SRC/openSUSE:Factory/.slurm.new/slurm.changes 2018-04-20 17:34:06.572444180 +0200 @@ -1,0 +2,9 @@ +Thu Apr 19 21:05:04 UTC 2018 - e...@suse.com + +- Avoid running pretrans scripts when running in an instsys: + there may be not much installed, yet. pretrans code should + be done in lua, this way, it will be executed by the rpm-internal + lua interpreter and not be passed to a shell which may not be + around at the time this scriptlet is run (bsc#1090292). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ slurm.spec ++++++ --- /var/tmp/diff_new_pack.PnACmD/_old 2018-04-20 17:34:07.360415604 +0200 +++ /var/tmp/diff_new_pack.PnACmD/_new 2018-04-20 17:34:07.364415459 +0200 @@ -564,18 +564,25 @@ # 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. -%define _test_rest() %{?with_systemd:rm -f /run/%{1}.rst; systemctl status %{1} &>/dev/null && touch /run/%{1}.rst || :;} +# 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 + f=io.open("/run/%{1}.rst","w"); f:close() + end + end +} %define _rest() %{?with_systemd:[ -e /run/%{1}.rst ] && { systemctl status %{1} &>/dev/null || systemctl restart %{1}; }; rm -f /run/%{1}.rst;} # Until a posttrans macro has been added to macros.systemd, we need this %define _res_update() %{?with_systemd:%{expand:%%_restart_on_update %{?*}};} -%pretrans +%pretrans -p <lua> %_test_rest slurmctld -%pretrans node +%pretrans node -p <lua> %_test_rest slurmd -%pretrans slurmdbd +%pretrans slurmdbd -p <lua> %_test_rest slurmdbd %posttrans