Here is a small patch to be able to compile openssl 0.9.6g
noninteractively on my Solaris 8 machine.  I fixed all locations where
'read < /dev/tty' was used.

diff -ur src-0.9.6g/config src-0.9.6g-local/config
--- src-0.9.6g/config   2002-08-09 13:43:58.000000000 +0200
+++ src-0.9.6g-local/config     2002-10-23 11:37:00.000000000 +0200
@@ -473,7 +473,8 @@
        echo "WARNING! If you wish to build 64-bit library, then you have to"
        echo "         invoke './Configure irix64-mips4-$CC' *manually*."
        echo "         Type return if you want to continue, Ctrl-C to abort."
-       read waste < /dev/tty
+       # Do not stop if /dev/tty is unavailable
+       (read waste < /dev/tty) || true
         CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
         CPU=${CPU:-0}
         if [ $CPU -ge 5000 ]; then
@@ -528,7 +529,8 @@
        #echo "WARNING! If you wish to build 64-bit library, then you have to"
        #echo "         invoke './Configure linux64-sparcv9' *manually*."
        #echo "         Type return if you want to continue, Ctrl-C to abort."
-       #read waste < /dev/tty
+       # Do not stop if /dev/tty is unavailable
+       #(read waste < /dev/tty) || true
        OUT="linux-sparcv9" ;;
   sparc-*-linux2)
        KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
@@ -569,7 +571,8 @@
                echo "WARNING! If you wish to build 64-bit library, then you have to"
                echo "         invoke './Configure solaris64-sparcv9-cc' *manually*."
                echo "         Type return if you want to continue, Ctrl-C to abort."
-               read waste < /dev/tty
+               # Do not stop if /dev/tty is unavailable
+               (read waste < /dev/tty) || true
        fi
        OUT="solaris-sparcv9-$CC" ;;
   sun4m-*-solaris2)    OUT="solaris-sparcv8-$CC" ;;

Without this patch, config would stop because it was unable to read
from /dev/tty.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to