]> code.ossystems Code Review - openembedded-core.git/commitdiff
groff: Fix build on Fedora 17 for 1.18.1.4
authorMing Liu <ming.liu@windriver.com>
Thu, 3 Jul 2014 09:30:00 +0000 (17:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2014 11:55:54 +0000 (12:55 +0100)
The commit 79fc5576:
[ groff: Fix build on Fedora 17 ]

was applied to 1.22.2, but it's also needed by 1.18.1.4 to solve a same
issue.

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

index 85357c56bf9401bf96a69642cdc2fafb701f74bb..687194909e2309986b49ca3b92ed100037ec6187 100644 (file)
@@ -26,6 +26,14 @@ do_configure (){
 }
 
 do_install_append() {
+       # 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,#! ${PERLPATH},' ${D}${bindir}/$i
+               fi
+       done
+
        mkdir -p ${D}${sysconfdir}/groff
        cp -rf ${D}${datadir}/groff/site-tmac/* ${D}${sysconfdir}/groff/
        cp -rf ${D}${datadir}/groff/site-tmac/* ${D}${datadir}/groff/${PV}/tmac/