[GHC] #8764: Usage of `sed' in GHC build system (Solaris build failure).

GHC ghc-devs at haskell.org
Sun Feb 16 13:34:53 UTC 2014


#8764: Usage of `sed' in GHC build system (Solaris build failure).
----------------------------------------+-----------------------------
        Reporter:  kgardas              |            Owner:
            Type:  bug                  |           Status:  patch
        Priority:  normal               |        Milestone:  7.8.1
       Component:  Build System         |          Version:  7.8.1-rc1
      Resolution:                       |         Keywords:
Operating System:  Solaris              |     Architecture:  x86
 Type of failure:  Building GHC failed  |       Difficulty:  Unknown
       Test Case:                       |       Blocked By:
        Blocking:                       |  Related Tickets:
----------------------------------------+-----------------------------

Comment (by kgardas):

 Replying to [comment:7 maeder]:
 > I believe, the following works, but still need to test it.
 > {{{
 >         sed -e '/hs$$$$/ p' -e '/hs$$$$/ s/o /hi /g' \
 >             -e '/hs$$$$/ s/:/ : %hi: %o /'                       \
 >             -e '/hs$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/'      \
 >             -e '/hs$$$$/ s/$$$$/))/'                             \
 >             -e '/hs-boot$$$$/ p' -e '/hs-boot$$$$/ s/o-boot /hi-boot /g'
 \
 >             -e '/hs-boot$$$$/ s/:/ : %hi-boot: %o-boot /'        \
 >             -e '/hs-boot$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/' \
 >             -e '/hs-boot$$$$/ s/$$$$/))/'                        \
 >             $$@.tmp2 > $$@
 > }}}

 This is great! It works here on both Solaris 11.1 and Solaris 10 update 8!
 If it also works on other platforms this would be the best solution of
 this issue IMHO.
 Thanks for providing it! BTW: Are you able to provide this patch as a Git
 patch and attach to this ticket? If not, I may do this for you...

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8764#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list