diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2013-03-11 14:47:31 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-23 13:00:52 +0100 |
commit | 608207e8682840065c8e83ddeab613279a3c9cfd (patch) | |
tree | 3d32e9307aa771cb1c3dc8fb6d9171ed45d6008d /meta | |
parent | 5b2ff14255aeac01893c83754c6000ba12d717d0 (diff) | |
download | poky-608207e8682840065c8e83ddeab613279a3c9cfd.tar.gz |
perl_5.14.2.bb: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.
Cherry-pick commit f2f0a1aa489f9e6e4414fa758d3dd09a950a106c
(From OE-Core rev: 4cb190a7527300bcaed34bb6f65329c5d6425966)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.14.2.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.14.2.bb b/meta/recipes-devtools/perl/perl_5.14.2.bb index 1c520553c9..9681f5484a 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() { | |||
169 | ;; | 169 | ;; |
170 | esac | 170 | esac |
171 | # These are strewn all over the source tree | 171 | # These are strewn all over the source tree |
172 | 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 | 172 | 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 |
173 | echo Fixing: $foo | 173 | echo Fixing: $foo |
174 | sed -e 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i $foo | 174 | sed -e 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i $foo |
175 | done | 175 | done |