Hello community, here is the log from the commit of package pcp for openSUSE:Leap:15.2 checked in at 2020-02-16 18:26:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/pcp (Old) and /work/SRC/openSUSE:Leap:15.2/.pcp.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pcp" Sun Feb 16 18:26:14 2020 rev:25 rq:773782 version:4.3.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/pcp/pcp.changes 2020-01-15 15:39:30.787115208 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.pcp.new.26092/pcp.changes 2020-02-16 18:26:21.402656315 +0100 @@ -1,0 +2,14 @@ +Fri Jan 24 15:56:53 UTC 2020 - David Disseldorp <[email protected]> + +- Fix for security advisory CVE-2019-3696; (bsc#1153921) + + code change already carried +- Fix for security advisory CVE-2019-3695; (bsc#1152763) + + build-drop-old-config-file-transition-code-from-rpm-.patch + +------------------------------------------------------------------- +Wed Aug 28 10:17:39 UTC 2019 - David Disseldorp <[email protected]> + +- Fix python library dependencies broken via shared library packaging policy + split; (bsc#1129991). + +------------------------------------------------------------------- New: ---- build-drop-old-config-file-transition-code-from-rpm-.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pcp.spec ++++++ --- /var/tmp/diff_new_pack.plo0Ki/_old 2020-02-16 18:26:21.970656613 +0100 +++ /var/tmp/diff_new_pack.plo0Ki/_new 2020-02-16 18:26:21.974656615 +0100 @@ -1,7 +1,7 @@ # # spec file for package pcp # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -93,6 +93,8 @@ Patch5: 0005-SUSE-fy-pmsnap-control-path.patch # PATCH-FIX-OPENSUSE, [email protected] Patch6: 0006-pmsnap-control-var-www-srv-www.patch +# PATCH-FIX-UPSTREAM, [email protected] +Patch7: build-drop-old-config-file-transition-code-from-rpm-.patch %if 0%{?fedora} || 0%{?rhel} %global disable_selinux 0 @@ -2178,8 +2180,11 @@ Group: %{lib_gr} Url: https://pcp.io BuildRequires: %{__python2}-devel -%if !0%{?suse_version} Requires: %{lib_pkg} = %{version}-%{release} +%if 0%{?suse_version} +Requires: libpcp_gui%{libpcp_gui_sover} = %{version}-%{release} +Requires: libpcp_import%{libpcp_import_sover} = %{version}-%{release} +Requires: libpcp_mmv%{libpcp_mmv_sover} = %{version}-%{release} %endif Requires: %{__python2} Requires: pcp = %{version}-%{release} @@ -2205,6 +2210,11 @@ Group: %{lib_gr} Url: https://pcp.io Requires: %{lib_pkg} = %{version}-%{release} +%if 0%{?suse_version} +Requires: libpcp_gui%{libpcp_gui_sover} = %{version}-%{release} +Requires: libpcp_import%{libpcp_import_sover} = %{version}-%{release} +Requires: libpcp_mmv%{libpcp_mmv_sover} = %{version}-%{release} +%endif Requires: python3 BuildRequires: python3-setuptools @@ -2315,6 +2325,7 @@ %patch3 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 autoconf @@ -2628,58 +2639,6 @@ getent group pcp >/dev/null || groupadd -r pcp getent passwd pcp >/dev/null || \ useradd -c "Performance Co-Pilot" -g pcp -d %{_localstatedir}/lib/pcp -M -r -s /sbin/nologin pcp -%if !0%{?suse_version} -PCP_CONFIG_DIR=%{_localstatedir}/lib/pcp/config -PCP_SYSCONF_DIR=%{_confdir} -PCP_LOG_DIR=%{_logsdir} -PCP_ETC_DIR=%{_sysconfdir} -# rename crontab files to align with current Fedora packaging guidelines -for crontab in pmlogger pmie -do - test -f "$PCP_ETC_DIR/cron.d/$crontab" || continue - mv -f "$PCP_ETC_DIR/cron.d/$crontab" "$PCP_ETC_DIR/cron.d/pcp-$crontab" -done -# produce a script to run post-install to move configs to their new homes -save_configs_script() -{ - _new="$1" - shift - for _dir - do - [ "$_dir" = "$_new" ] && continue - if [ -d "$_dir" ] - then - ( cd "$_dir" ; find . -maxdepth 1 -type f ) | sed -e 's/^\.\///' \ - | while read _file - do - [ "$_file" = "control" ] && continue - _want=true - if [ -f "$_new/$_file" ] - then - # file exists in both directories, pick the more - # recently modified one - _try=`find "$_dir/$_file" -newer "$_new/$_file" -print` - [ -n "$_try" ] || _want=false - fi - $_want && echo cp -p "$_dir/$_file" "$_new/$_file" - done - fi - done -} -# migrate and clean configs if we have had a previous in-use installation -[ -d "$PCP_LOG_DIR" ] || exit 0 # no configuration file upgrades required -rm -f "$PCP_LOG_DIR/configs.sh" -for daemon in pmie pmlogger -do - save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_CONFIG_DIR/$daemon" \ - "$PCP_SYSCONF_DIR/$daemon" -done -for daemon in pmcd pmproxy -do - save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_SYSCONF_DIR/$daemon"\ - "$PCP_CONFIG_DIR/$daemon" /etc/$daemon -done -%endif exit 0 %if !%{disable_microhttpd} @@ -2851,36 +2810,7 @@ %endif %post -PCP_LOG_DIR=%{_logsdir} PCP_PMNS_DIR=%{_pmnsdir} -# restore saved configs, if any -test -s "$PCP_LOG_DIR/configs.sh" && source "$PCP_LOG_DIR/configs.sh" -rm -f $PCP_LOG_DIR/configs.sh - -# migrate old to new temp dir locations (within the same filesystem) -migrate_tempdirs() -{ - _sub="$1" - _new_tmp_dir=%{_tempsdir} - _old_tmp_dir=%{_localstatedir}/tmp - - for d in "$_old_tmp_dir/$_sub" ; do - test -d "$d" -a -k "$d" || continue - cd "$d" || continue - for f in * ; do - [ "$f" != "*" ] || continue - source="$d/$f" - target="$_new_tmp_dir/$_sub/$f" - [ "$source" != "$target" ] || continue - [ -f "$target" ] || mv -fu "$source" "$target" - done - cd && rmdir "$d" 2>/dev/null - done -} -for daemon in mmv pmdabash pmie pmlogger -do - migrate_tempdirs $daemon -done chown -R pcp:pcp %{_logsdir}/pmcd 2>/dev/null chown -R pcp:pcp %{_logsdir}/pmlogger 2>/dev/null chown -R pcp:pcp %{_logsdir}/pmie 2>/dev/null @@ -2914,7 +2844,7 @@ %endif %endif -cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild +cd "$PCP_PMNS_DIR" && ./Rebuild -s && rm -f .NeedRebuild cd %post -n %{lib_pkg} -p /sbin/ldconfig ++++++ build-drop-old-config-file-transition-code-from-rpm-.patch ++++++ >From 34c83f7ee46224fe410572f33c57a739f7bd044f Mon Sep 17 00:00:00 2001 From: Nathan Scott <[email protected]> Date: Sun, 6 Oct 2019 14:10:40 +1100 Subject: [PATCH] build: drop old config file transition code from rpm specs Its been many years since this transition was done, good time now with pcp-5.0.0 to full this old shell code. Also remove the Fedora crontab transition logic as thats completely moved over to systemd now. --- build/rpm/GNUmakefile | 1 + build/rpm/fedora.spec | 57 +----------------------------------------------- build/rpm/pcp.spec.in | 60 ++------------------------------------------------- 3 files changed, 4 insertions(+), 114 deletions(-) Index: pcp-4.3.1/build/rpm/GNUmakefile =================================================================== --- pcp-4.3.1.orig/build/rpm/GNUmakefile +++ pcp-4.3.1/build/rpm/GNUmakefile @@ -113,6 +113,7 @@ pcp.spec: pcp.spec.in -e's|@pcp_sysconf_dir@|$(PCP_SYSCONF_DIR)|g' \ -e's|@pcp_share_dir@|$(PCP_SHARE_DIR)|g' \ -e's|@pcp_log_dir@|$(PCP_LOG_DIR)|g' \ + -e's|@pcp_sa_dir@|$(PCP_SA_DIR)|g' \ -e's|@pcp_var_dir@|$(PCP_VAR_DIR)|g' \ -e's|@pcp_etc_dir@|$(PCP_ETC_DIR)|g' \ -e's|@pcp_binadm_dir@|$(PCP_BINADM_DIR)|g' \ Index: pcp-4.3.1/build/rpm/fedora.spec =================================================================== --- pcp-4.3.1.orig/build/rpm/fedora.spec +++ pcp-4.3.1/build/rpm/fedora.spec @@ -2466,56 +2466,6 @@ exit 0 getent group pcp >/dev/null || groupadd -r pcp getent passwd pcp >/dev/null || \ useradd -c "Performance Co-Pilot" -g pcp -d %{_localstatedir}/lib/pcp -M -r -s /sbin/nologin pcp -PCP_CONFIG_DIR=%{_localstatedir}/lib/pcp/config -PCP_SYSCONF_DIR=%{_confdir} -PCP_LOG_DIR=%{_logsdir} -PCP_ETC_DIR=%{_sysconfdir} -# rename crontab files to align with current Fedora packaging guidelines -for crontab in pmlogger pmie -do - test -f "$PCP_ETC_DIR/cron.d/$crontab" || continue - mv -f "$PCP_ETC_DIR/cron.d/$crontab" "$PCP_ETC_DIR/cron.d/pcp-$crontab" -done -# produce a script to run post-install to move configs to their new homes -save_configs_script() -{ - _new="$1" - shift - for _dir - do - [ "$_dir" = "$_new" ] && continue - if [ -d "$_dir" ] - then - ( cd "$_dir" ; find . -maxdepth 1 -type f ) | sed -e 's/^\.\///' \ - | while read _file - do - [ "$_file" = "control" ] && continue - _want=true - if [ -f "$_new/$_file" ] - then - # file exists in both directories, pick the more - # recently modified one - _try=`find "$_dir/$_file" -newer "$_new/$_file" -print` - [ -n "$_try" ] || _want=false - fi - $_want && echo cp -p "$_dir/$_file" "$_new/$_file" - done - fi - done -} -# migrate and clean configs if we have had a previous in-use installation -[ -d "$PCP_LOG_DIR" ] || exit 0 # no configuration file upgrades required -rm -f "$PCP_LOG_DIR/configs.sh" -for daemon in pmie pmlogger -do - save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_CONFIG_DIR/$daemon" \ - "$PCP_SYSCONF_DIR/$daemon" -done -for daemon in pmcd pmproxy -do - save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_SYSCONF_DIR/$daemon"\ - "$PCP_CONFIG_DIR/$daemon" /etc/$daemon -done exit 0 %if !%{disable_microhttpd} @@ -2867,12 +2817,7 @@ pmieconf -c enable dmthin %endif %post -PCP_LOG_DIR=%{_logsdir} PCP_PMNS_DIR=%{_pmnsdir} -# restore saved configs, if any -test -s "$PCP_LOG_DIR/configs.sh" && source "$PCP_LOG_DIR/configs.sh" -rm -f $PCP_LOG_DIR/configs.sh - chown -R pcp:pcp %{_logsdir}/pmcd 2>/dev/null chown -R pcp:pcp %{_logsdir}/pmlogger 2>/dev/null chown -R pcp:pcp %{_logsdir}/sa 2>/dev/null @@ -2899,7 +2844,7 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" /sbin/service pmproxy condrestart %endif -cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild +cd "$PCP_PMNS_DIR" && ./Rebuild -s && rm -f .NeedRebuild cd %post libs -p /sbin/ldconfig Index: pcp-4.3.1/build/rpm/pcp.spec.in =================================================================== --- pcp-4.3.1.orig/build/rpm/pcp.spec.in +++ pcp-4.3.1/build/rpm/pcp.spec.in @@ -2787,58 +2787,6 @@ chown -R pcpqa:pcpqa @pcp_var_dir@/tests getent group pcp >/dev/null || groupadd -r pcp getent passwd pcp >/dev/null || \ useradd -c "Performance Co-Pilot" -g pcp -d @pcp_var_dir@ -M -r -s /sbin/nologin pcp -# new directories; they should match /etc/pcp.conf settings after install -PCP_CONFIG_DIR=@pcp_var_dir@/config -PCP_SYSCONF_DIR=@pcp_sysconf_dir@ -PCP_LOG_DIR=@pcp_log_dir@ -PCP_ETC_DIR=@pcp_etc_dir@ - -# rename crontab files to align with current Fedora packaging guidelines -for crontab in pmlogger pmie -do - test -f "$PCP_ETC_DIR/cron.d/$crontab" || continue - mv -f "$PCP_ETC_DIR/cron.d/$crontab" "$PCP_ETC_DIR/cron.d/pcp-$crontab" -done -# produce a script to run post-install to move configs to their new homes -save_configs_script() -{ - _new="$1" - shift - for _dir - do - [ "$_dir" = "$_new" ] && continue - if [ -d "$_dir" ] - then - ( cd "$_dir" ; find . -maxdepth 1 -type f ) | sed -e 's/^\.\///' \ - | while read _file - do - [ "$_file" = "control" ] && continue - _want=true - if [ -f "$_new/$_file" ] - then - # file exists in both directories, pick the more - # recently modified one - _try=`find "$_dir/$_file" -newer "$_new/$_file" -print` - [ -n "$_try" ] || _want=false - fi - $_want && echo cp -p "$_dir/$_file" "$_new/$_file" - done - fi - done -} -# migrate and clean configs if we have had a previous in-use installation -[ -d "$PCP_LOG_DIR" ] || exit 0 # no configuration file upgrades required -rm -f "$PCP_LOG_DIR/configs.sh" -for daemon in pmie pmlogger -do - save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_CONFIG_DIR/$daemon" \ - "$PCP_SYSCONF_DIR/$daemon" -done -for daemon in pmcd pmproxy -do - save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_SYSCONF_DIR/$daemon"\ - "$PCP_CONFIG_DIR/$daemon" /etc/$daemon -done exit 0 %if "@enable_webapi@" == "true" @@ -3213,11 +3161,7 @@ fi %post PCP_PMNS_DIR=@pcp_var_dir@/pmns PCP_LOG_DIR=@pcp_log_dir@ -PCP_SYSCONFIG_DIR=@pcp_sysconfig_dir@ - -# restore saved configs, if any -test -s "$PCP_LOG_DIR/configs.sh" && source "$PCP_LOG_DIR/configs.sh" -rm -f $PCP_LOG_DIR/configs.sh +PCP_SA_DIR=@pcp_sa_dir@ chown -R pcp:pcp "$PCP_LOG_DIR/pmcd" 2>/dev/null chown -R pcp:pcp "$PCP_LOG_DIR/pmlogger" 2>/dev/null @@ -3246,7 +3190,7 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" /sbin/service pmproxy condrestart %endif -cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild +cd "$PCP_PMNS_DIR" && ./Rebuild -s && rm -f .NeedRebuild cd %post libs -p /sbin/ldconfig
