Skip to contentSkip to conversation

groff: not ship /usr/bin/grap2graph

PATCH New Yu, Mingli 1 participant 1 message Apr 15, 2021

lore
Share & tools
lore

Yu, Mingli

author
#0 lore raw

PATCH 1/1 groff: not ship /usr/bin/grap2graph

From: Mingli Yu <[email protected]>

grap2graph which converts a GRAP diagram into a cropped image fails to run as below:

 $ grap2graph
 /usr/bin/grap2graph: line 89: convert: command not found
 /usr/bin/grap2graph: warning: falling back to old '-crop 0x0' trim method
 /usr/bin/grap2graph: line 104: convert: command not found
 /usr/bin/grap2graph: line 103: grap: command not found

Considering we don't often need to convert a GRAP diagram into a cropped image and the recipe ImageMagick which provides convert command is in meta-oe layer, so don't ship the related files to avoid the confusion about the above run time error.

---
 meta/recipes-extended/groff/groff_1.22.4.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-extended/groff/groff_1.22.4.bb +4 -0
index 983cb9aea6..f0e9eb6a8a 100644
@@ -62,6 +62,10 @@ do_install_append() {
 	rm -rf ${D}${bindir}/glilypond
 	rm -rf ${D}${libdir}/groff/glilypond
 	rm -rf ${D}${mandir}/man1/glilypond*
+
+	# not ship /usr/bin/grap2graph and its releated man files
+	rm -rf ${D}${bindir}/grap2graph
+	rm -rf ${D}${mandir}/man1/grap2graph*
 }
 
 do_install_append_class-native() {
Signature · 1 line
2.29.2