[SSSD] [PATCH] libwbclient: SSSD implementation

Sumit Bose sbose at redhat.com
Wed Jul 23 13:51:31 UTC 2014


On Wed, Jul 23, 2014 at 03:16:03PM +0200, Jakub Hrozek wrote:
> On Wed, Jul 23, 2014 at 02:02:16PM +0200, Lukas Slebodnik wrote:
> > I realised that libwbclient will have prefix sssd-. I didn't test it at frst
> > time, because macro "%files" does not have argument -n.
> > 
> > The problem is that it will cause problems with installation sssd.
> >     sssd will require sssd-libwbclient
> >     sssd-ad(gpo) -> libsmbclient -> samba-common -> libwbclient
> > 
> >     There is conflict which we need to solve.
> > 
> > [root at host ~]# dnf install -y sssd-libwbclient
> > Dependencies resolved.
> > 
> > ===============================================================================
> >  Package      Arch   Version                                    Repository
> >                                                                            Size
> > ===============================================================================
> > Installing:
> >  sssd-libwbclient
> >               x86_64 1.12.1-0.20140723.1323.gitcd61aff.mit.fc20 localrepo  14 k
> > 
> > Transaction Summary
> > ===============================================================================
> > Install  1 Package
> > 
> > Total size: 14 k
> > Installed size: 27 k
> > Downloading Packages:
> > Running transaction check
> > Transaction check succeeded.
> > Running transaction test
> > Error: Transaction check error:
> >   file /usr/lib64/libwbclient.so.0 from install of sssd-libwbclient-1.12.1-0.fc20.x86_64 conflicts with file from package libwbclient-2:4.1.9-3.fc20.x86_64
> > 
> > Error Summary
> > -------------
> > 
> > Some more experinced fedora package maintaner should help us wit this.
> > Jakub? :-)
> 
> I admit I haven't read the patches at all yet, so I'm just replying
> based on this e-mail conversation, but does winbind require that the
> filename is libwbclient.so? Can't we make the file called something
> else?

No because the binaries using libwbclient like wbinfo or smbd are linked
against this name.

There are two items to consider here. First about the dependency chain.
At least in the Fedora/RHEL samba spec files the samba package version
is hardcoded in 'Requires: libwbclient = %{samba_depver}' i.e. only the
samba implementation can fulfil this requirement.

The second is the conflict of the filenames which in theory can be
removed by manually de-installing the offending package which currently
won't work because of the dependency chain mentioned above.

Since on Fedora and RHEL a changes in samba packaging are needed either
way I would recommend to use /sbin/alternatives to manage
libwbclient.so.* . This requires that both SSSD and samba rename the
libraries [*], e.g. libwbclient_sssd.so* and libwbclient_samba.so*, and let
/sbin/alternatives manage libwbclient.so*. For the files in *-devel that
same is needed. The cifs-client plugin is
already managed in a similar way in the sssd spec file.

bye,
Sumit

[*] Please note that in samba the library should be renamed only for
packaging after 'make install' was run because otherwise the binaries
will be linked against the new name and we are back to square 1. I would
recommend to do the same in SSSD.

> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel



More information about the sssd-devel mailing list