Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383485 - >net-analyzer/rrdtool-1.3.8 fails to install Python module if Python3 is default
Summary: >net-analyzer/rrdtool-1.3.8 fails to install Python module if Python3 is default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-18 12:20 UTC by Chris Mayo
Modified: 2011-10-16 18:45 UTC (History)
0 users

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


Attachments
Patch to ebuild (rrdtool-1.3.9.ebuild.py3.patch,787 bytes, patch)
2011-09-18 12:21 UTC, Chris Mayo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2011-09-18 12:20:46 UTC
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.
Comment 1 Chris Mayo 2011-09-18 12:21:45 UTC
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.
Comment 2 Chris Mayo 2011-10-16 18:45:39 UTC
Fixed:

02 Oct 2011; Tim Harder <radhermit@gentoo.org> rrdtool-1.4.5-r1.ebuild:
  Improve python support (bug #315085 by Arfrever)