sage-check-64

2 views
Skip to first unread message

Dr. David Kirkby

unread,
Dec 29, 2009, 6:06:29 PM12/29/09
to sage-...@googlegroups.com
In $SAGE_LOCAL/bin/sage-check-64 it says the following.

---------------------------------------------------
# If SAGE64 is set to yes check if $SAGE_LOCAL/lib exists on Solaris as well as
# OSX since those are currently the only two platforms which require SAGE64. If
# it does not exist create the directory and then create a file sage-64.txt
# Eventually Linux PPC on the PS3 might need to be added here

if [ "$SAGE64" = "yes" ]; then
CHECKFILE="no"
if [ `uname` = "SunOS" ]; then
echo "Building Sage on Solaris in 64-bit mode"
CHECKFILE="yes"
fi
if [ `uname` = "Darwin" ]; then
echo "Building Sage on OS X in 64-bit mode"
CHECKFILE="yes"
fi
if [ $CHECKFILE = "yes" ]; then
if ! [ -d "$SAGE_LOCAL"/lib ]; then
echo "Creating SAGE_LOCAL/lib since it does not exist"
mkdir "$SAGE_LOCAL"/lib
fi
echo "Creating SAGE_LOCAL/lib/sage-64.txt since it does not exist"
touch "$SAGE_LOCAL"/lib/sage-64.txt
fi
fi
--------------------------------------------


Is there any reason for limiting this check to Solaris and OS X now? Since the
comments suggest it might be needed on 'Linux PPC on the PS3', why not simply
have it work on every platform, if SAGE64 is set to yes? Can it do any harm?

There are several platforms which support building 32 and 64 bit binaries -
Solaris, OS X, AIX, HP-UX and I guess from the above comments Linux PPC.

I'd propose simply removing the checks for OS X and Solaris, and letting the
code work on any platform.


Dave

William Stein

unread,
Dec 29, 2009, 11:18:33 PM12/29/09
to sage-devel

That sounds reasonable to me.

William

Dr. David Kirkby

unread,
Dec 30, 2009, 1:16:18 PM12/30/09
to sage-...@googlegroups.com

Where does that file come from? It seems to magically appear in local/bin if one
builds Sage, but I've no idea where it is stored, and so what needs editing.

dave

Minh Nguyen

unread,
Dec 30, 2009, 2:30:30 PM12/30/09
to sage-...@googlegroups.com
Hi David,

On Thu, Dec 31, 2009 at 5:16 AM, Dr. David Kirkby
<david....@onetel.net> wrote:

<SNIP>

> Where does that file come from? It seems to magically appear in local/bin if one
> builds Sage, but I've no idea where it is stored, and so what needs editing.

The file sage-check-64 is usually packed in the spkg
sage_scripts-x.y.z.spkg, which is a standard package under
SAGE_ROOT/spkg/standard. During the build process, many scripts in
that package are copied over to SAGE_ROOT/local/bin.

--
Regards
Minh Van Nguyen

Reply all
Reply to author
Forward
0 new messages