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? 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 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. 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? Thanks, Joachim
Unless you have a very specific reason,??what?s the point in building from source ? Best supported distro to run samba on is Debian. You will have no issues whatsoever. LP On 3 Aug 2023 at 20:25 +0100, Joachim Lindenberg <samba at lindenberg.one>, wrote:> > trying to compile samba
On 03/08/2023 20:25, 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?Yes they are different, if you use git, you will either download the latest Samba (which is still being worked on) or a branch that has been packed up and released, in which case it is easier to use wget to download the tarball.> 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.Did you miss this line: This list is for older Samba versions (4.10 and earlier) and distributions not included in the table above Though that could be better, 22.04 isn't in the table above, so use 20.04, that will be a lot nearer than the manual list. Rowland
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 gotThis 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 images.> 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 company Samba Development and Support: https://catalyst.net.nz/services/samba Catalyst IT - Expert Open Source Solutions
On 03/08/2023 20:25, 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? > 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 > > 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. > 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? > > > > Thanks, > > Joachim > > >building from source is a pita (especially in terms of the dependencies) however there are some things to help, firstly you could use a container, samba ci tests (full developer build) on numerous distributions e.g. in your case you are probably interested in ? * registry.gitlab.com/samba-team/devel/samba/samba-ci-ubuntu2004 ? * registry.gitlab.com/samba-team/devel/samba/samba-ci-debian12 depending on your use case you might not want to build on a container but on a real host and again the CI infra provides great help, e.g. in your downloaded samba source if you look in bootstrap/generated-dists/ubuntu2004/packages.yml bootstrap/generated-dists/debian12/packages.yml you should find the complete list of required packages to build samba (without trying to tweak various configure options) Noel
On 03/08/2023 20:25, 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? > 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 > > 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. > 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? > > > Thanks, > > Joachim > >building from source is a pita (especially in terms of the dependencies) however there are some things to help, firstly you could use a container, samba ci tests (full developer build) on numerous distributions e.g. in your case you are probably interested in ? * registry.gitlab.com/samba-team/devel/samba/samba-ci-ubuntu2004 ? * registry.gitlab.com/samba-team/devel/samba/samba-ci-debian12 depending on your use case you might not want to build on a container but on a real host and again the CI infra provides great help, e.g. in your downloaded samba source if you look in bootstrap/generated-dists/ubuntu2004/packages.yml bootstrap/generated-dists/debian12/packages.yml you should find the complete list of required packages to build samba (without trying to tweak various configure options) Noel