Patchwork [03/03] mc: Ensure perl scripts reference the correct perl

login
register
mail settings
Submitter Richard Purdie
Date Sept. 26, 2011, 2:45 p.m.
Message ID <4e48a37e2381528a2a565fb09299187e02af84e7.1317048110.git.richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/12141/
State New, archived
Headers show

Comments

Richard Purdie - Sept. 26, 2011, 2:45 p.m.
Without this change the perl path from the build system is used.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/mc/mc_4.7.5.2.bb |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-extended/mc/mc_4.7.5.2.bb b/meta/recipes-extended/mc/mc_4.7.5.2.bb
index 6b03be7..59f32ad 100644
--- a/meta/recipes-extended/mc/mc_4.7.5.2.bb
+++ b/meta/recipes-extended/mc/mc_4.7.5.2.bb
@@ -6,7 +6,7 @@  SECTION = "console/utils"
 DEPENDS = "ncurses glib-2.0"
 RDEPENDS_${PN} = "ncurses-terminfo"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2"
 
@@ -18,3 +18,8 @@  inherit autotools gettext
 EXTRA_OECONF = "--with-screen=ncurses --without-gpm-mouse --without-x --without-samba"
 
 FILES_${PN}-dbg += "${libexecdir}/mc/.debug/"
+
+do_install_append () {
+       sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${libexecdir}/mc/extfs.d/*
+       
+}