Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319799 - dev-python/pygtksourceview-2.8.0.ebuild breaks during configure when Python 3 is set
Summary: dev-python/pygtksourceview-2.8.0.ebuild breaks during configure when Python 3...
Status: RESOLVED DUPLICATE of bug 345521
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-15 06:43 UTC by Arc Riley
Modified: 2010-12-09 15:41 UTC (History)
1 user (show)

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


Attachments
ebuild.diff (ebuild.diff,1.18 KB, text/plain)
2010-05-30 00:09 UTC, David Abbott (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arc Riley 2010-05-15 06:43:54 UTC
The ebuild does not use the Python ABI functionality of Portage nor does it specify which Python version to build with.  By default, this package's build system is grabbing whatever is /usr/bin/python and then breaks during a later test:

checking for a Python interpreter with version >= 2.2... python
checking for python... /usr/bin/python
checking for python version... 3.1
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python3.1/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python3.1
/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

Manually specifying each Python version for configure should solve this problem.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-05-18 10:13:22 UTC
like most other gnome packages, yes we know, thanks.
Comment 2 David Abbott (RETIRED) gentoo-dev 2010-05-30 00:09:45 UTC
Created attachment 233469 [details]
ebuild.diff

This enables it to install with python 3 set as active python version.
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-06-03 10:23:21 UTC
(In reply to comment #2)
> Created an attachment (id=233469) [details]
> ebuild.diff

This patch applies to the 2.10.0 version in the gnome overlay, too.
I would drop some versions infos which were met by all tree version additionally.

Thanks for the patch dabott!

Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-08 23:05:52 UTC

*** This bug has been marked as a duplicate of bug 345521 ***