mc: Ensure perl scripts reference the correct perl

Without this change the perl path from the build system is used.

(From OE-Core rev: feff6030091d519a0738e2a5db47654dcd13ef13)

(From OE-Core rev: 077a85c4fa376b5e7ee826589bbd4fe6776a326f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-09-26 15:34:49 +01:00
parent 058ef489a0
commit 51e089403a
1 changed files with 6 additions and 1 deletions

View 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/*
}