#6681: [with spkg, needs work] cliquer doesn't work in 64-bit OS X
------------------------+---------------------------------------------------
Reporter: jhpalmieri | Owner: mabshoff
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: packages | Keywords:
Reviewer: | Author: Minh Van Nguyen
Merged: |
------------------------+---------------------------------------------------
Comment(by drkirkby):
I believe there is a problem here.
'set -e' was put at the top, so the script will exit immediately if there
is an error. Therefore if 'make' fails for any reason, the script will
exit, and the message "Failed to compile cliquer... exiting" will never
appear. Hence there needs to be a 'set +e' immediately before the 'make'
command. Then 'set -e' needs to be enabled again. Hence the end of the
spkg-install should be like this:
{{{
cp -f patch/Makefile src/
cd src
#Do not exit script if there is an error, but instead print an informative
error message
set +e
make
if [ $? -ne 0 ]; then
echo "Failed to compile cliquer... exiting"
exit 1
fi
set -e
if [ ! -e "$SAGE_LOCAL/include/cliquer" ]; then
mkdir "$SAGE_LOCAL/include/cliquer/"
fi
cp -f *.h "$SAGE_LOCAL/include/cliquer/"
cp -f libcliquer.so "$SAGE_LOCAL/lib/"
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6681#comment:11>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---