Hello community, here is the log from the commit of package openvswitch for openSUSE:Factory checked in at 2018-04-24 15:34:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openvswitch (Old) and /work/SRC/openSUSE:Factory/.openvswitch.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openvswitch" Tue Apr 24 15:34:31 2018 rev:24 rq:600167 version:2.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/openvswitch/openvswitch.changes 2018-03-24 16:16:40.804685885 +0100 +++ /work/SRC/openSUSE:Factory/.openvswitch.new/openvswitch.changes 2018-04-24 15:34:35.415050956 +0200 @@ -1,0 +2,10 @@ +Mon Apr 23 09:33:02 UTC 2018 - [email protected] + +- Preserve 'enable' status of openvswitch.service file when upgrading + from <SLE-12-SP3. The service file has been moved from the old + openvswitch-switch subpackage to the main openvswitch one so we + need to handle this migration step in %posttrans (bsc#1089476) +- Move DISABLE_STOP_ON_REMOVAL=yes to %preun. This variable is only + checked in %service_del_preun macro + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openvswitch.spec ++++++ --- /var/tmp/diff_new_pack.vtlG5W/_old 2018-04-24 15:34:37.734967019 +0200 +++ /var/tmp/diff_new_pack.vtlG5W/_new 2018-04-24 15:34:37.738966875 +0200 @@ -467,6 +467,8 @@ find %{buildroot} -type f -name "*.la" -delete -print +%define eflag /run/openvswitch-was-enabled + %post /sbin/ldconfig %{fillup_only -n openvswitch} @@ -492,6 +494,15 @@ %service_add_post ovs-vswitchd.service %service_add_post openvswitch.service +%posttrans +# Save the "enabled" state across the transition of ownership +# of openvswitch.service from openvswitch-switch to +# openvswitch. +if test -f %eflag; then + rm -f %eflag + systemctl enable openvswitch.service +fi + %postun /sbin/ldconfig # Do not restart the openvswitch service on package updates. @@ -507,13 +518,21 @@ %service_del_postun openvswitch.service %pre -# This prevents networking breakages on package removals -export DISABLE_STOP_ON_REMOVAL=yes %service_add_pre ovsdb-server.service %service_add_pre ovs-vswitchd.service %service_add_pre openvswitch.service +# Save the "enabled" state across the transition of +# ownership of openvswitch.service from openvswitch-switch to +# openvswitch. +if [ "$FIRST_ARG" -ge 1 ]; then \ + if [ x$(systemctl is-enabled openvswitch.service 2>/dev/null ||:) = "xenabled" ]; then + touch %eflag + fi +fi %preun +# This prevents networking breakages on package removals +export DISABLE_STOP_ON_REMOVAL=yes %service_del_preun ovsdb-server.service %service_del_preun ovs-vswitchd.service %service_del_preun openvswitch.service @@ -630,6 +649,7 @@ %{_unitdir}/ovsdb-server.service %{_fillupdir}/sysconfig.openvswitch %attr(755,-,-) %dir %{_localstatedir}/log/openvswitch +%ghost %attr(755,root,root) %{_rundir}/openvswitch %if %{with dpdk} %{_prefix}/lib/udev/rules.d/91-vfio.rules %endif
