On Sun, Nov 2, 2008 at 11:52 AM, mabshoff
<[EMAIL PROTECTED]> wrote:
>
>
>
> On Nov 2, 11:46 am, "William Stein" <[EMAIL PROTECTED]> wrote:
>> On Sun, Nov 2, 2008 at 11:39 AM, mabshoff
>
> <SNIP>
>
>> > Ok, how about a script for the extcode.spkg that attaches each file to
>> > a Magma session in case Magma is installed on the system?
>>
>> If we do that, somebody else will complain just as much or more
>> about Sage starting up and running Magma as root, or something.
>
> We can't make everybody happy I guess :)
>
>> It could be done though.  And it wouldn't require attaching each file -- all
>> you have to do is put this line in the spkg-install:
>>
>>   sage -c "magma('1')"
>>
>> That will run magma, which automatically attaches *all* of the
>> magma code and generates the sig files, or it will go boom
>> and give an error if there is no magma installed.
>
> Nope, it doesn't:

Argh.  -1 to me :-(

> [EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.2.alpha3$ ./sage -
> c "magma('1')"
> [EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.2.alpha3$ find
> data/extcode/ -name "*.sig"
> data/extcode/magma/sage/basic.sig
> data/extcode/magma/latex/latex.sig
> [EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.2.alpha3
>
> Only two out of the 12 Magma files in the data/extcode/magma directory
> were loaded. Even when running all optional doctest only four or five
> Magma files out of 12 are loaded.

Intriguing. So there must be a lot of cruft in data/extcode/magma.
I'll look into it.

>> I'm not sure if we should do this though, since I recall getting numerous
>> complaints over the years from people about Sage starting up and
>> running as root "do stuff" during the install process, but I've never
>> once before seen the complaint about magma and permissions that
>> resulted in #4424.  I'm guessing that people typically know precisely
>> what to do in the situation of #4424 so that's what it isn't a problem
>> (in fact, the reporter of #4424 knew precisely what to do).
>>
>> It's your call whether to add
>>
>>      sage -c "magma('1')"
>>
>> to the spkg-install for extcode.
>
> I don't care either way. Easiest would probably be to add an entry in
> the FAQ for now and if people hit this problem regularly maybe we
> should attempt to solve this problem again.

That's an excellent suggestion.  If it comes up more, we'll make the
change you suggested.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to