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

Andrew Bartlett abartlet at samba.org
Mon Apr 8 02:59:12 MDT 2013


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

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-build-Replace-usr-bin-env-python-with-passed-in-PYTH.patch
Type: text/x-patch
Size: 3881 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130408/2ddb3146/attachment.bin>


More information about the samba-technical mailing list