[oe-commits] org.oe.dev perl 5.8.7: Use grep -I to ignore binary files instead of looking at

lenehan commit openembedded-commits at lists.openembedded.org
Mon Oct 2 07:04:24 UTC 2006


perl 5.8.7: Use grep -I to ignore binary files instead of looking at
the output message from grep. The output message could change
depending on the LOCALE which would break the current test. Make it
DEPEND on grep-native to ensure we get the gnu version of grep which
is needed for -I to work. As per bug #1439.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 1e38cb0e9f5456f65b1b885a0fa78426614268b7
ViewMTN: http://monotone.openembedded.org/revision.psp?id=1e38cb0e9f5456f65b1b885a0fa78426614268b7
Files:
1
packages/perl/perl_5.8.7.bb
Diffs:

#
# mt diff -ra0a75207a6c737519251e82028da3b0c61410483 -r1e38cb0e9f5456f65b1b885a0fa78426614268b7
#
# 
# 
# patch "packages/perl/perl_5.8.7.bb"
#  from [d7a69bb2601bee875a87e89a38742bbadcda9265]
#    to [8fd7f83f5bce8d41d433b40d5663dc471297a098]
# 
============================================================
--- packages/perl/perl_5.8.7.bb	d7a69bb2601bee875a87e89a38742bbadcda9265
+++ packages/perl/perl_5.8.7.bb	8fd7f83f5bce8d41d433b40d5663dc471297a098
@@ -1,5 +1,8 @@ MAINTAINER="David Karlstrom <daka at thg.se
 MAINTAINER="David Karlstrom <daka at thg.se>"
 
+# We need gnugrep (for -I)
+DEPENDS_append += " grep-native"
+
 require perl.inc
 
 SRC_URI += "file://config.sh-armeb-linux \
@@ -53,7 +56,7 @@ do_configure() {
 	sed -i -e "s%/usr/include/%${STAGING_INCDIR}/%g" config.sh-${TARGET_ARCH}-${TARGET_OS}
 
 	#These are strewn all over the source tree
-	for foo in `grep -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | grep -v "^Binary file .* matches$" | cut -f 1 -d ":"` ; do
+	for foo in `grep -I -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | cut -f 1 -d ":"` ; do
 		echo Fixing: $foo
 		sed -e "s%/usr/include/%${STAGING_INCDIR}/%g" -i $foo
 	done






More information about the Openembedded-commits mailing list