[GHC] #15925: Production quality bindists for hadrian

GHC ghc-devs at haskell.org
Tue Nov 27 12:19:15 UTC 2018


#15925: Production quality bindists for hadrian
-------------------------------------+-------------------------------------
        Reporter:  alpmestan         |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Build System      |              Version:  8.7
  (Hadrian)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D5371
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Alp Mestanogullari <alpmestan@…>):

 In [changeset:"8f52ab9223544b756010a7a92ea52fffdf1d1c71/ghc"
 8f52ab92/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="8f52ab9223544b756010a7a92ea52fffdf1d1c71"
 Hadrian: improve bindist rule

 As outlined in #15925, hadrian bindists had not made a clear choice with
 respect to relocatable GHCs and wrapper scripts. This commit implements
 the policy described in the ticket. That is:

 - the bindists ship {bin, lib} as they are, modulo the addition of
   haddock from stage2/bin
 - we now _always_ generate wrapper scripts for all the programs that
   are in the bindist's bin/ directory

 The idea being that anyone on Linux/Windows/OS X can just unpack
 the binary distribution anywhere and start using bin/ghc, while the
 installation process systematicaly generates wrapper scripts.

 Test Plan: hadrian/build.sh binary-dist ; cd
 _build/bindist/ghc-X.Y.Z-arch/; configure --prefix=/tmp/foo && make
 install

 Reviewers: snowleopard, bgamari, angerman

 Reviewed By: snowleopard, bgamari, angerman

 Subscribers: rwbarton, carter

 GHC Trac Issues: #15925

 Differential Revision: https://phabricator.haskell.org/D5371
 }}}

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


More information about the ghc-tickets mailing list