The python detection mechanism in weechat is broken. This results the following message at startup of weechat: 15:52:40 =!= | Fehler: Kann Erweiterung "/usr/lib64/weechat/plugins/python.so" nicht installieren: /usr/lib64/weechat/plugins/python.so: undefined symbol: PyBytes_AsString My system-python is set to 3.2 (via eselect); i still have python-2.7 installed. My reasoning behind stating that their detection mechanism is broken: ebuild /usr/portage/net-irc/weechat-0.3.8/weechat-0.3.8.ebuild unpack && cd /var/tmp/portage/net-irc/weechat-0.3.8/work/weechat-0.3.8 && cmake . -LA | grep -i python gives: PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python PYTHON_INCLUDE_PATH:PATH=/usr/include/python3.2 PYTHON_LIBRARY:FILEPATH=/usr/lib64/libpython2.7.so Quickfix: eselect to python-2, emerge, then eselect back to python3. though probably python-updater will break it again upon next run. PS: I will file a bug with weechat on savannah as well. Reproducible: Always
Created attachment 318012 [details, diff] patch proposal for weechat.ebuild I fixed weechat to compile the python plugin properly against a USE-flag chosen implementation of python.
Created attachment 318014 [details] full ebuild same as the patch, just as working ebuild.
Created attachment 318026 [details, diff] patch proposal for weechat-0.3.8.ebuild updated version, patch against weechat-0.3.8.ebuild
Created attachment 318028 [details] full ebuild updated version
Created attachment 318030 [details, diff] patch proposal for weechat-0.3.8.ebuild sorry, i striked the last one out. here's the patch again.
Reassigning to @python as I myself don't have py3 anywhere and don't want to fck up anything. Could anyone of you guys look on this and tell me what to do? Thanks
Update: upstream has fixed build in trunk to default to python2. Still there's no support in weechat's build system to choose for the python version except for my hack.
Ok I updated live ebuild and 0.3.8 to always pick the python2 until decided otherwise.
Marking as fixed for 4.0 (different fashion with python-single-r1). Open a new bug if you find some problems with it please.