mime-construct: Perform more mangling for perl path

native perl is in /usr/bin/mime-construct, introduce the below
QA warning, it should be replaced:

WARNING: QA Issue: /usr/bin/mime-construct_mime-construct contained in package mime-construct requires
tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl, but no providers found in its RDEPENDS [file-rdeps]

Signed-off-by: Roy Li <rongqing.li@windriver.com>
This commit is contained in:
Roy Li 2016-01-04 09:14:01 +08:00 committed by Martin Jansa
parent fd66e4713e
commit 73af5c278f

View File

@ -20,3 +20,9 @@ inherit cpan
RDEPENDS_${PN} = "libmime-types-perl libproc-waitstat-perl msmtp \
perl-module-filehandle perl-module-mime-base64 perl-module-mime-quotedprint perl-module-posix \
"
do_install_append() {
#change the interpreter in file
sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl -w|${bindir}/env perl|g" \
${D}/${bindir}/mime-construct
}