Hello community, here is the log from the commit of package tigervnc for openSUSE:Factory checked in at 2018-03-29 11:47:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tigervnc (Old) and /work/SRC/openSUSE:Factory/.tigervnc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tigervnc" Thu Mar 29 11:47:27 2018 rev:49 rq:590613 version:1.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/tigervnc/tigervnc.changes 2018-03-04 11:53:31.744145115 +0100 +++ /work/SRC/openSUSE:Factory/.tigervnc.new/tigervnc.changes 2018-03-29 11:47:27.464008682 +0200 @@ -1,0 +2,7 @@ +Thu Mar 22 14:27:28 UTC 2018 - [email protected] + +- Enable xvnc.socket if upgraded from previous installation that + had VNC enabled in xinetd configuration. (bnc#1085974) +- Subpackage xorg-x11-Xvnc must also obsolete tightvnc. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tigervnc.spec ++++++ --- /var/tmp/diff_new_pack.v6zNPK/_old 2018-03-29 11:47:28.435973657 +0200 +++ /var/tmp/diff_new_pack.v6zNPK/_new 2018-03-29 11:47:28.435973657 +0200 @@ -151,6 +151,8 @@ %package -n xorg-x11-Xvnc Requires(post): /usr/sbin/useradd Requires(post): /usr/sbin/groupadd +Requires(post): /bin/awk +Requires(post): systemd # Needed to generate certificates Requires: openssl Requires: windowmanager @@ -162,7 +164,9 @@ # For the with-vnc-key.sh script Requires: /bin/hostname %{?systemd_requires} +Provides: tightvnc = 1.3.9 Provides: xorg-x11-Xvnc:/usr/lib/vnc/with-vnc-key.sh +Obsoletes: tightvnc < 1.3.9 Summary: TigerVNC implementation of Xvnc Group: System/X11/Servers/XF86_4 @@ -360,6 +364,20 @@ %post -n xorg-x11-Xvnc %service_add_post xvnc.socket +# If there is old xinetd configuration file and VNC service was enabled, enable the systemd service too. +# Once we are done, RPM will rename the file to /etc/xinetd.d/vnc.rpmsave, so this won't happen +# during future updates. +if [ -e /etc/xinetd.d/vnc ] && awk ' + BEGIN { in_vnc1_section = 0 } + /service.*vnc1/ { in_vnc1_section = 1 } + in_vnc1_section && /disable\s*=\s*yes/ { exit 1 } + in_vnc1_section && /}/ { exit 0 } + ' /etc/xinetd.d/vnc; +then + echo "Found old xinetd configuration with enabled VNC service. Enabling xvnc.socket." + systemctl enable xvnc.socket +fi + %preun -n xorg-x11-Xvnc %service_del_preun xvnc.socket
