perl: Don't try and patch up references to /usr/include in binary files, as
authorJamie Lenehan <lenehan@twibble.org>
Fri, 29 Sep 2006 09:05:19 +0000 (09:05 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Fri, 29 Sep 2006 09:05:19 +0000 (09:05 +0000)
per #1439, so that configure doesn't fail if you happen to end up with this
string in the perl-native binary.

packages/perl/perl_5.8.7.bb

index 2bc2e16..1b69cf0 100644 (file)
@@ -53,7 +53,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 | cut -f 1 -d ":"` ; do
+       for foo in `grep -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | grep -v "^Binary file .* matches$" | cut -f 1 -d ":"` ; do
                echo Fixing: $foo
                sed -e "s%/usr/include/%${STAGING_INCDIR}/%g" -i $foo
        done