On 07/05/2005, at 12:58 AM, Martin Costabel wrote:
Daniel Wyeth wrote: []
2) If anyone could explain how to avoid the warnings generated by fink validate relating to the InstallScript, PostInstScript and PreRmScript it would be most appreciated. Specifically I have used numerous loops which are only properly executed when the section in which they are contained is executed as a whole (using #! /bin/sh) and not line by line, otherwise the build fails with the error (for: unknown command or executable). However while specifying the interpreter makes the build happy, it causes "fink validate <infofile>" to complain about a "Useless use of explicit interpretter in <script>". I know that this is not a big deal, but it would be nice to see the words "package looks good!" instead.
Just a small remark to this point: The {Pre,Post}{Inst,Rm}Scripts already are always executed as a whole with a first line #!/bin/sh thrown in by fink. After you install the package, you can find the final form of these scripts in %p/var/lib/dpkg/info/.
I see now... when I saw errors for the Install Script, I presumed that the same problem would pertain to the Pre and Post Scripts as well, but of course these are executed by dpkg as single units unlike the Install Script which is executed line by line by fink itself.
As a matter of interest, would it not be more consistent to execute the Install Script as a single entity also, in the same way as the Pre and Post Scripts in the deb are? Just a thought, as I've been using fink for only 48 hours now and am still getting used to its idiosyncrasies.
Thank you for answering the mystery ;-)
Daniel.
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel