Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 367245

Summary: dev-libs/boost-1.46.1 fails to build with Python 3.2
Product: Gentoo Linux Reporter: James Harvey <lothmordor>
Component: [OLD] LibraryAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED FIXED    
Severity: normal CC: cpp+disabled, hwoarang, SebastianLuther
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292402    
Attachments: Ebuild modified to apply patch

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