Bug 154494 - rcorder(8) not quite accurate
Summary: rcorder(8) not quite accurate
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Doug Barton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 22:40 UTC by kilian
Modified: 2011-08-10 01:19 UTC (History)
0 users

See Also:


Attachments
file.diff (437 bytes, patch)
2011-02-03 22:40 UTC, kilian
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kilian 2011-02-03 22:40:08 UTC
The manpage for rcorder states: "The format of the lines is rigid.  Each line must begin with a single `#', followed by a single space, followed by ``PROVIDE:'', ``REQUIRE:'', ``BEFORE:'', or ``KEYWORD:''.  No deviation is permitted."

That is not entirely correct, as "PROVIDES:", "REQUIRES:" and "KEYWORDS:" are also allowed.

Found this on 8.1 but -current has the same manpage.

Fix: Patch attached with submission follows:
Comment 1 dfilter service freebsd_committer freebsd_triage 2011-06-06 14:13:56 UTC
Author: gavin
Date: Mon Jun  6 13:13:48 2011
New Revision: 222751
URL: http://svn.freebsd.org/changeset/base/222751

Log:
  Document that REQUIRES, PROVIDES and KEYWORDS are alos accepted.  This
  chnage is different to the one suggested in the PR to try to avoid
  cluttering the man page too much.
  
  PR:		docs/154494
  Submitted by:	kilian <kilian.klimek googlemail.com>
  MFC after:	1 week

Modified:
  head/sbin/rcorder/rcorder.8

Modified: head/sbin/rcorder/rcorder.8
==============================================================================
--- head/sbin/rcorder/rcorder.8	Mon Jun  6 13:12:56 2011	(r222750)
+++ head/sbin/rcorder/rcorder.8	Mon Jun  6 13:13:48 2011	(r222751)
@@ -89,6 +89,12 @@ and
 lines may appear, but all such lines must appear in a sequence without
 any intervening lines, as once a line that does not follow the format
 is reached, parsing stops.
+Note that for historical reasons,
+.Dq Li REQUIRES ,
+.Dq Li PROVIDES ,
+and
+.Dq Li KEYWORDS
+are also accepted in addition to the above.
 .Pp
 The options are as follows:
 .Bl -tag -width indent
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2011-06-06 14:14:10 UTC
State Changed
From-To: open->patched

Fix committed to head, MFC in one week. 


Comment 3 Gavin Atkinson freebsd_committer freebsd_triage 2011-06-06 14:14:10 UTC
Responsible Changed
From-To: freebsd-doc->gavin

Mine
Comment 4 Doug Barton freebsd_committer freebsd_triage 2011-06-06 21:41:30 UTC
I wish that you had discussed this with freebsd-rc@ before committing. 
:-/  I can't see any good thing that comes from documenting this. OTOH, 
the benefit of not documenting it is that eventually we can remove 
support for the un-documented versions because they are no longer used.

Is there something that I'm missing?


Doug


On 06/06/2011 06:14, gavin@FreeBSD.org wrote:
> Synopsis: rcorder(8) not quite accurate
>
> State-Changed-From-To: open->patched
> State-Changed-By: gavin
> State-Changed-When: Mon Jun 6 13:14:10 UTC 2011
> State-Changed-Why:
> Fix committed to head, MFC in one week.
>
>
> Responsible-Changed-From-To: freebsd-doc->gavin
> Responsible-Changed-By: gavin
> Responsible-Changed-When: Mon Jun 6 13:14:10 UTC 2011
> Responsible-Changed-Why:
> Mine
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=154494



-- 

	Nothin' ever doesn't change, but nothin' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/
Comment 5 Gavin Atkinson freebsd_committer freebsd_triage 2011-06-09 21:25:24 UTC
On Mon, 6 Jun 2011, Doug Barton wrote:
> I wish that you had discussed this with freebsd-rc@ before committing. :-/  I
> can't see any good thing that comes from documenting this. OTOH, the benefit
> of not documenting it is that eventually we can remove support for the
> un-documented versions because they are no longer used.

I must admit that I was a little surprised to see the man page be so 
explicit in saying that no other keywords were accepted, and yet the 
rcorder(8) code accepts them happily.  

I wasn't happy with the patch submitted in the PR for a number of reasons, 
but I felt that my rewording made it clear that these were accepted only 
historically, and therefore not suggested for use in new scripts.  I tried 
to get the balance correct between documenting behaviour, and discouraging 
the use of deprecated features.

I'm happy to revert this if you think these should remain deliberately 
undocumented.

Gavin
Comment 6 Doug Barton freebsd_committer freebsd_triage 2011-08-10 01:18:41 UTC
State Changed
From-To: patched->closed


The change to include this information in the comments, 
as opposed to the body of the text has now been MFC'ed 
to RELENG_[87]. 


Comment 7 Doug Barton freebsd_committer freebsd_triage 2011-08-10 01:18:41 UTC
Responsible Changed
From-To: gavin->dougb


I did the change, so I own the pointy hats.