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>
inherit autotools
-PR = "r1"
+PR = "r2"
EXTRA_OECONF += "PERL=/usr/bin/perl"
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"
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"
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
+}