Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] groff: Fix build on Fedora 17 for 1.18.1.4
@ 2014-07-03  9:30 Ming Liu
  2014-07-03  9:30 ` [PATCH 2/2] groff: fix bindir transaction error Ming Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Ming Liu @ 2014-07-03  9:30 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/recipes-extended/groff/groff_1.18.1.4.bb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-extended/groff/groff_1.18.1.4.bb b/meta/recipes-extended/groff/groff_1.18.1.4.bb
index 85357c5..6871949 100644
--- a/meta/recipes-extended/groff/groff_1.18.1.4.bb
+++ b/meta/recipes-extended/groff/groff_1.18.1.4.bb
@@ -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/
-- 
1.8.4.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-03 11:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03  9:30 [PATCH 1/2] groff: Fix build on Fedora 17 for 1.18.1.4 Ming Liu
2014-07-03  9:30 ` [PATCH 2/2] groff: fix bindir transaction error Ming Liu
2014-07-03  9:50   ` Richard Purdie
2014-07-03 11:00     ` Ming Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox