#11070: Update prereq so that SAGE_PORT does not need setting on Solaris x86
-----------------------------+----------------------------------------------
   Reporter:  drkirkby       |       Owner:  drkirkby       
       Type:  defect         |      Status:  positive_review
   Priority:  major          |   Milestone:  sage-4.7       
  Component:  solaris        |    Keywords:                 
     Author:  David Kirkby   |    Upstream:  N/A            
   Reviewer:  John Palmieri  |      Merged:                 
Work_issues:                 |  
-----------------------------+----------------------------------------------
Description changed by drkirkby:

Old description:

> The environment variable {{{SAGE_PORT}}}
>
> http://www.sagemath.org/doc/installation/source.html
>
> has to be set on systems such as AIX and HP-UX where Sage is not
> supported. Currently this is also so on Solaris x86, despite the fact
> Sage build fine and is fully supported on both !OpenSolaris x86 and
> Solaris 10 x86:
>
> http://wiki.sagemath.org/SupportedPlatforms
>
> As such, the file
>
> {{{$SAGE_ROOT/spkg/base/prereq-0.7-install}}}
>
> needs to be changed to remove this specific test for Solaris on x86.
> There is also a minor typo with an "x" missing on a line where a test for
> Solaris 2.6 is performed.
>
> The new script will be installed as:
>
> {{{$SAGE_ROOT/spkg/base/prereq-0.8-install}}}
>
> and the old one removed.
>
> == Output on a Solaris x86 system ==
> Here's the output shown with sage-4.7.alpha1 on a Solaris x86 system with
> the environment variable {{{SAGE_PORT}}} not set.
>
> {{{
> Starting prerequisite check.
> Machine: SunOS hawk 5.11 snv_134 i86pc i386 i86pc
>
> Building or using Sage on non-Sparc Solaris is tricky and not supported
> at the moment. It is possible, but you should be well aware that
> some things do not work. Support for Solaris
> on non-SPARC hardware is actively being worked on.
>
> More information can be found about Sage on Solaris
> on the Wiki at http://wiki.sagemath.org/solaris
>
> To get past this message, export the variable SAGE_PORT to
> something non-empty.
> make[1]: *** [installed/prereq-0.7] Error 1
> make[1]: Leaving directory `/export/home/drkirkby/sage-4.7.alpha1/spkg'
>
> real    0m0.024s
> user    0m0.011s
> sys     0m0.017s
> Error building Sage.
> make: *** [build] Error 1
> }}}
>
> Here's the output of sage-4.7.alpha2, which has the changes applied. This
> time the ''prereq'' script gets run, without Sage exiting.
>
> {{{
> Starting prerequisite check.
> Machine: SunOS hawk 5.11 snv_134 i86pc i386 i86pc
> prereq-0.8/
> prereq-0.8/install-sh
> prereq-0.8/aclocal.m4
> prereq-0.8/Makefile.am
>
> <snip>
>
> checking for sqrt in -lm... yes
> checking for sqrtl in -lm... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> config.status: config.h is unchanged
> config.status: executing depfiles commands
> }}}
>
> == Notes for reviewer ==
> You only need to check the changes between the two scripts - ignore the
> tar file that the script opens. That is the subject of another ticket
> #9978.
>
> When testing, you will need to copy the file {{{prereq-0.8.tar}}}
> attached to #9978 to {{{$SAGE_ROOT/spkg/base/}}}.
>
> Both the script and the tar file must have the same version number (0.8).
>
> == Notes for the release manager ==
> This ticket depends on #9978. This and #9978 must be updated together.
>
> Making changes to {{{$SAGE_ROOT/spkg/base}}} is performed in a different
> way to other changes.
>
> Attached is {{{prereq-0.8-install}}} and the diff from the old version.
> {{{prereq-0.7-install}}
>
> The tar file in the directory {{{$SAGE_ROOT/spkg/base}}} also needs the
> version incremented from 0.7 to 0.8. However, since some larger changes
> are made to this tar file as a result of a revised configure.ac used in
> #9978, the tar file will be attached there.
>
> To make the changes for this ticket and #9978, whilst updating the
> version of prereq script from 0.7 to 0.8, two things must be done.
>  * The tar file {{{prereq-0.8.tar}}} attached to #9978 should be
> installed as {{{$SAGE_ROOT/spkg/base/prereq-0.8.tar}}}
>  * The tar file {{{$SAGE_ROOT/spkg/base/prereq-0.7.tar}}} should be
> removed.
>  * Apply [attachment:trac_11070-base-repo.patch] to the repository in
> spkg/base.

New description:

 The environment variable {{{SAGE_PORT}}}

 http://www.sagemath.org/doc/installation/source.html

 has to be set on systems such as AIX and HP-UX where Sage is not
 supported. Currently this is also so on Solaris x86, despite the fact Sage
 build fine and is fully supported on both !OpenSolaris x86 and Solaris 10
 x86:

 http://wiki.sagemath.org/SupportedPlatforms

 As such, the file

 {{{$SAGE_ROOT/spkg/base/prereq-0.7-install}}}

 needs to be changed to remove this specific test for Solaris on x86. There
 is also a minor typo with an "x" missing on a line where a test for
 Solaris 2.6 is performed.

 The new script will be installed as:

 {{{$SAGE_ROOT/spkg/base/prereq-0.8-install}}}

 and the old one removed.

 == Output on a Solaris x86 system ==
 Here's the output shown with sage-4.7.alpha1 on a Solaris x86 system with
 the environment variable {{{SAGE_PORT}}} not set.

 {{{
 Starting prerequisite check.
 Machine: SunOS hawk 5.11 snv_134 i86pc i386 i86pc

 Building or using Sage on non-Sparc Solaris is tricky and not supported
 at the moment. It is possible, but you should be well aware that
 some things do not work. Support for Solaris
 on non-SPARC hardware is actively being worked on.

 More information can be found about Sage on Solaris
 on the Wiki at http://wiki.sagemath.org/solaris

 To get past this message, export the variable SAGE_PORT to
 something non-empty.
 make[1]: *** [installed/prereq-0.7] Error 1
 make[1]: Leaving directory `/export/home/drkirkby/sage-4.7.alpha1/spkg'

 real    0m0.024s
 user    0m0.011s
 sys     0m0.017s
 Error building Sage.
 make: *** [build] Error 1
 }}}

 Here's the output of sage-4.7.alpha2, which has the changes applied. This
 time the ''prereq'' script gets run, without Sage exiting.

 {{{
 Starting prerequisite check.
 Machine: SunOS hawk 5.11 snv_134 i86pc i386 i86pc
 prereq-0.8/
 prereq-0.8/install-sh
 prereq-0.8/aclocal.m4
 prereq-0.8/Makefile.am

 <snip>

 checking for sqrt in -lm... yes
 checking for sqrtl in -lm... yes
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating config.h
 config.status: config.h is unchanged
 config.status: executing depfiles commands
 }}}

 == Notes for reviewer ==
 You only need to check the changes between the two scripts - ignore the
 tar file that the script opens. That is the subject of another ticket
 #9978.

 When testing, you will need to copy the file {{{prereq-0.8.tar}}} attached
 to #9978 to {{{$SAGE_ROOT/spkg/base/}}}.

 Both the script and the tar file must have the same version number (0.8).

 == Notes for the release manager ==
 This ticket depends on #9978. This and #9978 must be updated together.
 Both have positive review.

  * The tar file {{{prereq-0.8.tar}}}, attached to #9978 should be
 installed as {{{$SAGE_ROOT/spkg/base/prereq-0.8.tar}}}. It is listed in
 .hgignore,so there's no need to change the repository for this.
  * The tar file {{{$SAGE_ROOT/spkg/base/prereq-0.7.tar}}} should be
 removed.
  * Apply [attachment:trac_11070-base-repo.patch] to the repository in
 spkg/base.

--

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