Skip to contentSkip to conversation

groff: remove redundant code snippet

PATCH New Ming Liu 1 participant 1 message Jul 3, 2014

lore
Share & tools
lore

Ming Liu

author
#0 lore raw

PATCH 1/1 groff: remove redundant code snippet

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.

---
 meta/recipes-extended/groff/groff_1.22.2.bb | 8 --------
 1 file changed, 8 deletions(-)
meta/recipes-extended/groff/groff_1.22.2.bb +0 -8
index 227f9fa..63f0425 100644
@@ -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
Signature · 1 line
1.8.4.1