Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410349 - app-pda/libplist fails to build Cython binding when Python 3.2 is active one
Summary: app-pda/libplist fails to build Cython binding when Python 3.2 is active one
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Davide Pesavento
URL:
Whiteboard:
Keywords:
: 412367 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-31 15:50 UTC by Samuli Suominen (RETIRED)
Modified: 2012-04-17 17:09 UTC (History)
4 users (show)

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


Attachments
build.log (app-pda:libplist-1.8-r1:20120331-154552.log,8.66 KB, text/plain)
2012-03-31 15:50 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2012-03-31 15:50:52 UTC
Created attachment 307303 [details]
build.log

I will attach `emerge --info` if you really want it, but this is really a case of:

Not working:

# eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *

Working:

# eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2

It looks like the python_set_active_version 2 in pkg_setup() is not completely respected.

This is now important with >=libplist-1.8-r1 where USE="python" is for Cython for compability with >=libimobiledevice-1.1.2. 

As in, users will notice.
Comment 1 Davide Pesavento gentoo-dev 2012-03-31 17:58:02 UTC
This can be easily worked around with a sed in ${S}/cmake/modules/FindCython.cmake

Anyway, the issue is that the wrapper /usr/bin/cython is called, the wrapper extracts the active python version from 'eselect python show' (3.2 in this case) and then proceeds to call /usr/bin/cython-3.2, which fails.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-03-31 18:13:32 UTC
The correct fix is:
http://code.google.com/p/gentoo-progress/source/detail?r=1947
Comment 3 Mike Gilbert gentoo-dev 2012-03-31 19:15:47 UTC
+*cython-0.15.1-r1 (31 Mar 2012)
+*cython-0.14.1-r1 (31 Mar 2012)
+
+  31 Mar 2012; Mike Gilbert <floppym@gentoo.org> +cython-0.14.1-r1.ebuild,
+  +cython-0.15.1-r1.ebuild:
+  Make cython wrapper respect EPYTHON. Ported from Progress.
+
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-03-31 19:17:31 UTC
Works fine with cython-0.15.1-r1 now.   Thanks guys!
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-04-17 17:09:23 UTC
*** Bug 412367 has been marked as a duplicate of this bug. ***