#18731: Failing to download tarball/building documentation should lead to clear
error in log file
------------------------------+------------------------
       Reporter:  jhpalmieri  |        Owner:
           Type:  defect      |       Status:  new
       Priority:  minor       |    Milestone:  sage-6.8
      Component:  build       |   Resolution:
       Keywords:              |    Merged in:
        Authors:              |    Reviewers:
Report Upstream:  N/A         |  Work issues:
         Branch:              |       Commit:
   Dependencies:              |     Stopgaps:
------------------------------+------------------------
Description changed by jdemeyer:

Old description:

> If a tar file fails to download during installation, the log file is not
> formatted correctly, so Sage doesn't report which package failed to
> build.
>
> From the end of `logs/pkgs/ccache-3.2.2.log`:
> {{{
> [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
> [Errno 404] Not Found:
> '//sagepad.org/spkg/upstream/ccache/ccache-3.2.2.tar.bz2'
> Traceback (most recent call last):
>   File "/Users/palmieri/Desktop/Sage_stuff/git/sage/src/bin/sage-
> download-file", line 457, in <module>
>     tarball.download()
>   File "/Users/palmieri/Desktop/Sage_stuff/git/sage/src/bin/sage-
> download-file", line 402, in download
>     raise FileNotMirroredError('tarball does not exist on mirror')
> __main__.FileNotMirroredError: tarball does not exist on mirror
> }}}
> From the end of `logs/install.log`:
> {{{
> Error building Sage.
>
> The following package(s) may have failed to build:
>
> The build directory may contain configuration files and other potentially
> helpful information. WARNING: if you now run 'make' again, the build
> directory will, by default, be deleted. Set the environment variable
> SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
> }}}
>
> A similar problem occurs when building the documentation fails.

New description:

 If a tar file fails to download during installation, the log file is not
 formatted correctly, so Sage doesn't report which package failed to build.

 From the end of `logs/pkgs/ccache-3.2.2.log`:
 {{{
 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
 [Errno 404] Not Found:
 '//sagepad.org/spkg/upstream/ccache/ccache-3.2.2.tar.bz2'
 Traceback (most recent call last):
   File "/Users/palmieri/Desktop/Sage_stuff/git/sage/src/bin/sage-download-
 file", line 457, in <module>
     tarball.download()
   File "/Users/palmieri/Desktop/Sage_stuff/git/sage/src/bin/sage-download-
 file", line 402, in download
     raise FileNotMirroredError('tarball does not exist on mirror')
 __main__.FileNotMirroredError: tarball does not exist on mirror
 }}}
 From the end of `logs/install.log`:
 {{{
 Error building Sage.

 The following package(s) may have failed to build:

 The build directory may contain configuration files and other potentially
 helpful information. WARNING: if you now run 'make' again, the build
 directory will, by default, be deleted. Set the environment variable
 SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
 }}}

 A similar problem occurs when building the documentation fails.

 We should fix these analogous to #16774.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/18731#comment:3>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to