Hello community, here is the log from the commit of package powertop for openSUSE:Factory checked in at 2013-01-10 13:52:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/powertop (Old) and /work/SRC/openSUSE:Factory/.powertop.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "powertop", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/powertop/powertop.changes 2012-09-01 21:58:15.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.powertop.new/powertop.changes 2013-01-10 13:53:00.000000000 +0100 @@ -1,0 +2,11 @@ +Thu Jan 1 16:00:00 UTC 2013 - [email protected] + +- Update to version 2.2: +* Bugfixes +* Translation updates +* Interactive mode scrolling +* Tunables: suggest writing min_power to all SATA ports +- powertop-2.2-version-fix.patch: Fixes displayed version string in ncurses interface +- powertop-2.2-fix-crash-on-readonly-fs.patch: Fixes crash when writing report to RO filesystem + +------------------------------------------------------------------- Old: ---- powertop-2.1.tar.gz New: ---- powertop-2.2-fix-crash-on-readonly-fs.patch powertop-2.2-version-fix.patch powertop-2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ powertop.spec ++++++ --- /var/tmp/diff_new_pack.oOWIbx/_old 2013-01-10 13:53:02.000000000 +0100 +++ /var/tmp/diff_new_pack.oOWIbx/_new 2013-01-10 13:53:02.000000000 +0100 @@ -22,11 +22,14 @@ Summary: A Linux Tool to Find out What is Using Power on a Laptop License: GPL-2.0+ Group: System/Monitoring -Version: 2.1 +Version: 2.2 Release: 0 Source: https://01.org/powertop/sites/default/files/downloads/%name-%version.tar.gz Patch2: powertop-1.98-always-create-params.patch Patch5: powertop-no-date.patch +# Following patches were found by the mindful fedora maintainer +Patch6: powertop-2.2-version-fix.patch +Patch7: powertop-2.2-fix-crash-on-readonly-fs.patch BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: ncurses-devel @@ -47,6 +50,8 @@ %setup -q %patch2 -p1 %patch5 -p1 +%patch6 -p1 +%patch7 -p1 # Delete objects files left in tarball find . -name '*.o' -delete ++++++ powertop-2.2-fix-crash-on-readonly-fs.patch ++++++ >From bd72b4433fec358801afebf3f02ab899b1745c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <[email protected]> Date: Wed, 28 Nov 2012 16:31:38 +0100 Subject: [PATCH] report: fixed crash when writing report to RO filesystem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada <[email protected]> --- src/report/report.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/report/report.cpp b/src/report/report.cpp index 51bc6a7..c018bb1 100644 --- a/src/report/report.cpp +++ b/src/report/report.cpp @@ -183,13 +183,16 @@ void init_report_output(char *filename_str, int iterations) void finish_report_output(void) { - fprintf(stderr, _("PowerTOP outputing using base filename %s\n"), reportout.filename); if (reporttype == REPORT_OFF) return; report.finish_report(); - fputs(report.get_result(), reportout.report_file); - fdatasync(fileno(reportout.report_file)); - fclose(reportout.report_file); + if (reportout.report_file) + { + fprintf(stderr, _("PowerTOP outputing using base filename %s\n"), reportout.filename); + fputs(report.get_result(), reportout.report_file); + fdatasync(fileno(reportout.report_file)); + fclose(reportout.report_file); + } report.clear_result(); } -- 1.7.11.7 ++++++ powertop-2.2-version-fix.patch ++++++ From: Namhyung Kim <[email protected]> To: [email protected] Date: Sun, 18 Nov 2012 00:42:47 +0900 Message-Id: <[email protected]> Subject: [Powertop] [PATCH] Use PACKAGE_VERSION for POWERTOP_VERSION It was missed to update POWERTOP_VERSION macro so that the new v2.2 release still shows v2.1 string on the header of ncurses window. Convert to use PACKAGE_VERSION macro which set by autotools to the AC_INIT version so that it cannot be missed anymore. Signed-off-by: Namhyung Kim <[email protected]> --- src/lib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.h b/src/lib.h index 8cf4632..209421a 100644 --- a/src/lib.h +++ b/src/lib.h @@ -35,8 +35,8 @@ #define _(STRING) gettext(STRING) -#define POWERTOP_VERSION "v2.1" -#define POWERTOP_SHORT_VERSION "2.1" +#define POWERTOP_VERSION "v"PACKAGE_VERSION +#define POWERTOP_SHORT_VERSION PACKAGE_VERSION extern int get_max_cpu(void); -- 1.7.9.2 ++++++ powertop-2.1.tar.gz -> powertop-2.2.tar.gz ++++++ ++++ 15802 lines of diff (skipped) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
