[Samba] compiling samba..

Andrew Bartlett abartlet at samba.org
Thu Aug 3 19:41:24 UTC 2023

On Thu, 2023-08-03 at 21:25 +0200, Joachim Lindenberg via samba wrote:
> I am trying to compile samba for the first time and ran into several
> issues that might be obvious for all team members but not for me and
> I think documentation could be improved/updated.
> 1.	I am wondering why 
> https://wiki.samba.org/index.php/Build_Samba_from_Source
>  suggests to use wget instead of just git clone 
> https://gitlab.com/samba-team/devel/samba.git
>  and then checking out a release branch. Or are these really
> different?

Users who are not developing Samba generally should obtain our signed
release tarballs.

> 2.	The package dependencies at 
> https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba#Debian_/_Ubuntu
>  don´t work well for me. For one I think it would help to update them
> to (most) recent distributions (I am trying on Ubuntu 22.04.2), but I
> believe I managed that part. However even then I got 

This list is for older Samba versions (4.10 and earlier) and
distributions not included in the table above

> E: Unable to locate package python-crypto
> E: Unable to locate package python-dnspython
> E: Unable to locate package python-gpg
> Are these obsolete or what is the correct replacement?
> 3.	I also tried 
> https://git.samba.org/?p=samba.git;a=blob_plain;f=bootstrap/generated-dists/ubuntu2004/bootstrap.sh;hb=master
>  ignoring the version mismatch on both Ubuntu and Samba sources, but
> got errors as well.

Are you really surprised, if you ignore the version mismatch?

This file is in the tarball, use the one that matches.  We know these
are correct when there is no mismatch as we use these to build the CI

> 4.	Ignoring that, I ran ./configure and noticed lots of green ok
> and yellow not found, plus one error (red):
> vfs_snapper is enabled but prerequisite dbus-1 package not found. Use
> --with-shared-modules='!vfs_snapper' to disable vfs_snapper support.
> How do I get this installed? Or what is the consequence of disabling
> vfs_snapper?

Do you have LVM or similar and want to provide 'previous version'
support do your users?  If not, you can simply supply that option and
move on.

We have these annoying halt-points, because otherwise distributions
will miss out important features when small changes in their dependency
tree change.  We know it is annoying, and counter the the historical
'configure for the running system' practice, but overall we think it
gets the most features to the most users.

Andrew Bartlett

Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead                https://catalyst.net.nz/services/samba
Catalyst.Net Ltd

Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group

Samba Development and Support: https://catalyst.net.nz/services/samba

Catalyst IT - Expert Open Source Solutions

More information about the samba mailing list