Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410349

Summary: app-pda/libplist fails to build Cython binding when Python 3.2 is active one
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: Davide Pesavento <pesa>
Status: RESOLVED FIXED    
Severity: normal CC: alanh, godfath3rr, pda, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

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. ***