boost.parameter includes one of the python headers which are removed without the python useflag in src_install. The following code is enough to reproduce the problem: #include <boost/parameter.hpp> int main() {} I'm currently not sure what the proper way to fix this is. I'll try not to remove the headers and see if the problem goes away (which would depend on boost.parameter actually using the python binaries or not).
I think this is fixed in 1.41-r3 and 1.42.
This is indeed fixed in recent versions.