[GHC] #8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris
GHC
ghc-devs at haskell.org
Wed Apr 9 08:19:11 UTC 2014
#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):
This spot did not matter under (my) Solaris 10. In fact, ./configure is
called twice:
{{{
...
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" \
"/bin/bash" ./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/sh .././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
...
}}}
And finally config.status contains '/bin/bash'. (I'm now trying without
"$(SHELL)" in libffi/ghc-mk.)
(After all, for most purposes it does not matter if /bin/sh or /bin/bash
is used.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8783#comment:34>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list