summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics
diff options
context:
space:
mode:
authorChristian Eggers <ceggers@arri.de>2022-02-14 13:36:39 +0100
committerKhem Raj <raj.khem@gmail.com>2022-02-14 08:33:23 -0800
commit907a649f0e015b261e630c3d4af715227c715f2e (patch)
tree23da02e9daf4ea5d993f379a7697f3925657d582 /meta-oe/recipes-graphics
parent45479a258de8ed01f0a471882f2aa840cfb6ec6c (diff)
downloadmeta-openembedded-907a649f0e015b261e630c3d4af715227c715f2e.tar.gz
graphviz: native: create /usr/lib/graphviz/config6 in populate_sysroot
The `dot` tool requires to be run once after installation in order to create its configuration file. The do_prepare_recipe_sysroot task uses do_populate_sysroot in order to prepare the recipe-sysroot-native. Package postinstall scripts are not executed for -native packages, but files under ${BINDIR}/postinst-* are. This is quite the same as graphviz-setup.sh does for nativesdk. The general idea has been taken from OECORE/meta/classes/pixbufcache.bbclass. Signed-off-by: Christian Eggers <ceggers@arri.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics')
-rw-r--r--meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb b/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
index 7d2515e07..203e0206f 100644
--- a/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
+++ b/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
@@ -74,6 +74,17 @@ do_install:append:class-nativesdk() {
74} 74}
75FILES:${PN}:class-nativesdk += "${SDKPATHNATIVE}" 75FILES:${PN}:class-nativesdk += "${SDKPATHNATIVE}"
76 76
77# create /usr/lib/graphviz/config6
78graphviz_sstate_postinst() {
79 mkdir -p ${SYSROOT_DESTDIR}${bindir}
80 dest=${SYSROOT_DESTDIR}${bindir}/postinst-${PN}
81 echo '#!/bin/sh' > $dest
82 echo '' >> $dest
83 echo 'dot -c' >> $dest
84 chmod 0755 $dest
85}
86SYSROOT_PREPROCESS_FUNCS:append:class-native = " graphviz_sstate_postinst"
87
77PACKAGES =+ "${PN}-python ${PN}-perl ${PN}-demo" 88PACKAGES =+ "${PN}-python ${PN}-perl ${PN}-demo"
78 89
79FILES:${PN}-python += "${libdir}/python*/site-packages/ ${libdir}/graphviz/python/" 90FILES:${PN}-python += "${libdir}/python*/site-packages/ ${libdir}/graphviz/python/"