[PATCH] >=samba-4.0 automagically depends on dmapi (libdm.so)

Jelmer Vernooij jelmer at samba.org
Sun Dec 15 16:56:20 MST 2013


On Tue, Dec 10, 2013 at 08:23:07AM +0100, Lars Wendler wrote:
> Am Tue, 10 Dec 2013 09:56:30 +1300
> schrieb Andrew Bartlett <abartlet at samba.org>:
> 
> > On Mon, 2013-12-09 at 14:55 +0100, Lars Wendler wrote:
> > > Am Sun, 08 Dec 2013 22:46:14 +0100
> > > schrieb "Stefan (metze) Metzmacher" <metze at samba.org>:
> > > 
> > > > Hi Lars,
> > > > 
> > > > > From: Andreas Sturmlechner <andreas.sturmlechner at gmail.com>
> > > > > 
> > > > > This fixes https://bugs.gentoo.org/474492
> > > > > 
> > > > > Signed-off-by: Lars Wendler <polynomial-c at gentoo.org>
> > > > 
> > > > --with-dmapi=no should do what you want. It was intended to
> > > > change the default
> > > > to 'auto'.
> > > > 
> > > > metze
> > > 
> > > Hello Stefan,
> > > 
> > > thank you for your replies.
> > > 
> > > So what is the correct way to compile samba without linking to dmapi
> > > (libdm.so) when that lib is installed in the system?
> > > 
> > > We also have similar problems with samba "automagically" linking to
> > > 
> > > attr (libattr.so) [1]
> > > libaio (libaio.so) [2]
> > > pam (libpam.so) [3] 
> > > 
> > > What is the correct procedure to not make samba link against any of
> > > these libs when they are installed on a system?
> > > 
> > > [1] https://bugs.gentoo.org/489748
> > > [2] https://bugs.gentoo.org/489764
> > > [3] https://bugs.gentoo.org/489770
> > 
> > Why are you trying to stop Samba using these important libraries?
> 
> I do not want to entirely stop our samba packages from using these
> libs. But samba's build system provides these configure switches and
> they behave not like they should.
> We (Gentoo) usually try to provide our users the opportunity to
> en-/disable optional features as much as possible. For example, if a
> user does not want/need xattr in his system we usually try to make
> xattr optional for every package he compiles unless it's a hard
> requirement of the package. According to samba's build system neither
> of the libs I mentioned above seem to be hard requirements. So we want
> to keep them optional for our users.
> 
> Another problem is that automagic dependencies are really bad. Please
> have a look at [1] to get a picture why we want to avoid automagic
> dependencies.
> 
> > This reminds me, we should get back to making the build scripts assert
> > that we have xattr, acl and ldap libs, rather than silently failing to
> > have certain features.
> > 
> > Andrew Bartlett
> > 
> 
> [1]
> https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies
This page actually lists the behaviour that we have in Samba (test by
default, but allow flags to force behaviour either way) as one of the
possible acceptable solutions for Gentoo.

Samba's configure has --with{out,}-pam, --with{out,}-aio-support and
--with{out,}-attr flags.

That said, building without aio or attr on Linux is not a very good idea.

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131215/992c1058/attachment.pgp>


More information about the samba-technical mailing list