From 357c915ed5c4de72b2e4e01d7b2a70434c755662 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Feb 2014 12:13:21 +0100 Subject: [PATCH] python3: add patch for musl (will be submitted upstream). --- .../python3/patches/posix_close_clash.patch | 20 +++++++++++++++++++ srcpkgs/python3/template | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python3/patches/posix_close_clash.patch diff --git a/srcpkgs/python3/patches/posix_close_clash.patch b/srcpkgs/python3/patches/posix_close_clash.patch new file mode 100644 index 00000000000..3b307bc48b7 --- /dev/null +++ b/srcpkgs/python3/patches/posix_close_clash.patch @@ -0,0 +1,20 @@ +--- Modules/posixmodule.c.orig 2014-02-11 12:02:02.194327264 +0100 ++++ Modules/posixmodule.c 2014-02-11 12:03:09.665777135 +0100 +@@ -7846,7 +7846,7 @@ PyDoc_STRVAR(posix_close__doc__, + Close a file descriptor (for low level IO)."); + + static PyObject * +-posix_close(PyObject *self, PyObject *args) ++posix_closex(PyObject *self, PyObject *args) + { + int fd, res; + if (!PyArg_ParseTuple(args, "i:close", &fd)) +@@ -11252,7 +11252,7 @@ static PyMethodDef posix_methods[] = { + {"open", (PyCFunction)posix_open,\ + METH_VARARGS | METH_KEYWORDS, + posix_open__doc__}, +- {"close", posix_close, METH_VARARGS, posix_close__doc__}, ++ {"close", posix_closex, METH_VARARGS, posix_close__doc__}, + {"closerange", posix_closerange, METH_VARARGS, posix_closerange__doc__}, + {"device_encoding", device_encoding, METH_VARARGS, device_encoding__doc__}, + {"dup", posix_dup, METH_VARARGS, posix_dup__doc__}, diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template index f7032363b34..7b4fd9ca02c 100644 --- a/srcpkgs/python3/template +++ b/srcpkgs/python3/template @@ -21,7 +21,8 @@ pre_configure() { } if [ "$CROSS_BUILD" ]; then - msg_error "$pkgname cannot be cross build.\n" + msg_re "${pkgname}-${version} cannot be cross compiled right now.\n" + exit 0 fi # Native build