Mail Archives: djgpp/1998/08/29/11:12:33
Date sent: Sat, 29 Aug 1998 10:34:02
From: Ralph Proctor <ralphgpr AT shadow DOT net>
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
- Raw text -