Description of problem: ERROR: Output running post install script for package graphviz-0:2.12-6.fc7.i386 /var/tmp/rpm-tmp.VmJqcC: line 1: /bin/dot: No such file or directory rpm -ql graphwiz shows that dot is in /usr/bin now Version-Release number of selected component (if applicable): graphviz-2.12-6.fc7.i386
The scriptlets look strange, variables didn't get expanded: > rpm -qp --scripts graphviz-2.12-6.fc7.i386.rpm warning: graphviz-2.12-6.fc7.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1ac70ce6 postinstall scriptlet (using /bin/sh): LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/lib $RPM_INSTALL_PREFIX0/bin/dot -c /sbin/ldconfig # if there is no dot after everything else is done, the remove config postuninstall scriptlet (using /bin/sh): if ! test -x $RPM_INSTALL_PREFIX0/bin/dot; then rm -f $RPM_INSTALL_PREFIX0/lib/graphviz/config; fi Same error with the post script of graphviz-gd
Sounds like relocatabilty has been turned off? If the package is not relocatable then RPM_INSTALL_PREFIX0 doesn't get set, which is arguable an rpm bug.
Works for me using: rpmbuild --rebuild graphviz-2.12-6.fc7.src.rpm on fedora development, x86_64
I'm synching my devel mirror up right now (it's out of synch due to hardware failure, whee), but I'll be doing a test build in plague/mock. I do recall this working in the past, but if it doesn't now, my best guess is that I'm going to have to disable the relocatability. It's a nice feature, but not if it breaks normal functionality. :-( I'm also looking at BZ#237496, which I admit I have no idea what to do with.
It was turning off relocatability that caused the breakage, I think. Enabling relocatability causes rpmbuild to set RPM_INSTALL_PREFIX0
This bug was resolved (albeit in an unfortunate way) in 2.12-7; closing this bug.