Bug 2154193 - libssh2-python: Unusable with Python 3
Summary: libssh2-python: Unusable with Python 3
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libssh2-python
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCHelpNeeded
TreeView+ depends on / blocked
 
Reported: 2022-12-16 09:18 UTC by Florian Weimer
Modified: 2023-09-26 09:30 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-09-26 09:30:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2022-12-16 09:18:57 UTC
>>> import libssh2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/python3.11/site-packages/libssh2.cpython-311-x86_64-linux-gnu.so: undefined symbol: PyCObject_FromVoidPtr

This shows up during the build as well:

src/ssh2.c: In function ‘PyInit_libssh2’:
src/ssh2.c:71:24: warning: implicit declaration of function ‘PyCObject_FromVoidPtr’; did you mean ‘PyLong_FromVoidPtr’? [-Wimplicit-function-declaration]
   71 |         c_api_object = PyCObject_FromVoidPtr((void *)SSH2_API, NULL);
      |                        ^~~~~~~~~~~~~~~~~~~~~
      |                        PyLong_FromVoidPtr
src/ssh2.c:71:22: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   71 |         c_api_object = PyCObject_FromVoidPtr((void *)SSH2_API, NULL);
      |                      ^

And even the first build with a supposed Python 3 port (libssh2-python-0.7.1-18.fc27) suffered from this, according to the Koji build logs.

The package will stop building once the Fedora compiler no longer accepts implicit function declarations.

Given the package is unusable, and no one has noticed in five years, it should probably just be retired.

Comment 1 Ben Cotton 2023-02-07 15:00:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Fedora Admin user for bugzilla script actions 2023-09-05 00:11:26 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Miro Hrončok 2023-09-26 09:30:49 UTC
Automation has figured out the package is retired in rawhide.

If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement


Note You need to log in before you can comment on or make changes to this bug.