From d1f79552c12d795211af8c8aa26dd524b6dd3f37 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 14 May 2022 13:57:22 +0200 Subject: [PATCH] ppc64-diag-2.7.8-opal-dump-parse-getopt.patch --- ppc64-diag-2.7.8-opal-dump-parse-getopt.patch | 12 ++++++++++++ ppc64-diag.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 ppc64-diag-2.7.8-opal-dump-parse-getopt.patch diff --git a/ppc64-diag-2.7.8-opal-dump-parse-getopt.patch b/ppc64-diag-2.7.8-opal-dump-parse-getopt.patch new file mode 100644 index 0000000..6480861 --- /dev/null +++ b/ppc64-diag-2.7.8-opal-dump-parse-getopt.patch @@ -0,0 +1,12 @@ +diff -up ppc64-diag-2.7.8/opal-dump-parse/opal-dump-parse.c.me ppc64-diag-2.7.8/opal-dump-parse/opal-dump-parse.c +--- ppc64-diag-2.7.8/opal-dump-parse/opal-dump-parse.c.me 2022-05-14 06:21:01.745290071 -0400 ++++ ppc64-diag-2.7.8/opal-dump-parse/opal-dump-parse.c 2022-05-14 07:30:08.240914514 -0400 +@@ -462,7 +462,7 @@ int main(int argc, char *argv[]) + { + int opt = 0; + +- while ((opt = getopt(argc, argv, "lh:s:o:")) != -1) { ++ while ((opt = getopt(argc, argv, "hl:s:o:")) != -1) { + switch (opt) { + case 'l': + opt_mdst = 1; diff --git a/ppc64-diag.spec b/ppc64-diag.spec index c006dd3..33f6e57 100644 --- a/ppc64-diag.spec +++ b/ppc64-diag.spec @@ -1,6 +1,6 @@ Name: ppc64-diag Version: 2.7.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PowerLinux Platform Diagnostics URL: https://github.com/power-ras/%{name} License: GPLv2 @@ -33,6 +33,7 @@ Source5: rtas_errd.8 # fix paths and permissions Patch0: ppc64-diag-fedora.patch +Patch1: ppc64-diag-2.7.8-opal-dump-parse-getopt.patch %description This package contains various diagnostic tools for PowerLinux. @@ -167,6 +168,9 @@ if [ "$1" = "0" ]; then # last uninstall fi %changelog +* Sat May 14 2022 Than Ngo - 2.7.8-2 +- opal-dump-parse -h should return 0 + * Thu Apr 07 2022 Dan HorĂ¡k - 2.7.8-1 - rebase to 2.7.8