#5825: sage -i $FOO.spkg should abort cleanly when write permissions are lacking
----------------------------------+-----------------------------------------
Reporter: mabshoff | Owner: mabshoff
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.10
Component: scripts | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by {'newvalue': u'Jeroen Demeyer', 'oldvalue': ''}):
* status: new => needs_review
* author: => Jeroen Demeyer
* cc: jhpalmieri (added)
* component: packages: standard => scripts
* upstream: => N/A
Old description:
> I just ran into the following:
> {{{
> <SNIP>
> **********************************************************************
> * Unable to download clisp-2.47
> * Please see http://www.sagemath.org//packages for a list of valid
> * packages or check the package name.
> **********************************************************************
> /Users/mabshoff/sage-3.3.rc3/spkg/build
> bunzip2: Can't open input file clisp-2.47.spkg: No such file or
> directory.
> tar: clisp-2.47.spkg: Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
> Second download resulted in a corrupted package.
> varro:/Users/mabshoff/sage-3.3.rc3 mabshoff$ file
> /home/mabshoff/clisp-2.47.spkg
> /home/mabshoff/clisp-2.47.spkg: bzip2 compressed data, block size = 900k
> varro:/Users/mabshoff/sage-3.3.rc3 mabshoff$ cp
> /home/mabshoff/clisp-2.47.spkg .
> cp: ./clisp-2.47.spkg: Permission denied
> }}}
>
> Note that I do not have write permissions in the local directory.
New description:
Fix `sage-spkg` to give a useful error message if `SAGE_BUILD_DIR` or
`SAGE_LOCAL` isn't writable, while still allowing `sage --info` to work
without write access.
'''Apply''' [attachment:5825_install_perm.patch] to `SAGE_ROOT`.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5825#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.