#11021: Fix "sage -info" and a bug when sourcing sage-env more than once
--------------------------------------------------------+-------------------
   Reporter:  jhpalmieri                                |          Owner:  leif 
                                                     
       Type:  defect                                    |         Status:  
needs_review                                              
   Priority:  major                                     |      Milestone:  
sage-4.7.1                                                
  Component:  packages                                  |       Keywords:  
SPKG.txt SAGE.txt -info BUILD sage-env sage-sage sage-spkg
Work_issues:                                            |       Upstream:  N/A  
                                                     
   Reviewer:  Kelvin Li, Leif Leonhardy, John Palmieri  |         Author:  Leif 
Leonhardy, Kelvin Li                                 
     Merged:                                            |   Dependencies:       
                                                     
--------------------------------------------------------+-------------------

Comment(by leif):

 [Hours later: Sorry, apparently my router is just about to die -- massive
 packet losses... :( Now via wireless LAN...]

 Replying to [comment:33 jhpalmieri]:
 >  - line 59, `error >&2 "Error: Environment variable 'BUILD' not set!"`:
 "error" should be "echo"

 Ooops, kind of inconvenient, though it should raise an error as is... ;-)

 [[BR]]

 > - lines 175-176: the code `(bunzip2 -c "$PKG_SRC" | tar tf -)` seems to
 have a zero return value if `$PKG_SRC` is not a valid bzip2 file.  I'm
 trying to reach the error message `echo >&2 "Error: '$PKG_SRC' seems to be
 corrupted. Exiting."`, but I can't.  This is on Mac OS X; on linux, the
 above code has return value "2".  Running "bunzip2 -c blah" on an invalid
 bzip2 file returns a value of 2 on Mac OS X.

 MacOS... What does `cat /dev/null | tar tf -` give?

 [[BR]]

 > The relevant part of the spkg-check file for atlas says [...]

 I haven't looked at the ''current'' ATLAS spkg; don't know if it also
 works on Cygwin, e.g. if `SAGE_ATLAS_LIB` is set there (in which case any
 tests are skipped as well).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11021#comment:36>
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.

Reply via email to