Ticket #7879: 0001-Fix-for-7879.patch

File 0001-Fix-for-7879.patch, 892 bytes (added by AndreasVoellmy, 2 years ago)

Patch fixing the problem.

  • ghc.mk

    From 0d685561d1c76281e5dbcd6b73f9eb5c1f3bfc65 Mon Sep 17 00:00:00 2001
    From: Andreas Voellmy <[email protected]>
    Date: Thu, 2 May 2013 10:33:01 -0400
    Subject: [PATCH 1/1] Fix for #7879.
    
    Changed copy of utils/haddock/html/resources/html to use "cp -RL" rather than "cp -R". This allows users to run validate in a build tree, where the build tree was setup using lndir with a relative path to the source directory.
    ---
     ghc.mk | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/ghc.mk b/ghc.mk
    index 6a10a0f..39a44fa 100644
    a b $(INPLACE_BIN)/$(utils/haddock_dist_PROG): $(INPLACE_LIB)/html $(INPLACE_LIB)/la 
    2020
    2121$(INPLACE_LIB)/html:
    2222        $(call removeTrees,$@)
    23         "$(CP)" -R utils/haddock/resources/html $@
     23        "$(CP)" -RL utils/haddock/resources/html $@
    2424
    2525$(INPLACE_LIB)/latex:
    2626        $(call removeTrees,$@)