Ticket #14447: trac_14447-uname.patch

File trac_14447-uname.patch, 1.4 KB (added by jpflori, 8 years ago)

uname 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 b25d94883e049f9382a4c49141d1d6417b3d5f62
    # 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  
    1717UNAME=`uname`
    1818RELEASE=`uname -r`
    1919
     20# On Cygwin the result of `uname` depends on the version of Windows
     21# it is running on, e.g. CYGWIN_NT-5.1 on 32 bits Windows XP or
     22# CYGWIN_NT-6.1-WOW64 on 64 bits Windows 7.
     23# Currently, this information is of no use to us so we discard it.
     24if `uname | grep CYGWIN > /dev/null`; then
     25    UNAME="CYGWIN"
     26fi
     27
    2028cd "$SAGE_BUILD_DIR"
    2129
    2230echo "Starting prerequisite check."
     
    8694        echo "The Sage community would also appreciate any patches you submit."
    8795        echo ""
    8896        fail=yes
    89     elif [ "$UNAME" != "SunOS" ] && [ "$UNAME" != "Darwin" ] && [ "$UNAME" != "Linux" ]; then
     97    elif [ "$UNAME" != "SunOS" ] && [ "$UNAME" != "Darwin" ] && [ "$UNAME" != "Linux" ] && [ "$UNAME" != "CYGWIN" ]; then
    9098        echo "You are attempting to build Sage on $UNAME,"
    9199        echo "which is not a supported platform for Sage yet. Things may or"
    92100        echo "may not work. If you would like to help port Sage to $UNAME,"