]> granicus.if.org Git - graphviz/commitdiff
fix warning from dot -c being run too early because of rpm dependency ordering
authorJohn Ellson <ellson@research.att.com>
Sun, 12 Apr 2020 23:54:50 +0000 (19:54 -0400)
committerJohn Ellson <ellson@research.att.com>
Sun, 12 Apr 2020 23:54:50 +0000 (19:54 -0400)
redhat/graphviz.spec.fedora.in

index 5a4ddc62704720ae801fb61b7cbe7060ac41ef30..a73749215cee00a90f6e5f6e6b3c1ca404322ceb 100644 (file)
@@ -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