summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-05-15 11:03:33 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-05-15 11:03:33 +0000
commit09f8ef988a653f7938c155c106c0581d64095f7b (patch)
treeab52d97eb6c690876a526cd79c3885b64db462c5 /dev-libs/boost/files/boost-1.46.1-python32.patch
parentRevert QA removal, bug #324961, thank Dustin Polke for report. (diff)
downloadgentoo-2-09f8ef988a653f7938c155c106c0581d64095f7b.tar.gz
gentoo-2-09f8ef988a653f7938c155c106c0581d64095f7b.tar.bz2
gentoo-2-09f8ef988a653f7938c155c106c0581d64095f7b.zip
Add patch to build against python 3.2. Bug #367245
(Portage version: 2.1.9.47/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/boost/files/boost-1.46.1-python32.patch')
-rw-r--r--dev-libs/boost/files/boost-1.46.1-python32.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/boost/files/boost-1.46.1-python32.patch b/dev-libs/boost/files/boost-1.46.1-python32.patch
new file mode 100644
index 000000000000..5e0583af0f6e
--- /dev/null
+++ b/dev-libs/boost/files/boost-1.46.1-python32.patch
@@ -0,0 +1,16 @@
+Index: libs/python/src/converter/builtin_converters.cpp
+===================================================================
+--- libs/python/src/converter/builtin_converters.cpp (revision 67279)
++++ libs/python/src/converter/builtin_converters.cpp (working copy)
+@@ -431,7 +431,11 @@
+ if (!result.empty())
+ {
+ int err = PyUnicode_AsWideChar(
++#if PY_VERSION_HEX >= 0x03020000
++ intermediate
++#else
+ (PyUnicodeObject *)intermediate
++#endif
+ , &result[0]
+ , result.size());
+