git: bc369d345016 - main - devel/py-libevdev: add missing dependency
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Feb 2025 10:37:03 UTC
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bc369d345016f2f02e37c51dd1ef48de88907b1b
commit bc369d345016f2f02e37c51dd1ef48de88907b1b
Author: Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2025-02-17 10:28:43 +0000
Commit: Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2025-02-17 10:34:46 +0000
devel/py-libevdev: add missing dependency
>>> import libevdev
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.11/site-packages/libevdev/__init__.py", line 23, in <module>
from .device import Device, InputAbsInfo
File "/usr/local/lib/python3.11/site-packages/libevdev/device.py", line 29, in <module>
from .event import InputEvent
File "/usr/local/lib/python3.11/site-packages/libevdev/event.py", line 23, in <module>
from .const import EventType, EventCode
File "/usr/local/lib/python3.11/site-packages/libevdev/const.py", line 427, in <module>
_load_consts()
File "/usr/local/lib/python3.11/site-packages/libevdev/const.py", line 352, in _load_consts
Libevdev() # classmethods, need to make sure it's loaded at once
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/libevdev/_clib.py", line 395, in __init__
super(Libevdev, self).__init__()
File "/usr/local/lib/python3.11/site-packages/libevdev/_clib.py", line 76, in __init__
self._load()
File "/usr/local/lib/python3.11/site-packages/libevdev/_clib.py", line 83, in _load
cls._lib = cls._cdll()
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/libevdev/_clib.py", line 123, in _cdll
return ctypes.CDLL("libevdev.so.2", use_errno=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/ctypes/__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: Shared object "libevdev.so.2" not found, required by "python3.11"
Reported by: vishwin
---
devel/py-libevdev/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/devel/py-libevdev/Makefile b/devel/py-libevdev/Makefile
index d0e00226b29f..d7c17514e8f7 100644
--- a/devel/py-libevdev/Makefile
+++ b/devel/py-libevdev/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libevdev
PORTVERSION= 0.11
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,6 +12,8 @@ WWW= https://pypi.org/project/libevdev/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
+LIB_DEPENDS= libevdev.so:devel/libevdev
+
USES= python
USE_PYTHON= autoplist distutils