From volf@oasis.IAEhv.nl  Fri Jan  2 06:05:23 1998
Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4])
          by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA03398
          for <freebsd-gnats-submit@freebsd.org>; Fri, 2 Jan 1998 06:05:22 -0800 (PST)
          (envelope-from volf@oasis.IAEhv.nl)
Received: from oasis.IAEhv.nl (uucp@localhost) 
          by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 4083
          on Fri, 2 Jan 1998 14:05:20 GMT; id OAA04083
          efrom: volf@oasis.IAEhv.nl; eto: freebsd.org!freebsd-gnats-submit
Received: from LOCAL (volf@localhost) 
          by oasis.IAEhv.nl (8.8.7/1.63); pid 1825 
          on Fri, 2 Jan 1998 14:01:44 GMT; id OAA01825
          efrom: volf; eto: UNKNOWN
Message-Id: <199801021401.OAA01825@oasis.IAEhv.nl>
Date: Fri, 2 Jan 1998 14:01:44 GMT
From: volf@oasis.IAEhv.nl (Frank Volf)
Reply-To: volf@oasis.IAEhv.nl
To: FreeBSD-gnats-submit@freebsd.org
Cc: volf@oasis.IAEhv.nl
Subject: pkg_info options
X-Send-Pr-Version: 3.2

>Number:         5410
>Category:       bin
>Synopsis:       pkg_info options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    phantom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan  2 06:10:01 PST 1998
>Closed-Date:    Tue May 29 07:01:03 PDT 2001
>Last-Modified:  Tue May 29 07:01:55 PDT 2001
>Originator:     Frank Volf
>Release:        FreeBSD 2.2.5-STABLE i386
>Organization:
Frank Volf's private UUCP site, Eindhoven, the Netherlands
>Environment:
>Description:

The "-R" option of pkg_info is not documented in the man page.

The "-r" option is documented been does not seem to be implemented.

The "-I" option is in the synopsis but is not listed in the options 
section of the man page.

The "-f" option is not in the synopsis but is in the options section and
seems to exist.

More inconsistencies may exist, I did not do an extended check of them.

Alphabetical sorting of the options in the manual page would be appreciated,
since it make searching for an option much easier.

Thanks,

              Frank

p.s.: If you decide to fix this, I would like to see it in the STABLE branch
      also.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Deepa Subramanian <deepas@andrew.cmu.edu>
To: freebsd-gnats-submit@freebsd.org, volf@oasis.iaehv.nl
Cc:  Subject: Re: bin/5410: pkg_info options
Date: Mon, 07 Dec 1998 23:28:45 -0500

 As of 3.0-CURRENT, I have a patch that fixes this bug. I have attached
 the patch
 
 rv
 
 
 diff -c -r /usr/src/usr.sbin/pkg_install/info/main.c info/main.c
 *** /usr/src/usr.sbin/pkg_install/info/main.c   Fri Dec 26 00:29:29 1997
 
 --- info/main.c Mon Dec  7 23:22:40 1998
 ***************
 *** 28,34 ****
   #include "lib.h"
   #include "info.h"
 
 ! static char Options[] = "acdDe:fikrRpLqImvhl:";
 
   int   Flags           = 0;
   Boolean AllInstalled  = FALSE;
 --- 28,34 ----
   #include "lib.h"
   #include "info.h"
 
 ! static char Options[] = "acdDe:fhiIkl:LmpqrRt:v"; /* Arrange
 Alphabetically, too */
 
   int   Flags           = 0;
   Boolean AllInstalled  = FALSE;
 ***************
 *** 153,159 ****
   {
       fprintf(stderr, "%s\n%s\n%s\n",
         "usage: pkg_info [-cdDikrRpLqImv] [-e package] [-l prefix]",
 !       "                pkg-name [pkg-name ...]",
         "       pkg_info -a [flags]");
       exit(1);
   }
 --- 153,159 ----
   {
       fprintf(stderr, "%s\n%s\n%s\n",
         "usage: pkg_info [-cdDikrRpLqImv] [-e package] [-l prefix]",
 !       "                [-t template] pkg-name [pkg-name ...]",
         "       pkg_info -a [flags]");
       exit(1);
   }
 diff -c -r /usr/src/usr.sbin/pkg_install/info/pkg_info.1 info/pkg_info.1
 
 *** /usr/src/usr.sbin/pkg_install/info/pkg_info.1       Tue Jul 14
 04:28:15 1998
 --- info/pkg_info.1     Mon Dec  7 22:11:20 1998
 ***************
 *** 25,33 ****
   .Nd a utility for displaying information on software packages
   .Sh SYNOPSIS
   .Nm pkg_info
 ! .Op Fl cdDikrRpLqImv
   .Op Fl e Ar package
   .Op Fl l Ar prefix
   .Ar pkg-name [pkg-name ...]
   .Nm pkg_info
   .Fl a
 --- 25,34 ----
   .Nd a utility for displaying information on software packages
   .Sh SYNOPSIS
   .Nm pkg_info
 ! .Op Fl cdDfikrRpLqImv
   .Op Fl e Ar package
   .Op Fl l Ar prefix
 + .Op Fl t Ar template
   .Ar pkg-name [pkg-name ...]
   .Nm pkg_info
   .Fl a
 
 
Responsible-Changed-From-To: freebsd-bugs->phantom 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Fri Jan 7 05:28:48 PST 2000 
Responsible-Changed-Why:  
I have fixed this problem in -CURRENT and will not forget MFC it. 
State-Changed-From-To: open->closed 
State-Changed-By: phantom 
State-Changed-When: Tue May 29 07:01:03 PDT 2001 
State-Changed-Why:  
PR timeout 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=5410 
>Unformatted:
