Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444694 - <mail-client/evolution-3.6 with USE=python fails to configure with python-3.2 as system interpreter
Summary: <mail-client/evolution-3.6 with USE=python fails to configure with python-3.2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-25 13:59 UTC by Jens Kasten
Modified: 2012-11-26 16:09 UTC (History)
0 users

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


Attachments
emerge-info (emerge_info.txt,4.60 KB, text/plain)
2012-11-25 22:17 UTC, Jens Kasten
Details
evolution build.log (build.log,15.91 KB, text/plain)
2012-11-25 22:24 UTC, Jens Kasten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Kasten 2012-11-25 13:59:26 UTC
Building from gentoo stage3 with desktop-gnome profile evolution fails.

Output:
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18

	

checking for python... /usr/bin/python
checking for python compile flags...   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
  File "<string>", line 1
    import sys ; print sys.version[0:3]
                         ^
SyntaxError: invalid syntax
  File "<string>", line 1
    import sys ; print sys.version[0:2]
                         ^
SyntaxError: invalid syntax
configure: error: Can't find Python.h

Switch to Python 2.7 than evolution compiles.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-11-25 22:06:34 UTC
please add your emerge --info and the build.log as suggested by bugzilla/portage.
Comment 2 Jens Kasten 2012-11-25 22:17:24 UTC
Created attachment 330582 [details]
emerge-info
Comment 3 Jens Kasten 2012-11-25 22:24:28 UTC
Created attachment 330584 [details]
evolution build.log
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-11-26 08:45:01 UTC
Did you run an emerge --sync before starting to build anything ? From the look of the ebuild it should automatically select python2 for build and it appears to work here.
Comment 5 Jens Kasten 2012-11-26 11:50:36 UTC
I did it now. But the same result.
emerge --sync running always on the local fileserver from where I get the portage tree.
Comment 6 Benjamin Block 2012-11-26 15:39:08 UTC
(In reply to comment #0)
> 
> checking for python... /usr/bin/python
> checking for python compile flags...   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
>   File "<string>", line 1
>     import sys ; print sys.version[0:3]
>                          ^
> SyntaxError: invalid syntax
>   File "<string>", line 1
>     import sys ; print sys.version[0:2]
>                          ^
> SyntaxError: invalid syntax
> configure: error: Can't find Python.h
> 

Same thing happens for me. Sync'ed yesterday afternoon the last time.
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-11-26 16:09:08 UTC
Fixed in cvs, thanks for reporting. Evolution-3.4 and earlier used a non-standard way of detecting the python interpreter, so to force it to use the correct python, we need to add pythonpath="$(PYTHON -2 -a)" to configure arguments.

>  26 Nov 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  evolution-2.32.3-r1.ebuild, evolution-3.2.3-r1.ebuild,
>  evolution-3.4.4.ebuild:
>  Fix build failure with python3 as system interpreter (bug #444694, thanks to
>  Jens Kasten).