#9896: Upgrading from 4.5.3 to 4.6.alpha* can fail (not limited to MacOS X)
----------------------------------------------+-----------------------------
   Reporter:  jhpalmieri                      |       Owner:  GeorgSWeber       
                      
       Type:  defect                          |      Status:  needs_review      
                      
   Priority:  blocker                         |   Milestone:  sage-4.6          
                      
  Component:  build                           |    Keywords:  upgrade update 
dependencies PARI NewPARI
     Author:  Leif Leonhardy, Jeroen Demeyer  |    Upstream:  N/A               
                      
   Reviewer:                                  |      Merged:                    
                      
Work_issues:                                  |  
----------------------------------------------+-----------------------------
Description changed by leif:

Old description:

> On two separate machines running OS X 10.6, upgrading from 4.5.3 to
> 4.6.alpha0 seemed to work -- no errors were reported -- but Sage fails to
> start:
> {{{
> ----------------------------------------------------------------------
> | Sage Version 4.6.alpha0, Release Date: 2010-09-10                  |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> **********************************************************************
> *                                                                    *
> * Warning: this is a prerelease version, and it may be unstable.     *
> *                                                                    *
> **********************************************************************
>   ***   bug in PARI/GP (Segmentation Fault), please report
>   ***   bug in PARI/GP (Segmentation Fault), please report
> }}}
> (Building from scratch works fine.)
>
> ----
>
> == How to test: ==
>
> '''Upgrade path for testing the fixes:
> http://sage.math.washington.edu/home/jdemeyer/dist/sage-4.6.upgradetest_alpha3/'''
>
> Note that '''non-inplace upgrades''' are currently again broken, due to
> the inclusion of matplotlib 1.0.0 (#9221) into Sage 4.6.alpha'''3'''. To
> (hopefully temporarily) work around this, it should be sufficient to
> trigger a rebuild of freetype during the upgrade '''when upgrading from a
> moved (copied or renamed) Sage installation''':
> {{{
> #!sh
> $ rm spkg/installed/freetype-*
> }}}
>
> If you want to speed up the upgrade (i.e., reduce the number of packages
> that get rebuilt) on systems '''other than Cygwin, HP-UX and Solaris''',
> do the following '''before''' starting the upgrade:
> {{{
> #!sh
> $ touch spkg/installed/iconv-1.13.1.p3
> }}}
> (This package is only used on the above systems, but upgrading it
> triggers the rebuild of MPIR on '''any''' platform, which in turn causes
> rebuilding all packages that directly or indirectly depend on MPIR, the
> GMP replacement package.)
>
> Do the upgrade:
> {{{
> #!sh
> $ ./sage -upgrade
> http://sage.math.washington.edu/home/jdemeyer/dist/sage-4.6.upgradetest_alpha3/
> }}}
> Note that you'll be prompted to confirm upgrading (by typing "y" followed
> by carriage return), so be careful when {{{tee}}}ing the output, since
> currently the script's output isn't flushed s.t. you won't see the prompt
> in that case and perhaps wait forever... ;-)
>
> ----
>
> == To the release manager / How to merge this ticket: ==
>  * Replace {{{spkg/install}}} by http://trac.sagemath.org/sage_trac/raw-
> attachment/ticket/9896/trac_9896-SAGE_ROOT__spkg__install.v2b
>  * Replace {{{spkg/standard/deps}}} by http://trac.sagemath.org/sage_trac
> /raw-attachment/ticket/9896/trac_9896-SAGE_ROOT__spkg__standard__deps.v3
>  * Apply http://trac.sagemath.org/sage_trac/raw-
> attachment/ticket/9896/9896_scripts_hgignore.patch to the '''Sage scripts
> repository''' (Not mandatory, but helpful.)
>  * Apply http://trac.sagemath.org/sage_trac/raw-
> attachment/ticket/9896/trac_9896-propagate_upgrading_to_install_script-
> scripts_repo.patch to the '''Sage scripts repository'''
>  * Apply http://trac.sagemath.org/sage_trac/raw-
> attachment/ticket/9896/trac_9896-fix_extension_module_deps-sagelib.patch
> to the '''Sage library repository'''
>  * Apply http://trac.sagemath.org/sage_trac/raw-
> attachment/ticket/9896/trac_9896
> -fix_hardcoded_libdirs_in_extmod_linker_cmd-sagelib.patch to the '''Sage
> library repository'''
>  * Run {{{./sage -sdist ...}}}

