From 0defa8400c286a91b92ed50d39c6a0e945c2688b Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Fri, 19 Apr 2013 08:18:58 +0200 Subject: [PATCH] fixed inconsistency between manpage and help Resolves: 853091 --- hdparm-missing-params.patch | 12 ++++++++++++ hdparm.spec | 9 ++++++++- man-page-update.patch | 14 ++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 hdparm-missing-params.patch create mode 100644 man-page-update.patch diff --git a/hdparm-missing-params.patch b/hdparm-missing-params.patch new file mode 100644 index 0000000..b67b839 --- /dev/null +++ b/hdparm-missing-params.patch @@ -0,0 +1,12 @@ +Index: hdparm-9.43/hdparm.c +=================================================================== +--- hdparm-9.43.orig/hdparm.c ++++ hdparm-9.43/hdparm.c +@@ -1503,6 +1503,7 @@ static void usage_help (int clue, int rc + " --offset use with -t, to begin timings at given offset (in GiB) from start of drive\n" + " --prefer-ata12 Use 12-byte (instead of 16-byte) SAT commands when possible\n" + " --read-sector Read and dump (in hex) a sector directly from the media\n" ++ " --repair-sector Alias for the --write-sector option (VERY DANGEROUS)\n" + " --security-help Display help for ATA security commands\n" + " --trim-sector-ranges Tell SSD firmware to discard unneeded data sectors: lba:count ..\n" + " --trim-sector-ranges-stdin Same as above, but reads lba:count pairs from stdin\n" diff --git a/hdparm.spec b/hdparm.spec index 428a2eb..0ddda59 100644 --- a/hdparm.spec +++ b/hdparm.spec @@ -1,11 +1,13 @@ Summary: A utility for displaying and/or setting hard disk parameters Name: hdparm Version: 9.43 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/System URL: http://sourceforge.net/projects/hdparm/ Source: http://download.sourceforge.net/hdparm/hdparm-%{version}.tar.gz +Patch0: hdparm-missing-params.patch +Patch1: man-page-update.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExcludeArch: s390 s390x @@ -16,6 +18,8 @@ performance and to spin down hard drives for power conservation. %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} STRIP=/bin/true LDFLAGS= @@ -36,6 +40,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/hdparm.8* %changelog +* Fri Apr 19 2013 Michal Minar 9.43-2 +- Fixed inconsistency between man page and program's help. + * Wed Mar 13 2013 Michal Minar - 9.43-1 - hdparm-9.43 diff --git a/man-page-update.patch b/man-page-update.patch new file mode 100644 index 0000000..5a31422 --- /dev/null +++ b/man-page-update.patch @@ -0,0 +1,14 @@ +Index: hdparm-9.43/hdparm.8 +=================================================================== +--- hdparm-9.43.orig/hdparm.8 ++++ hdparm-9.43/hdparm.8 +@@ -677,6 +677,9 @@ provides a safe fix for the problem for + Display some basic settings, similar to \-acdgkmur for IDE. + This is also the default behaviour when no options are specified. + .TP ++.I -V ++Display program version and exit immediately. ++.TP + .I --verbose + Display extra diagnostics from some commands. + .TP