Dependencies for samba4?
Ng Oon-Ee
ngoonee at gmail.com
Sat Jan 22 23:41:23 MST 2011
On Sat, 2011-01-22 at 22:04 -0800, Jelmer Vernooij wrote:
> On Sun, 2011-01-23 at 13:53 +0800, Ng Oon-Ee wrote:
> > On Sat, 2011-01-22 at 21:47 -0800, Jelmer Vernooij wrote:
> > > On Sun, 2011-01-23 at 13:27 +0800, Ng Oon-Ee wrote:
> > > > Pasting inline at the end.
> > > >
> > > > On Sat, 2011-01-22 at 21:30 +0100, Jelmer Vernooij wrote:
> > > > > > Is there a list somewhere of dependencies for samba4? The HOWTO on
> > > > > > wiki.samba.org suggests acl, xattr, blkid, gnutls, readline, and python
> > > > > > are dependencies, but docbook-xsl is not mentioned.
> > > > > Only python is a hard dependency. The others are optional.
> > > > Okay, that doesn't seem to tally with what I've observed though. I'm
> > > > probably doing it wrong.
> > > > >
> > > > > > Perhaps its not a
> > > > > > 'hard' dependency since man pages aren't normally considered integral,
> > > > > > but compiling tdb still fails even though the libxlst test returns 'no'.
> > > > > By default xsltproc will simply get those stylesheets from the web. The
> > > > > only thing docbook-xsl should do is allow xsltproc to find a local copy
> > > > > of them, so you can build without a network connection.
> > > > >
> > > > > > For references, here's a user's build log.
> > > > > > http://aur.pastebin.com/FmsMLh7A
> > > > > Please paste inline. :-) I'm offline at the moment so I have no idea
> > > > > what that build failure is.
> > > > >
> > > > > > Line 14 says xsltproc isn't found, but line 51 shows build failure
> > > > > > (doesn't turn up when docbook-xsl is installed).
> > > > > docbook-xsl should always be an optional dependency. If it's not
> > > > > installed we should be loading the stylesheets from the web.
> > > >
> > > > Okay, what I observe is simply that it compiles with docbook-xsl but
> > > > doesn't without, even though the ./configure test finds that xsltproc
> > > > isn't found.
> > > >
> > > > Additional details, I use autogen.sh.
> > > You are running a *very* old version of Samba 4. We don't use autoconf
> > > anymore. I would recommend trying alpha14.
> >
> > Thanks Jelmer, unfortunately the reason for keeping the samba4 package I
> > have is that its to be used with openchange, which still recommends
> > alpha13. I do recall some other advise on this list that alpha14 would
> > work though, so I guess I will test this out soon. Thanks.
> If you're using a packaged version there shouldn't be a need to
> run ./autogen.sh, as configure should already be present in the tarball.
>
> That said, even in alpha 13 autogen.sh created a configure file for waf,
> not for autoconf. Are you sure you are running alpha13 and/or not
> running another command than autogen.sh ?
>
> Cheers,
>
> jelmer
>
I use autogen.sh followed by configure (where I use a prefix). I assume
from your reply that this isn't the correct way. I can't remember the
source I was following, but the way I've been doing it has worked till
now. Attached below.
cd ${srcdir}/samba-${_realver}/lib/tdb
./autogen.sh
./configure --prefix=${_prefix}/samba
make
make DESTDIR="$pkgdir/" install
make realdistclean
cd ${srcdir}/samba-${_realver}/lib/tevent
./autogen.sh
./configure --prefix=${_prefix}/samba
make
make DESTDIR="$pkgdir/" install
make realdistclean
cd ${srcdir}/samba-${_realver}/source4
./autogen.sh
./configure --prefix=${_prefix} --enable-fhs
make
More information about the samba-technical
mailing list