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

GHC ghc-devs at haskell.org
Thu Feb 13 12:47:53 UTC 2014


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

Comment (by hvr):

 ...maybe it's easier to express that operation in terms of `awk`?

 For convenience, here's a copy of `sed` script in question:

 {{{
 /hs$$$$/ p                                      ;
 /hs$$$$/ s/o /hi /g                             ;
 /hs$$$$/ s/:/ : %hi: %o /                       ;
 /hs$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/      ;
 /hs$$$$/ s/$$$$/))/                             ;
 /hs-boot$$$$/ p                                 ;
 /hs-boot$$$$/ s/o-boot /hi-boot /g              ;
 /hs-boot$$$$/ s/:/ : %hi-boot: %o-boot /        ;
 /hs-boot$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/ ;
 /hs-boot$$$$/ s/$$$$/))/'
 }}}

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


More information about the ghc-tickets mailing list