
#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): I've looked into these two ./configure scripts. Calling {{{ /bin/bash ./configure }}} is different from calling a script containing {{{ #!/bin/bash ./configure }}} The former just interprets the contents of ./configure (ignoring the initial #!/bin/sh). Whereas the latter, like any direct call of ./configure on any shell, properly executes ./configure (which requests to be interpreted by /bin/sh). The toggling between /bin/bash and /bin/sh by ./configure seems to be normal behavior. Maybe by chance it does not happen (due to multiple invocations of itself) for the second internal call: {{{ eval /bin/bash .././configure "--srcdir=.." "--enable-builddir=i386 -unknown-solaris2" }}} So, it rather looks like an autoconf problem although "autoreconf" actually generates "eval $SHELL ..." (with a different message "....exec $SHELL"). I have (GNU Autoconf) 2.69. I could post a report to gmp-bugs at gmplib.org, though, as "/bin/bash ./configure" fails later on in mpn with "../libtool: bad substitution" also for the latest version gmp-6.0.0a. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:37 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler