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.
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
Right now flatpak carries
/usr/lib64/libostree-1.so.1 -> /usr/lib64/libostree-flatpak-1.so.1.0.0
which is going to break if the Extras repo is enabled.
Another consequence of this is that flatpak both Provides and Requires libostree-1.so.1(LIBOSTREE_2017.2)(64bit) etc.
We need to fix this by moving it into /usr/lib64/flatpak, set up the -rpath to point there, and using RPM provides filtering to ensure we don't provide it. Compare with what rpm-ostree does for libdnf.
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?
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.
(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.
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