Hello

The PCRE package fails to build on systems with grep 2.7 (or greater??). This 
is due to a grep update which now rejects regular expressions that use 
[:space:] instead of [[:space:]]. This affects 'configure' when it attempts to 
check for the correct version of ltmain.sh.

The attached patches are as follows:

pcre-6.3-grep.patch - changes the grep command in configure.
pcre-spec-grep.patch - updates the spec file to apply the above patch.

Didn't know whether to fix the '[:space:]' used by sed at the same time? Works 
okay at the moment, but I suppose that it could also change in the future.

Regards

Mark
--- dist/lfs-5.1/pcre/pcre.spec.bak	2011-06-09 11:17:33.347223681 +0100
+++ dist/lfs-5.1/pcre/pcre.spec	2011-06-09 11:22:12.553462383 +0100
@@ -10,6 +10,7 @@
 Group           : System Environment/Libraries
 Source          : pcre-6.3.tar.gz
 Patch1          : pcre-6.3-relink.patch
+Patch2          : pcre-6.3-grep.patch
 BuildRoot       : %{_tmppath}/%{name}
 Prefix          : %{pfx}
 
@@ -19,6 +20,7 @@
 %Prep
 %setup
 %patch1 -p1
+%patch2 -p1
 
 %Build
 ./configure --prefix=%{_prefix}  --host=$CFGHOST --build=%{_build} --mandir=%{_mandir} --with-tags=CXX --with-gnu-ld
diff --exclude CVS --exclude .git -uNr pcre-6.3/configure pcre-6.3.modified/configure
--- pcre-6.3/configure	2005-08-18 14:08:28.000000000 +0100
+++ pcre-6.3.modified/configure	2011-06-09 11:15:26.203273531 +0100
@@ -5885,7 +5885,7 @@
   exit 1
 fi
 gentoo_lt_version="1.5.18"
-gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
+gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
   echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to