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

Bug 350098

Summary: media-tv/xbmc-10.0 doesn't detect Python 2.7
Product: Gentoo Linux Reporter: Tom Flair <praetor.zero>
Component: New packagesAssignee: Gentoo Xbox project <xbox>
Status: RESOLVED FIXED    
Severity: normal CC: leho, pberuto
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://forum.xbmc.org/showthread.php?t=81047
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292401    
Attachments: Changes python dependency
upstream patch for python-2.7

Description Tom Flair 2010-12-29 23:07:09 UTC
media-tv/xbmc-10.0 should depend on <=dev-lang/python-2.6

Reproducible: Always

Steps to Reproduce:
At present, XBMC will not build without python 2.4, 2.5 or 2.6 present.  For those running unstable that have upgraded to 2.7 and removed 2.6, XBMC fails to configure.  The ebuild should require anything equal to, or lesser than 2.6.

1.  emerge -aC dev-lang/python:2.6
2.  emerge =media-tv/xbmc-10.0
3.  Watch it fail at
checking for main in -lpython2.6... no
checking for main in -lpython2.5... no
checking for main in -lpython2.4... no
configure: error: Could not find a required library. Please see the README for your platform.
Comment 1 Tom Flair 2010-12-29 23:09:04 UTC
Created attachment 258408 [details, diff]
Changes python dependency

Changes python dependency from   >=dev-lang/python-2.4  to <=dev-lang/python-2.6 .

We currently have 2.4, 2.5 and 2.6 in the tree, all fit the requirement.

http://forum.xbmc.org/showthread.php?t=81047
http://trac.xbmc.org/ticket/7991
Comment 2 Rafał Mużyło 2010-12-30 00:55:52 UTC
As I see it, unless there's a real (i.e. syntax) incompatibility with python 2.7,
the patch, that's needed should be for configure check.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-12-30 08:46:24 UTC
And <=dev-lang/python-2.6 is wrong anyway as that would exclude any 2.6.x release.
If this for any reason cannot be fixed in configure, rather use <dev-lang/python-2.7 
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-30 15:50:35 UTC

*** This bug has been marked as a duplicate of bug 313981 ***
Comment 5 SpanKY gentoo-dev 2010-12-31 18:20:53 UTC
not a duplicate ... Bug 313981 is about python.eclass cruft
Comment 6 SpanKY gentoo-dev 2010-12-31 18:21:26 UTC
meant to re-open ...
Comment 7 SpanKY gentoo-dev 2010-12-31 18:22:41 UTC
Comment on attachment 258408 [details, diff]
Changes python dependency

i'd rather we fix the code than force old python versions
Comment 8 SpanKY gentoo-dev 2010-12-31 18:50:50 UTC
Created attachment 258551 [details, diff]
upstream patch for python-2.7

anyone feel like verifying this works for them ?
Comment 9 Tom Flair 2010-12-31 20:19:58 UTC
(In reply to comment #8)
> Created an attachment (id=258551) [details]
> upstream patch for python-2.7
> 
> anyone feel like verifying this works for them ?
> 

The patch allows xbmc to compile and install cleanly without python-2.6 present.  I'll throw it on a real install next.
Comment 10 Tom Flair 2011-01-01 01:30:38 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Created an attachment (id=258551) [details] [details]
> > upstream patch for python-2.7
> > 
> > anyone feel like verifying this works for them ?
> > 
> 
> The patch allows xbmc to compile and install cleanly without python-2.6
> present.  I'll throw it on a real install next.
> 


Installed on two machines and appears to be functional without any obvious faults.  This is my 2nd+3rd time ever launching XBMC, but everything I've played with works on each install.
Comment 11 SpanKY gentoo-dev 2011-01-01 21:30:55 UTC
thanks for testing ... ive added the patch to xbmx-10.0 now
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2011-01-02 13:59:10 UTC
*** Bug 350370 has been marked as a duplicate of this bug. ***
Comment 13 Lukas Miczka 2011-01-03 16:44:17 UTC
Can you add this patch to xbmc-9999 ebuild?
Comment 14 SpanKY gentoo-dev 2011-01-03 21:05:53 UTC
no ... it'll get fixed upstream eventually