[PATCH] Fix python/ldb errors, possibly including debian bug #808769

Andrew Bartlett abartlet at samba.org
Mon Jan 4 02:40:12 UTC 2016


I think I may have found the cause of the s390x issues blocking Samba
4.3 from debian testing.

It is probably the second of the issues I found, that is the int vs
Py_ssize_t handling in the python bindings.

To ensure we don't hit this issue again, I've changed to using
Py_ssize_t consistently and added a system/python.h header to set that
mode.

We may wish to put other samba/python compat macros in that file. 

I also remove some Python 2.4 compatibility code.

Please review/push!

Thanks,

Andrew Bartlett
-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba





-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ldb-Be-strict-about-talloc_memdup-and-passed-in-buff.patch
Type: text/x-patch
Size: 1395 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0001-ldb-Be-strict-about-talloc_memdup-and-passed-in-buff.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ldb-Explain-why-this-use-of-talloc_memdup-is-safe.patch
Type: text/x-patch
Size: 1253 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0002-ldb-Explain-why-this-use-of-talloc_memdup-is-safe.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ldb-validate-ldb_dn_set_component-input-parameters-e.patch
Type: text/x-patch
Size: 828 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0003-ldb-validate-ldb_dn_set_component-input-parameters-e.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Add-common-python.h-replacement-header.patch
Type: text/x-patch
Size: 2377 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0004-Add-common-python.h-replacement-header.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-ldb-Use-new-system-python.h-and-Py_ssize_t.patch
Type: text/x-patch
Size: 1707 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0005-ldb-Use-new-system-python.h-and-Py_ssize_t.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-ldb-Use-new-system-python.h-and-Py_ssize_t-consisten.patch
Type: text/x-patch
Size: 2078 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0005-ldb-Use-new-system-python.h-and-Py_ssize_t-consisten.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-lib-talloc-Use-system-python.h.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0006-lib-talloc-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-pidl-Use-system-python.h.patch
Type: text/x-patch
Size: 1348 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0007-pidl-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-pylibsmb-Use-system-python.h.patch
Type: text/x-patch
Size: 1079 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0008-pylibsmb-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-pymessaging-Use-system-python.h.patch
Type: text/x-patch
Size: 1275 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0009-pymessaging-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-pyregistry-Use-system-python.h.patch
Type: text/x-patch
Size: 1133 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0010-pyregistry-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-pyrpc-Use-system-python.h.patch
Type: text/x-patch
Size: 1104 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0011-pyrpc-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-ntvfs-python-Use-system-python.h.patch
Type: text/x-patch
Size: 2666 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0012-ntvfs-python-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-talloc-Use-system-python.h.patch
Type: text/x-patch
Size: 1188 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0013-talloc-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-python-Use-system-python.h.patch
Type: text/x-patch
Size: 12480 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0014-python-Use-system-python.h.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-python-Remove-Python-2.4-support-macros.patch
Type: text/x-patch
Size: 3290 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160104/305e770b/0015-python-Remove-Python-2.4-support-macros.bin>


More information about the samba-technical mailing list