help2man: Mangle for /usr/bin/env perl
authorTom Rini <tom_rini@mentor.com>
Fri, 7 Jan 2011 17:11:21 +0000 (10:11 -0700)
committerTom Rini <tom_rini@mentor.com>
Fri, 7 Jan 2011 17:15:31 +0000 (10:15 -0700)
If help2man won't work when part of the program that it is generating
pages for uses one version of perl and it's using another, so we need
to use /usr/bin/env perl to ensure a match.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/help2man/help2man_1.36.4.bb
recipes/help2man/help2man_1.38.2.bb

index 34d9c00..138ae4f 100644 (file)
@@ -11,7 +11,7 @@ SRC_URI    = "${GNU_MIRROR}/help2man/${P}.tar.gz"
 
 inherit autotools
 
-PR = "r1"
+PR = "r2"
 
 EXTRA_OECONF += "PERL=/usr/bin/perl"
 
@@ -19,6 +19,11 @@ do_configure () {
        oe_runconf
 }
 
+do_install_append () {
+       # Make sure we use /usr/bin/env perl
+       sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${D}${bindir}/help2man
+}
+
 FILES_${PN} += "/usr/lib/hacklocaledir.so"
 
 SRC_URI[md5sum] = "d31a0a38c2ec71faa06723f6b8bd3076"
index fff2ee4..7279336 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "GPLv3"
 DEPENDS = "gettext-native perl-native liblocale-gettext-perl-native"
 DEPENDS_virtclass-native = ""
 RDEPENDS_pn-help2man = "gettext perl liblocale-gettext-perl"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
 SRC_URI[md5sum] = "426671c6fe79e5ef2233303367eab5a6"
@@ -20,3 +20,8 @@ BBCLASSEXTEND = "native"
 do_configure() {
        oe_runconf
 }
+
+do_install_append () {
+       # Make sure we use /usr/bin/env perl
+       sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${D}${bindir}/help2man
+}