Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionPatrick Bervoets
2014-04-08 14:43:54 UTC
Description of problem:
Starting scribus gives error
scribus: error while loading shared libraries: liblcms2.so.2: cannot open shared object file: No such file or directory
Version-Release number of selected component (if applicable):
Installed Packages
Name : scribus
Arch : x86_64
Version : 1.4.3
Release : 1.el6
How reproducible:
always
Steps to Reproduce:
1. yum install scribus --enablerepo=epel
2. scribus
3.
Actual results:
scribus: error while loading shared libraries: liblcms2.so.2: cannot open shared object file: No such file or directory
Expected results:
well... scribus opening
Additional info:
# whereis liblcms2.so.2
liblcms2.so:
# locate liblcms2.so.2
/usr/lib64/libreoffice/program/liblcms2.so.2
# ln -s /usr/lib64/libreoffice/program/liblcms2.so.2 /usr/lib64/liblcms2.so.2
After that scribus starts
and
# whereis liblcms2.so.2
liblcms2.so: /usr/lib64/liblcms2.so.2
So either the scribus rpm could make that softlink or there is a bug in libreoffice
hi Patrick,
I fail to understand what the cause of this could be, since scribus requires lcms2 which installs /usr/lib64/liblcms2.so.2 correctly.
Could you please send us the output of:
# rpm -q lcms2
And if the lcms2 package is not present, could you install it and report?
François,
# rpm -q lcms2
package lcms2 is not installed
So this is the problem. But the yum install scribus --enablerepo=epel never asked for lcms2.
I guess because libreoffice installed liblcms2.so.2 (although in a different location) How does yum decides lcms2 is (not) needed?
As a sidenote: I always install with yum; even if I have to install rpm's (like OracleClient).
I even did a yum reinstall scribus to be sure before attempting the softlink-trick.
yum is using priorities and the epel-repo is not enabled by default.
Sounds this the same problem as in bug 1062007 and you are providing more insight into the problem. Very likely the libreoffice package didn't properly filtered its list of Provides and the libcms2 dependency for scribus is satisfied by the LO internal one.
OK, definitely a rhel6/libreoffice bug then. It is bundling a copy of liblcms2 and erroneously exposing it as a provided dependency (it needs to filter it from Provides).
(In reply to Patrick Bervoets from comment #2)
> François,
>
> # rpm -q lcms2
> package lcms2 is not installed
The workaround is to manually install the lcms2 package. Or uninstall LO :-)
Comment 12Patrick Bervoets
2014-04-08 18:32:53 UTC
OK, I'll take the first option.
Thank you very much.
Comment 13RHEL Program Management
2014-04-10 16:51:04 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release. Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.
(In reply to Dan Horák from comment #10)
> something like
>
> %filter_provides_in %{_libdir}/libreoffice/program
> %filter_setup
>
> is required in the spec file
Nice idea, but it does not work. It takes care of the provides, but it leaves requires in place, so the resulting rpms are broken. And filtering the requires too removes all requires, including these for system libs.
I will have to do that on file-by-file basis, if possible. Or rename the libraries, like we have already done for bundled redland.
Fortunately most of the bundled libs are built statically, so the only ones that must be fixed are lcms2, clucene and firebird. We already add a suffix to redland, raptor and rasqal libs (bug 809466), so these are not a problem.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2014-1423.html