mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
powertop: update to 2.15
Release mainly focuses on bug fixes and patching compatibility issues. Also, adds support to multiple platforms. Removed obsolete patch as upstream has fixed. Signed-off-by: Milinda Brantini <C_A_T_T_E_R_Y@outlook.com>
This commit is contained in:
committed by
Rosen Penev
parent
f698b9c8a8
commit
45caf9b1f9
@@ -8,13 +8,13 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=powertop
|
||||
PKG_VERSION:=2.14
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=2.15
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
||||
PKG_SOURCE_URL:=https://github.com/fenrus75/powertop
|
||||
PKG_MIRROR_HASH:=52366fb27a67a2a877de449fbbad61f4347f7428cdc976b84b5702b527d440a4
|
||||
PKG_MIRROR_HASH:=cdff63ce2678c69239608e6944e342408abcf4de76134477c362d16b3a366b93
|
||||
|
||||
PKG_MAINTAINER:=Lucian Cristain <lucian.cristian@gmail.com>
|
||||
PKG_LICENSE:=GPL-2.0-only
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
From 9ef1559a1582f23d599c149601c3a8e06809296c Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex@linutronix.de>
|
||||
Date: Mon, 25 Oct 2021 17:47:23 +0200
|
||||
Subject: [PATCH] src: fix compatibility with ncurses 6.3
|
||||
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
---
|
||||
src/devices/devfreq.cpp | 2 +-
|
||||
src/display.cpp | 2 +-
|
||||
src/lib.cpp | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/src/devices/devfreq.cpp
|
||||
+++ b/src/devices/devfreq.cpp
|
||||
@@ -297,7 +297,7 @@ void display_devfreq_devices(void)
|
||||
df->fill_freq_utilization(j, buf);
|
||||
strcat(fline, buf);
|
||||
strcat(fline, "\n");
|
||||
- wprintw(win, fline);
|
||||
+ wprintw(win, "%s", fline);
|
||||
}
|
||||
wprintw(win, "\n");
|
||||
}
|
||||
--- a/src/display.cpp
|
||||
+++ b/src/display.cpp
|
||||
@@ -125,7 +125,7 @@ void show_tab(unsigned int tab)
|
||||
|
||||
c = bottom_lines[tab_names[tab]].c_str();
|
||||
if (c && strlen(c) > 0)
|
||||
- mvwprintw(bottom_line, 0,0, c);
|
||||
+ mvwprintw(bottom_line, 0,0, "%s", c);
|
||||
else
|
||||
mvwprintw(bottom_line, 0, 0,
|
||||
"<ESC> %s | <TAB> / <Shift + TAB> %s | ", _("Exit"),
|
||||
--- a/src/lib.cpp
|
||||
+++ b/src/lib.cpp
|
||||
@@ -583,7 +583,7 @@ void ui_notify_user_ncurses(const char *
|
||||
* buffer */
|
||||
vsnprintf(notify, UI_NOTIFY_BUFF_SZ - 1, frmt, list);
|
||||
va_end(list);
|
||||
- mvprintw(1, 0, notify);
|
||||
+ mvprintw(1, 0, "%s", notify);
|
||||
attroff(COLOR_PAIR(1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user