Bug 1476905
Summary: | Fix bundling of libostree | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Colin Walters <walters> | ||||
Component: | flatpak | Assignee: | David King <dking> | ||||
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | ||||
Severity: | high | Docs Contact: | Tomas Capek <tcapek> | ||||
Priority: | high | ||||||
Version: | 7.4 | CC: | alanm, dking, jkoten, jmaury, kabbott, klember, lkuprova, mcepl, mscherer, rstrode, tpelka, vanhoof | ||||
Target Milestone: | rc | Keywords: | ZStream | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | flatpak-0.8.8-2.el7 | Doc Type: | Known Issue | ||||
Doc Text: |
Incorrect dependency in _flatpak_
Due to a wrong dependency in the _flatpak_ package, the user can encounter the following error:
flatpak: error while loading shared libraries: libostree-1.so.1: cannot open shared object file: No such file or directory
To work around this problem, install the _flatpak-libs_ package. Alternatively, instead of initially installing just _flatpak_, install both of the packages by running:
sudo yum -y install flatpak flatpak-libs
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 1499665 (view as bug list) | Environment: | |||||
Last Closed: | 2018-04-10 12:54:31 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1499665 | ||||||
Attachments: |
|
Description
Colin Walters
2017-07-31 18:48:17 UTC
For anyone hitting this: flatpak: error while loading shared libraries: libostree-1.so.1: cannot open shared object file: No such file or directory The workaround is to: yum -y install flatpak-libs Or alternatively, everywhere you want to install flatpak, do instead: sudo yum -y install flatpak flatpak-libs I reproduced this on a Workstation install by doing: $ sudo yum -y remove flatpak{,-libs} $ ldconfig $ sudo yum -y install flatpak $ flatpak --help flatpak: error while loading shared libraries: libostree-1.so.1: cannot open shared object file: No such file or directory $ sudo yum -y install flatpak-libs $ flatpak --help (works) (The need to run `ldconfig` after removing it to reproduce things took me a while to understand, and only adds extra confusion here) Created attachment 1307322 [details]
flatpak-bundling-7.4.patch
There are two patches here; one to work around an RPM build bug around versioned docdir.
The second is all of the fixes for bundling libostree. I verified that things work both with and without ostree from Extras, and that `yum install flatpak` pulls in flatpak-libs. I was a bit surprised to learn that /usr/bin/flatpak doesn't link against libflatpak.
The patch look good to me. Thanks for the fixes, Colin! Also +1 from Alex (we're at GUADEC) who was the one who set up the libostree bundling in flatpak. Will you take care of the builds too? *** Bug 1484845 has been marked as a duplicate of this bug. *** It seems not be enough. Adding flatpak-libs fixes the flatpak or flatpak --help But I tried to run the following command: sudo flatpak remote-add --if-not-exists eclipse https://fedorapeople.org/~mbooth/flatpak/eclipse.flatpakrepo and got the response: flatpak: symbol lookup error: flatpak: undefined symbol: g_strv_contains (In reply to Jeff MAURY from comment #10) > It seems not be enough. > Adding flatpak-libs fixes the flatpak or flatpak --help > But I tried to run the following command: > > sudo flatpak remote-add --if-not-exists eclipse > https://fedorapeople.org/~mbooth/flatpak/eclipse.flatpakrepo > > and got the response: > flatpak: symbol lookup error: flatpak: undefined symbol: g_strv_contains Can you please provide pkg version you have installed? The fix for bundled libsotree is in flatpak-0.8.7-2.el7_4 for rhel-7.4 ZStream and in flatpak-0.8.7-3.el7 for upcoming rhel-7.5. I'm on RHEL 7.2 so flatpak is 0.8.7-1.el7 (In reply to Jeff MAURY from comment #12) > I'm on RHEL 7.2 so flatpak is 0.8.7-1.el7 That's strange, flatpak was a new pkg in rhel-7.4, so I'd guess that's actually the release you are using. Anyway you can wait for the ZStream update (due 2017-Nov-30) or install any of the pkgs mentioned in c#11. To be clear there is more to the fix, than just adding hard deps. on flatpak-libs. Only 0.8.7-1.el7 is available through rhel-7-server-rpms/7Server/x86_64 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. https://access.redhat.com/errata/RHBA-2018:0767 |