Bug 1369070

Summary: libwbclient.so.0 should be installed under /usr/lib64
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: abokovoy, anoopcs, asn, gdeschner, jrivera, lists, lmohanty, madam, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-22 13:05:33 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:

Description Hans de Goede 2016-08-22 12:32:57 UTC
Description of problem:
gnome-control-center does not start, cannot find libwbclient.so.0

Version-Release number of selected component (if applicable):
libwbclient-4.5.0-0.0.rc1.fc25.x86_64

How reproducible:
Start gnome-control-center on f25

Actual results:
Error cannot find libwbclient.so.0

Expected results:
gnome-control-center starts normally

Additional info:
Since libwbclient.so.0 is a versioned .so and used by
other programs it should be installed directly under
/usr/lib64/ not under /usr/lib64/samba/wbclient/

Workaround:
 sudo sh -c "echo /usr/lib64/samba/wbclient/ > /etc/ld.so.conf.d/sambalocal.conf"

Comment 1 Alexander Bokovoy 2016-08-22 12:41:53 UTC
libwbclient.so.0 is an alternatives target. There are two different implementations of it and the code in sssd and samba packages handles switching on the alternatives. Can you show what is the status of 

# update-alternatives --list|grep wbclient
# update-alternatives --display libwbclient.so-64
# update-alternatives --display libwbclient.so.0.12-64

Comment 2 Hans de Goede 2016-08-22 13:05:33 UTC
The output of all 3 commands is empty.

I did a dnf distro-sync from 24 to 25 and the transaction got killed halfway through (my bad), so likely the %posttrans script never ran, after doing:

[root@shalem ~]# /usr/sbin/update-alternatives --install /usr/lib64/libwbclient.so.0.13 libwbclient.so.0.13-64 /usr/lib64/samba/wbclient/libwbclient.so.0.13 10

(from the %posttrans script)

I get:

[hans@shalem ~]$ update-alternatives --list|grep wbclient
libwbclient.so.0.13-64  auto    /usr/lib64/samba/wbclient/libwbclient.so.0.13
[hans@shalem ~]$ update-alternatives --display libwbclient.so-64
[hans@shalem ~]$ update-alternatives --display libwbclient.so.0.12-64

And more importantly I know have a /usr/lib64/libwbclient.so.0.13 symlink.

And after running ldconfig, gnome-control-center works without the workaround.

So I believe this was a glitch due to the transaction getting killed halfway through and can be closed, thanks for the quick response.