pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45725: GHC's configure script incomaptiable with latest Perl



>Number:         45725
>Category:       pkg
>Synopsis:       GHC's configure script incomaptiable with latest Perl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 19 16:35:00 +0000 2011
>Originator:     Aran Clauson
>Release:        5.99.56
>Organization:
>Environment:
NetBSD piglet 5.99.56 NetBSD 5.99.56 (GENERIC) #0: Sun Nov 27 09:19:23 PST 2011 
 aran@piglet:/home/NetBSD/obj/sys/arch/i386/compile/GENERIC i386
>Description:
When upgrading GHC to version 6.8.3, version 6.4.2 is also built.  However, 
6.4.2's configure script looks for very specific versions of Perl.  The latest 
version does not pass 6.4.2's check, but is otherwise acceptable.
>How-To-Repeat:
Try to build GHC with Perl 5.14.2 installed.
>Fix:
Apply the following patch

--- ../ghc-6.4.2/configure.orig 2006-04-18 19:36:55.000000000 +0000
+++ ../ghc-6.4.2/configure
@@ -2377,20 +2377,12 @@ fi
       exit 1
    else
    $PerlCmd -v >conftest.out 2>&1
-   if grep "v5.6" conftest.out >/dev/null 2>&1; then
+   if grep "v5" conftest.out >/dev/null 2>&1; then
       :
    else
-      if grep "v5.8" conftest.out >/dev/null 2>&1; then
-         :
-      else
-         if grep "version 6" conftest.out >/dev/null 2>&1; then
-            :
-         else
-            { { echo "$as_me:$LINENO: error: your version of perl probably 
won't work, try upgrading it." >&5
+     { { echo "$as_me:$LINENO: error: your version of perl probably won't 
work, try upgrading it." >&5
 echo "$as_me: error: your version of perl probably won't work, try upgrading 
it." >&2;}
    { (exit 1); exit 1; }; }
-         fi
-      fi
    fi
 rm -fr conftest*
 



Home | Main Index | Thread Index | Old Index