#11926: "make" should run Sage once
-----------------------------+----------------------------------------------
   Reporter:  jdemeyer       |          Owner:  GeorgSWeber               
       Type:  defect         |         Status:  needs_review              
   Priority:  major          |      Milestone:  sage-4.7.3                
  Component:  build          |       Keywords:  Makefile build sage-starts
Work_issues:                 |       Upstream:  N/A                       
   Reviewer:  John Palmieri  |         Author:  Jeroen Demeyer            
     Merged:                 |   Dependencies:                            
-----------------------------+----------------------------------------------
Description changed by jdemeyer:

Old description:

> In a multi-user environment, the user compiling Sage must run it at least
> once to run `sage-location` and generate `.pyc` files.
>
> The proposed fix is: in the default `make` rule, run Sage when `local/bin
> /sage-started.txt` does not exist and create that file in `sage-
> location`.  Also run Sage after upgrading.
>
> This patch also changes the error message when a spkg fails a build or
> test.  Example error message:
> {{{
> Error: Configuring PARI with readline and GMP kernel failed.
>
> real    0m0.100s
> user    0m0.012s
> sys     0m0.012s
> ************************************************************************
> Error installing package pari-2.4.3.alpha.p7
> ************************************************************************
> Please email sage-devel (http://groups.google.com/group/sage-devel)
> explaining the problem and including the relevant part of the log file
>   /usr/local/src/sage-4.7.2.rc0/spkg/logs/pari-2.4.3.alpha.p7.log
> Describe your computer, operating system, etc.
> If you want to try to fix the problem yourself, *don't* just cd to
> /usr/local/src/sage-4.7.2.rc0/spkg/build/pari-2.4.3.alpha.p7 and type
> 'make' or whatever is appropriate.
> Instead, the following commands setup all environment variables
> correctly and load a subshell for you to debug the error:
>   (cd '/usr/local/src/sage-4.7.2.rc0/spkg/build/pari-2.4.3.alpha.p7' &&
> '/usr/local/src/sage-4.7.2.rc0/sage' -sh)
> When you are done debugging, you can type "exit" to leave the subshell.
> ************************************************************************
> Error: Failed to install package 'pari'.
> }}}
>
> '''Apply''':
>  1. [attachment:11926.patch] to '''SAGE_ROOT'''
>  1. [attachment:11926_sage_starts.patch], [attachment:trac_11926-error-
> msg.patch], [attachment:11926-error-msg-review.patch] to '''SCRIPTS'''
> (`local/bin`)

New description:

 In a multi-user environment, the user compiling Sage must run it at least
 once to run `sage-location` and generate `.pyc` files.

 The proposed fix is: in the default `make` rule, run Sage when `local/bin
 /sage-started.txt` does not exist and create that file in `sage-location`.
 Also run Sage after upgrading.

 This patch also changes the error message when a spkg fails a build or
 test.  Example error message:
 {{{
 Error: Configuring PARI with readline and GMP kernel failed.

 real    0m0.100s
 user    0m0.012s
 sys     0m0.012s
 ************************************************************************
 Error installing package pari-2.4.3.alpha.p7
 ************************************************************************
 Please email sage-devel (http://groups.google.com/group/sage-devel)
 explaining the problem and including the relevant part of the log file
   /usr/local/src/sage-4.7.2.rc0/spkg/logs/pari-2.4.3.alpha.p7.log
 Describe your computer, operating system, etc.
 If you want to try to fix the problem yourself, *don't* just cd to
 /usr/local/src/sage-4.7.2.rc0/spkg/build/pari-2.4.3.alpha.p7 and type
 'make' or whatever is appropriate.
 Instead, the following commands setup all environment variables
 correctly and load a subshell for you to debug the error:
   (cd '/usr/local/src/sage-4.7.2.rc0/spkg/build/pari-2.4.3.alpha.p7' &&
 '/usr/local/src/sage-4.7.2.rc0/sage' -sh)
 When you are done debugging, you can type "exit" to leave the subshell.
 ************************************************************************
 Error: Failed to install package 'pari'.
 }}}

 '''Apply''':
  1. [attachment:11926.patch] to '''SAGE_ROOT'''
  1. [attachment:11926_sage_starts.patch], [attachment:trac_11926-error-
 msg.patch], [attachment:11926-error-msg-review.patch] to '''SCRIPTS'''
 (`local/bin`)
  1. [attachment:11926_doc.patch] to the '''Sage library'''.

--

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