Hello community, here is the log from the commit of package smemstat for openSUSE:Factory checked in at 2019-12-18 14:45:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/smemstat (Old) and /work/SRC/openSUSE:Factory/.smemstat.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "smemstat" Wed Dec 18 14:45:58 2019 rev:7 rq:757628 version:0.02.06 Changes: -------- --- /work/SRC/openSUSE:Factory/smemstat/smemstat.changes 2019-01-21 10:58:46.119398744 +0100 +++ /work/SRC/openSUSE:Factory/.smemstat.new.4691/smemstat.changes 2019-12-18 14:48:41.201948724 +0100 @@ -1,0 +2,22 @@ +Tue Dec 17 19:41:38 UTC 2019 - Martin Hauke <[email protected]> + +- Update to version 0.02.06 + * Format Total: field using the size of the pid fields to fix + alignment + * Add sanity check on tmp before dereferencing it + * Fix potential memory leak when re-assigning new cmdline + +------------------------------------------------------------------- +Tue Aug 27 09:44:51 UTC 2019 - Martin Hauke <[email protected]> + +- Update to version 0.02.05 + * No functional changes + +------------------------------------------------------------------- +Sun Jul 7 18:38:34 UTC 2019 - Martin Hauke <[email protected]> + +- Update to version 0.02.04 + * Manual: fix typo: comsumers -> consumers + * Update copyright year + +------------------------------------------------------------------- Old: ---- smemstat-0.02.03.tar.xz New: ---- smemstat-0.02.06.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ smemstat.spec ++++++ --- /var/tmp/diff_new_pack.bGZq5o/_old 2019-12-18 14:48:41.549948883 +0100 +++ /var/tmp/diff_new_pack.bGZq5o/_new 2019-12-18 14:48:41.553948885 +0100 @@ -13,12 +13,12 @@ # 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/ # Name: smemstat -Version: 0.02.03 +Version: 0.02.06 Release: 0 Summary: Memory usage monitoring tool License: GPL-2.0-or-later ++++++ smemstat-0.02.03.tar.xz -> smemstat-0.02.06.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smemstat-0.02.03/Makefile new/smemstat-0.02.06/Makefile --- old/smemstat-0.02.03/Makefile 2018-09-23 12:10:50.000000000 +0200 +++ new/smemstat-0.02.06/Makefile 2019-12-16 15:36:26.000000000 +0100 @@ -1,5 +1,5 @@ # -# Copyright (C) 2014-2018 Canonical, Ltd. +# Copyright (C) 2014-2019 Canonical, Ltd. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.02.03 +VERSION=0.02.06 # CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 @@ -46,7 +46,7 @@ rm -rf smemstat-$(VERSION) mkdir smemstat-$(VERSION) cp -rp Makefile smemstat.c smemstat.8 COPYING README scripts \ - snapcraft .travis.yml smemstat-$(VERSION) + snap .travis.yml smemstat-$(VERSION) tar -Jcf smemstat-$(VERSION).tar.xz smemstat-$(VERSION) rm -rf smemstat-$(VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smemstat-0.02.03/smemstat.8 new/smemstat-0.02.06/smemstat.8 --- old/smemstat-0.02.03/smemstat.8 2018-09-23 12:10:50.000000000 +0200 +++ new/smemstat-0.02.06/smemstat.8 2019-12-16 15:36:26.000000000 +0100 @@ -91,7 +91,7 @@ top mode, show top consumers of memory .PP When running in 'top mode', pressing 'q' will quit, 'a' toggles the memory -change arrow, 't' toggles the top comsumers of memory view. +change arrow, 't' toggles the top consumers of memory view. .SH SEE ALSO .BR cpustat (8), .BR eventstat (8), @@ -104,7 +104,7 @@ This manual page was written by Colin King <[email protected]>, for the Ubuntu project (but may be used by others). .SH COPYRIGHT -Copyright \(co 2014-2018 Canonical Ltd. +Copyright \(co 2014-2019 Canonical Ltd. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smemstat-0.02.03/smemstat.c new/smemstat-0.02.06/smemstat.c --- old/smemstat-0.02.03/smemstat.c 2018-09-23 12:10:50.000000000 +0200 +++ new/smemstat-0.02.06/smemstat.c 2019-12-16 15:36:26.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2018 Canonical, Ltd. + * Copyright (C) 2014-2019 Canonical, Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -624,8 +624,11 @@ if (p->cmdline == NULL) p->kernel_thread = true; - if ((p->cmdline == NULL) || (opt_flags & OPT_CMD_COMM)) + if ((p->cmdline == NULL) || (opt_flags & OPT_CMD_COMM)) { + if (p->cmdline) + free(p->cmdline); p->cmdline = get_pid_comm(pid); + } p->next = proc_cache_hash[h]; proc_cache_hash[h] = p; @@ -975,7 +978,7 @@ for (p = pids; p; p = p->next) { if (p->pid == pid) break; - if (p->name && strcmp(p->name, tmp) == 0) + if (tmp && p->name && strcmp(p->name, tmp) == 0) break; } if (!p) @@ -1233,7 +1236,9 @@ mem_to_str((double)t_rss, s_rss, sizeof(s_rss)); if (!(opt_flags & OPT_QUIET)) - df.df_printf("Total: %9s %9s %9s %9s\n\n", s_swap, s_uss, s_pss, s_rss); + df.df_printf(" %-*.*s %9s %9s %9s %9s\n\n", + pid_size, pid_size, "Total:", + s_swap, s_uss, s_pss, s_rss); if (json) { (void)fprintf(json, " ],\n"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smemstat-0.02.03/snap/Makefile new/smemstat-0.02.06/snap/Makefile --- old/smemstat-0.02.03/snap/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ new/smemstat-0.02.06/snap/Makefile 2019-12-16 15:36:26.000000000 +0100 @@ -0,0 +1,6 @@ +all: + snapcraft + +clean: + rm -rf setup *.snap + snapcraft clean diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smemstat-0.02.03/snap/snapcraft.yaml new/smemstat-0.02.06/snap/snapcraft.yaml --- old/smemstat-0.02.03/snap/snapcraft.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/smemstat-0.02.06/snap/snapcraft.yaml 2019-12-16 15:36:26.000000000 +0100 @@ -0,0 +1,30 @@ +name: smemstat +version: git +version-script: | + echo $(git describe --tags) +summary: memory usage monitoring tool +description: smemstat reports the physical memory usage taking into consideration shared memory. The tool can either report a current snapshot of memory usage or periodically dump out any changes in memory. +confinement: strict +type: app +grade: stable + +parts: + smemstat: + plugin: make + source: git://kernel.ubuntu.com/cking/smemstat + build-packages: + - gcc + - make + - libncurses-dev + - libncursesw5-dev + stage-packages: + - libncurses-dev + - libncursesw5-dev +apps: + smemstat: + command: usr/bin/smemstat + plugs: + - system-observe + - system-trace + - process-control + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smemstat-0.02.03/snapcraft/Makefile new/smemstat-0.02.06/snapcraft/Makefile --- old/smemstat-0.02.03/snapcraft/Makefile 2018-09-23 12:10:50.000000000 +0200 +++ new/smemstat-0.02.06/snapcraft/Makefile 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -VERSION=$(shell git tag | tail -1 | cut -c2-) -COMMITS=$(shell git log --oneline | wc -l) -SHA=$(shell git log -1 --oneline | cut -d' ' -f1) -DATE=$(shell date +'%Y%m%d') -V=$(VERSION)-$(DATE)-$(COMMITS)-$(SHA) - -all: set_version - snapcraft - -set_version: - cat snapcraft.yaml | sed 's/version: .*/version: $(V)/' > snapcraft-tmp.yaml - mv snapcraft-tmp.yaml snapcraft.yaml - -clean: - rm -rf setup *.snap - snapcraft clean - cat snapcraft.yaml | sed 's/version: .*/version: 0/' > snapcraft-tmp.yaml - mv snapcraft-tmp.yaml snapcraft.yaml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/smemstat-0.02.03/snapcraft/snapcraft.yaml new/smemstat-0.02.06/snapcraft/snapcraft.yaml --- old/smemstat-0.02.03/snapcraft/snapcraft.yaml 2018-09-23 12:10:50.000000000 +0200 +++ new/smemstat-0.02.06/snapcraft/snapcraft.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -name: smemstat -version: 0.02.00-20180628-126-2570293 -summary: memory usage monitoring tool -description: smemstat reports the physical memory usage taking into consideration shared memory. The tool can either report a current snapshot of memory usage or periodically dump out any changes in memory. -confinement: strict -type: app -grade: stable - -parts: - smemstat: - plugin: make - source: git://kernel.ubuntu.com/cking/smemstat - build-packages: - - gcc - - make - - libncurses-dev - - libncursesw5-dev - stage-packages: - - libncurses-dev - - libncursesw5-dev -apps: - smemstat: - command: usr/bin/smemstat - plugs: - - system-observe - - system-trace - - process-control -
