Skip to contentSkip to conversation

perl: Fix errors if configure is reattempted

PATCH New Richard Purdie 1 participant 1 message Jan 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: Fix errors if configure is reattempted

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.

---

meta/recipes-devtools/perl/perl_5.14.2.bb +1 -1
index ddc9568..df70247 100644
@@ -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