Message-Id: <199808291608.SAA61296@ieva06.lanet.lv> From: "Andris Pavenis" To: "John M. Aldrich" , Ralph Proctor Date: Sat, 29 Aug 1998 18:11:59 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: How to locate djgpp.env? CC: djgpp AT delorie DOT com In-reply-to: <3.0.1.16.19980829103402.378f1c32@shadow.net> References: <35E737F2 DOT 680FE019 AT cs DOT net> Precedence: bulk Date sent: Sat, 29 Aug 1998 10:34:02 From: Ralph Proctor Subject: Re: How to locate djgpp.env? > At 07:06 PM 8/28/98 -0400, you wrote: > > >I wouldn't try. If the user's installation is broken, your program > >should at _best_ recommend a fix, but I wouldn't even have it try to > >make any changes unless the basics are working. If a user can't get > >DJGPP installed properly, the very last thing he or she should be doing > >is fooling with 'djgpp.env'. > > Hello John: I see your concern about messing around with the DJGPP.ENV > file, but there is one change I have been making for a long time with > apparently no ill effects and I wish you would correct me if I am doing > something wrong. > > I changed: > > +TMPDIR=%DJDIR%/tmp > > to > > +TMPDIR=D:/ [D:/ is a ramdrive] > > I only did this because it "SEEMS RIGHT". I think I read somewhere that > DJGPP.ENV in this case ignores this line anyway if you have a tmpdir > allocated in your autoexec.bat file. But I just changed the line to be sure. > Would you comment on this? > > DJVERIFY shows me that my tmpdir works just fine when I compile the test > file. Also my compiles work as expected. > One hint for poeple who sets TMPDIR to ramdrive. Try to unpack large enough .tar.gz or .tgz archive with GNU tar, for example: tar xzvf egcs-19980824.tar.gz and You'll see that simple setting TMPDIR to ramdrive breaks GNU tar. A simplest solution is adding additional lines [tar] TMPDIR=%DJDIR%/tmp (note no '+' at start of line) to DJGPP.ENV if '+TMPDIR=location of ramdrive' is used at start of DJGPP.ENV. I'm sure I'll get the same problem when creating large tar.gz archive. I cannot say immediatelly if this is only program such change breaks. Perhaps there should be no harm to adding such definitions for programs that can create huge temporary files in $TMPDIR in DJGPP.ENV (that helps also if TMPDIR environment variable is set). GNU tar is first in that list. Maybe there are others. Andris