Fixed FTBFS

Resolves: rhbz#2113602
This commit is contained in:
Jaroslav Škarvada 2022-08-04 15:17:46 +02:00
parent 99cd08d2c9
commit 07148100e5
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/lib.cpp b/src/lib.cpp
index 5e48f37..1fd3fa6 100644
--- a/src/lib.cpp
+++ b/src/lib.cpp
@@ -583,7 +583,7 @@ void ui_notify_user_ncurses(const char *frmt, ...)
* 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));
}

View File

@ -1,6 +1,6 @@
Name: powertop
Version: 2.14
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Power consumption monitor
License: GPLv2
@ -12,6 +12,7 @@ Source1: powertop.service
Patch0: powertop-2.7-always-create-params.patch
# https://github.com/fenrus75/powertop/issues/84
Patch1: powertop-2.14-pthread.patch
Patch2: powertop-2.14-format-security-fix.patch
BuildRequires: make
BuildRequires: gettext-devel
BuildRequires: ncurses-devel
@ -37,6 +38,7 @@ computer use more power than necessary while it is idle.
%setup -q
%patch0 -p1 -b .always-create-params
%patch1 -p1 -b .pthread
%patch2 -p1 -b .format-security-fix
echo "v%{version}" > version-long
echo '"v%{version}"' > version-short
@ -79,6 +81,10 @@ touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.
%{_datadir}/bash-completion/completions/powertop
%changelog
* Thu Aug 4 2022 Jaroslav Škarvada <jskarvad@redhat.com> - 2.14-5
- Fixed FTBFS
Resolves: rhbz#2113602
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.14-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild