Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 210866 Details for
Bug 271019
dev-python/visual-5.03_rc1 does not compile with dev-libs/boost-1.37.0-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
https://svn.boost.org/trac/boost/changeset/53731/sandbox-branches/bhy/py3k modified to apply cleanly against boost-1.39.0
boost_1_39_0-python-fix.patch (text/plain), 2.45 KB, created by
Michal Januszewski (RETIRED)
on 2009-11-22 11:00:20 UTC
(
hide
)
Description:
https://svn.boost.org/trac/boost/changeset/53731/sandbox-branches/bhy/py3k modified to apply cleanly against boost-1.39.0
Filename:
MIME Type:
Creator:
Michal Januszewski (RETIRED)
Created:
2009-11-22 11:00:20 UTC
Size:
2.45 KB
patch
obsolete
>diff -Naurp boost_1_39_0-orig/libs/python/src/object/class.cpp boost_1_39_0/libs/python/src/object/class.cpp >--- boost_1_39_0-orig/libs/python/src/object/class.cpp 2009-11-22 11:02:27.000000000 +0100 >+++ boost_1_39_0/libs/python/src/object/class.cpp 2009-11-22 11:04:21.000000000 +0100 >@@ -67,8 +67,44 @@ extern "C" > PyObject *prop_set; > PyObject *prop_del; > PyObject *prop_doc; >+ int getter_doc; > } propertyobject; > >+ // Copied from Python source and removed the part for setting docstring, >+ // since we don't have a setter for __doc__ and trying to set it will >+ // cause the init fail. >+ static int property_init(PyObject *self, PyObject *args, PyObject *kwds) >+ { >+ PyObject *get = NULL, *set = NULL, *del = NULL, *doc = NULL; >+ static char *kwlist[] = {"fget", "fset", "fdel", "doc", 0}; >+ propertyobject *prop = (propertyobject *)self; >+ >+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOOO:property", >+ kwlist, &get, &set, &del, &doc)) >+ return -1; >+ >+ if (get == Py_None) >+ get = NULL; >+ if (set == Py_None) >+ set = NULL; >+ if (del == Py_None) >+ del = NULL; >+ >+ Py_XINCREF(get); >+ Py_XINCREF(set); >+ Py_XINCREF(del); >+ Py_XINCREF(doc); >+ >+ prop->prop_get = get; >+ prop->prop_set = set; >+ prop->prop_del = del; >+ prop->prop_doc = doc; >+ prop->getter_doc = 0; >+ >+ return 0; >+ } >+ >+ > static PyObject * > static_data_descr_get(PyObject *self, PyObject * /*obj*/, PyObject * /*type*/) > { >@@ -109,7 +145,7 @@ static PyTypeObject static_data_object = > PyObject_HEAD_INIT(0)//&PyType_Type) > 0, > "Boost.Python.StaticProperty", >- PyType_Type.tp_basicsize, >+ sizeof(propertyobject), > 0, > 0, /* tp_dealloc */ > 0, /* tp_print */ >@@ -143,7 +179,7 @@ static PyTypeObject static_data_object = > static_data_descr_get, /* tp_descr_get */ > static_data_descr_set, /* tp_descr_set */ > 0, /* tp_dictoffset */ >- 0, /* tp_init */ >+ property_init, /* tp_init */ > 0, /* tp_alloc */ > 0, // filled in with type_new /* tp_new */ > 0, // filled in with __PyObject_GC_Del /* tp_free */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 271019
:
192262
|
199811
| 210866 |
211902
|
211906