Package: msgpack-python Version: 0.1.10-1 Severity: normal Tags: patch
while rebuilding msgpack-python for squeeze-backports i noticed that the cython version in squeeze (0.12.1-1.1) can't build msgpack-python but the cython version in wheezy (0.15) works. I suggest bumping the build-dependency for cython to 0.15~. This is an exceprt from the build log with cython 0.12.1: cythoning msgpack/_msgpack.pyx to msgpack/_msgpack.c Error converting Pyrex file to C: ------------------------------------------------------------ ... # coding: utf-8 from cpython cimport * ^ ------------------------------------------------------------ /tmp/buildd/msgpack-python-0.1.10/msgpack/_msgpack.pyx:3:0: 'cpython.pxd' not found Error converting Pyrex file to C: ------------------------------------------------------------ ... ctypedef char* const_char_ptr "const char*" ctypedef char* const_void_ptr "const void*" ctypedef struct PyObject cdef int PyObject_AsReadBuffer(object o, const_void_ptr* buff, Py_ssize_t* buf_len) except -1 from libc.stdlib cimport * ^ ------------------------------------------------------------ /tmp/buildd/msgpack-python-0.1.10/msgpack/_msgpack.pyx:10:0: 'libc.stdlib.pxd' not found Error converting Pyrex file to C: ------------------------------------------------------------ ... ctypedef char* const_void_ptr "const void*" ctypedef struct PyObject cdef int PyObject_AsReadBuffer(object o, const_void_ptr* buff, Py_ssize_t* buf_len) except -1 from libc.stdlib cimport * from libc.string cimport * ^ ------------------------------------------------------------ /tmp/buildd/msgpack-python-0.1.10/msgpack/_msgpack.pyx:11:0: 'libc.string.pxd' not found Error converting Pyrex file to C: ------------------------------------------------------------ ... cdef char *encoding cdef char *unicode_errors def __cinit__(self): cdef int buf_size = 1024*1024 self.pk.buf = <char*> malloc(buf_size); ^ ------------------------------------------------------------ /tmp/buildd/msgpack-python-0.1.10/msgpack/_msgpack.pyx:55:36: undeclared name not builtin: malloc Error converting Pyrex file to C: ------------------------------------------------------------ ... self.pk.buf_size = buf_size self.pk.length = 0 def __init__(self, default=None, encoding='utf-8', unicode_errors='strict'): if default is not None: if not PyCallable_Check(default): ^ ------------------------------------------------------------ /tmp/buildd/msgpack-python-0.1.10/msgpack/_msgpack.pyx:63:35: undeclared name not builtin: PyCallable_Check Error converting Pyrex file to C: ------------------------------------------------------------ ... else: if isinstance(encoding, unicode): self._bencoding = encoding.encode('ascii') else: self._bencoding = encoding self.encoding = PyBytes_AsString(self._bencoding) ^ ------------------------------------------------------------ /tmp/buildd/msgpack-python-0.1.10/msgpack/_msgpack.pyx:74:44: undeclared name not builtin: PyBytes_AsString … -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.4-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages msgpack-python depends on: ii libc6 2.13-35 ii python 2.7.3-2 ii python-support 1.0.15 msgpack-python recommends no packages. msgpack-python suggests no packages. -- no debconf information
>From 1b72f83cd3df8ce93c6a5969d3556b013077143b Mon Sep 17 00:00:00 2001 From: Ulrich Dangel <u...@debian.org> Date: Mon, 23 Jul 2012 02:44:13 +0200 Subject: [PATCH] Update dependency for cython --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index c651ce9..1b9270f 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: msgpack-python Section: python Priority: optional Maintainer: Robert S. Edmonds <edmo...@debian.org> -Build-Depends: debhelper (>= 7.2.11~), cython, python-all-dev (>= 2.6.6-3~), python-support +Build-Depends: debhelper (>= 7.2.11~), cython (>= 0.15~) , python-all-dev (>= 2.6.6-3~), python-support Standards-Version: 3.9.2 Homepage: http://pypi.python.org/pypi/msgpack-python/ -- 1.7.10.4