New description:

 On two separate machines running OS X 10.6, upgrading from 4.5.3 to
 4.6.alpha0 seemed to work -- no errors were reported -- but Sage fails to
 start:
 {{{
 ----------------------------------------------------------------------
 | Sage Version 4.6.alpha0, Release Date: 2010-09-10                  |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
   ***   bug in PARI/GP (Segmentation Fault), please report
   ***   bug in PARI/GP (Segmentation Fault), please report
 }}}
 (Building from scratch works fine.)

 ----

 == How to test: ==

 '''Upgrade path for testing the fixes:
 
http://sage.math.washington.edu/home/jdemeyer/dist/sage-4.6.upgradetest_alpha3/'''

 Note that '''non-inplace upgrades''' are currently again broken, due to
 the inclusion of matplotlib 1.0.0 (#9221) into Sage 4.6.alpha'''3'''. To
 (hopefully temporarily) work around this, it is sufficient to trigger a
 rebuild of freetype during the upgrade '''when upgrading from a moved
 (copied or renamed) Sage installation''':
 {{{
 #!sh
 $ rm spkg/installed/freetype-*
 }}}

 If you want to speed up the upgrade (i.e., reduce the number of packages
 that get rebuilt) on systems '''other than Cygwin, HP-UX and Solaris''',
 do the following '''before''' starting the upgrade:
 {{{
 #!sh
 $ touch spkg/installed/iconv-1.13.1.p3
 }}}
 (This package is only used on the above systems, but upgrading it triggers
 the rebuild of MPIR on '''any''' platform, which in turn causes rebuilding
 all packages that directly or indirectly depend on MPIR, the GMP
 replacement package.)

 Do the upgrade:
 {{{
 #!sh
 $ ./sage -upgrade
 http://sage.math.washington.edu/home/jdemeyer/dist/sage-4.6.upgradetest_alpha3/
 }}}
 Note that you'll be prompted to confirm upgrading (by typing "y" followed
 by carriage return), so be careful when {{{tee}}}ing the output, since
 currently the script's output isn't flushed s.t. you won't see the prompt
 in that case and perhaps wait forever... ;-)

 ----

 == To the release manager / How to merge this ticket: ==
  * Replace {{{spkg/install}}} by http://trac.sagemath.org/sage_trac/raw-
 attachment/ticket/9896/trac_9896-SAGE_ROOT__spkg__install.v2b
  * Replace {{{spkg/standard/deps}}} by http://trac.sagemath.org/sage_trac
 /raw-attachment/ticket/9896/trac_9896-SAGE_ROOT__spkg__standard__deps.v3
  * Apply http://trac.sagemath.org/sage_trac/raw-
 attachment/ticket/9896/9896_scripts_hgignore.patch to the '''Sage scripts
 repository''' (Not mandatory, but helpful.)
  * Apply http://trac.sagemath.org/sage_trac/raw-
 attachment/ticket/9896/trac_9896-propagate_upgrading_to_install_script-
 scripts_repo.patch to the '''Sage scripts repository'''
  * Apply http://trac.sagemath.org/sage_trac/raw-
 attachment/ticket/9896/trac_9896-fix_extension_module_deps-sagelib.patch
 to the '''Sage library repository'''
  * Apply http://trac.sagemath.org/sage_trac/raw-
 attachment/ticket/9896/trac_9896
 -fix_hardcoded_libdirs_in_extmod_linker_cmd-sagelib.patch to the '''Sage
 library repository'''
  * Run {{{./sage -sdist ...}}}

--

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