Hello community, here is the log from the commit of package atop for openSUSE:Factory checked in at 2020-08-29 20:33:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/atop (Old) and /work/SRC/openSUSE:Factory/.atop.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "atop" Sat Aug 29 20:33:26 2020 rev:5 rq:829616 version:2.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/atop/atop.changes 2019-08-22 10:53:30.705690712 +0200 +++ /work/SRC/openSUSE:Factory/.atop.new.3399/atop.changes 2020-08-29 20:33:37.929245086 +0200 @@ -1,0 +2,36 @@ +Fri Jul 31 20:26:06 UTC 2020 - Matthias Eliasson <[email protected]> + +- Update to version 2.5.0 + Modifications for atop: + * Avoid using perf counters in VM + New option 'perfevents' in the atoprc file to define if the Instructions + Per Cycle (IPC) should be retrieved via the 'perf' counters. Specify + value 'auto' (default), 'enable' or 'disable'. In case of 'auto', the + Instructions Per Cycle counter will not be retrieved on VMs due to the + overhead of reading this counter in a guest. + * Improve daily rotation of logfile for systemd-based systems. + Exchange the files /etc/cron.d/atop, /etc/logrotate.d/psaccs_atop, + /etc/logrotate.d/psaccu_atop, /usr/share/atop/atop.daily, + /var/log/atop/dummy_after and /var/log/atop/dummy_before by + atop-rotate.service and atop-rotate.timer. + * Bug fixes: + Correction of PSI value 'io full'. + Use smaps_rollup (if present) instead of smaps for better performance. + Use writev instead of 3 single writes to avoid logfile corruption. + Modified handling of error messages (remain visible after window is + closed). + Correct CID for containers created by Kubernetes. + Allow reading a logfile via a named pipe (non-seekable). + Modifications for atopconvert: + * Show version of input file (even if only one parameter specified). + General: + * The format of the raw file is compatible with version 2.4. +- Run spec-cleaner +- Remove requires for cron and logrotate now that there is systemd service + and timers handling logrotation +- Remove Requires(post) for permissions since atop does not use cron files anymore +- Refresh patch: + * atop-makefile.patch +- Add atop defaults in /etc/default/atop + +------------------------------------------------------------------- Old: ---- atop-2.4.0.tar.gz New: ---- atop-2.5.0.tar.gz atop.default ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ atop.spec ++++++ --- /var/tmp/diff_new_pack.iAAGum/_old 2020-08-29 20:33:38.837245469 +0200 +++ /var/tmp/diff_new_pack.iAAGum/_new 2020-08-29 20:33:38.837245469 +0200 @@ -2,7 +2,7 @@ # # spec file for package atop # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2018 The openSUSE Project. # Copyright (c) 2012 Pascal Bleser <[email protected]> # @@ -20,14 +20,14 @@ Name: atop -Version: 2.4.0 +Version: 2.5.0 Release: 0 Summary: Monitor for System Resources and Process Activity License: GPL-2.0-only -Group: System/Monitoring -URL: http://www.atoptool.nl/ -Source: http://www.atoptool.nl/download/atop-%{version}.tar.gz +URL: https://www.atoptool.nl/ +Source0: http://www.atoptool.nl/download/atop-%{version}.tar.gz Source1: atop.desktop +Source2: atop.default Source99: atop-rpmlintrc Patch1: atop-makefile.patch BuildRequires: gcc @@ -54,11 +54,7 @@ %package daemon Summary: System Resource and Process Monitoring History Daemon -Group: System/Monitoring Requires: %{name} = %{version}-%{release} -Requires(post): permissions -Recommends: cron -Recommends: logrotate %description daemon Atop is an ASCII full-screen performance monitor, similar to the top @@ -75,25 +71,24 @@ information about processes and system resources. %prep -%setup -q -%patch1 +%autosetup -p1 %build -make %{?_smp_mflags} \ +%make_build \ OPTFLAGS="%{optflags} -fstack-protector" \ CC="gcc" %install install -d "%{buildroot}%{_sbindir}" +install -d "%{buildroot}%{_sysconfdir}/default" +install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/default/atop + make systemdinstall DESTDIR=%{buildroot} rm -f "%{buildroot}%{_localstatedir}/log/atop"/* install -D -m0644 "atop.service" "%{buildroot}%{_usr}/lib/systemd/system/%{name}.service" install -D -m0644 "atopgpu.service" "%{buildroot}%{_usr}/lib/systemd/system/atopgpu.service" - -install -D -m 0644 atop.cronsystemd "%{buildroot}%{_sysconfdir}/cron.d/%{name}" - install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" %if 0%{?suse_update_desktop_file:1} %suse_update_desktop_file -r "%{name}" System Monitor @@ -102,28 +97,24 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcatopacct ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcatopgpu +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcatop-rotate %pre daemon -%service_add_pre atop.service atopgpu.service atopacct.service +%service_add_pre atop.service atopgpu.service atopacct.service atop-rotate.service %post daemon -%service_add_post atop.service atopgpu.service atopacct.service -%set_permissions /etc/cron.d +%service_add_post atop.service atopgpu.service atopacct.service atop-rotate.service %postun daemon -%service_del_postun atop.service atopgpu.service atopacct.service +%service_del_postun atop.service atopgpu.service atopacct.service atop-rotate.service %preun daemon -%service_del_preun atop.service atopgpu.service atopacct.service - -%verifyscript daemon -%verify_permissions -e /etc/cron.d +%service_del_preun atop.service atopgpu.service atopacct.service atop-rotate.service %files %license COPYING %doc README %attr(0755,root,root) %{_bindir}/atop -%dir %{_datadir}/%{name} %{_bindir}/atopsar %{_bindir}/atopconvert %{_bindir}/atop-%{version} @@ -137,22 +128,21 @@ %files daemon %license COPYING %doc README -%config(noreplace) %{_sysconfdir}/logrotate.d/psaccs_atop -%config(noreplace) %{_sysconfdir}/logrotate.d/psaccu_atop -%dir %{_sysconfdir}/cron.d -%config(noreplace) %{_sysconfdir}/cron.d/%{name} -%{_datadir}/%{name}/atop.daily +%config(noreplace)%{_sysconfdir}/default/atop %{_localstatedir}/log/atop %{_usr}/lib/systemd/system/%{name}.service %{_mandir}/man8/atopacctd.8%{?ext_man} %{_mandir}/man8/atopgpud.8%{?ext_man} %{_usr}/lib/systemd/system/atopacct.service %{_usr}/lib/systemd/system/atopgpu.service +%{_prefix}/lib/systemd/system/atop-rotate.service +%{_prefix}/lib/systemd/system/atop-rotate.timer %dir %{_usr}/lib/systemd/system-sleep %{_usr}/lib/systemd/system-sleep/atop-pm.sh %{_sbindir}/atopacctd %{_sbindir}/atopgpud %{_sbindir}/rcatopacct +%{_sbindir}/rcatop-rotate %{_sbindir}/rc%{name} %{_sbindir}/rcatopgpu ++++++ atop-2.4.0.tar.gz -> atop-2.5.0.tar.gz ++++++ ++++ 2787 lines of diff (skipped) ++++++ atop-makefile.patch ++++++ --- /var/tmp/diff_new_pack.iAAGum/_old 2020-08-29 20:33:38.945245514 +0200 +++ /var/tmp/diff_new_pack.iAAGum/_new 2020-08-29 20:33:38.945245514 +0200 @@ -1,6 +1,7 @@ ---- Makefile.orig 2019-02-17 20:50:16.874724096 +0100 -+++ Makefile 2019-02-17 20:53:40.400556018 +0100 -@@ -19,7 +19,7 @@ +diff -Naur atop-2.5.0.orig/Makefile atop-2.5.0/Makefile +--- atop-2.5.0.orig/Makefile 2020-07-30 23:18:00.229258992 +0200 ++++ atop-2.5.0/Makefile 2020-07-30 23:22:03.727237162 +0200 +@@ -20,7 +20,7 @@ PMPATH2 = /usr/lib64/pm-utils/sleep.d PMPATHD = /usr/lib/systemd/system-sleep @@ -9,7 +10,7 @@ OBJMOD0 = version.o OBJMOD1 = various.o deviate.o procdbase.o OBJMOD2 = acctproc.o photoproc.o photosyst.o rawlog.o ifprop.o parseable.o -@@ -45,7 +45,7 @@ +@@ -46,7 +46,7 @@ $(CC) atopconvert.o -o atopconvert -lz $(LDFLAGS) netlink.o: netlink.c @@ -18,8 +19,8 @@ clean: rm -f *.o atop atopacctd atopconvert -@@ -144,19 +144,19 @@ - then mkdir -p $(DESTDIR)$(ROTPATH); fi +@@ -155,19 +155,19 @@ + chmod 644 $(DESTDIR)$(DEFPATH)/atop # cp atop $(DESTDIR)$(BINPATH)/atop - chown root $(DESTDIR)$(BINPATH)/atop @@ -40,5 +41,5 @@ - chown root $(DESTDIR)$(BINPATH)/atopconvert + #chown root $(DESTDIR)$(BINPATH)/atopconvert chmod 0711 $(DESTDIR)$(BINPATH)/atopconvert - cp atop.daily $(DESTDIR)$(SCRPATH) - chmod 0711 $(DESTDIR)$(SCRPATH)/atop.daily + cp man/atop.1 $(DESTDIR)$(MAN1PATH) + cp man/atopsar.1 $(DESTDIR)$(MAN1PATH) ++++++ atop.default ++++++ LOGOPTS="" LOGINTERVAL=600 LOGGENERATIONS=28 LOGPATH=/var/log/atop
