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

Bug 512654

Summary: [kde overlay] dev-util/kdevelop-python-4.9999 fails to build if system's python is not python2
Product: Gentoo Linux Reporter: Felix Tiede <info>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.kde.org/show_bug.cgi?id=335817
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes ebuild to select python-2 during build phase.

Description Felix Tiede 2014-06-07 15:05:45 UTC
As described in the linked bug a change was introduced into kdevelop-python which causes the build to fail if the system's python version is not 2.x.

I am proposing to change dev-util/kdevelop-python-4.9999 ebuild to locally select python-2 during build phase. 

Reproducible: Always

Steps to Reproduce:
1. Install dev-lang/python-2.x and dev-lang/python-3.x parallel.
2. Select python-3 as system's default python interpreter.
3. Build dev-util/kdevelop-python-4.9999.
Actual Results:  
Build error due to a syntax error caused by python version mismatch.

Expected Results:  
Clean build.
Comment 1 Felix Tiede 2014-06-07 15:11:27 UTC
Created attachment 378426 [details, diff]
Fixes ebuild to select python-2 during build phase.

This is a patch to the ebuild and builds as clean as if python-2 is selected as system's default python interpreter. It might lack a (R)DEPEND definition to definitely depend on dev-lang/python-2, so this should be looked into.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2014-06-12 16:04:59 UTC
Thanks, fixed in git.

http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=626e983a151a3f1c2e0f348c6de624d8bb97fc9e