diff options
author | Christian Eggers <ceggers@arri.de> | 2022-02-16 15:11:52 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-02-20 13:04:53 -0800 |
commit | 7c519caa1a66e0a1e94217e10a78417555b93ad3 (patch) | |
tree | 64b8cebf946d820e69303b4325cd9fb3310a8b3c | |
parent | aa5b9a1ff04212f6c725128730d4e36bdadf6516 (diff) | |
download | meta-openembedded-7c519caa1a66e0a1e94217e10a78417555b93ad3.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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-graphics/graphviz/graphviz_2.40.1.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/graphviz/graphviz_2.40.1.bb b/meta-oe/recipes-graphics/graphviz/graphviz_2.40.1.bb index 81ab86c762..72e2f5cc7a 100644 --- a/meta-oe/recipes-graphics/graphviz/graphviz_2.40.1.bb +++ b/meta-oe/recipes-graphics/graphviz/graphviz_2.40.1.bb | |||
@@ -55,6 +55,17 @@ do_install_append_class-native() { | |||
55 | install -m755 ${B}/lib/gvpr/mkdefs ${D}${bindir} | 55 | install -m755 ${B}/lib/gvpr/mkdefs ${D}${bindir} |
56 | } | 56 | } |
57 | 57 | ||
58 | # create /usr/lib/graphviz/config6 | ||
59 | graphviz_sstate_postinst() { | ||
60 | mkdir -p ${SYSROOT_DESTDIR}${bindir} | ||
61 | dest=${SYSROOT_DESTDIR}${bindir}/postinst-${PN} | ||
62 | echo '#!/bin/sh' > $dest | ||
63 | echo '' >> $dest | ||
64 | echo 'dot -c' >> $dest | ||
65 | chmod 0755 $dest | ||
66 | } | ||
67 | SYSROOT_PREPROCESS_FUNCS_append_class-native = " graphviz_sstate_postinst" | ||
68 | |||
58 | PACKAGES =+ "${PN}-python ${PN}-perl ${PN}-demo" | 69 | PACKAGES =+ "${PN}-python ${PN}-perl ${PN}-demo" |
59 | 70 | ||
60 | FILES_${PN}-python += "${libdir}/python*/site-packages/ ${libdir}/graphviz/python/" | 71 | FILES_${PN}-python += "${libdir}/python*/site-packages/ ${libdir}/graphviz/python/" |