#1962: make binary-dist creates nested directories under solaris
--------------------------+-------------------------------------------------
 Reporter:  maeder        |          Owner:         
     Type:  bug           |         Status:  new    
 Priority:  normal        |      Milestone:  6.8.2  
Component:  Build System  |        Version:  6.8.1  
 Severity:  normal        |     Resolution:         
 Keywords:                |     Difficulty:  Unknown
 Testcase:                |   Architecture:  x86    
       Os:  Solaris       |  
--------------------------+-------------------------------------------------
Comment (by maeder):

 Looking into my binary distribution one can see that the "problem" was
 already in ghc-6.8.1, but I did not notice it before. I've only noticed it
 because of the following message:

 {{{
 tar: ghc-6.8.1.20071206/compiler/stage2/DEPEND-NOTES/DLL-
 NOTES/HSghc.o/HsVersions.h/Makefile/Makefile.ghcbin/NOTES/Simon-
 
log/basicTypes/cbits/cmm/codeGen/coreSyn/count_bytes/count_lines/cprAnalysis/deSugar
 /ghc-inplace/ghc-inplace.c/ghci/hsSyn/iface/ilxGen: prefix is greater than
 155
 }}}

 The (one-line) patch does not work:

 {{{
 set -e; for d in `ls -1d stage2/*/`; do ../utils/mkdirhier/mkdirhier
 /home/maeder/haskell/pc-
 solaris/ghc-6.8.1.20071206/ghc-6.8.1.20071206/compiler/$d; done
 stage2/*/: No such file or directory
 gmake[1]: *** [binary-dist] Error 2
 }}}

 `ls` does not work as expected in a simple `/usr/bin/sh` shell (although
 it works for `/usr/xpg4/bin/sh`)

 {{{
 ls -1d stage2/*/
 stage2/*/: No such file or directory
 }}}

 In think, the whole line can be simply omitted, as it did not matter for a
 working distribution!

 Alternatively

 {{{
 stagedirs = $(wildcard stage$(stage)/*/)
 [...]
 set -e; for d in $(stagedirs); do $(INSTALL_DIR)
 $(BIN_DIST_DIR)/compiler/$$d; done
 }}}
 in lines 955 and 963 (formerly 961) seems to work.

 I'll attach a full log once it's finished. It takes quite long and maybe
 more work is redone than necessary.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1962#comment:2>
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