Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367245 - dev-libs/boost-1.46.1 fails to build with Python 3.2
Summary: dev-libs/boost-1.46.1 fails to build with Python 3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: python-3.2
  Show dependency tree
 
Reported: 2011-05-14 14:05 UTC by James Harvey
Modified: 2011-05-15 11:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild modified to apply patch (boost-1.46.1-r1.ebuild,15.76 KB, text/plain)
2011-05-14 14:05 UTC, James Harvey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Harvey 2011-05-14 14:05:13 UTC
Created attachment 273199 [details]
Ebuild modified to apply patch

Boost fails to compile when the system-wide python implementation is set to version 3.2

To reproduce:
1. Install python3.2
2. eselect python set python3.2
3. emerge boost

Build log shows two instances of this error:

libs/python/src/converter/builtin_converters.cpp:436:32: error: cannot convert 'PyUnicodeObject*' to 'PyObject*' for argument '1' to 'Py_ssize_t PyUnicodeUCS4_AsWideChar(PyObject*, wchar_t*, Py_ssize_t)'

Upstream boost developers have issued a patch for python3.2 at the link below.  Modifying the 1.46.1 ebuild to apply the patch resulted in a successful build.

http://boost.2283326.n4.nabble.com/Python-3-2-convert-convert-PyObject-to-PyUnicodeObject-td3429936.html
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2011-05-15 11:03:29 UTC
Fixed