#764: DESTDIR Makefile variable
------------------------------+---------------------------------------------
  Reporter:  guest            |          Owner:         
      Type:  feature request  |         Status:  closed 
  Priority:  normal           |      Milestone:         
 Component:  Build System     |        Version:  6.4.2  
  Severity:  normal           |     Resolution:  invalid
  Keywords:                   |             Os:  Unknown
Difficulty:  Unknown          |   Architecture:  Unknown
------------------------------+---------------------------------------------
Comment (by [EMAIL PROTECTED]):

 Just to note what we do with Gentoo (which isn't ideal):

 For configure we use the normal stuff.

 Then for install we use:
 {{{
 make -j1 ${insttarget} \
         prefix="${D}/usr" \
         datadir="${D}/usr/share/doc/${PF}" \
         infodir="${D}/usr/share/info" \
         mandir="${D}/usr/share/man" \
         libdir0="${D}/usr/$(get_libdir)"
 # the libdir0 setting is needed for amd64, and does not
 # harm for other arches
 }}}

 And this still doesn't quite work because the temporary ${D} path gets
 baked into ghcprof and we have to fix that up using sed.
 {{{
 #need to remove ${D} from ghcprof script
 sed -i -e 's:$FPTOOLS_TOP_ABS:#$FPTOOLS_TOP_ABS:' "${D}/usr/bin/ghcprof"
 }}}

 Ideally if DESTDIR were supported then we'd just do:
 {{{
 make -j1 ${insttarget} DESTDIR="${D}"
 }}}

 Note that for some reason we need this hack while building:
 {{{
 make all datadir="/usr/share/doc/${PF}"
 # the explicit datadir is required to make the haddock entries
 # in the package.conf file point to the right place ...
 }}}
 That was for 6.4.1, I don't know if it's still needed in 6.4.2.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/764>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to