Bug 1214868 - libwbclient.so.0.11 is now libwbclient.so.0.12, the alternatives setup is broken
Summary: libwbclient.so.0.11 is now libwbclient.so.0.12, the alternatives setup is broken
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sumit Bose
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1215076 1215378 1215683 1370635 1382969 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-23 17:41 UTC by Yanko Kaneti
Modified: 2017-06-09 20:38 UTC (History)
22 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-12-20 13:35:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Yanko Kaneti 2015-04-23 17:41:12 UTC
Description of problem:
The alternatives setup hardcodes libwbclient.so.0.11, now its libwbclient.so.0.12

Version-Release number of selected component (if applicable):
samba-4.2.1-2.fc23.x86_64

Comment 1 Satish Balay 2015-04-24 15:53:59 UTC
related issues [that I'm encountering]
https://bugzilla.redhat.com/show_bug.cgi?id=1215076
https://bugzilla.redhat.com/show_bug.cgi?id=1215106

Comment 2 Lukas Slebodnik 2015-04-24 16:07:52 UTC
I think all bugs: BZ1215076 BZ1215106 (and this one)
are duplicate of BZ1214973
and fixed by https://admin.fedoraproject.org/updates/samba-4.2.1-3.fc22

Comment 3 Baptiste Mille-Mathias 2015-04-25 14:33:59 UTC
*** Bug 1215076 has been marked as a duplicate of this bug. ***

Comment 4 Kamil Páral 2015-04-27 08:05:05 UTC
This breaks gnome control center functionality (see linked bug reports), I'm proposing this as a F22 Final Blocker:
"All applications that can be launched using the standard graphical mechanism of a release-blocking desktop after a default installation of that desktop must start successfully and withstand a basic functionality test. "
https://fedoraproject.org/wiki/Fedora_22_Final_Release_Criteria#Default_application_functionality

Comment 5 Kamil Páral 2015-04-27 08:36:48 UTC
Sorry for confusion, I missed the fact that 4.2.1-4 was supposed to fix this problem and it's already in F22 stable repo. It seems to have fixed the problem for me, and I checked with Jiri Eischmann (who complained in that Bodhi ticket for 4.2.1-4) that it also fixed for him. Unproposing the blocker.

Comment 6 Bastien Nocera 2015-04-27 10:22:23 UTC
*** Bug 1215378 has been marked as a duplicate of this bug. ***

Comment 7 DO NOT USE account not monitored (old adamwill) 2015-04-27 18:10:08 UTC
Is the use of updates-alternatives really the best idea here? As rdieter wrote on test@: "If the answer is "use alternatives", it often means you're asking the wrong questions. "

The justification for it seems vague and short on detail:

# Move libwbclient.so* into private directory, it cannot be just libdir/samba
# because samba uses rpath with this directory.

but I'd *guess* it should be possible to handle this in a less hacky way. Could we have some more details about exactly what the issue is?

Comment 8 Alexander Bokovoy 2015-04-27 18:20:31 UTC
Yes, it is on purpose.

We have two implementations of libwbclient API in Fedora (Samba and SSSD). They are compatible to certain degree; SSSD version supports less functionality via the same API, namely, password-based logins with NTLM scheme are not supported as they require fully-working winbindd which is not needed in the setups where SSSD-provided libwbclient is in use.

The clients are linked against one libwbclient headers and library provided by Samba, SSSD version serves as runtime replacement. 

[root@ipa-01 localrepo]# rpm -ql --provides -p  libwbclient-4.2.1-5.fc22.x86_64.rpm
libwbclient = 2:4.2.1-5.fc22
libwbclient(x86-64) = 2:4.2.1-5.fc22
libwbclient.so.0()(64bit)
libwbclient.so.0(WBCLIENT_0.10)(64bit)
libwbclient.so.0(WBCLIENT_0.11)(64bit)
libwbclient.so.0(WBCLIENT_0.12)(64bit)
libwbclient.so.0(WBCLIENT_0.9)(64bit)
libwinbind-client-samba4.so()(64bit)
libwinbind-client-samba4.so(SAMBA_4.2.1)(64bit)
/usr/lib64/samba/libwinbind-client-samba4.so
/usr/lib64/samba/wbclient/libwbclient.so.0
/usr/lib64/samba/wbclient/libwbclient.so.0.12
[root@ipa-01 localrepo]# rpm -ql --provides -p  sssd-libwbclient-1.12.90-0.fc22.x86_64.rpm 
libwbclient.so.0()(64bit)
libwbclient.so.0(WBCLIENT_0.10)(64bit)
libwbclient.so.0(WBCLIENT_0.11)(64bit)
libwbclient.so.0(WBCLIENT_0.9)(64bit)
sssd-libwbclient = 1.12.90-0.fc22
sssd-libwbclient(x86-64) = 1.12.90-0.fc22
/usr/lib64/sssd/modules/libwbclient.so.0
/usr/lib64/sssd/modules/libwbclient.so.0.11.0

We cannot put libwclient.so.0* to %_libdir/ because we have two different implementations of it, up to specific API versions. We use alternatives to switch symlink between compatible implementations.

Comment 9 Bastien Nocera 2015-04-27 19:33:02 UTC
*** Bug 1215683 has been marked as a duplicate of this bug. ***

Comment 10 Dan Loomis 2015-04-28 05:33:10 UTC
I ran updates Monday evening and the problem is resolved on my system.   Gnome Control Center launches and displays now.

Thanks

Comment 11 Joe Brockmeier 2015-04-28 14:22:50 UTC
Also fixed here. Yay!

Comment 12 Jan Kurik 2015-07-15 14:14:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 13 Bastien Nocera 2016-09-21 16:44:19 UTC
*** Bug 1370635 has been marked as a duplicate of this bug. ***

Comment 14 Bastien Nocera 2016-10-10 11:52:51 UTC
*** Bug 1382969 has been marked as a duplicate of this bug. ***

Comment 15 Giuseppe Bonomelli 2016-10-11 12:20:06 UTC
try reinstall the library...

i fixed the issue with this "workaround" and now the gnome control center starts correctly

Comment 16 Fedora End Of Life 2016-11-24 11:43:34 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 17 Fedora End Of Life 2016-12-20 13:35:41 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 18 Tobias Schönberg 2017-05-26 16:36:36 UTC
I just ran into this issue using Fedora 26 alpha. Appeared today: 2017-05-26.

> gnome-control-center: error while loading shared libraries: libwbclient.so.0

Comment 19 Tobias Schönberg 2017-05-26 16:37:46 UTC
Using:

> sudo dnf reinstall libwbclient

solves the issue.

Comment 20 Daniele Viganò 2017-05-27 08:43:35 UTC
This happened to me too on my F26 installations. The suggestion from Tobias worked fine, but I think that a new release of libwbclient-4.6.4 should be made to force the reinstallation of the package. This bug is affecting all Gnome + F26 users.

Comment 21 Lukas Slebodnik 2017-05-27 09:38:09 UTC
(In reply to Daniele Viganò from comment #20)
> This happened to me too on my F26 installations. The suggestion from Tobias
> worked fine, but I think that a new release of libwbclient-4.6.4 should be
> made to force the reinstallation of the package. This bug is affecting all
> Gnome + F26 users.

The problem can happen if rpm scriptlets were not executed due to some reason.
e.g. upgrade was aborted in middle. And in such case there would be more problems in rpm database and not just this one. You can check with "dnf check".

If it is not this situation then please open a new bug + provide more details.
Ideally  with deterministic reproducer.

Comment 22 Baptiste Mille-Mathias 2017-06-09 18:42:30 UTC
Hello,

Hit by same bug in the last days in fresh F26 alpha.
solution provided by Tobias in comment #26 corrected the issue.

The bug is closed,; would be necessary to open it again as some people complained about that in the last days ?

Comment 23 Alexander Bokovoy 2017-06-09 19:23:22 UTC
Please understand, this is not a bug in Samba. This is a bug in rpm/dnf handling of transactions. Just as Lukas pointed out in the comment #21, if whole rpm transaction aborted for some reason, remaining RPM scriptlets, including the one that calls out for configuring alternatives, will not be called and fail.

Fedora 26 beta had just exactly this issue with a libdb update which caused a change in RPM environment that wasn't accepted by the rest of transaction because it was already running with an older code. This bug affected all applications (including libwbclient) that were installed as a part of the same transaction as libdb.

Comment 24 Baptiste Mille-Mathias 2017-06-09 20:36:49 UTC
Hi Alexander,

(I just realized when reading the history I was hit by this bug already 2 years ago)  

I'm not telling this is a bug in Samba, I was proposing to open it again in the purpose of re-assigning to the right component.

Comment 25 Alexander Bokovoy 2017-06-09 20:38:51 UTC
There is already bug #1443415 for that.


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