
#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): It works without "$(SHELL)", too: {{{ ... mv libffi/build/ltmain.sh libffi/build/ltmain.sh.orig sed 's#cmd //c echo "\$1"#cmd /c "echo $1"#' < libffi/build/ltmain.sh.orig
libffi/build/ltmain.sh cd libffi && \ \ cd build && \ CC=/opt/csw/bin/gcc \ LD=/usr/ccs/bin/ld \ AR=/usr/ccs/bin/ar \ NM=/usr/ccs/bin/nm \ RANLIB=/usr/ccs/bin/ranlib \ CFLAGS=" -U__i686 -fno-stack-protector -w" \ LDFLAGS=" -w" \ ./configure \ --prefix=/local/home/maeder/haskell/ghc-7.8.1/libffi/build/inst \ --libdir=/local/home/maeder/haskell/ghc-7.8.1/libffi/build/inst/lib \ --enable-static=yes \ --enable-shared=no \ --host=i386-unknown-solaris2 configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking build system type... i386-pc-solaris2.10 checking host system type... i386-unknown-solaris2 checking target system type... i386-unknown-solaris2 continue configure in default builddir "./i386-unknown-solaris2" ....exec /bin/bash .././configure "--srcdir=.." "--enable-builddir=i386 -unknown-solaris2" "solaris2" configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking build system type... i386-pc-solaris2.10 checking host system type... i386-unknown-solaris2 checking target system type... i386-unknown-solaris2 ... }}}
Note, that now "/bin/bash" is used in the second call (that is somehow part of libffi). Yet, libffi/build/i386-unknown-solaris2/config.status still contains: {{{ SHELL='/bin/bash' }}} (So maybe gmp's ./configure is actually less robust wrt to shell detection.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:35 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler