bugWeeChat - Bugs: bug #36835, weechat-3.7 and weechat-3.8 have...

 
 

bug #36835: weechat-3.7 and weechat-3.8 have crippled python3 support

Submitted by:  None
Submitted on:  Thu 12 Jul 2012 07:58:38 PM UTC  
 
Category:  plugins Severity:  3 - Normal
Item Group:  compile/install Status:  Fixed
Privacy:  Public Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  0.3.8
IRC nick:  tomboy64

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 12 Jul 2012 07:58:38 PM UTC, original submission:  

I run weechat on gentoo. Gentoo has every software item compiled on the host system via build-scripts.

Every gentoo user has at least one version of python installed as it's the language our package-manager is written in. Many users also have multiple versions of python installed since it's allowed to be slotted.

Now there appears to be a bug in the python-detection system (FindPython.cmake) which exhibits the following, if the main (system) python is set to python-3.2 and in parallel python-2.7 is installed:
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

Adding python3.2 in the file FindPython.cmake into lines
NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2
circumvents the problem, but is not a real solution either.

In my opinion it would be best if weechat could detect (upon compilation or run-time) which python versions are installed, build the plugin against all of them and then choose a suitable one for the script which requests python-support. For now I patched the package for gentoo to use a user-supplied option for compilation.

The respective bug-report can be found here:
https://bugs.gentoo.org/show_bug.cgi?id=426330

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-29 flashcode Open/ClosedOpen => Closed
    2012-07-17 flashcode StatusNone => Fixed
        Assigned toNone => flashcode

    Back to the top


    Powered by Savane 3.5