Fixed FTBFS, error: format not a string literal
This commit is contained in:
parent
b4d287077b
commit
d2c49fa407
30
ppc64-diag-gcc12.patch
Normal file
30
ppc64-diag-gcc12.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
diff --git a/lpd/lp_diag.c b/lpd/lp_diag.c
|
||||||
|
index 8dd92e6..988a021 100644
|
||||||
|
--- a/lpd/lp_diag.c
|
||||||
|
+++ b/lpd/lp_diag.c
|
||||||
|
@@ -653,11 +653,11 @@ UI_help(MENU *my_menu)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!strcmp(desc, "ident"))
|
||||||
|
- mvwprintw(my_text_win, 0, 0, help1);
|
||||||
|
+ mvwprintw(my_text_win, 0, 0, "%s", help1);
|
||||||
|
else if (!strcmp(desc, "attn"))
|
||||||
|
- mvwprintw(my_text_win, 0, 0, help2);
|
||||||
|
+ mvwprintw(my_text_win, 0, 0, "%s", help2);
|
||||||
|
else
|
||||||
|
- mvwprintw(my_text_win, 0, 0, help3);
|
||||||
|
+ mvwprintw(my_text_win, 0, 0, "%s", help3);
|
||||||
|
|
||||||
|
wrefresh(my_text_win);
|
||||||
|
|
||||||
|
@@ -1127,8 +1127,8 @@ startup_window(void)
|
||||||
|
}
|
||||||
|
|
||||||
|
mvprintw(0, 0, "SERVICE INDICATORS VERSION %s", VERSION);
|
||||||
|
- mvprintw(2, 0, msg1);
|
||||||
|
- mvprintw(5, 0, msg2);
|
||||||
|
+ mvprintw(2, 0, "%s", msg1);
|
||||||
|
+ mvprintw(5, 0, "%s", msg2);
|
||||||
|
mvprintw(9, 0, "Press the F3 key to exit or press Enter to continue.");
|
||||||
|
|
||||||
|
while ((c = getch()) != KEY_F(3)) {
|
@ -1,6 +1,6 @@
|
|||||||
Name: ppc64-diag
|
Name: ppc64-diag
|
||||||
Version: 2.7.8
|
Version: 2.7.8
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: PowerLinux Platform Diagnostics
|
Summary: PowerLinux Platform Diagnostics
|
||||||
URL: https://github.com/power-ras/%{name}
|
URL: https://github.com/power-ras/%{name}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -34,6 +34,7 @@ Source5: rtas_errd.8
|
|||||||
# fix paths and permissions
|
# fix paths and permissions
|
||||||
Patch0: ppc64-diag-fedora.patch
|
Patch0: ppc64-diag-fedora.patch
|
||||||
Patch1: ppc64-diag-2.7.8-opal-dump-parse-getopt.patch
|
Patch1: ppc64-diag-2.7.8-opal-dump-parse-getopt.patch
|
||||||
|
Patch2: ppc64-diag-gcc12.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains various diagnostic tools for PowerLinux.
|
This package contains various diagnostic tools for PowerLinux.
|
||||||
@ -168,6 +169,9 @@ if [ "$1" = "0" ]; then # last uninstall
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 28 2022 Than Ngo <than@redhat.com> - 2.7.8-4
|
||||||
|
- Fixed FTBFS, error: format not a string literal
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.8-3
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.8-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user