adt_installer_internal: fix perl modules relocated failed on older distributions
authorHongxu Jia <hongxu.jia@windriver.com>
Wed, 26 Jun 2013 04:38:46 +0000 (12:38 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Jun 2013 08:14:06 +0000 (09:14 +0100)
commitd909ebbd2385de3c700eb4e6a0ede60f8e0ca0fe
treeac02a416e78334b089c882bbd965f771073a134c
parent2cb7f22659c0e7a3ee62aa4df08dbe1c5d71d762
adt_installer_internal: fix perl modules relocated failed on older distributions

The perl module for automake has an embedded path in it, this needs
to be relocated.

Older versions of 'file' do not return the "ASCII" text in the output for
a perl module file. Hence, the regex pattern didn't match perl module and
they were not getting relocated at all on older distributions.

1) On CentOS release 6.4, the version of file is 5.04
$ file /usr/lib/perl5/Config_heavy.pl
$ /usr/lib/perl5/Config_heavy.pl: Perl5 module source text

2) On Ubuntu 13.04, the version of file is 5.11
$ file /usr/lib/perl/5.14/Config_heavy.pl
$ /usr/lib/perl/5.14/Config_heavy.pl: C source, ASCII text, with very long lines

[YOCTO #4550]

(From OE-Core rev: 7cfab2c895bf4daa7716fb7509e367bf74f016e4)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal