]> code.ossystems Code Review - openembedded-core.git/commitdiff
groff: remove redundant code snippet
authorMing Liu <ming.liu@windriver.com>
Thu, 3 Jul 2014 07:49:08 +0000 (15:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2014 11:55:54 +0000 (12:55 +0100)
The exact same code snippet exists both in do_install_append and
do_install_append_class-native which is not necessary.

Remove it from do_install_append_class-native.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/groff/groff_1.22.2.bb

index 227f9fa621b38ff957c9efa4e77fedb7d215bef6..63f0425ea42436779a9647c1b62a0695930107a4 100644 (file)
@@ -55,14 +55,6 @@ do_install_append() {
 }
 
 do_install_append_class-native() {
-       # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
-       # for target as /usr/bin/perl, so fix it to /usr/bin/perl.
-       for i in afmtodit mmroff; do
-               if [ -f ${D}${bindir}/$i ]; then
-                       sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/$i
-               fi
-       done
-
        create_cmdline_wrapper ${D}/${bindir}/groff \
                -F${STAGING_DIR_NATIVE}${datadir_native}/groff/${PV}/font \
                -M${STAGING_DIR_NATIVE}${datadir_native}/groff/${PV}/tmac