Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538220 - net-irc/weechat USE=python PYTHON_SINGLE_TARGET=python3_* should set ENABLE_PYTHON3 variable
Summary: net-irc/weechat USE=python PYTHON_SINGLE_TARGET=python3_* should set ENABLE_P...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Low normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-01-30 04:57 UTC by Shiz
Modified: 2015-04-01 20:53 UTC (History)
3 users (show)

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


Attachments
Ebuild fix to make sure the Python plugin is built on Python 3.x. (weechat-fix-python3-plugin-build.patch,419 bytes, patch)
2015-01-30 04:57 UTC, Shiz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shiz 2015-01-30 04:57:28 UTC
Created attachment 395184 [details, diff]
Ebuild fix to make sure the Python plugin is built on Python 3.x.

When building net-irc/weechat (with any ebuild version currently in the tree) with USE=python and PYTHON_SINGLE_TARGET=python3_*, a Python plugin ($PREFIX/lib/weechat/plugins/python.so) will not be produced as a result of the ebuild not activating the CMake ENABLE_PYTHON3 flag that makes WeeChat accept a Python 3.x interpreter for the Python plugin.

Attached is a patch to weechat-9999.ebuild that will make sure -DENABLE_PYTHON3 is passed to CMake when PYTHON_SINGLE_TARGET is of the 3.x family. It can be trivially backported to the earlier-version ebuilds.
Comment 1 Shiz 2015-01-30 05:10:26 UTC
This bug only surfaces on a system with no Python 2.x interpreter in its path - else, regardless of PYTHON_SINGLE_TARGET and friends, the build system will happily use that.
Comment 2 Tim Harder gentoo-dev 2015-04-01 20:53:25 UTC
Thanks, fixed in 1.1.1 and 9999.