With USE="python" net-analyzer/rrdtool-1.3.8 successfully installs its Python module on a system with Python3 as the default interpreter - using the package supplied configure. But the eautoconf'd configure in 1.3.8-r1 changes this: checking for a Python interpreter with version >= 2.3... python checking for python... /usr/bin/python checking for python version... 3.2 checking for python platform... linux2 checking for python script directory... ${prefix}/lib64/python3.2/site-packages checking for python extension module directory... ${exec_prefix}/lib64/python3.2/site-packages checking for headers required to compile python extensions... File "<string>", line 1 import sys; print sys.prefix ^ SyntaxError: invalid syntax File "<string>", line 1 import sys; print sys.exec_prefix ^ SyntaxError: invalid syntax not found configure: WARNING: could not find Python headers And it is similar with 1.3.9 and 1.4.5-r1.
Created attachment 286889 [details, diff] Patch to ebuild Patch that fixes this for me with net-analyzer/rrdtool-1.3.9. There is perhaps a more complete solution in Bug 315085.
Fixed: 02 Oct 2011; Tim Harder <radhermit@gentoo.org> rrdtool-1.4.5-r1.ebuild: Improve python support (bug #315085 by Arfrever)