]> code.ossystems Code Review - openembedded-core.git/commitdiff
mc: Ensure perl scripts reference the correct perl
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Sep 2011 14:34:49 +0000 (15:34 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jan 2012 16:27:03 +0000 (16:27 +0000)
Without this change the perl path from the build system is used.

(From OE-Core rev: feff6030091d519a0738e2a5db47654dcd13ef13)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/mc/mc_4.7.5.2.bb

index 6b03be741510b809104b31565183f77d0ff0856f..59f32ad3693e234d6cd208fe77cee0f19d3a740a 100644 (file)
@@ -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/*
+       
+}