commit 521b3122b2c974bfd26eede7248b184334924157 Author: CentOS Sources Date: Thu Aug 1 14:41:56 2019 -0400 import powerpc-utils-1.3.6-3.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f14b070 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/powerpc-utils-1.3.6.tar.gz diff --git a/.powerpc-utils.metadata b/.powerpc-utils.metadata new file mode 100644 index 0000000..00f3232 --- /dev/null +++ b/.powerpc-utils.metadata @@ -0,0 +1 @@ +67ca5ca55c65fb5f28c77b258784ebeaf1eea208 SOURCES/powerpc-utils-1.3.6.tar.gz diff --git a/SOURCES/nvsetenv b/SOURCES/nvsetenv new file mode 100644 index 0000000..9ee9571 --- /dev/null +++ b/SOURCES/nvsetenv @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ "$1" = "--version" ]; then + echo This version of nvsetenv is just a wrapper to invoke nvram + exit 0 +fi +if [ -z "$1" ]; then + nvram --print-config +elif [ -z "$2" ]; then + nvram --print-config="$1" +else + nvram --update-config "$1"="$2" +fi +exit $? diff --git a/SOURCES/powerpc-utils-1.2.15-man.patch b/SOURCES/powerpc-utils-1.2.15-man.patch new file mode 100644 index 0000000..6b92e65 --- /dev/null +++ b/SOURCES/powerpc-utils-1.2.15-man.patch @@ -0,0 +1,308 @@ +diff -up powerpc-utils-1.2.15/man/drmgr.8.man powerpc-utils-1.2.15/man/drmgr.8 +--- powerpc-utils-1.2.15/man/drmgr.8.man 2013-01-16 15:31:13.886591137 +0100 ++++ powerpc-utils-1.2.15/man/drmgr.8 2013-01-16 15:31:13.886591137 +0100 +@@ -0,0 +1,60 @@ ++.TH DRMGR "8" "Oct 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++drmgr \- Dynamic Resource Manager. Utility used to perform DLPAR operations on a client partition. ++ ++.SH SYNOPSIS ++.B drmgr ++.RB [ \-w ++.IR minutes ] ++.RB [ \-d ++.IR detail_level ] ++.RB [ \-C | \-\-capabilities ] ++.RB [ \-h | \-\-help ] ++ ++.B drmgr ++.RB { \-c " {" port " | " slot " | " phb " | " pci " | " mem " | " cpu } ++.RB | \-m } ++ ++.B drmgr \-c ++.RB { port " | " slot " | " phb } ++.RB { \-a " | " \-r " | " \-Q "} " \-s ++.I drc_name ++ ++.B drmgr \-c pci \-s ++.I slot ++.RB { \-i " | " \-a " [" \-I "] | " \-r " [" \-I "] | " \-R " [" \-I "]}" ++ ++.B drmgr \-c mem ++.RB { \-a " | " \-r "} {" \-q ++.I quantity ++.BR \-p ++.RI { variable_weight " | " ent_capacity "} |" ++.RB { \-q ++.I quantity ++.RB "| " \-s ++.IR drc_name }} ++ ++.B drmgr \-c cpu ++.RB { \-a " | " \-r "} {" \-q ++.I quantity ++.BR \-p ++.RI { variable_weight " | " ent_capacity } ++.RB [ \-s ++.IR drc_names ] ++ ++ ++ ++.SH OVERVIEW ++.B drmgr ++program is a member of the ppc64-utils suite of utils. ++Use it to list DLPAR and hotplug capable slots. ++ ++.SH DESCRIPTION ++.B drmgr ++is a utility to list DLPAR and hotplug capable slots. ++ ++.SH AUTHOR ++.B drmgr ++was written by IBM Corporation ++.PP ++This manual page was written by Roman Rakus +diff -up powerpc-utils-1.2.15/man/lsdevinfo.8.man powerpc-utils-1.2.15/man/lsdevinfo.8 +--- powerpc-utils-1.2.15/man/lsdevinfo.8.man 2013-01-16 15:31:13.886591137 +0100 ++++ powerpc-utils-1.2.15/man/lsdevinfo.8 2013-01-16 15:31:13.886591137 +0100 +@@ -0,0 +1,39 @@ ++.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. ++.TH LSDEVINFO "8" "October 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++lsdevinfo - information on Virtual devices ++ ++.SH SYNOPSIS ++.B lsdevinfo ++[\fI-q criteria\fR] [\fI-F format\fR] [\fI-R\fR] [\fI-c\fR] [\fI-h\fR] ++ ++.SH DESCRIPTION ++Provide information on Virtual devices ++.PP ++ ++.SH OPTIONS ++.TP ++\fB\-q\fR criteria ++Specifies a criteria to select which devices are to be displayed. ++.TP ++\fB\-F\fR format ++Specifies the set of attributes to be displayed. ++.TP ++\fB\-R\fR ++Recursively display children of selected devices ++.TP ++\fB\-c\fR ++Display output as a comma separated list for each device. ++.TP ++\fB\-V\fR ++Display version information and exit ++.TP ++\fB\-h\fR ++Display help information and exit ++ ++.SH AUTHOR ++.B lsdevinfo ++was written by Santiago Leon . ++.PP ++This manual page was written by Roman Rakus . ++ +diff -up powerpc-utils-1.2.15/man/lsprop.8.man powerpc-utils-1.2.15/man/lsprop.8 +--- powerpc-utils-1.2.15/man/lsprop.8.man 2013-01-16 15:31:13.886591137 +0100 ++++ powerpc-utils-1.2.15/man/lsprop.8 2013-01-16 15:31:13.886591137 +0100 +@@ -0,0 +1,42 @@ ++.TH LSPROP "8" "Sep 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++lsprop \- list properties ++.SH SYNOPSIS ++.B lsprop ++.RB [ \-R ] ++.RB [ \-m ++.IR max-bytes ] ++.RB [ \-w ++.IR num-words ] ++.RI [ FILE .\|.\|.] ++.SH OVERVIEW ++.B lsprop ++program is a member of the ppc64-utils suite of utils. ++Use it to list properties ++ ++.SH DESCRIPTION ++.B lsprop ++displays properties for ++.IR FILE s ++like Open Firmware ++.I .properties ++word. ++If the ++.I FILE ++is not set, the current directory is used. ++ ++.SH OPTIONS ++.TP ++.B \-R ++Process recursively ++.TP ++.BI \-m " max-bytes" ++Read only first ++.I max-bytes ++bytes from the ++.IR FILE s ++.TP ++.BI \-w " num-words" ++Display up to ++.I num-words ++words per line +diff -up powerpc-utils-1.2.15/man/ls-vdev.8.man powerpc-utils-1.2.15/man/ls-vdev.8 +--- powerpc-utils-1.2.15/man/ls-vdev.8.man 2013-01-16 15:31:13.886591137 +0100 ++++ powerpc-utils-1.2.15/man/ls-vdev.8 2013-01-16 15:31:13.886591137 +0100 +@@ -0,0 +1,25 @@ ++.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. ++.TH LS-VDEV "8" "October 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++ls-vdev \- information on Virtual SCSI adapters and devices ++.SH SYNOPSIS ++.BR ls-vdev " [" \-h " | " -V ] ++ ++.SH DESCRIPTION ++Provide information on Virtual SCSI adapters and devices ++.PP ++ ++.SH OPTIONS ++.TP ++\fB\-V\fR ++Display version information and exit ++.TP ++\fB\-h\fR ++Display help information and exit ++.PP ++ ++.SH AUTHOR ++.B ls-vdev ++was written by Brian King . ++.PP ++This manual page was written by Roman Rakus . +diff -up powerpc-utils-1.2.15/man/ls-veth.8.man powerpc-utils-1.2.15/man/ls-veth.8 +--- powerpc-utils-1.2.15/man/ls-veth.8.man 2013-01-16 15:31:13.887591102 +0100 ++++ powerpc-utils-1.2.15/man/ls-veth.8 2013-01-16 15:31:13.887591102 +0100 +@@ -0,0 +1,25 @@ ++.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. ++.TH LS-VETH "8" "October 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++ls-veth \- information on Virtual Ethernet devices ++.SH SYNOPSIS ++.BR ls-veth " [" \-h " | " -V ] ++ ++.SH DESCRIPTION ++Provide information on Virtual Ethernet devices ++.PP ++ ++.SH OPTIONS ++.TP ++\fB\-V\fR ++Display version information and exit ++.TP ++\fB\-h\fR ++Display help information and exit ++.PP ++ ++.SH AUTHOR ++.B ls-veth ++was written by Brian King . ++.PP ++This manual page was written by Roman Rakus . +diff -up powerpc-utils-1.2.15/man/ls-vscsi.8.man powerpc-utils-1.2.15/man/ls-vscsi.8 +--- powerpc-utils-1.2.15/man/ls-vscsi.8.man 2013-01-16 15:31:13.887591102 +0100 ++++ powerpc-utils-1.2.15/man/ls-vscsi.8 2013-01-16 15:31:13.887591102 +0100 +@@ -0,0 +1,25 @@ ++.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. ++.TH LS-VSCSI "8" "October 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++ls-vscsi \- information on Virtual devices ++.SH SYNOPSIS ++.BR ls-vscsi " [" \-h " | " -V ] ++ ++.SH DESCRIPTION ++Provide information on Virtual devices ++.PP ++ ++.SH OPTIONS ++.TP ++\fB\-V\fR ++Display version information and exit ++.TP ++\fB\-h\fR ++Display help information and exit ++.PP ++ ++.SH AUTHOR ++.B ls-vscsi ++was written by Brian King . ++.PP ++This manual page was written by Roman Rakus . +diff -up powerpc-utils-1.2.15/man/nvsetenv.8.man powerpc-utils-1.2.15/man/nvsetenv.8 +--- powerpc-utils-1.2.15/man/nvsetenv.8.man 2013-01-16 15:31:13.887591102 +0100 ++++ powerpc-utils-1.2.15/man/nvsetenv.8 2013-01-16 15:31:13.887591102 +0100 +@@ -0,0 +1,29 @@ ++.TH NVSETENV "8" "Oct 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++nvsetenv \- wrapper to invoke nvram ++ ++.SH SYNOPSIS ++.B nvsetenv ++[ ARG1 ] [ ARG2 ] ++ ++.SH DESCRIPTION ++.B nvsetenv ++is just a wrapper to invoke nvram ++ ++.SH OPTIONS ++ ++Without any argument, nvsetenv calls ++.I nvram --print-config ++ ++With one argument ++.IR ARG1 , ++nvsetenv calls ++.I nvram --print-config=ARG1 ++ ++With two arguments ++.IR "ARG1 ARG2" , ++nvsetenv calls ++.I nvram --update-config ARG1=ARG2 ++ ++.SH "SEE ALSO" ++.IR nvram (8) +diff -up powerpc-utils-1.2.15/man/rtas_event_decode.8.man powerpc-utils-1.2.15/man/rtas_event_decode.8 +--- powerpc-utils-1.2.15/man/rtas_event_decode.8.man 2013-01-16 15:31:13.888591067 +0100 ++++ powerpc-utils-1.2.15/man/rtas_event_decode.8 2013-01-16 15:31:13.888591067 +0100 +@@ -0,0 +1,31 @@ ++.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. ++.TH RTAS_EVENT_DECODE 8 "September 2010" "Linux" "Linux on Power Service Tools" ++.SH NAME ++\fBrtas_event_decode\fP - RTAS message decoder ++.SH SYNOPSIS ++.B rtas_event_decode ++[\fI-dv\fR] [\fI-n eventnum\fR] [\fI-w width\fR] ++.SH DESCRIPTION ++RTAS messages are placed in the syslog encoded in a binary ++format, and are unreadable. This tool will take exactly one ++message, parse it, and spit out the human-readable equivalent. ++This program expects ascii data on stdin. ++ ++This tool is mostly meant to be used in conjuction with the ++rtas_dump shell script, which provides a suitable user ++interface. ++ ++.SH OPTIONS ++.TP ++.B \-d ++dump the raw RTAS event ++.TP ++.BI \-n " eventnum" ++event number of the RTAS event being dumped ++.TP ++.B \-v ++verbose, print all details, not just header ++.TP ++.BI \-w " width" ++limit the output to the specified width, default width is 80 characters. The width must be > 0 and < 1024. ++ diff --git a/SOURCES/powerpc-utils-1.2.27-makefile.patch b/SOURCES/powerpc-utils-1.2.27-makefile.patch new file mode 100644 index 0000000..54adaf2 --- /dev/null +++ b/SOURCES/powerpc-utils-1.2.27-makefile.patch @@ -0,0 +1,35 @@ +From ae66fdee8e73ba460b2fbc592f1bc79574c5e02d Mon Sep 17 00:00:00 2001 +From: Vasant Hegde +Date: Mon, 16 Nov 2015 18:29:17 +0530 +Subject: [PATCH] Makefile fix + +Signed-off-by: Vasant Hegde +--- + Makefile.am | 10 +++++++++- + Makefile.in | 10 +++++++++- + 1 files changed, 9 insertions(+), 1 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index e6be23e..b521794 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -43,7 +43,15 @@ man_MANS = \ + man/lsslot.8 \ + man/ppc64_cpu.8 \ + man/errinjct.8 \ +- man/rtas_dbg.8 ++ man/rtas_dbg.8 \ ++ man/lsdevinfo.8 \ ++ man/rtas_event_decode.8 \ ++ man/ls-vdev.8 \ ++ man/lsprop.8 \ ++ man/drmgr.8 \ ++ man/ls-veth.8 \ ++ man/nvsetenv.8 \ ++ man/ls-vscsi.8 + + EXTRA_DIST += $(bin_SCRIPTS) $(sbin_SCRIPTS) $(man_MANS) + +-- +2.1.0 + diff --git a/SOURCES/powerpc-utils-1.3.5-install-man.patch b/SOURCES/powerpc-utils-1.3.5-install-man.patch new file mode 100644 index 0000000..173058f --- /dev/null +++ b/SOURCES/powerpc-utils-1.3.5-install-man.patch @@ -0,0 +1,14 @@ +diff -up powerpc-utils-1.3.5/Makefile.am.me powerpc-utils-1.3.5/Makefile.am +--- powerpc-utils-1.3.5/Makefile.am.me 2018-11-30 16:51:45.760141937 +0100 ++++ powerpc-utils-1.3.5/Makefile.am 2018-11-30 17:09:07.396294356 +0100 +@@ -52,7 +52,9 @@ man_MANS = \ + man/drmgr.8 \ + man/ls-veth.8 \ + man/nvsetenv.8 \ +- man/ls-vscsi.8 ++ man/ls-vscsi.8 \ ++ man/pseries_platform.8 \ ++ man/update_flash_nv.8 + + EXTRA_DIST += $(bin_SCRIPTS) $(sbin_SCRIPTS) $(man_MANS) + diff --git a/SOURCES/powerpc-utils-1.3.5-pseries_platform-man.patch b/SOURCES/powerpc-utils-1.3.5-pseries_platform-man.patch new file mode 100644 index 0000000..cd01843 --- /dev/null +++ b/SOURCES/powerpc-utils-1.3.5-pseries_platform-man.patch @@ -0,0 +1,15 @@ +diff -up powerpc-utils-1.3.5/man/pseries_platform.8.me powerpc-utils-1.3.5/man/pseries_platform.8 +--- powerpc-utils-1.3.5/man/pseries_platform.8.me 2018-11-29 16:50:07.601034729 +0100 ++++ powerpc-utils-1.3.5/man/pseries_platform.8 2018-11-29 16:50:07.601034729 +0100 +@@ -0,0 +1,11 @@ ++.\" ++.\" Copyright (C) 2015 International Business Machines ++.\" ++.TH pseries_platform 8 "September 2015" Linux "Linux on Power Service Tools" ++.SH NAME ++pseries_platform \- identify the platform and display the name of platform ++.SH SYNOPSIS ++.B /usr/bin/pseries_platform ++ ++.SH DESCRIPTION ++The \fIpseries_platform\fR tool can identify the platform and display the name of platform. diff --git a/SOURCES/powerpc-utils-1.3.5-update_flash_nv.patch b/SOURCES/powerpc-utils-1.3.5-update_flash_nv.patch new file mode 100644 index 0000000..273b418 --- /dev/null +++ b/SOURCES/powerpc-utils-1.3.5-update_flash_nv.patch @@ -0,0 +1,19 @@ +diff -up powerpc-utils-1.3.5/man/update_flash_nv.8.me powerpc-utils-1.3.5/man/update_flash_nv.8 +--- powerpc-utils-1.3.5/man/update_flash_nv.8.me 2018-11-29 16:49:51.344987106 +0100 ++++ powerpc-utils-1.3.5/man/update_flash_nv.8 2018-11-29 16:49:42.589961458 +0100 +@@ -0,0 +1,15 @@ ++.\" ++.\" Copyright (C) 2015 International Business Machines ++.\" ++.TH pseries_platform 8 "September 2015" Linux "Linux on Power Service Tools" ++.SH NAME ++update_flash_nv \- is a simple wrapper script (update_flash) to pass the image. ++.SH SYNOPSIS ++.B /usr/bin/update_flash_nv ++ ++.SH DESCRIPTION ++The \fIupdate_flash_nv\fR tool is simple wrapper script (update_flash) to pass the image. ++ ++.SH SEE ALSO ++update_flash(8). ++ diff --git a/SOURCES/powerpc-utils-1d4147370a148b3a2ebadcf02abd4a6c9a763e6d.patch b/SOURCES/powerpc-utils-1d4147370a148b3a2ebadcf02abd4a6c9a763e6d.patch new file mode 100644 index 0000000..96b44bc --- /dev/null +++ b/SOURCES/powerpc-utils-1d4147370a148b3a2ebadcf02abd4a6c9a763e6d.patch @@ -0,0 +1,198 @@ +commit 1d4147370a148b3a2ebadcf02abd4a6c9a763e6d +Author: Sourabh Jain +Date: Sat Apr 27 10:18:32 2019 +0530 + + lparstat: add an option to print the lparstat report similar to legacy lparstat tool + + This patch adds a new command line option (-l, --legacy) to allow + users to print the report similar to legacy lprastat tool without + affecting existing report format. + + Changes done to make the current report format similar to legacy + report format are listed below: + + 1) The memory attribute will be printed in MB instead of KB. + 2) cpus attribute will be referred as psize in legacy report format + and only printed in shared lpar environment. + 3) On legacy lparstat tool the lcpu attribute is a combination of + two attributes, smt and number of online processor. Formula used + to calculate the lcpu is given below. + lcpu = smt * number of online processors + + Signed-off-by: Sourabh Jain + Reviewed-by: Vasant Hegde + Signed-off-by: Tyrel Datwyler + +diff --git a/man/lparstat.8 b/man/lparstat.8 +index 467f570..0f4c923 100644 +--- a/man/lparstat.8 ++++ b/man/lparstat.8 +@@ -36,6 +36,11 @@ Online Memory Capacity. + .TP + cpus + Number of online physical processors in the pool. ++.RS ++This attribute is referred as ++.B psize ++in legacy mode and only available in shared LPAR environment. ++.RE + .TP + ent + Entitled processing capacity in processor units. This information is displayed only if the partition type is shared. +@@ -204,6 +209,26 @@ The variable memory capacity weight of the LPAR. + .TP + .SH + .TP ++\fB\-l, --legacy\fR ++Display the report in legacy format. ++.RS ++.RS ++Memory attribute in MB instead of KB. ++.RS ++.RE ++.B cpus ++attribute is referred as ++.B psize ++and only available for shared LPAR. ++.RS ++.RE ++.B lcpu ++attribute calculation: lcpu = smt * number of online processors. ++.RE ++.TP ++.RS ++.SH ++.TP + \fB\-h, --help\fR + Display the usage of lparstat. + .RS +diff --git a/src/lparstat.c b/src/lparstat.c +index 1abe54d..ffb2cfa 100644 +--- a/src/lparstat.c ++++ b/src/lparstat.c +@@ -23,6 +23,7 @@ + + #include + #include ++#include + #include + #include + #include +@@ -35,6 +36,8 @@ + #define SE_NOT_FOUND "???" + #define SE_NOT_VALID "-" + ++static bool o_legacy = false; ++ + struct sysentry *get_sysentry(char *name) + { + struct sysentry *se = &system_data[0]; +@@ -479,7 +482,7 @@ void get_mem_total(struct sysentry *se, char *buf) + { + FILE *f; + char line[128]; +- char *mem, *nl, *first_line; ++ char *mem, *nl, *first_line, *unit; + + f = fopen("/proc/meminfo", "r"); + if (!f) { +@@ -500,10 +503,21 @@ void get_mem_total(struct sysentry *se, char *buf) + mem++; + } while (*mem == ' '); + +- nl = strchr(mem, '\n'); ++ unit = strchr(mem, ' '); ++ *unit = '\0'; ++ ++ do { ++ unit++; ++ } while (*unit == ' '); ++ ++ nl = strchr(unit, '\n'); + *nl = '\0'; + +- sprintf(buf, "%s", mem); ++ if (o_legacy) { ++ sprintf(buf, "%d %s", atoi(mem) / 1024, "MB"); ++ } else { ++ sprintf(buf, "%s %s", mem, unit); ++ } + } + + void get_smt_mode(struct sysentry *se, char *buf) +@@ -604,7 +618,8 @@ void print_default_output(int interval, int count) + char *fmt = "%5s %5s %5s %8s %8s %5s %5s %5s %5s %5s\n"; + char *descr; + char buf[128]; +- int offset; ++ int offset, smt, active_proc; ++ char type[32]; + char value[32]; + char user[32], sys[32], wait[32], idle[32], physc[32], entc[32]; + char lbusy[32], app[32], vcsw[32], phint[32]; +@@ -612,16 +627,30 @@ void print_default_output(int interval, int count) + memset(buf, 0, 128); + get_sysdata("shared_processor_mode", &descr, value); + offset = sprintf(buf, "type=%s ", value); ++ sprintf(type, "%s", value); + get_sysdata("capped", &descr, value); + offset += sprintf(buf + offset, "mode=%s ", value); + get_sysdata("smt_state", &descr, value); + offset += sprintf(buf + offset, "smt=%s ", value); ++ if (!strcmp(value, "Off")) ++ smt = 1; ++ else ++ smt = atoi(value); + get_sysdata("partition_active_processors", &descr, value); +- offset += sprintf(buf + offset, "lcpu=%s ", value); ++ active_proc = atoi(value); ++ if (o_legacy) ++ offset += sprintf(buf + offset, "lcpu=%d ", active_proc*smt); ++ else ++ offset += sprintf(buf + offset, "lcpu=%s ", value); + get_sysdata("MemTotal", &descr, value); + offset += sprintf(buf + offset, "mem=%s ", value); + get_sysdata("active_cpus_in_pool", &descr, value); +- offset += sprintf(buf + offset, "cpus=%s ", value); ++ if (o_legacy) { ++ if (strcmp(type, "Dedicated")) ++ offset += sprintf(buf + offset, "psize=%s ", value); ++ } else { ++ offset += sprintf(buf + offset, "cpus=%s ", value); ++ } + get_sysdata("DesEntCap", &descr, value); + offset += sprintf(buf + offset, "ent=%s ", value); + +@@ -662,6 +691,7 @@ static void usage(void) + "\t-h, --help Show this message and exit.\n" + "\t-V, --version \tDisplay lparstat version information.\n" + "\t-i Lists details on the LPAR configuration.\n" ++ "\t-l, --legacy Print the report in legacy format.\n" + "interval The interval parameter specifies the amount of time between each report.\n" + "count The count parameter specifies how many reports will be displayed.\n"); + } +@@ -669,6 +699,7 @@ static void usage(void) + static struct option long_opts[] = { + {"version", no_argument, NULL, 'V'}, + {"help", no_argument, NULL, 'h'}, ++ {"legacy", no_argument, NULL, 'l'}, + {0, 0, 0, 0}, + }; + +@@ -684,12 +715,15 @@ int main(int argc, char *argv[]) + exit(1); + } + +- while ((c = getopt_long(argc, argv, "iVh", ++ while ((c = getopt_long(argc, argv, "iVhl", + long_opts, &opt_index)) != -1) { + switch(c) { + case 'i': + i_option = 1; + break; ++ case 'l': ++ o_legacy = true; ++ break; + case 'V': + printf("lparstat - %s\n", VERSION); + return 0; diff --git a/SOURCES/powerpc-utils-8b7978b114e5df89218daa9b4b48cc0e918ba917.patch b/SOURCES/powerpc-utils-8b7978b114e5df89218daa9b4b48cc0e918ba917.patch new file mode 100644 index 0000000..18fefea --- /dev/null +++ b/SOURCES/powerpc-utils-8b7978b114e5df89218daa9b4b48cc0e918ba917.patch @@ -0,0 +1,94 @@ +commit 8b7978b114e5df89218daa9b4b48cc0e918ba917 +Author: Sourabh Jain +Date: Mon Feb 4 16:15:14 2019 +0530 + + lparstat: introduce the help command line option to print lparstat usage + + This patch adds a function to print the usage of lparstat. Also, + a new element is added to structure option to handle long command + line argument for help. + + Signed-off-by: Sourabh Jain + Signed-off-by: Tyrel Datwyler + +diff --git a/man/lparstat.8 b/man/lparstat.8 +index 9721580..467f570 100644 +--- a/man/lparstat.8 ++++ b/man/lparstat.8 +@@ -9,8 +9,9 @@ + .SH NAME + lparstat \- Reports logical partition ( LPAR ) related information and statistics. + .SH SYNOPSIS +-.B /usr/sbin/lparstat +-[ -i ] [ interval [ count ] ] ++.B /usr/sbin/lparstat [ options ] ++.HP ++.B /usr/sbin/lparstat [ count ] + .SH DESCRIPTION + The \fIlparstat\fR command provides a report of LPAR related information and utilization statistics. This command provides a display of current LPAR related parameters and Hypervisor information, as well as utilization statistics for the LPAR. + +@@ -202,6 +203,17 @@ Desired Variable Capacity Weight + The variable memory capacity weight of the LPAR. + .TP + .SH ++.TP ++\fB\-h, --help\fR ++Display the usage of lparstat. ++.RS ++.SH ++.TP ++\fB\-V, --version\fR ++Display the lparstat version information. ++.RS ++.SH ++.TP + interval + The + .B interval +diff --git a/src/lparstat.c b/src/lparstat.c +index c9b86fd..1abe54d 100644 +--- a/src/lparstat.c ++++ b/src/lparstat.c +@@ -655,8 +655,20 @@ void print_default_output(int interval, int count) + } while (--count > 0); + } + ++static void usage(void) ++{ ++ printf("Usage: lparstat [ options ]\n\tlparstat [ count ]\n\n" ++ "options:\n" ++ "\t-h, --help Show this message and exit.\n" ++ "\t-V, --version \tDisplay lparstat version information.\n" ++ "\t-i Lists details on the LPAR configuration.\n" ++ "interval The interval parameter specifies the amount of time between each report.\n" ++ "count The count parameter specifies how many reports will be displayed.\n"); ++} ++ + static struct option long_opts[] = { + {"version", no_argument, NULL, 'V'}, ++ {"help", no_argument, NULL, 'h'}, + {0, 0, 0, 0}, + }; + +@@ -672,7 +684,7 @@ int main(int argc, char *argv[]) + exit(1); + } + +- while ((c = getopt_long(argc, argv, "iV", ++ while ((c = getopt_long(argc, argv, "iVh", + long_opts, &opt_index)) != -1) { + switch(c) { + case 'i': +@@ -681,7 +693,12 @@ int main(int argc, char *argv[]) + case 'V': + printf("lparstat - %s\n", VERSION); + return 0; ++ case 'h': ++ usage(); ++ return 0; + case '?': ++ usage(); ++ return 1; + default: + break; + } diff --git a/SOURCES/powerpc-utils-b5fea40ac98d1c9a685d98c011e88180c31ca0be.patch b/SOURCES/powerpc-utils-b5fea40ac98d1c9a685d98c011e88180c31ca0be.patch new file mode 100644 index 0000000..3214bb4 --- /dev/null +++ b/SOURCES/powerpc-utils-b5fea40ac98d1c9a685d98c011e88180c31ca0be.patch @@ -0,0 +1,31 @@ +commit b5fea40ac98d1c9a685d98c011e88180c31ca0be +Author: Vasant Hegde +Date: Wed Feb 20 15:44:17 2019 +0530 + + man/update_flash: Add details to extract rpm format image + + Signed-off-by: Vasant Hegde + Signed-off-by: Tyrel Datwyler + +diff --git a/man/update_flash.8 b/man/update_flash.8 +index 254fbac..4ae10d8 100644 +--- a/man/update_flash.8 ++++ b/man/update_flash.8 +@@ -225,6 +225,17 @@ following the steps outlined here: + .P + http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hatl/iphblresetserverp6.htm + ++.P ++.B RPM format image ++.fi ++For "rpm format" images, the file will have a .rpm extension. It can be extracted ++using below command: ++ ++ rpm2cpio | cpio -idmv ++.fi ++.P ++This will extract files under current directory. Pass .img file to this script. ++ + .P + .B AIX format image + .fi diff --git a/SOURCES/powerpc-utils-bc928b06605371b72c7fe8ec7e81886114a9e9d4.patch b/SOURCES/powerpc-utils-bc928b06605371b72c7fe8ec7e81886114a9e9d4.patch new file mode 100644 index 0000000..d17f099 --- /dev/null +++ b/SOURCES/powerpc-utils-bc928b06605371b72c7fe8ec7e81886114a9e9d4.patch @@ -0,0 +1,40 @@ +commit bc928b06605371b72c7fe8ec7e81886114a9e9d4 +Author: Sourabh Jain +Date: Thu Jan 31 14:25:21 2019 +0530 + + lparstat: restrict the physc and entc attribute values to two decimal places + + Print format of physical processors consumed (physc) and percentage of + the entitled capacity consumed (entc) attributes has changed from six + decimal places to two. + + The least possible value allowed for processor entitlement to a LPAR + is 0.05 so printing physc and entc values with such a high precision + is incorrect. + + Signed-off-by: Sourabh Jain + Reviewed-by: Vasant Hegde + Signed-off-by: Tyrel Datwyler + +diff --git a/src/lparstat.c b/src/lparstat.c +index ec57c1a..c9b86fd 100644 +--- a/src/lparstat.c ++++ b/src/lparstat.c +@@ -176,7 +176,7 @@ void get_cpu_physc(struct sysentry *unused_se, char *buf) + physc = (new_purr - old_purr)/timebase/elapsed; + } + +- sprintf(buf, "%.6f", physc); ++ sprintf(buf, "%.2f", physc); + } + + void get_per_entc(struct sysentry *unused_se, char *buf) +@@ -188,7 +188,7 @@ void get_per_entc(struct sysentry *unused_se, char *buf) + get_sysdata("DesEntCap", &descr, entc); + get_sysdata("physc", &descr, physc); + +- sprintf(buf, "%.6f", atof(physc) / atof(entc) * 100.0); ++ sprintf(buf, "%.2f", atof(physc) / atof(entc) * 100.0); + } + + void get_cpu_app(struct sysentry *unused_se, char *buf) diff --git a/SOURCES/powerpc-utils-dd6da6b329bac2743d1c80b5556b494c923c11ad.patch b/SOURCES/powerpc-utils-dd6da6b329bac2743d1c80b5556b494c923c11ad.patch new file mode 100644 index 0000000..c8c533a --- /dev/null +++ b/SOURCES/powerpc-utils-dd6da6b329bac2743d1c80b5556b494c923c11ad.patch @@ -0,0 +1,195 @@ +commit dd6da6b329bac2743d1c80b5556b494c923c11ad +Author: Michael Bringmann +Date: Mon Apr 29 11:25:18 2019 -0500 + + scripts: Improve handling of errors from subsidiary scripts + + This patch is to fix the handling of errors by 'lsdevinfo' from + invocations of 'ofpathname' that also encounter errors. Error + messages from 'ofpathname' were being sent through 'stdout', and + interpreted as valid data by a number of script instructions in + 'lsdevinfo'. Following is an example of such a failure when the + error results were forwarded to an associated HMC. + + 2019-02-19 22:05:38.212 [TID-5f68--72195] VIOS_CACHE: CacheVios.<-> saveCacheData 3*9080-M9S*130A068 cmd=lsdevinfo -c -q physloc=U78CD.001.FZH0128-P1-C1-T3-S4 -F status + 2019-02-19 22:05:38.212 [TID-5f68--72195] RMC_VIOS: PIRmcViosClient.stdErr=/bin/ls: cannot access /sys/class/net/ofpathname:: No such file or directory + /bin/ls: cannot access Could: No such file or directory + /bin/ls: cannot access not: No such file or directory + /bin/ls: cannot access retrieve: No such file or directory + /bin/ls: cannot access logical: No such file or directory + /bin/ls: cannot access device: No such file or directory + /bin/ls: cannot access name: No such file or directory + /bin/ls: cannot access for: No such file or directory + /bin/ls: cannot access Open: No such file or directory + /bin/ls: cannot access Firmware: No such file or directory + /bin/ls: cannot access path: No such file or directory + /bin/ls: cannot access "/pci@800000029008004/ethernet@0"./device/driver: No such file or directory + + This patch makes the following changes: + + * Redirects the error messages from 'ofpathname' to stderr + * Adds more checks to 'lsdevinfo' to filter out stderr text + from input to various parsing commands. + + Signed-off-by: Michael Bringmann + Signed-off-by: Tyrel Datwyler + +diff --git a/scripts/lsdevinfo b/scripts/lsdevinfo +index 4ef98d7..85019e9 100755 +--- a/scripts/lsdevinfo ++++ b/scripts/lsdevinfo +@@ -225,7 +225,7 @@ show_eth () + # Look at every vNIC device + for dev in $($LS -d /proc/device-tree/vdevice/vnic* 2> /dev/null); do + # use ofpathname to get the device name (i.e. eth0) +- name=$($OFPATHNAME -l $(echo $dev | $SED -e "s/\/proc\/device-tree//")) ++ name=$($OFPATHNAME -l $(echo $dev | $SED -e "s/\/proc\/device-tree//") 2> /dev/null) + connection=$(echo $dev | $SED -e "s/\/proc\/device-tree\/vdevice\/l-lan@//") + parent="vio" + +@@ -246,7 +246,7 @@ done + # Look at every ibmveth (Virtual Ethernet) device + for dev in $($LS -d /proc/device-tree/vdevice/l-lan* 2> /dev/null); do + # use ofpathname to get the device name (i.e. eth0) +- name=$($OFPATHNAME -l $(echo $dev | $SED -e "s/\/proc\/device-tree//")) ++ name=$($OFPATHNAME -l $(echo $dev | $SED -e "s/\/proc\/device-tree//") 2> /dev/null) + connection=$(echo $dev | $SED -e "s/\/proc\/device-tree\/vdevice\/l-lan@//") + parent="vio" + +@@ -268,7 +268,7 @@ done + for pci_dev in $($LS -d /proc/device-tree/pci* 2> /dev/null); do + for dev in $($LS -d $pci_dev/ethernet* 2> /dev/null); do + # use ofpathname to get the device name (i.e. eth0) +- name=$($OFPATHNAME -l $(echo $dev | $SED -e "s/\/proc\/device-tree//")) ++ name=$($OFPATHNAME -l $(echo $dev | $SED -e "s/\/proc\/device-tree//") 2> /dev/null) + connection=$(echo $pci_dev | $SED -e "s/\/proc\/device-tree\/pci@//") + parent="pci" + +@@ -280,7 +280,7 @@ for pci_dev in $($LS -d /proc/device-tree/pci* 2> /dev/null); do + class="adapter" + subclass="pci" + prefix="eth" +- driver=$($LS -l /sys/class/net/$name/device/driver | ++ driver=$($LS -l /sys/class/net/$name/device/driver 2> /dev/null | + $SED -e "s/^.*\///") + status=1 + +@@ -312,11 +312,11 @@ for dev in $($LS -d /proc/device-tree/vdevice/v-scsi* 2> /dev/null) ; do + prefix="host" + driver="ibmvscsic" + +- host=$($LS -d /sys/devices/vio/$slot/host*/) ++ host=$($LS -d /sys/devices/vio/$slot/host*/ 2> /dev/null) + if [[ -d $host/scsi_host ]]; then +- scsihost=$($LS -d $host/scsi_host/host*/) ++ scsihost=$($LS -d $host/scsi_host/host*/ 2> /dev/null) + else +- scsihost=$($LS -d $host/scsi_host*/) ++ scsihost=$($LS -d $host/scsi_host*/ 2> /dev/null) + fi + + if [[ $(cat $scsihost/state) == "running" ]] ; then +@@ -365,12 +365,12 @@ for dev in $($LS -d /proc/device-tree/vdevice/v-scsi* 2> /dev/null) ; do + fi + + # loop through the targets for this host. +- for t in $($LS -d $host/target*); do ++ for t in $($LS -d $host/target* 2> /dev/null); do + target=$(echo $($LS -d $t/$($LS $t | $GREP -v uevent | $GREP -v power | $GREP -v subsystem))) + if [[ ! -d $target/block ]]; then +- name=$(echo $($LS -d $target/block*) | $SED -e "s/.*://") ++ name=$(echo $($LS -d $target/block* 2> /dev/null) | $SED -e "s/.*://") + else +- name=$($LS $target/block) ++ name=$($LS $target/block 2> /dev/null) + fi + + conn=$($OFPATHNAME /dev/$name 2> /dev/null | $SED -e "s/.*disk@//") +@@ -446,7 +446,7 @@ for dev in $($LS -d /proc/device-tree/vdevice/vfc-client* 2> /dev/null) ; do + slot=$(echo $dev | $SED -e "s/\/proc\/device-tree\/vdevice\/vfc-client@//") + + # there is only one host per device, assign it to the path's name +- for host in $($LS -d /sys/devices/vio/$slot/host*) ; do ++ for host in $($LS -d /sys/devices/vio/$slot/host* 2> /dev/null) ; do + parent=$(echo $host | $SED -e "s/.*\///") + name=$parent + +@@ -457,11 +457,11 @@ for dev in $($LS -d /proc/device-tree/vdevice/vfc-client* 2> /dev/null) ; do + prefix="host" + driver="ibmvfc" + +- host=$($LS -d /sys/devices/vio/$slot/host*/) ++ host=$($LS -d /sys/devices/vio/$slot/host*/ 2> /dev/null) + if [[ -d $host/scsi_host ]]; then +- scsihost=$($LS -d $host/scsi_host/host*/) ++ scsihost=$($LS -d $host/scsi_host/host*/ 2> /dev/null) + else +- scsihost=$($LS -d $host/scsi_host*/) ++ scsihost=$($LS -d $host/scsi_host*/ 2> /dev/null) + fi + + if [[ $(cat $scsihost/state) == "running" ]] ; then +@@ -510,16 +510,16 @@ for dev in $($LS -d /proc/device-tree/vdevice/vfc-client* 2> /dev/null) ; do + fi + + # As opposed to ibmvscsi, there are multiple rports in each host +- for rport in $($LS -d $host/rport*); do ++ for rport in $($LS -d $host/rport* 2> /dev/null); do + + # in ibmvfc there are two layers of directories before getting to + # the targets +- for t in $($LS -d $rport/target*); do ++ for t in $($LS -d $rport/target* 2> /dev/null); do + for target in $($LS $t | $GREP "[0-9]*:[0-9]*:[0-9]*:[0-9]*"); do + if [[ ! -d $t/$target/block ]]; then + name=$(echo $($LS -d $t/$target/block*) | $SED -e "s/.*://") + else +- name=$($LS $t/$target/block) ++ name=$($LS $t/$target/block 2> /dev/null) + fi + + connection=$($OFPATHNAME /dev/$name 2> /dev/null | $SED -e "s/.*disk@//") +diff --git a/scripts/ofpathname b/scripts/ofpathname +index 1b2a1dd..c37c6bd 100755 +--- a/scripts/ofpathname ++++ b/scripts/ofpathname +@@ -84,20 +84,20 @@ err() + fi + + case $emsg in +- 1) echo "$OFPATHNAME: Could not retrieve Open Firmware device path" +- echo " for logical device \"$DEVNAME_ARG\"." ;; ++ 1) echo "$OFPATHNAME: Could not retrieve Open Firmware device path" 1>&2 ++ echo " for logical device \"$DEVNAME_ARG\"." 1>&2 ;; + +- 2) echo "$OFPATHNAME: sysfs (/sys) is needed and does not appear" +- echo " to be mounted on this system." ;; ++ 2) echo "$OFPATHNAME: sysfs (/sys) is needed and does not appear" 1>&2 ++ echo " to be mounted on this system." 1>&2 ;; + +- 3) echo "$OFPATHNAME: Could not find sysfs information for logical" +- echo " device \"$DEVNAME_ARG\"." ;; ++ 3) echo "$OFPATHNAME: Could not find sysfs information for logical" 1>&2 ++ echo " device \"$DEVNAME_ARG\"." 1>&2 ;; + +- 4) echo "$OFPATHANME: Logical device \"$DEVNAME_ARG\" does not appear" +- echo " to be configured." ;; ++ 4) echo "$OFPATHANME: Logical device \"$DEVNAME_ARG\" does not appear" 1>&2 ++ echo " to be configured." 1>&2 ;; + +- 5) echo "$OFPATHNAME: Could not retrieve logical device name for" +- echo " Open Firmware path \"$DEVNAME_ARG\"." ++ 5) echo "$OFPATHNAME: Could not retrieve logical device name for" 1>&2 ++ echo " Open Firmware path \"$DEVNAME_ARG\"." 1>&2 ;; + esac + + exit 1 +@@ -1631,7 +1631,7 @@ of2l_nvme() + # + . $PSERIES_PLATFORM + if [[ $platform = $PLATFORM_POWERNV ]]; then +- echo "$OFPATHNAME: is not supported on the $platform_name platform" ++ echo "$OFPATHNAME: is not supported on the $platform_name platform" 1>&2 + exit 1 + fi + diff --git a/SOURCES/powerpc-utils-f567bdb8b2a3effdb4af06e2cf935b0350f2f881.patch b/SOURCES/powerpc-utils-f567bdb8b2a3effdb4af06e2cf935b0350f2f881.patch new file mode 100644 index 0000000..976b7c5 --- /dev/null +++ b/SOURCES/powerpc-utils-f567bdb8b2a3effdb4af06e2cf935b0350f2f881.patch @@ -0,0 +1,40 @@ +commit f567bdb8b2a3effdb4af06e2cf935b0350f2f881 +Author: Vasant Hegde +Date: Wed Feb 20 15:44:09 2019 +0530 + + man/update_flash: Fix man page + + Add heading to NOTES section. + + Signed-off-by: Vasant Hegde + Signed-off-by: Tyrel Datwyler + +diff --git a/man/update_flash.8 b/man/update_flash.8 +index 0e5ccf6..254fbac 100644 +--- a/man/update_flash.8 ++++ b/man/update_flash.8 +@@ -196,11 +196,15 @@ PowerNV + /sys/firmware/opal/{validate/manage/update}_flash + .fi + .SH NOTES ++.B Download firmware ++.fi + Firmware may be downloaded from the IBM website. Instructions for + downloading and installing the firmware image are also there, and + information there will be more up-to-date than this page. + + .P ++.B Firmware update failure ++.fi + Various conditions can lead to a firmware update failure. If you + receive an authentication-related error, such as: + .P +@@ -222,6 +226,8 @@ following the steps outlined here: + http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7hatl/iphblresetserverp6.htm + + .P ++.B AIX format image ++.fi + For older "AIX format" images, the file will have a .BIN extension. This + zip file happens to be an AIX binary, but it can be extracted with the + unzip command (with password from the web page): diff --git a/SPECS/powerpc-utils.spec b/SPECS/powerpc-utils.spec new file mode 100644 index 0000000..6d5ed92 --- /dev/null +++ b/SPECS/powerpc-utils.spec @@ -0,0 +1,408 @@ +Name: powerpc-utils +Version: 1.3.6 +Release: 3%{?dist} +Summary: Utilities for PowerPC platforms + +Group: System Environment/Base +License: GPLv2 +URL: https://github.com/ibm-power-utilities/powerpc-utils +Source0: https://github.com/ibm-power-utilities/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Source1: nvsetenv + +ExclusiveArch: ppc %{power64} + +BuildRequires: automake +BuildRequires: doxygen +BuildRequires: zlib-devel +BuildRequires: librtas-devel >= 1.4.0 +BuildRequires: libservicelog-devel >= 1.0.1-2 +BuildRequires: perl-generators + +Requires: /usr/bin/which +# rtas_dump explicit dependency +Requires: perl(Data::Dumper) +Requires: %{name}-core = %{version}-%{release} + +Patch1: powerpc-utils-1.2.15-man.patch +Patch2: powerpc-utils-1.2.27-makefile.patch +# missing man pages: update_flash_nv, pseries_platform +Patch3: powerpc-utils-1.3.5-pseries_platform-man.patch +Patch4: powerpc-utils-1.3.5-update_flash_nv.patch +Patch5: powerpc-utils-1.3.5-install-man.patch +# lparstat and update_flash fixes +Patch6: powerpc-utils-f567bdb8b2a3effdb4af06e2cf935b0350f2f881.patch +Patch7: powerpc-utils-b5fea40ac98d1c9a685d98c011e88180c31ca0be.patch +Patch8: powerpc-utils-bc928b06605371b72c7fe8ec7e81886114a9e9d4.patch +Patch9: powerpc-utils-8b7978b114e5df89218daa9b4b48cc0e918ba917.patch +Patch10: powerpc-utils-1d4147370a148b3a2ebadcf02abd4a6c9a763e6d.patch +# Improve handling of errors from subsidiary scripts +Patch11: powerpc-utils-dd6da6b329bac2743d1c80b5556b494c923c11ad.patch + +%description +Utilities for PowerPC platforms. + + +%package core +Summary: Core utilities for PowerPC platforms + +Requires: /usr/bin/awk +Requires: /usr/bin/basename +Requires: /usr/bin/bc +Requires: /usr/bin/cat +Requires: /usr/bin/cut +Requires: /usr/bin/echo +Requires: /usr/bin/find +Requires: /bin/grep +Requires: /usr/bin/head +Requires: /usr/bin/ls +Requires: /usr/bin/sed +Requires: /usr/bin/tr +Requires: /usr/bin/udevadm + + +%description core +Core utilities for PowerPC platforms. + + +%prep +%setup -q + +%patch1 -p1 -b .man +%patch2 -p1 -b .makefile +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 + +%build +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +./autogen.sh +%configure +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT FILES= RCSCRIPTS= +install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/nvsetenv + +#define pkgdocdir {_datadir}/doc/{name}-{version} +%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} + +# move doc files +mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir} +install $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils/* -t $RPM_BUILD_ROOT%{_pkgdocdir} +rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils +rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/COPYING + +# remove init script and perl script. They are deprecated +rm -rf $RPM_BUILD_ROOT/etc/init.d/ibmvscsis.sh $RPM_BUILD_ROOT/usr/sbin/vscsisadmin + +# nvsetenv is just a wrapper to nvram +ln -s nvram.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/nvsetenv.8.gz + + +%files +%doc README Changelog + +%{_bindir}/amsstat +%{_sbindir}/activate_firmware +%{_sbindir}/bootlist +%{_sbindir}/drmgr +%{_sbindir}/errinjct +%{_sbindir}/hvcsadmin +%{_sbindir}/lparstat +%{_sbindir}/lsdevinfo +%{_sbindir}/lsprop +%{_sbindir}/lsslot +%{_sbindir}/ls-vdev +%{_sbindir}/ls-veth +%{_sbindir}/ls-vscsi +%{_sbindir}/nvsetenv +%{_sbindir}/ppc64_cpu +%{_sbindir}/rtas_dbg +%{_sbindir}/rtas_dump +%{_sbindir}/rtas_event_decode +%{_sbindir}/rtas_ibm_get_vpd +%{_sbindir}/serv_config +%{_sbindir}/set_poweron_time +%{_sbindir}/sys_ident +%{_sbindir}/uesensor +%{_sbindir}/update_flash +%{_sbindir}/update_flash_nv + +# use sosreport from sos instead +%exclude %{_sbindir}/snap +%exclude %{_mandir}/man8/snap.8* + +%{_mandir}/man1/amsstat.1* +%{_mandir}/man5/lparcfg.5* +%{_mandir}/man8/activate_firmware.8* +%{_mandir}/man8/bootlist.8* +%{_mandir}/man8/drmgr.8* +%{_mandir}/man8/errinjct.8* +%{_mandir}/man8/hvcsadmin.8* +%{_mandir}/man8/lparstat.8* +%{_mandir}/man8/lsdevinfo.8* +%{_mandir}/man8/lsprop.8* +%{_mandir}/man8/lsslot.8* +%{_mandir}/man8/ls-vdev.8* +%{_mandir}/man8/ls-veth.8* +%{_mandir}/man8/ls-vscsi.8* +%{_mandir}/man8/nvsetenv.8* +%{_mandir}/man8/ppc64_cpu.8* +%{_mandir}/man8/rtas_dbg.8* +%{_mandir}/man8/rtas_dump.8* +%{_mandir}/man8/rtas_event_decode.8* +%{_mandir}/man8/rtas_ibm_get_vpd.8* +%{_mandir}/man8/serv_config.8* +%{_mandir}/man8/set_poweron_time.8* +%{_mandir}/man8/sys_ident.8* +%{_mandir}/man8/uesensor.8* +%{_mandir}/man8/update_flash.8* +%{_mandir}/man8/update_flash_nv.8* +%{_mandir}/man8/pseries_platform.8* + +%files core +%license COPYING + +%{_sbindir}/nvram +%{_sbindir}/ofpathname +%{_sbindir}/pseries_platform + +%{_mandir}/man8/nvram.8* +%{_mandir}/man8/ofpathname.8* + + +%changelog +* Fri Jun 07 2019 Than Ngo - 1.3.6-3 +- Resolves: #1718254, improve handling of errors from subsidiary scripts + +* Wed Jun 05 2019 Than Ngo - 1.3.6-2 +- Resolves: #1716425, lparstat and update_flash fixes + +* Mon Apr 01 2019 Than Ngo - 1.3.6-1 +- Resolves: #1666618, rebase to 1.3.6 + +* Tue Dec 04 2018 Than Ngo - 1.3.5-5 +- Related: #1655903, add missing man pages + +* Tue Dec 04 2018 Than Ngo - 1.3.5-4 +- Resolves: #1655903, lsslot -c mem is not displaying any information + +* Tue Nov 27 2018 Than Ngo - 1.3.5-3 +- Resolves: #1653621, fix to display logical name using bootlist -o option + +* Sat Nov 10 2018 Than Ngo - 1.3.5-2 +- fix metadate issue detected by rpmdiff + Related: #1608172 + +* Mon Jun 18 2018 Dan Horák - 1.3.5-1 +- Rebased to 1.3.5 + +* Tue Apr 17 2018 Dan Horák - 1.3.4-4 +- fix deps for perl-based tools +- spec cleanup + +* Fri Feb 09 2018 Fedora Release Engineering - 1.3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Oct 11 2017 Stephen Gallagher - 1.3.4-2 +- Fix grep dependency + +* Tue Oct 10 2017 Dan Horák - 1.3.4-1 +- Rebased to 1.3.4 + +* Tue Oct 10 2017 Stephen Gallagher - 1.3.3-4 +- Split critical components into powerpc-utils-core (#1463749) + +* Thu Aug 03 2017 Fedora Release Engineering - 1.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Apr 19 2017 Vasant Hegde - 1.3.3-1 +- Update to latest upstream 1.3.3 + +* Sat Feb 11 2017 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Jul 11 2016 Peter Robinson 1.3.1-1 +- Update to latest upstream 1.3.1 +- Use %%license +- Drop requires on optional powerpc-utils-python so as not to pull in X stack +- Package cleanups +- Obsolete/Provide powerpc-utils-papr + +* Sat Apr 9 2016 Peter Robinson 1.3.0-2 +- Rebuild for librtas soname bump + +* Thu Feb 18 2016 Rafael Fonseca - 1.3.0-1 +- Update to latest upstream 1.3.0 +- Update upstream URL. +- Change license to GPL. +- Remove deprecated patch. + +* Thu Feb 04 2016 Fedora Release Engineering - 1.2.27-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Nov 16 2015 Vasant Hegde - 1.2.27-2 +- Fix build warnings + +* Mon Nov 16 2015 Vasant Hegde - 1.2.27 +- Update to latest upstream 1.2.27 + +* Thu Jun 18 2015 Fedora Release Engineering - 1.2.24-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Jan 06 2015 Jakub Čajka - 1.2.24-1 +- Update to latest upstream 1.2.24 +- ppc64le fix +- removed snap, sosreport from sos should be used instead + +* Mon Nov 03 2014 Vasant Hegde - 1.2.23 +- Update to latest upstream 1.2.23 + +* Mon Sep 22 2014 Vasant Hegde - 1.2.22-2 +- Fix makefile issue + +* Mon Sep 22 2014 Vasant Hegde - 1.2.22 +- Update to latest upstream 1.2.22 + +* Sat Jun 07 2014 Fedora Release Engineering - 1.2.20-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Jun 03 2014 Jakub Čajka - 1.2.20-2 +- Spec file clean up + +* Mon Apr 14 2014 Vasant Hegde - 1.2.20 +- Update to latest upstream 1.2.20 + +* Wed Mar 05 2014 Vasant Hegde - 1.2.19 +- Update to latest upstream 1.2.19 + +* Thu Oct 10 2013 Vasant Hegde - 1.2.18-2 +- Add ppc64le architecture + +* Thu Oct 10 2013 Vasant Hegde - 1.2.18 +- Update to latest upstream 1.2.18 + +* Sun Sep 15 2013 Vasant Hegde - 1.2.17-2 +- Fix docdir (#998579) + +* Tue Aug 20 2013 Vasant Hegde - 1.2.17 +- Update to latest upstream 1.2.17 + +* Sun Aug 04 2013 Fedora Release Engineering - 1.2.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jun 26 2013 Tony Breeds - 1.2.16-2 +- drmgr: Check for rpadlpar_io module +- resolves: #972606 + +* Tue May 21 2013 Vasant Hegde - 1.2.16 +- Update to latest upstream 1.2.16 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.2.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jan 16 2013 Karsten Hopp 1.2.15-1 +- update to 1.2.15 +- usysident/usysattn got moved to ppc64-diag package +- multipath ofpathname patch removed as it is upstream now + +* Tue Dec 18 2012 Filip Kocina 1.2.14-1 +- Resolves: #859222 - updated to latest upstream 1.2.14 + +* Thu Dec 13 2012 Karsten Hopp 1.2.12-4 +- Add multipath support to ofpathname for bug #884826 + +* Tue Sep 04 2012 Karsten Hopp 1.2.12-3 +- require powerpc-utils-python (#852326 comment 7) + +* Sat Jul 21 2012 Fedora Release Engineering - 1.2.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Mar 22 2012 Jiri Skala - 1.2.12-1 +- updated to latest upstream 1.2.12 + +* Sat Jan 14 2012 Fedora Release Engineering - 1.2.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Nov 03 2011 Jiri Skala - 1.2.11-2 +- updated dependecy + +* Mon Oct 31 2011 Jiri Skala - 1.2.11-1 +- updated to latest upstream 1.2.11 +-fixes #749892 - powerpc-utils spec file missing dependency + +* Fri Aug 05 2011 Jiri Skala - 1.2.10-1 +- updated to latest upstream 1.2.10 + +* Wed Feb 09 2011 Fedora Release Engineering - 1.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 24 2011 Jiri Skala - 1.2.6-1 +- updated to latest upstream 1.2.6 +- removed amsvis man page (amsvis moved to powerpc-utils-python) +- added lparcfg man page - doc to /proc/ppc64/lparcfg + +* Thu Jun 24 2010 Roman Rakus - 1.2.2-14 +- Compile with -fno-strict-aliasing CFLAG +- linked nvsetenv man page to nvram man page +- Updated man page of ofpathname +- Updated amsstat script + +* Tue Jun 15 2010 Roman Rakus - 1.2.2-11 +- Correct the parameter handling of ppc64_cpu when setting the run-mode + +* Wed Jun 09 2010 Roman Rakus - 1.2.2-10 +- Added some upstream patches +- also bump release + +* Wed Jun 02 2010 Roman Rakus - 1.2.2-4 +- correct the parameter checking when attempting to set the run mode +- also bump release + +* Fri Mar 05 2010 Roman Rakus - 1.2.2-2 +- Removed deprecated init script and perl script + +* Thu Oct 29 2009 Stepan Kasal - 1.2.2-1 +- new upstream version +- amsvis removed, this package has no longer anything with python +- change the manual pages in the file list so that it does not depend on + particular compression used +- add patch for configure.ac on platforms with autoconf < 2.63 +- use standard %%configure/make in %%build + +* Mon Aug 17 2009 Roman Rakus - 1.2.0-1 +- Bump tu version 1.2.0 - powerpc-utils and powerpc-utils-papr get merged + +* Sun Jul 26 2009 Fedora Release Engineering - 1.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Apr 06 2009 Roman Rakus - 1.1.3-1 +- new upstream version 1.1.3 + +* Tue Mar 03 2009 Roman Rakus - 1.1.2-1 +- new upstream version 1.1.2 + +* Thu Feb 26 2009 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Feb 19 2009 Roman Rakus - 1.1.1-1 +- new upstream version 1.1.1 + +* Mon Feb 18 2008 Fedora Release Engineering - 1.0.6-3 +- Autorebuild for GCC 4.3 + +* Mon Dec 3 2007 David Woodhouse 1.0.6-2 +- Add --version to nvsetenv, for ybin compatibility + +* Fri Nov 23 2007 David Woodhouse 1.0.6-1 +- New package, split from ppc64-utils