#7765: In sage-4.3, the command "sage -bdist" is broken on OS X
-----------------------------------+----------------------------------------
Reporter: was | Owner: tbd
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-4.4
Component: distribution | Keywords:
Author: Karl-Dieter Crisman | Upstream: N/A
Reviewer: William Stein | Merged:
Work_issues: |
-----------------------------------+----------------------------------------
Changes (by kcrisman):
* status: needs_review => needs_work
Comment:
I see one problem with this script that no one has yet noticed, and
perhaps was William's initial question about it.
{{{
Moving final distribution file to /Users/.../sage-4.3.5/dist
mv: rename sage-Sage2-PowerMacintosh-Darwin.* to
/Users/.../sage-4.3.5/dist/sage-Sage2-PowerMacintosh-Darwin.*: No such
file or directory
}}}
Right! Because
{{{
if [ "$UNAME" = "Darwin" ]; then
...
else
echo 'If you wish to create a disk image please set'
echo 'SAGE_APP_DMG=yes'
echo '(or to anything else but the current SAGE_APP_DMG=no,'
echo ' or completely unset SAGE_APP_DMG)'
fi
else
echo "Creating tar.gz"
tar zcvf "$TARGET".tar.gz "$TARGET"
fi
}}}
but
{{{
echo "Moving final distribution file to $SAGE_ROOT/dist"
mv $TARGET $SAGE_ROOT/dist/
mv $TARGET.* $SAGE_ROOT/dist/
}}}
So the point is that when SAGE_APP_DMG=no, not only is there not a DMG,
but not even a .tgz file is created! Which yields the weird error message
I always see from the very last line.
However, testing once again showed that default behavior is now .dmg
creation (as it was with the other version of the patch), and none of this
should affect anything other than Darwin, so we just have to make sure
that we add the right lines to the "else" above and then this should be
good to go. I'll do that in the morning, and then (sigh) we'll need yet
another review...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7765#comment:9>
Sage <http://www.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.