perl: Fix errors if configure is reattempted

Submitted by Richard Purdie on Jan. 21, 2013, 11:20 a.m.


Message ID 1358767233.14265.48.camel@ted
State Accepted
Commit f2f0a1aa489f9e6e4414fa758d3dd09a950a106c
Headers show

Commit Message

Richard Purdie Jan. 21, 2013, 11:20 a.m.
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.

Signed-off-by: Richard Purdie <>

Patch hide | download patch | download mbox

diff --git a/meta/recipes-devtools/perl/ b/meta/recipes-devtools/perl/
index ddc9568..df70247 100644
--- a/meta/recipes-devtools/perl/
+++ b/meta/recipes-devtools/perl/
@@ -169,7 +169,7 @@  do_configure() {
         # 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