SOURCES: ghc-perl10.patch (NEW) - find perl 5.10 - use fgrep (or s...

glen glen at pld-linux.org
Mon Feb 25 09:08:01 CET 2008


Author: glen                         Date: Mon Feb 25 08:08:01 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- find perl 5.10
- use fgrep (or should escape the dot)

---- Files affected:
SOURCES:
   ghc-perl10.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/ghc-perl10.patch
diff -u /dev/null SOURCES/ghc-perl10.patch:1.1
--- /dev/null	Mon Feb 25 09:08:01 2008
+++ SOURCES/ghc-perl10.patch	Mon Feb 25 09:07:56 2008
@@ -0,0 +1,27 @@
+--- ghc-6.6.1/aclocal.m4~	2008-02-25 02:59:57.000000000 +0200
++++ ghc-6.6.1/aclocal.m4	2008-02-25 09:54:07.863241936 +0200
+@@ -565,16 +565,20 @@
+ dnl
+ AC_DEFUN([FPTOOLS_CHECK_PERL_VERSION],
+ [$PerlCmd -v >conftest.out 2>&1
+-   if grep "v5.6" conftest.out >/dev/null 2>&1; then
++   if fgrep "v5.6" conftest.out >/dev/null 2>&1; then
+       :
+    else
+-      if grep "v5.8" conftest.out >/dev/null 2>&1; then
++      if fgrep "v5.8" conftest.out >/dev/null 2>&1; then
+          :
+       else
+-         if grep "version 6" conftest.out >/dev/null 2>&1; then
++         if fgrep "v5.10" conftest.out >/dev/null 2>&1; then
+             :
+          else
+-            AC_MSG_ERROR([your version of perl probably won't work, try upgrading it.])
++            if fgrep "version 6" conftest.out >/dev/null 2>&1; then
++               :
++            else
++               AC_MSG_ERROR([your version of perl probably won't work, try upgrading it.])
++            fi
+          fi
+       fi
+    fi
================================================================


More information about the pld-cvs-commit mailing list