RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1281292 - Missing rpm dependency for graphviz
Summary: Missing rpm dependency for graphviz
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: graphviz
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-12 09:13 UTC by Behnam [:ZWNJ] Esfahbod
Modified: 2015-11-13 10:02 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-13 10:02:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Behnam [:ZWNJ] Esfahbod 2015-11-12 09:13:40 UTC
Description of problem:
graphviz binaries (like `dot`) fail on their config file being zero-sized. It's zero-sized because the config generation command (`dot -c`) in its rpm's %post script is failing.

First problem: this failure should be fatal!

Then, the script is failing, because of an error like this:
```
$ dot -c
Error: /usr/lib64/graphviz/config6 is zero sized, or other read error.
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_pango.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_xlib.so.6" - file not found
Segmentation fault
```

Which, when `strace`ed, will show you some other lib .so files being missing, which are provided by these packages:
```
libXau
libxcb
libXext
```

So, it looks like the current .so files build in graphviz rpm do have dependencies on those library rpms, but not depending on them.


Version-Release number of selected component (if applicable):
graphviz-2.26.0


How reproducible:
100% of the time.


Steps to Reproduce:
Try this:
```
$ sudo yum remove libXau libxcb libXext
Loaded plugins: yumtorrent
Setting up Remove Process
No Match for argument: libXau
Package(s) libXau available, but not installed.
No Match for argument: libxcb
Package(s) libxcb available, but not installed.
No Match for argument: libXext
Package(s) libXext available, but not installed.
No Packages marked for removal

$ sudo dot -c
Error: /usr/lib64/graphviz/config6 is zero sized, or other read error.
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_gd.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_xlib.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_pango.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_gtk.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_gd.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_xlib.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_pango.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_gtk.so.6" - file not found
```

Additional info:
See other reports on the web, including this SO post: https://stackoverflow.com/questions/30326511/getting-xhprof-visualization-issues-with-graphviz-and-dot-working

Comment 2 Jaroslav Škarvada 2015-11-12 10:34:14 UTC
Sorry, I am unable to reproduce the problem. Cleanly provisioned RHEL-6.7:

$ dot -c
$ echo $?
0

$ rpm -q graphviz
graphviz-2.26.0-10.el6.x86_64

The libXau, libxcb, libXext are X libs and their deps are handled by implicit RPM deps, there is no need to require them explicitly (and doing so is really bad approach).

# yum remove libXau
...
Removing for dependencies:
...
graphviz
...

# yum remove libxcb
...
Removing for dependencies:
...
graphviz
...

# yum remove libXext
...
Removing for dependencies:
...
graphviz
...

Is it RHEL? It seems you use packages rebuilt from RHEL on some seriously broken build system.

Comment 3 Behnam [:ZWNJ] Esfahbod 2015-11-12 20:25:09 UTC
Thanks, Jaroslav, for looking into this. Well, I'm on CentOS and didn't expect it to be different from RHEL, as it looked like that the RPM is not changed that mush.

Anyway, looks like I need to report it there, then.

Thanks again!
-b

Comment 4 Jaroslav Škarvada 2015-11-13 10:02:44 UTC
Thanks for info. It seems your RPM packages have wrong implicit dependencies which are generated by rpmbuild in the build system. I am closing this per comment 3. Feel free to reopen or contact me if this problem is reproducible on RHEL.


Note You need to log in before you can comment on or make changes to this bug.