Bug 237082
| Summary: | post install scripts looks in wrong directory for dot | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karsten Hopp <karsten> |
| Component: | graphviz | Assignee: | Jima <jima> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | john.ellson |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 2.12-7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-08-29 14:52:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Karsten Hopp
2007-04-19 12:05:04 UTC
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. |