diff options
author | Christian Eggers <ceggers@arri.de> | 2022-02-16 15:12:45 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-02-23 15:39:12 -0800 |
commit | 24f4e6e8d0556540e882e6f0933d1247f64d0666 (patch) | |
tree | 4a68953aad5b9607dec463f1aee373c794f11936 | |
parent | 2c80b70bf9e5671ac7f09309ebab8d4764d627f7 (diff) | |
download | meta-openembedded-24f4e6e8d0556540e882e6f0933d1247f64d0666.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.44.1.bb | 11 |
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 8fe837b75c..cc57761bc4 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 | } |
75 | FILES_${PN}_class-nativesdk += "${SDKPATHNATIVE}" | 75 | FILES_${PN}_class-nativesdk += "${SDKPATHNATIVE}" |
76 | 76 | ||
77 | # create /usr/lib/graphviz/config6 | ||
78 | graphviz_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 | } | ||
86 | SYSROOT_PREPROCESS_FUNCS_append_class-native = " graphviz_sstate_postinst" | ||
87 | |||
77 | PACKAGES =+ "${PN}-python ${PN}-perl ${PN}-demo" | 88 | PACKAGES =+ "${PN}-python ${PN}-perl ${PN}-demo" |
78 | 89 | ||
79 | FILES_${PN}-python += "${libdir}/python*/site-packages/ ${libdir}/graphviz/python/" | 90 | FILES_${PN}-python += "${libdir}/python*/site-packages/ ${libdir}/graphviz/python/" |