[Samba] [WIP][PATCH] 'fix' smbspool_krb5_wrapper, libexecdir and ctdb helper binary locations for 4.4

Rowland penny rpenny at samba.org
Sun Mar 20 19:20:55 UTC 2016

On 20/03/16 18:57, Miguel Medalha wrote:
>>>> When building Samba 4.4.0rc and then doing an install to
>>>> /usr/local/samba, a directory "libexec" is being created which then
>>>> contains a "samba" directory with a single "smbspool_krb5_wrapper"
>>>> file inside (/usr/local/samba/libexec/samba/
>>>> smbspool_krb5_wrapper). This is not very clean, is it?
>>>> Since all the files are already inside /usr/local/samba, why repeat
>>>> "samba" again inside the tree? Is it possible to clean this before
>>>> the final release of Samba 4.4.0?
>>>> This doesn't happen with version 4.3.6. The same file is placed in
>>>> "/usr/local/samba/bin/smbspool_krb5_wrapper".
>>> Some additional information: if I configure the build with
>>> "--libexecdir=/usr/local/samba/bin" the file goes into
>>> "usr/local/samba/bin/samba/smbspool_krb5_wrapper" which also contains
>>> an
>>> unnecessary repetition. That additional "samba" directory seems to be
>>> hard coded somewhere.
>> Try this patch.
> Thank you for writing the patch.
> Maybe I am being picky or (most probably) ignoring some valid motive, 
> but why does "smbspool_krb5_wrapper" need a "libexec" directory just 
> for itself? Was there something wrong with keeping this file in 
> "/usr/local/samba/bin" as it happened with samba 4.3.6? Why complicate 
> the tree?

This appears to be from FHS and is optional, libexec is supposed to be 
for binaries that are not meant to be run by a user or a shell script, 
they are only meant to be run by other programs.

As I said libexec is optional, it is so optional, that I have never 
found it on a Debian machine :-D


More information about the samba mailing list