[OE-core] [PATCH] groff: correct the location path for awk

Zhenbo Gao zhenbo.gao at windriver.com
Wed Aug 24 09:12:38 UTC 2016


awk is located at /usr/bin/, but not /bin/

Signed-off-by: Zhenbo Gao <zhenbo.gao at windriver.com>
---
 meta/recipes-extended/groff/groff_1.22.3.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-extended/groff/groff_1.22.3.bb b/meta/recipes-extended/groff/groff_1.22.3.bb
index 4bffa81..af5acbe 100644
--- a/meta/recipes-extended/groff/groff_1.22.3.bb
+++ b/meta/recipes-extended/groff/groff_1.22.3.bb
@@ -56,6 +56,12 @@ do_install_append() {
 	if [ -e ${D}${libdir}/charset.alias ]; then
 		rm -rf ${D}${libdir}/charset.alias
 	fi
+
+	# awk is located at /usr/bin/, not /bin/
+	SPECIAL_AWK=`find ${D} -name special.awk`
+	if [ -f ${SPECIAL_AWK} ]; then
+		sed -i -e 's:#!.*awk:#! ${USRBINPATH}/awk:' ${SPECIAL_AWK}
+	fi
 }
 
 do_install_append_class-native() {
-- 
1.9.1




More information about the Openembedded-core mailing list