Patchwork [02/03] util-linux: Ensure perl scripts reference the correct perl

login
register
mail settings
Submitter Richard Purdie
Date Sept. 26, 2011, 2:45 p.m.
Message ID <0ec4a3bc9b98689c2e9b90afb3cbcbe206eb66f7.1317048110.git.richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/12139/
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-core/util-linux/util-linux_2.19.1.bb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/util-linux/util-linux_2.19.1.bb b/meta/recipes-core/util-linux/util-linux_2.19.1.bb
index d6d6f9b..5b327cb 100644
--- a/meta/recipes-core/util-linux/util-linux_2.19.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.19.1.bb
@@ -1,5 +1,5 @@ 
 MAJOR_VERSION = "2.19"
-PR = "r4"
+PR = "r5"
 require util-linux.inc
 
 # note that `lscpu' is under GPLv3+
@@ -44,3 +44,7 @@  addtask remove_lscpu before do_configure after do_patch
 # we need to disable it for older versions
 EXTRA_OECONF += "ac_cv_func_fallocate=no"
 EXTRA_OECONF_virtclass-native += "--disable-fallocate --disable-use-tty-group"
+
+do_install_append () {
+	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${bindir}/chkdupexe
+}