This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: upset vs. genini, release-2 hint files


Following up on this thread from cygwin-developers:
http://cygwin.com/ml/cygwin-developers/2009-05/msg00085.html
I promised to post a patch adding an "ignore missing -src" option to
genini and post it to cygwin-apps.

But...

After inspecting the code and running a few tests, it appears that the
existing --okmissing option:

--okmissing=key    don't warn if key is missing from setup.ini or setup.hint

is effectively also a mechanism to ignore missing tarballs (because -src
tarballs OUGHT to create a 'source:' entry in the generated .ini, and
regular tarballs OUGHT to create an 'install:' entry in the generated
.ini.  Since source: and install: are required keys for each package,
you get the error only when genini is validating the in-memory .ini and
notices the missing key.  However, if you specifiy --okmissing=source,
then the missing tarball --> missing key --> but that's ok, and no
explicit check for the tarball's existence is made.

Since this wasn't obvious from the help (I always thought of it as
applying only to the .hint-fields, like --okmisssing=requires etc), the
promised patch simply expands the help text to make this clear, and adds
a mention of the undocumented --recursive option.

--
Chuck


--- ../dist-1.7/genini	2009-01-01 00:57:23.840708700 -0500
+++ ./genini	2009-05-30 15:23:05.843000000 -0400
@@ -249,13 +249,21 @@
 
 sub usage() {
     print STDERR <<'EOF';
-Usage: genini [--okmissing=key ...] [--output=file] [--help] [setup.ini] [dir ...]
+Usage: genini [--okmissing=key ...] [--recursive] [--output=file] [--help] [setup.ini] [dir ...]
 Create cygwin setup.ini from setup.ini, setup.hint and tar ball information.
 
     --okmissing=key    don't warn if key is missing from setup.ini or setup.hint
+                       or if some expected `source' or `install' tarballs are
+                       missing. Option may be repeated. --okmissing=install is
+                       useful if hint files contain `prev' or `test' entries for
+                       missing tarballs. --okmissing=source is useful for
+                       LOCAL-ONLY[*] srcless install media.
+    --recursive        recurse all subdirectories of specified dirs
     --output=file      output setup.ini info to file
     --help             display this message
 
+[*] You wouldn't want to violate the GPL, now would you?
+
 Report bugs to cygwin mailing list.
 EOF
     exit 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]