Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512654 - [kde overlay] dev-util/kdevelop-python-4.9999 fails to build if system's python is not python2
Summary: [kde overlay] dev-util/kdevelop-python-4.9999 fails to build if system's pyth...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-07 15:05 UTC by Felix Tiede
Modified: 2014-06-12 16:04 UTC (History)
0 users

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


Attachments
Fixes ebuild to select python-2 during build phase. (kdevelop-python-4.9999.ebuild.patch,723 bytes, patch)
2014-06-07 15:11 UTC, Felix Tiede
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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