Ticket #14447: trac_14447-case.patch

File trac_14447-case.patch, 9.3 KB (added by jpflori, 8 years ago)

case solution

  • spkg/base/prereq-1.2-install

    # HG changeset patch
    # User Jean-Pierre Flori <jean-pierre.flor@ssi.gouv.fr>
    # Date 1365758372 -7200
    # Node ID 478466b29305bde748d829b0b49b68e9b1c4c77b
    # Parent  2becf2c1a79ad2e13466b7ad0c54a802194a753e
    #14447: Add Cygwin as a supported platform
    
    diff --git a/spkg/base/prereq-1.2-install b/spkg/base/prereq-1.2-install
    a b  
    2424echo ""
    2525
    2626if [ "x$SAGE_PORT" = x ]; then
    27     if [ "$UNAME" = "SunOS" ]; then
    28        if [ "$RELEASE" = "5.9" ] || [ "$RELEASE" = "5.8" ] || [ "$RELEASE" = "5.7" ] || [ "$RELEASE" = "5.6" ] ; then
    29           echo "Sage is not supported on any version of Solaris earlier than 10."
    30           echo "Sage has been tested on the first release of Solaris 10"
    31           echo "(03/2005) and works on that. Sage may or may not work with"
    32           echo "your version of Solaris."
    33           echo ""
    34           echo "More information can be found about Sage on Solaris"
    35           echo "on the Wiki at http://wiki.sagemath.org/solaris"
    36           echo ""
    37           fail=yes
    38        fi
    39     elif [ "$UNAME" = "HP-UX" ]; then
    40         echo "You are attempting to build Sage on HP's HP-UX operating system,"
    41         echo "which is not a supported platform for Sage yet though"
    42         echo "some work has been done on HP-UX. A port does not look to"
    43         echo "be particularly difficult. Some information can be"
    44         echo "found on the Sage Wiki at http://wiki.sagemath.org/HP-UX"
    45         echo ""
    46         echo "If you would like to help port Sage to HP-UX,"
    47         echo "please join the sage-devel discussion list - see"
    48         echo "http://groups.google.com/group/sage-devel"
    49         echo "The Sage community would also appreciate any patches you submit."
    50         echo ""
    51         fail=yes
    52     elif [ "$UNAME" = "AIX" ]; then
    53         echo "You are attempting to build Sage on IBM's AIX operating system,"
    54         echo "which is not a supported platform for Sage yet. Things may or"
    55         echo "may not work. If you would like to help port Sage to AIX,"
    56         echo "please join the sage-devel discussion list - see"
    57         echo "http://groups.google.com/group/sage-devel"
    58         echo "The Sage community would also appreciate any patches you submit."
    59         echo ""
    60         fail=yes
    61     elif [ "$UNAME" = "IRIX" ] || [ "$UNAME" = "IRIX64"  ]; then
    62         echo "You are attempting to build Sage on SGI's IRIX operating system,"
    63         echo "which is not a supported platform for Sage yet. Things may or"
    64         echo "may not work. If you would like to help port Sage to IRIX,"
    65         echo "please join the sage-devel discussion list - see"
    66         echo "http://groups.google.com/group/sage-devel"
    67         echo "The Sage community would also appreciate any patches you submit."
    68         echo ""
    69         fail=yes
    70     elif [ "$UNAME" = "Tru64" ]; then
    71         echo "You are attempting to build Sage on HP's Tru64 operating system,"
    72         echo "which is not a supported platform for Sage yet. Things may or"
    73         echo "may not work. If you would like to help port Sage to Tru64,"
    74         echo "please join the sage-devel discussion list - see"
    75         echo "http://groups.google.com/group/sage-devel"
    76         echo "The Sage community would also appreciate any patches you submit."
    77         echo ""
    78         fail=yes
    79     elif [ "$UNAME" = "FreeBSD" ]; then
    80         echo "You are attempting to build Sage on the FreeBSD operating system,"
    81         echo "which is not a supported platform for Sage yet, though"
    82         echo "developers are working on adding FreeBSD support. Things may or"
    83         echo "may not work. If you would like to help port Sage to FreeBSD,"
    84         echo "please join the sage-devel discussion list - see"
    85         echo "http://groups.google.com/group/sage-devel"
    86         echo "The Sage community would also appreciate any patches you submit."
    87         echo ""
    88         fail=yes
    89     elif [ "$UNAME" != "SunOS" ] && [ "$UNAME" != "Darwin" ] && [ "$UNAME" != "Linux" ]; then
    90         echo "You are attempting to build Sage on $UNAME,"
    91         echo "which is not a supported platform for Sage yet. Things may or"
    92         echo "may not work. If you would like to help port Sage to $UNAME,"
    93         echo "please join the sage-devel discussion list - see"
    94         echo "http://groups.google.com/group/sage-devel"
    95         echo "The Sage community would also appreciate any patches you submit."
    96         echo ""
    97         fail=yes
    98     fi
     27    case $UNAME in
     28        # Supported platforms.
     29        Linux|Darwin)
     30            fail=no
     31            ;;
     32        CYGWIN*)
     33            # On Cygwin the result of `uname` depends on the version of Windows
     34            # it is running on, e.g. CYGWIN_NT-5.1 on 32 bits Windows XP or
     35            # CYGWIN_NT-6.1-WOW64 on 64 bits Windows 7 which currently makes no
     36            # difference for us.
     37            fail=no
     38            ;;
     39        SunOS)
     40            # Not all versions of SunOS are supported.
     41            case $RELEASE in
     42                5.1[0-9]*)
     43                    fail=no
     44                    ;;
     45                *)
     46                    echo "Sage is not supported on any version of Solaris earlier than 10."
     47                    echo "Sage has been tested on the first release of Solaris 10"
     48                    echo "(03/2005) and works on that. Sage may or may not work with"
     49                    echo "your version of Solaris."
     50                    echo ""
     51                    echo "More information can be found about Sage on Solaris"
     52                    echo "on the Wiki at http://wiki.sagemath.org/solaris"
     53                    echo ""
     54                    fail=yes
     55                    ;;
     56            esac
     57            ;;
     58        # Unsupported platforms.
     59        HP-UX)
     60            echo "You are attempting to build Sage on HP's HP-UX operating system,"
     61            echo "which is not a supported platform for Sage yet though"
     62            echo "some work has been done on HP-UX. A port does not look to"
     63            echo "be particularly difficult. Some information can be"
     64            echo "found on the Sage Wiki at http://wiki.sagemath.org/HP-UX"
     65            echo ""
     66            echo "If you would like to help port Sage to HP-UX,"
     67            echo "please join the sage-devel discussion list - see"
     68            echo "http://groups.google.com/group/sage-devel"
     69            echo "The Sage community would also appreciate any patches you submit."
     70            echo ""
     71            fail=yes
     72            ;;
     73        AIX)
     74            echo "You are attempting to build Sage on IBM's AIX operating system,"
     75            echo "which is not a supported platform for Sage yet. Things may or"
     76            echo "may not work. If you would like to help port Sage to AIX,"
     77            echo "please join the sage-devel discussion list - see"
     78            echo "http://groups.google.com/group/sage-devel"
     79            echo "The Sage community would also appreciate any patches you submit."
     80            echo ""
     81            fail=yes
     82            ;;
     83        IRIX|IRIX64)
     84            echo "You are attempting to build Sage on SGI's IRIX operating system,"
     85            echo "which is not a supported platform for Sage yet. Things may or"
     86            echo "may not work. If you would like to help port Sage to IRIX,"
     87            echo "please join the sage-devel discussion list - see"
     88            echo "http://groups.google.com/group/sage-devel"
     89            echo "The Sage community would also appreciate any patches you submit."
     90            echo ""
     91            fail=yes
     92            ;;
     93        Tru64)
     94            echo "You are attempting to build Sage on HP's Tru64 operating system,"
     95            echo "which is not a supported platform for Sage yet. Things may or"
     96            echo "may not work. If you would like to help port Sage to Tru64,"
     97            echo "please join the sage-devel discussion list - see"
     98            echo "http://groups.google.com/group/sage-devel"
     99            echo "The Sage community would also appreciate any patches you submit."
     100            echo ""
     101            fail=yes
     102            ;;
     103        FreeBSD)
     104            echo "You are attempting to build Sage on the FreeBSD operating system,"
     105            echo "which is not a supported platform for Sage yet, though"
     106            echo "developers are working on adding FreeBSD support. Things may or"
     107            echo "may not work. If you would like to help port Sage to FreeBSD,"
     108            echo "please join the sage-devel discussion list - see"
     109            echo "http://groups.google.com/group/sage-devel"
     110            echo "The Sage community would also appreciate any patches you submit."
     111            echo ""
     112            fail=yes
     113            ;;
     114        # Wildcard for other unsupported platforms.
     115        *)
     116            echo "You are attempting to build Sage on $UNAME,"
     117            echo "which is not a supported platform for Sage yet. Things may or"
     118            echo "may not work. If you would like to help port Sage to $UNAME,"
     119            echo "please join the sage-devel discussion list - see"
     120            echo "http://groups.google.com/group/sage-devel"
     121            echo "The Sage community would also appreciate any patches you submit."
     122            echo ""
     123            fail=yes
     124            ;;
     125    esac
    99126
    100127    # Test versions of "tar" and "make".
    101128    have_gnu_tar=`tar --version 2>&1 | grep GNU`