#3761: [with patch; positive review pending a single one-liner] warning when run
sage binary if the processor instruction set doesn't support everything
that was on the machine where sage was built
---------------------+------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: blocker | Milestone: sage-3.2
Component: misc | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by was):
> But the patch I had in mind is trivial: Just add one line
> at the end of this script with "sage-location" (actually a
> call) on it, thus calling the "sage-location" script once
> during installation, at a time where we definitely know it exists.
> Michael, William, what do you think?
> Cheers, gsw
Since sage_scripts is basically the first thing installed during the sage
build from source process, I'm worried that won't work. In fact, it
definitely won't on some systems, because the first line of sage-location
is:
{{{
#!/usr/bin/env sage.bin
}}}
I'm surprised that sage is never run during "make"; it certainly used to
be run, which resulted in some complaints (since people building as root
were annoyed that /root got modified). That said, you're right and I'm
glad you pointed this out!! It not being run never broke the sage-location
stuff for me, since my scripts to build the Sage binaries always do "make
check" before making the binary (a very good idea!), and that of course
runs Sage. I mean, in my opinion it would be really dumb to ever do
"sage -bdist" without once starting Sage, since you could be building a
binary that certainly doesn't work.
What about adding a line to sage-bdist to run Sage once? And even
checking that the run actually worked, since that's a good test, and
refusing to make the bdist if Sage won't even run.
-- William
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3761#comment:18>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---