-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[I'm a new maintainer doing RC bug fixing as part of T&S; Michael is my AM.]

This bug is because Eunuchs is being built for Python 2.5, but hasn't
been ported according to PEP 353 "Using ssize_t as the index type"
<http://www.python.org/dev/peps/pep-0353/>.

A patch is attached. It makes the following changes to fix the FTBFS:

* typedef int Py_ssize_t if Python is a version that lacks Py_ssize_t
  (this has the correct semantics on <= 2.4, because in those versions,
  all objects that are now Py_ssize_t were int)

* In sendmsg.c use Py_ssize_t to receive the third argument of
  PyString_AsStringAndSize

and the following changes to improve 64-bit cleanness:

* #define PY_SSIZE_T_CLEAN so we get versions of PyArg_Parse, etc., that
  use a Py_ssize_t for the length part of the 's#' format

* Use Py_ssize_t in a couple of places where it's more correct than int

* Fix a related 64-bit-cleanness bug: in my_recvmsg() a pointer to size_t was
  used as if it was a pointer to int, which won't do the right thing on 64-bit
  platforms with 32-bit int

Michael: would you be willing to sponsor an NMU using this patch? Should
I be addressing the Normal severity bugs (which have patches) in the
same NMU?

Regards,
        Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net

iD8DBQFHE0EuWSc8zVUw7HYRApIDAKDp6KGyDG5L6HFLeIu7B0DqhGSiUACgpQlb
Lx2Z57auPHf00z2uKdFqBJk=
=LRSh
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to