Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758758 - net-irc/hexchat-2.14.3: python plugins broken with python 3.8
Summary: net-irc/hexchat-2.14.3: python plugins broken with python 3.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-06 09:48 UTC by nanikata15
Modified: 2020-12-25 13:16 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nanikata15 2020-12-06 09:48:25 UTC
Python plugins don't work when compiled with python later than 3.8. 

Reproducible: Always

Steps to Reproduce:
1. Switch system to python 3.8.
2. Emerge HexChat.
3. Launch HexChat.
Actual Results:  
The following error message is displayed in the server window:
AutoLoad failed for: /usr/lib64/hexchat/plugins/python.so
 /usr/lib64/hexchat/plugins/python.so: undefined symbol: PyExc_RuntimeError


The issue has been reported upstream [1] and fixed [2], which also worked for me. I did not need it, but there's an extra commit to possibly handle some edge cases [3].

[1] https://github.com/hexchat/hexchat/issues/2441
[2] https://github.com/hexchat/hexchat/commit/5deb69591992d4fede9090b60d3dc847612a4d60
[3] https://github.com/hexchat/hexchat/commit/3871fbaacb580e959f0d358cc18a76de6b8fd6a4
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-23 02:12:52 UTC
I was about to report this but you already hav!

https://github.com/hexchat/hexchat/commit/5deb69591992d4fede9090b60d3dc847612a4d60.patch solved the issue for someone who reported it to me.

Poly, could you apply these if it's alright with you?
Comment 2 Larry the Git Cow gentoo-dev 2020-12-25 13:16:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84a391d6e374314b5497e0027d87a5af62415989

commit 84a391d6e374314b5497e0027d87a5af62415989
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-12-25 13:16:33 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-12-25 13:16:40 +0000

    net-irc/hexchat: Fixed python plugins with python-3.8
    
    Closes: https://bugs.gentoo.org/758758
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../hexchat/files/hexchat-2.14.3-python38.patch    | 28 ++++++++++++++++++++++
 net-irc/hexchat/hexchat-2.14.3-r100.ebuild         |  6 ++++-
 2 files changed, 33 insertions(+), 1 deletion(-)