ports/devel/py-watchdog/files/patch-src_watchdog_observers_inotify__c.py
Robert Kruus c8332032ae
devel/py-watchdog: add a patch to enable inotify
- The port does not currently work with the inotify observer
  as the inotify functions are no longer in the base system/libc.
  The patch adds a lib_depend on devel/libinotify and patches
  the appropriate file in the port.
- Bump PORTREVISION
PR:		260939
Reported by:	Robert Kruss <rob.kruus@gmail.com>
2022-11-20 15:24:35 +01:00

11 lines
409 B
Python

--- src/watchdog/observers/inotify_c.py.orig 2022-06-10 10:11:14 UTC
+++ src/watchdog/observers/inotify_c.py
@@ -25,7 +25,7 @@ from functools import reduce
from ctypes import c_int, c_char_p, c_uint32
from watchdog.utils import UnsupportedLibc
-libc = ctypes.CDLL(None)
+libc = ctypes.CDLL('libinotify.so')
if not hasattr(libc, 'inotify_init') or \
not hasattr(libc, 'inotify_add_watch') or \