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

GHC ghc-devs at haskell.org
Fri Feb 14 17:01:58 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 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 > $$@
 }}}

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


More information about the ghc-tickets mailing list