From: John Ellson Date: Sun, 12 Apr 2020 23:54:50 +0000 (-0400) Subject: fix warning from dot -c being run too early because of rpm dependency ordering X-Git-Tag: 2.44.1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9b26cc34759fa513ce653e117b6c56aff54a33c;p=graphviz fix warning from dot -c being run too early because of rpm dependency ordering --- diff --git a/redhat/graphviz.spec.fedora.in b/redhat/graphviz.spec.fedora.in index 5a4ddc627..a73749215 100644 --- a/redhat/graphviz.spec.fedora.in +++ b/redhat/graphviz.spec.fedora.in @@ -313,8 +313,11 @@ Requires: %{name}-nox = %{version}-%{release} Graphviz plugins - core layout engines and text renderers # run "dot -c" to generate plugin config in {_libdir}/graphviz/config%{pluginsver} +# this one is conditional because of rpm dependency ordering +# on a fresh install this package is installed before dot is avaiable from graphviz-nox +# no matter since dot -c is also run from the graphviz-nox install %post plugins-core -LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c +[ -x %{_bindir}/dot ] && LD_LIBRARY_PATH=%{_libdir} %{_bindir}/dot -c || : # if there is no dot after everything else is done, then remove config %postun plugins-core