X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Message-ID: <4B9987C3.1050309@cwilson.fastmail.fm> Date: Thu, 11 Mar 2010 19:16:03 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: genini: message field always emitted Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com AFAIK, the new message: field in setup.hint is not intended to be a required field. However, if it is missing from the setup.hint, genini complains. Fine, I can work around this by (always...) using --okmissing=message. However, if I do that, then I get a setup.ini like the following: ... @ test-data sdesc: "test package" ldesc: "test package" category: Utils message: "" version: 0.1-2 install: release/test-data/test-data-0.1-2.tar.xz 116920 e69dda662fde6b02644d4562c1ed0541 source: release/test-data/test-data-0.1-2-src.tar.xz 108 7f06fdbf4fd1eff94c1c85068c155c1c ... And when I run setup.exe, I get a popup with the following message: C:\cygwin-1.7\usr\src\devel\setup\test/setup.ini line 10: syntax error, unexpected NL, expecting STRING C:\cygwin-1.7\usr\src\devel\setup\test/setup.ini line 10: unrecognized line 11 (do you have the latest setup?) It appears there are three separate problems here. 1) It'd be nice if genini didn't assume that all of the keywords it knows about are required. E.g. pre-seed okmissing with (list of optional keywords)? 2) Failing that, since message is optional, then if the data structure for a particular package has no entry for 'message', then...genini should not print out an useless 'message: ""' line. 3) Finally, setup.exe's behavior when seeing this entry...is this a bug? If you have message: "" or even message: should setup.exe treat that like an empty requires:, and just ignore it? Or do we assume that if a message: entry is present then there WILL be a message popup...and it better have a non-empty string value? No patch yet, because I'm not sure what the correct action should be. -- Chuck -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple