<DIV>&gt; GRASS bugtracker:</DIV>
<DIV>&gt;&nbsp;this bug's URL: <A href="http://intevation.de/rt/webrt?serial_num=2877">http://intevation.de/rt/webrt?serial_num=2877</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; Debian Bug #287651:<BR>&gt; <A href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287651">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287651</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Temporary files in GRASS&nbsp;C modules should&nbsp;use G_tempfile() or G__tempfile(), and GRASS scripts&nbsp;should be&nbsp;using the&nbsp;g.tempfile module:</DIV>
<DIV>&nbsp;</DIV>
<DIV>GRASS 5.7.cvs:~ &gt; g.tempfile --help</DIV>
<DIV>Description:<BR>&nbsp;Creates a temporary file and prints the file name.</DIV>
<DIV>Usage:<BR>&nbsp;g.tempfile pid=value</DIV>
<DIV>Parameters:<BR>&nbsp; pid&nbsp;&nbsp; Process id to use when naming the tempfile<BR></DIV>
<DIV>Which writes into $MAPSET/.tmp/ ....</DIV>
<DIV>&nbsp;</DIV>
<DIV>Most of the GRASS scripts that have been rewritten for 5.7 use g.tempfile already.</DIV>
<DIV>Remaining to do:</DIV>
<DIV>&nbsp;</DIV>
<DIV>grass57-cvs$ grep -r '/tmp/' scripts/* | cut -f1 -d: | uniq<BR>scripts/i.oif/i.oif<BR>scripts/i.oif/i.oifcalc<BR>scripts/i.spectral/i.spectral<BR>scripts/r.plane/r.plane<BR>scripts/r.regression.line/r.regression.line<BR>scripts/r.univar.sh/r.univar.sh<BR></DIV>
<DIV>So not an unmanageable task.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please audit:</DIV>
<DIV>general/g.tempfile/main.c</DIV>
<DIV>&nbsp;&nbsp; <A href="http://freegis.org/cgi-bin/viewcvs.cgi/grass51/general/g.tempfile/main.c">http://freegis.org/cgi-bin/viewcvs.cgi/grass51/general/g.tempfile/main.c</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>lib/gis/tempfile.c</DIV>
<DIV>&nbsp;&nbsp; <A href="http://freegis.org/cgi-bin/viewcvs.cgi/grass51/lib/gis/tempfile.c">http://freegis.org/cgi-bin/viewcvs.cgi/grass51/lib/gis/tempfile.c</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>The 5.0 line is pretty much EOL'd at this point. Any patching is up to the Debian packagers to do. Rather than spending time fixing all, I'd suggest checking which modules are actually built, a large percentage are not.</DIV>
<DIV>&nbsp;</DIV>
<DIV>These should probably be fixed&nbsp;in the&nbsp;5.4 CVS (subject to volunteer &amp;/or&nbsp;external 5.0.x patching + merge [5.0-&gt;5.4 should be mostly drop in]).</DIV>
<DIV>&nbsp;</DIV>
<DIV>If no one else gets to it first I can work on&nbsp;updating the remaining 5.7 scripts&nbsp;after I get back to work sometime after the new year (*Also I think there are still some if [ $opt = (null) ] tests which still need to be changed to if [ -z "$opt" ]).</DIV>
<DIV>&nbsp;</DIV>
<DIV>It&nbsp;will be&nbsp;up to the debian packagers to decide if they want to back port these changes to 5.7.0 or wait for the 6.0beta series [6.0-&gt;5.7.0 should be mostly drop in].</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>A culled more general search of the 5.7 code turns up these as well:</DIV>
<DIV>imagery/i.ask/popup.c<BR>lib/db/stubs/BUILD.PROTO<BR>lib/db/dbmi_driver/mk_dbstubs_h.sh<BR>lib/gis/unix_socks.c<BR>lib/gis/gislib.dox<BR>lib/gis/win32_pipes.c<BR>lib/init/init.sh<BR>lib/init/make_location_epsg_g57.sh<BR>raster/r.digit/main.c<BR>raster/r.median/main.c<BR>raster/r.terraflow/description.html<BR>raster/r.terraflow/main.cc<BR>vector/v.out.ogr/description.html<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>from the top o' the year,</DIV>
<DIV>Hamish</DIV>
<DIV>&nbsp;</DIV></DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Mail - Find what you need with new enhanced search. <a href="http://us.rd.yahoo.com/evt=29917/*http://info.mail.yahoo.com/mail_250">Learn more.</a>