]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl_5.14.2.bb:fix errors if configure is reattempted
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 11 Mar 2013 06:47:31 +0000 (14:47 +0800)
committerRoss Burton <ross.burton@intel.com>
Tue, 23 Apr 2013 09:38:45 +0000 (10:38 +0100)
If configure of perl is reattempted it currently fails as it tries to edit
files outside ${S}. Chaging from ${WORKDIR} to ${S} avoids this issue
and allows rebuilds to work.

Cherry-pick commit f2f0a1aa489f9e6e4414fa758d3dd09a950a106c

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
meta/recipes-devtools/perl/perl_5.14.2.bb

index 1c520553c9cf1b3c0a248c3d993ed34aa6880126..9681f5484ab8f9094693c54e2390e6052d8daa3c 100644 (file)
@@ -169,7 +169,7 @@ do_configure() {
                        ;;
        esac
         # These are strewn all over the source tree
-        for foo in `grep -I --exclude="*.patch" --exclude="*.diff" --exclude="*.pod" --exclude="README*" -m1 "/usr/include/.*\.h" ${WORKDIR}/* -r -l` ${S}/utils/h2xs.PL ; do
+        for foo in `grep -I --exclude="*.patch" --exclude="*.diff" --exclude="*.pod" --exclude="README*" -m1 "/usr/include/.*\.h" ${S}/* -r -l` ${S}/utils/h2xs.PL ; do
             echo Fixing: $foo
             sed -e 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i $foo
         done