Gentoo Archives: gentoo-alt

From: Perry Smith <pedzsan@×××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Patch for openssl config script -- but not really
Date: Thu, 23 Dec 2010 00:37:45
Message-Id: 171C296B-FF92-4860-B0D7-B2D907896FB9@gmail.com
1 When my bootstrap process was trying to build openssl-1.0.0c, I got stuck at:
2
3 WARNING! If you wish to build 64-bit kit, then you have to
4 invoke './Configure aix64-cc' *manually*.
5 You have ~5 seconds to press Ctrl-C to abort
6
7 The tty was set with -icanon but I believe the problem is the config script says '#! /bin/sh'. On AIX, /bin/sh is actually ksh and ksh mucks with the tty settings between commands. I changed it to use /bin/bsh directly (see below). This could work but I'm a Gentoo Portage Prefix moron so when I started the bootstrap back up, it re-fetched the openssl package and spoiled my fun. I ended up gently killing the youngest copy of sh from another window and that caused things to get rolling again. This may be something to do with my ksh set up too. I don't use ksh but I might have it set so it defaults to emacs mode rather than vi mode. In any case, the script needs to avoid using ksh (on AIX at least).
8
9 diff -c /tmp $f
10 *** /tmp/config Wed Dec 22 17:50:49 2010
11 --- ./gpx/portage/dev-libs/openssl-1.0.0c/work/openssl-1.0.0c/config Wed Dec 22 17:51:43 2010
12 ***************
13 *** 797,803 ****
14 echo " invoke './Configure aix64-cc' *manually*."
15 if [ "$TEST" = "false" -a -t 1 ]; then
16 echo " You have ~5 seconds to press Ctrl-C to abort."
17 ! (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1
18 fi
19 fi
20 fi
21 --- 797,803 ----
22 echo " invoke './Configure aix64-cc' *manually*."
23 if [ "$TEST" = "false" -a -t 1 ]; then
24 echo " You have ~5 seconds to press Ctrl-C to abort."
25 ! (trap "stty `stty -g`" 2 0; /bin/bsh -c 'stty -icanon min 0 time 50; read waste') <&1
26 fi
27 fi
28 fi
29
30 I hope this helps...
31
32 pedz

Replies

Subject Author
Re: [gentoo-alt] Patch for openssl config script -- but not really Michael Haubenwallner <haubi@g.o>