This is a partial cherry-pick of 76c6f52e8 but modified to remove the earlier FreeBSD modifications introduced in 5c8ac69f7.
The problem was that the python3.8 pkgconfig moved the libdir variable from python3.8 to python3.8-embed so this needs to be checked first in cmake/FindPython.cmake ** Patch added: "python3: correctly find and link against libpython3.8" https://bugs.launchpad.net/ubuntu/+source/weechat/+bug/1866065/+attachment/5353078/+files/lp1866065-python3-linking.patch ** Changed in: weechat (Ubuntu) Assignee: (unassigned) => TJ (tj) ** Changed in: weechat (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1866065 Title: weechat python.so not linked against libpython3 (undefined symbol: _Py_NoneStruct) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/weechat/+bug/1866065/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs