[oe] [Bug 1439] perl 5.8.7 fails during configure

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Tue Sep 26 21:50:40 UTC 2006


http://bugs.openembedded.org/show_bug.cgi?id=1439


lenehan at twibble.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lenehan at twibble.org




------- Comment #1 from lenehan at twibble.org  2006-09-26 14:50 -------
Perl builds fine for me on i486. In your case this:

  grep -m1 "\/usr\/include\/.*\\.h" tmp/work/perl-5.8.7-r18/* -r | cut -f 1 -d
":"

is returning "Binary" for some reason when it doesn't for anyone else. I would
presume this is the result of grep returning something like:

  Binary file <filename> matches

If you run the above grep manually you should see which binary and your perl
workdir has /usr/include in it somewhere, which might help explain what's going
on.

Anyway, it you make grep ignore binary files:

--- packages/perl/perl_5.8.7.bb 88bb9c33126dc36e9b6ecfbdab494d1d1b974a7d
+++ packages/perl/perl_5.8.7.bb 64d1a14e86517d96cf9111d020ca709609de456c
@@ -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 -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

then it should work fine. Although one wonders what's special about your
environment that it has this issue in the first place.


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the Openembedded-devel mailing list