John H Palmieri wrote:
On Jan 7, 8:37 am, "Dr. David Kirkby" <[email protected]> wrote:
The changes introduced are deliberately very small - which is why I think the
file is safe.
Unfortunately, given the file sage-env has no "echo" statements, it's hard to
know exactly what sage-env has done, compared to what would have been done had
the modified script not been used. (But of course if it did have echo
statements, it would cause an annoyance when starting Sage).
In the new version of sage-env, there are two "if" statements
involving "$SAGE_PRINT_ENVIRONMENT". It makes a lot of sense not to
print these by default (for example, when starting Sage), but maybe
the second group of statements, summarizing the settings of the
variables, should be printed at the start of the "make" process. It
seems like that could help in debugging, and since the make produces
such a long install.log file anyway, adding a few lines doesn't seem
like a big deal to me.
--
John
I did think about that one possibility. In fact, I wrote this with William about
5 years ago, and originally printed all variable. William changed that, as it
irritated him (To be fair, Sage did not run on Solaris at the time, so I never
used Sage. So I never see the repeated messages. I can imagine it would be
annoying every time Sage starts)
I'd rather get this into Sage now (it has positive review), so I do not wish to
make any changes now. But I suspect sage-env will need a few minor tweaks here
or there.
If you think of a way of getting the variable printed once in the build process,
but not ever time the sage is run, then let me know.
There is a file .BUILDSTART created by $SAGE_ROOT/spkg/install (which has a
GNUism due to the option on the date command). One could potentially see that a
similar file .BUILDCOMPLETED could be created once Sage is built, then sage-env
checks for that file. If it exists, the variables are not printed. If it does
not exist, then they are. Then what does one do about upgreades? Perhaps the
'makefile' deletes .BUILDCOMPLETED?
In principle I agree with you. In practice, I'm not sure the best way to handle
it.
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org