[Samba] wiki entry regarding updating self compiled samba addc (4.11.x -> 4.15.0 in my case)

Jürgen Echter j.echter at echter-kuechen-elektro.de
Tue Sep 28 18:04:23 UTC 2021

Am Dienstag, September 28, 2021 19:38 CEST, schrieb Rowland Penny via samba <samba at lists.samba.org>:
 On Tue, 2021-09-28 at 19:13 +0200, Jürgen Echter via samba wrote:
> Hi,
> i upgraded from samba 4.11.x compiled with PYTHON=python2 ./configure
> to samba 4.15.0, i got some libraries left over which insisted on
> samba 4.11.x and made samba-tool crash.
> for example:
> libsmb_samba_internal.cpython-36m-x86_64-linux-gnu.so
> simple_dn.so
> simple_ldap_map.so
> I read
> https://wiki.samba.org/index.php/Updating_Samba#The_Update_Process
> mentioning special treatment for self compiled samba.
> Quote:
> If you update Samba by compiling from the sources, you should be
> aware that code can be removed for various reasons. If code is
> removed and you compile and install Samba over your existing Samba
> installation, this can lead to old libs being left on disk, this can
> lead to errors. For this reason, it is recommended that you replace
> the entire Samba installation if you compile Samba from sources. This
> should not affect Samba when updating by using distro packages.
> So i had a look at
> https://wiki.samba.org/index.php/Build_Samba_from_Source#Upgrading_a_Self-compiled_Samba_Installation
> and it only says i should use the same configure options, which is
> not possible in this case.

Why not ? If you used 'PYTHON=python2 ./configure' before, then you
should just use './configure' this time. If, as it seems, you compiled
Samba over an existing Samba directory, then you can get 'left overs',
which you seem to have.yeah i did that and thats also mentionend on the wiki, thats why i'm asking as it wasn't that clear to me.
As this is a DC, I would just join an additional DC to the domain
(using the latest Samba) and then demote the old DC.

> So my question is what directorys are safe/needed to delete prior to
> "make install" the new version?

Depends, if you just ran './configure', then delete /usr/local/samba
(after backing it up), if you used a different PREFIX, then delete
PREFIX/sambaok, this would force me to join a new machine as a restore is not possible on an already productive DC regarding to the wiki.
> Or what would you recommend to do before upgrading to a version
> without python2 support?

As I said above, just join a new DC instead.then i'll do that next time, i thought i could do an inplace upgrade without touching/moving my roaming profiles i got on there.
> Maybe the wiki could be updated too, to make this more clear.

I will have a look at the wiki and try and make it clearer.


 thanks for clarifying.


More information about the samba mailing list