[12/17] perl_5.14.2.bb:fix errors if configure is reattempted

Submitted by Hongxu Jia on March 11, 2013, 11:04 a.m. | Patch ID: 45901


Message ID 73778a456bb1270f2ae93145daab4bf7fd95adba.1362985569.git.hongxu.jia@windriver.com
State New
Headers show

Commit Message

Hongxu Jia March 11, 2013, 11:04 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.

Cherry-pick commit f2f0a1aa489f9e6e4414fa758d3dd09a950a106c

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
 meta/recipes-devtools/perl/perl_5.14.2.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-devtools/perl/perl_5.14.2.bb b/meta/recipes-devtools/perl/perl_5.14.2.bb
index 1c52055..9681f54 100644
--- a/meta/recipes-devtools/perl/perl_5.14.2.bb
+++ b/meta/recipes-devtools/perl/perl_5.14.2.bb
@@ -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