http:///https:///index.php?title=Package_Dependencies_Required_to_Build_Samba/Building_Samba_on_Gentoo&feed=atom&action=historyPackage Dependencies Required to Build Samba/Building Samba on Gentoo - Revision history2024-03-29T02:22:20ZRevision history for this page on the wikiMediaWiki 1.39.5https://wiki.samba.org/index.php?title=Package_Dependencies_Required_to_Build_Samba/Building_Samba_on_Gentoo&diff=15716&oldid=prevAbartlet: create building on gentoo sub-page2019-05-28T10:02:28Z<p>create building on gentoo sub-page</p>
<p><b>New page</b></p><div>=Building Samba on Gentoo=<br />
<br />
Please note that the following sections assume at least an intermediate understanding of the Gentoo packaging system.<br />
<br />
<br />
<br />
==Python==<br />
<br />
Gentoo uses Python 3 as the default python interpreter, but at this time Samba requires Python 2 (2.4.2 or later). The following set of commands will install and set up Python 2 as the default python interpreter.<br />
<br />
# emerge --ask --noreplace '<dev-lang/python-3'<br />
# eselect python set python2.7<br />
# python-updater<br />
<br />
<br />
<br />
== Kerberos ==<br />
On Gentoo, you have two choices for a kerberos implementation, app-crypt/mit-krb5 and app-crypt/heimdal. Unfortunately the two implementations can not be installed at the same time. Currently, the Samba only supports app-crypt/heimdal. So you must first uninstall app-crypt/mit-krb5, if installed. Then install app-crypt/heimdal and rebuild any packages that were using the previous kerberos implementation.<br />
<br />
# emerge --unmerge --ask app-crypt/mit-krb5<br />
# emerge --ask app-crypt/heimdal<br />
# revdep-rebuild -- -ask<br />
<br />
<br />
<br />
== BIND ==<br />
<br />
To enable automatic zone management, net-dns/bind and net-dns/bind-tools should be emerged with the USE flags for berkdb, dlz and gssapi set. To enable them permanently, add the following to /etc/package.use:<br />
<br />
net-dns/bind berkdb dlz gssapi<br />
net-dns/bind-tools gssapi<br />
<br />
Then, emerge net-dns/bind:<br />
<br />
# emerge --ask net-dns/bind net-dns/bind-tools<br />
<br />
<br />
<br />
== Samba-supplied Libraries (tdb/ldb/tevent) ==<br />
<br />
There are a few Samba libraries that need to be installed. Note that these packages might be keyworded as unstable, so you might need to add the following to your /etc/package.keywords:<br />
<br />
~sys-libs/tevent-0.9.17<br />
~sys-libs/tdb-1.2.10<br />
~sys-libs/ldb-1.1.12<br />
~sys-libs/talloc-2.0.7<br />
<br />
Additionally, Samba requires sys-libs/tdb and sys-libs/talloc to be emerged with the USE flag python set. To enable this permanently, add the following to /etc/package.use:<br />
<br />
sys-libs/tdb python<br />
sys-libs/talloc python<br />
<br />
Note: In new(er) installations of Gentoo, the above files will be located in /etc/portage/, i.e. /etc/portage/package.keywords and /etc/portage/package.use. They may be symlinked to /etc for backward compatibility.<br />
<br />
Now, emerge the packages:<br />
<br />
# emerge --ask '=sys-libs/talloc-2.0.7' '=sys-libs/tdb-1.2.10' '=sys-libs/tevent-0.9.17' '=sys-libs/ldb-1.1.12'<br />
<br />
Note that ebuilds for the required versions of the above packages might not be availiable in the portage tree. In this case, check [https://bugs.gentoo.org/ Gentoo's Bugzilla] for updated ebuilds.<br />
<br />
<br />
<br />
== Other Misc. Build/Run Dependencies ==<br />
<br />
To ensure a successful Samba 4 installation, there are a few other packages that should be installed, as shown below:<br />
<br />
# emerge --ask net-libs/gnutls sys-apps/acl dev-libs/cyrus-sasl dev-python/subunit dev-python/dnspython net-dns/libidn <br />
<br />
FIXME: Are dev-python/dnspython net-dns/libidn still required?</div>Abartlet