[commit: ghc] master: Don't use absolute paths for perl in validate (d997ca8)

git at git.haskell.org git at git.haskell.org
Tue Nov 18 01:20:00 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d997ca85a33f34f9f461096eb1b25d5f25b53072/ghc

>---------------------------------------------------------------

commit d997ca85a33f34f9f461096eb1b25d5f25b53072
Author: Mateusz Kowalczyk <fuuzetsu at fuuzetsu.co.uk>
Date:   Mon Nov 17 19:15:59 2014 -0600

    Don't use absolute paths for perl in validate
    
    Summary: This will *not* work on NixOS for example.
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D479
    
    GHC Trac Issues: #9057


>---------------------------------------------------------------

d997ca85a33f34f9f461096eb1b25d5f25b53072
 validate | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/validate b/validate
index 7464be9..5954e96 100755
--- a/validate
+++ b/validate
@@ -157,9 +157,9 @@ if [ $no_clean -eq 0 ]; then
     fi
 
     if [ $use_dph -eq 1 ]; then
-        /usr/bin/perl -w boot --validate --required-tag=dph
+        perl -w boot --validate --required-tag=dph
     else
-        /usr/bin/perl -w boot --validate
+        perl -w boot --validate
     fi
     ./configure --prefix="$INSTDIR" $config_args
 fi
@@ -299,4 +299,3 @@ Please fix them before pushing/sending patches.
 EOF
     exit 1
 fi
-



More information about the ghc-commits mailing list