Skip to contentSkip to conversation

mime-construct: Perform more mangling for perl path

PATCH In review [email protected] 1 participant 2 messages Jan 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mime-construct: Perform more mangling for perl path

From: Roy Li <[email protected]>

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]

---
 .../recipes-extended/mime-construct/mime-construct_1.11.bb          | 6 ++++++
 1 file changed, 6 insertions(+)
meta-networking/recipes-extended/mime-construct/mime-construct_1.11.bb +6 -0
index 6db4fdf..61bcd13 100644
@@ -20,3 +20,9 @@ inherit cpan
 RDEPENDS_${PN} = "msmtp perl perl-module-mime-base64 perl-module-mime-quotedprint \
     libproc-waitstat-perl libmime-types-perl perl-module-filehandle 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
+}
Signature · 1 line
1.9.1
#1 lore raw

sorry, please drop this patch

-Roy

Quoted 28 lines · On 2016年01月04日 09:14, [email protected] wrote:

From: Roy Li <[email protected]>

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]

---
  .../recipes-extended/mime-construct/mime-construct_1.11.bb          | 6 ++++++
  1 file changed, 6 insertions(+)
meta-networking/recipes-extended/mime-construct/mime-construct_1.11.bb +6 -0
index 6db4fdf..61bcd13 100644
@@ -20,3 +20,9 @@ inherit cpan
  RDEPENDS_${PN} = "msmtp perl perl-module-mime-base64 perl-module-mime-quotedprint \
      libproc-waitstat-perl libmime-types-perl perl-module-filehandle 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
+}
Signature · 2 lines
Best Reagrds,
Roy | RongQing Li