[Samba] [PATCH] Force python for Samba on platforms with a too old installed python (eg RHEL 5.9)

Michael Adam obnox at samba.org
Tue Apr 9 06:21:52 MDT 2013


pushed

On 2013-04-08 at 18:59 +1000, Andrew Bartlett wrote:
> Phil,
> 
> I've tried following your mails, and your trials, but got totally lost.
> 
> So what I've done is write up a patch, which should address the one
> issue I've been able to distil out of this, which is that when Samba is
> built against something other than the default python, samba-tool
> segfaults.
> 
> This happens because if we build and link against one library, but you
> run samba-tool with a different python, internal things go boom. 
> 
> This patch works for me on my Centos 5 box. 
> 
> As to all your trials building different versions of python, I can't
> really offer a solution - I've not seen those myself, and you really
> seem to have quite a mix of things going wrong here.  I would suggest
> that if you do want to build a new AD DC, you should do so on a modern
> OS, where python just works.  
> 
> While I will certainly work (as this patch will help a lot with) to have
> install_with_python work for the AD DC, the intended purpose was simply
> to get enough of python going to run our build system for simpler file
> server installations, to allow a transition from the second (autoconf)
> build system.  (And in that it has been quite successful).
> 
> Please test these patches, hopefully they will resolve your issue.
> 
> Finally, if you get odd build errors (such as the symlink error you
> got), then 'git clean -x -f -d' will blow away everything not nailed
> down in the git checkout.  This tends to fix that kind of issue (such as
> happened when I moved our python code around in master and in v4-0-test
> for 4.0.5). 
> 
> Metze (or someone else on the team),
> 
> Please review or push to master. 
> 
> Thanks,
> 
> Andrew Bartlett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20130409/f60ca642/attachment.pgp>


More information about the samba mailing list