perl: fix re-execution of patch/configure
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 16 Apr 2012 16:43:02 +0000 (17:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Apr 2012 21:30:03 +0000 (22:30 +0100)
commitc50e25f29e573d0a539e1080e29b69633d45fd4e
treec9b53c6c6cf87f45b960c73423bd68e2343a4263
parent5ca6a5f73833774aac1f818d61b81cb4a4f488d5
perl: fix re-execution of patch/configure

The perl recipe's do_configure() does some manual sed replacements over
the entire WORKDIR. Fix the following issues with this:

* Skip patches, which fixes re-execution of do_patch after do_configure
  has run once
* Ensure that the replacement operation does nothing if do_configure is
  re-executed
* Avoid unnecessarily modifying /usr/include paths within documentation
  that will end up being packaged
* Fix a quoting issue in the expression used in the grep command that
  ended up causing files that did not contain .*\.h after /usr/include
  to be matched and modified.

The files modified during do_configure have been compared before and
after this patch to ensure there are no unexpected changes. Some
/usr/include paths that are not within documentation are no longer
being substituted however these are all within comments or scripts for
other Unix operating systems that are not applicable.

[YOCTO #2194]

(From OE-Core rev: 19255032e7744fce5cbe466e4869ded378d3b4f5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/perl_5.14.2.bb