Subject: Re: Non strict REQUIRE/BEFORE in rcorder(8)
To: Mike M. Volokhov <mishka@apk.od.ua>
From: Mike M. Volokhov <mishka@apk.od.ua>
List: tech-userlevel
Date: 05/24/2004 12:03:29
On Thu, 20 May 2004 17:28:31 +0300
"Mike M. Volokhov" <mishka@apk.od.ua> wrote:

> Greetings!
> 
> In http://mail-index.NetBSD.org/tech-userlevel/2004/02/04/0001.html I've
> wrote about useful extension for rcorder(8), which will made possible
> non-strict BEFORE/REQUIRE dependencies.
[snip]

In addition to my previous post with patch to src/sbin/rcorder/rcorder.c
there is a patch for rcorder(8) manpage.

--
BR, Mishka.


Index: rcorder.8
===================================================================
RCS file: /cvsroot/src/sbin/rcorder/rcorder.8,v
retrieving revision 1.6
diff -u -r1.6 rcorder.8
--- rcorder.8	24 Apr 2003 03:15:45 -0000	1.6
+++ rcorder.8	24 May 2004 08:39:34 -0000
@@ -60,8 +60,10 @@
 .Pp
 Within each file, a block containing a series of
 .Dq REQUIRE ,
+.Dq OPT-REQUIRE ,
 .Dq PROVIDE ,
-.Dq BEFORE
+.Dq BEFORE ,
+.Dq OPT-BEFORE
 and
 .Dq KEYWORD
 lines should appear.
@@ -71,7 +73,9 @@
 followed by a single space, followed by
 .Dq PROVIDE: ,
 .Dq REQUIRE: ,
+.Dq OPT-REQUIRE: ,
 .Dq BEFORE: ,
+.Dq OPT-BEFORE: ,
 or
 .Dq KEYWORD: .
 No deviation is permitted.
@@ -80,7 +84,9 @@
 Multiple
 .Dq PROVIDE ,
 .Dq REQUIRE ,
-.Dq BEFORE
+.Dq OPT-REQUIRE: ,
+.Dq BEFORE ,
+.Dq OPT-BEFORE
 and
 .Dq KEYWORD
 lines may appear, but all such lines must appear in a sequence without
@@ -129,11 +135,24 @@
 A file containing no
 .Dq PROVIDE ,
 .Dq REQUIRE ,
+.Dq OPT-REQUIRE ,
+.Dq BEFORE ,
 or
-.Dq BEFORE
+.Dq OPT-BEFORE
 lines may be output at an arbitrary position in the dependency
 ordering.
 .Pp
+A special lines
+.Dq OPT-REQUIRE
+and
+.Dq OPT-BEFORE
+should be used in case if given conditions may not have any providers,
+but this must not be treated as error. If providers are existent,
+they works just like plain
+.Dq REQUIRE
+and
+.Dq BEFORE .
+.Pp
 There must be at least one file with no dependencies in the set of
 arguments passed to
 .Nm