#7352: [needs review] Update prereq to version 0.5
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.2.1
Component: build | Keywords:
Work_issues: | Author: David Kirkby
Reviewer: | Merged:
------------------------+---------------------------------------------------
Description changed by drkirkby:
Old description:
> Following my recent updates of the code for checking the prerequisites
> for Sage are present (#7021), here is a further refinement. If
> implemented the following tickets can be closed.
>
> * #7156 prereq-0.4 has a minor portability issue.
> * #7142 We must check if the version of 'tar' found is gnu tar
> * #7143 We must check if the version of 'make' found is gnu 'make'
> * #7181 We must ensure we have GNU make, not HP-UX or Solaris 'make'
> * #7203 prereq-0.4 does not exit if CC is not gcc, but CXX is g++
> * #7182 HP-UX failure of gfan-0.3.p4 but easier to ensure we have GNU
> make.
>
> Changes are:
>
> '''Changes to configure.ac'''
> * Insists that the ''configure'' script is created using autoconf 2.63
> or later.
> * Checks for ''latex'' and issues a gentle warning if it's not found,
> but makes it clear that ''latex'' is not essential.
> * Exits if gcc is not used as the C compiler, but g++ is used as the C++
> compiler. (In ''prereq-0.4'' an error message was generated if ''gcc''
> was used as the C compiler, but ''g++'' was not used as the C++
> compiler). This addresses the other mixture, which I'd overlooked before.
> * Issues a warning that Solaris is unsupported on versions 9 or older.
> * If sun4c or sun4m hardware is used, the ''configure'' script reports
> it is not possible to update to Solaris 10, and so problems might exist.
> * If other Sun hardware is used, it advises people to update unless
> they have reasons for needing an old release of Solaris.
> * Issues a warning that Darwin is too old on 5.x, 5.x.y, 6.x, 6.x.y,
> 7.x and 7.x.y. It states the oldest version of OS X on which Sage has
> been built is 10.4 (Tiger). The information about the relationship
> between Darwin and OS X versions is taken from
> http://en.wikipedia.org/wiki/Darwin_(operating_system)
> * Exits if ''bash'' can not be found.
> * Suggests ''bash'' might be found in /opt/OpenSource/bin/ if the
> operating system is HP-UX.
> * Suggests ''bash'' might be found in /opt/pware/bin if the operating
> system is AIX.
> * Checks for ''ar'', ''strip'', ''m4'', ''ranlib'' and ''ld''.
>
> '''Changes to prereq-0.5-install'''
> * Checks for GNU tar and GNU make on Solaris, making suggestions where
> they might be found (/usr/sfw/bin) or obtained via source, Blastwave or
> Sunfreeware.
> * Only uses the ''-p'' option to ''uname'' on Solaris. Previously the
> option was used on all platforms to check for Solaris on SPARC or x86.
> Since this option is not portable (not part of POSIX), it generated an
> error on HP-UX.
> * Removed all the checks for programs like ''gcc'', ''ld'' since these
> were not portable, and always indicated the program was present on
> Solaris, even if it was not.
>
> The code may be found here.
>
> http://sage.math.washington.edu/home/kirkby/Solaris-fixes/prereq-0.5-3rd-
> try/
>
> Note both files need to be downloaded to $SAGE_ROOT/spkg/base, and the
> permissions on the script need to be 755. When it is downloaded via the
> web, the execute permissions will be lost.
New description:
Following my recent updates of the code for checking the prerequisites for
Sage are present (#7021), here is a further refinement. If implemented the
following tickets can be closed.
* #7156 prereq-0.4 has a minor portability issue.
* #7142 We must check if the version of 'tar' found is gnu tar
* #7143 We must check if the version of 'make' found is gnu 'make'
* #7181 We must ensure we have GNU make, not HP-UX or Solaris 'make'
* #7203 prereq-0.4 does not exit if CC is not gcc, but CXX is g++
* #7182 HP-UX failure of gfan-0.3.p4 but easier to ensure we have GNU
make.
Changes are:
'''Changes to configure.ac'''
* Insists that the ''configure'' script is created using autoconf 2.63 or
later.
* Checks for ''latex'' and issues a gentle warning if it's not found, but
makes it clear that ''latex'' is not essential.
* Exits if gcc is not used as the C compiler, but g++ is used as the C++
compiler. (In ''prereq-0.4'' an error message was generated if ''gcc'' was
used as the C compiler, but ''g++'' was not used as the C++ compiler).
This addresses the other mixture, which I'd overlooked before.
* Issues a warning that Solaris is unsupported on versions 9 or older.
* If sun4c or sun4m hardware is used, the ''configure'' script reports
it is not possible to update to Solaris 10, and so problems might exist.
* If other Sun hardware is used, it advises people to update unless
they have reasons for needing an old release of Solaris.
* Issues a warning that Darwin is too old on 5.x, 5.x.y, 6.x, 6.x.y, 7.x
and 7.x.y. It states the oldest version of OS X on which Sage has been
built is 10.4 (Tiger). The information about the relationship between
Darwin and OS X versions is taken from
[http://en.wikipedia.org/wiki/Darwin_(operating_system)]
* Exits if ''bash'' can not be found.
* Suggests ''bash'' might be found in /opt/OpenSource/bin/ if the
operating system is HP-UX.
* Suggests ''bash'' might be found in /opt/pware/bin if the operating
system is AIX.
* Checks for ''ar'', ''strip'', ''m4'', ''ranlib'' and ''ld''.
'''Changes to prereq-0.5-install'''
* Checks for GNU tar and GNU make on Solaris, making suggestions where
they might be found (/usr/sfw/bin) or obtained via source, Blastwave or
Sunfreeware.
* Only uses the ''-p'' option to ''uname'' on Solaris. Previously the
option was used on all platforms to check for Solaris on SPARC or x86.
Since this option is not portable (not part of POSIX), it generated an
error on HP-UX.
* Removed all the checks for programs like ''gcc'', ''ld'' since these
were not portable, and always indicated the program was present on
Solaris, even if it was not.
The code may be found here.
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/prereq-0.5-3rd-
try/
Note both files need to be downloaded to $SAGE_ROOT/spkg/base, and the
permissions on the script need to be 755. When it is downloaded via the
web, the execute permissions will be lost.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7352#comment:7>
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
-~----------~----~----~----~------~----~------~--~---