diff --git a/devel/py-inotify-simple/Makefile b/devel/py-inotify-simple/Makefile index cfc9a1acb3c4..4ac2edf6fa23 100644 --- a/devel/py-inotify-simple/Makefile +++ b/devel/py-inotify-simple/Makefile @@ -1,25 +1,26 @@ PORTNAME= inotify-simple PORTVERSION= 2.0.1 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} MAINTAINER= grembo@FreeBSD.org COMMENT= Simple wrapper around inotify WWW= https://github.com/chrisjbillington/inotify_simple LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} LIB_DEPENDS= libinotify.so:devel/libinotify USES= python USE_PYTHON= autoplist pep517 NO_ARCH= yes .include diff --git a/devel/py-inotify-simple/files/patch-inotify__simple.py b/devel/py-inotify-simple/files/patch-inotify__simple.py index 2b8929facf1a..28273592c933 100644 --- a/devel/py-inotify-simple/files/patch-inotify__simple.py +++ b/devel/py-inotify-simple/files/patch-inotify__simple.py @@ -1,11 +1,17 @@ --- inotify_simple.py.orig 2025-08-25 06:27:48 UTC +++ inotify_simple.py -@@ -76,7 +76,7 @@ class INotify(FileIO): +@@ -76,12 +76,12 @@ class INotify(FileIO): object is garbage collected or when `~inotify_simple.INotify.close` is called.""" - global _libc; _libc = _libc or CDLL(find_library('c'), use_errno=True) + global _libc; _libc = _libc or CDLL(find_library('inotify'), use_errno=True) flags = (not inheritable) * os.O_CLOEXEC | bool(nonblocking) * os.O_NONBLOCK fd = _libc_call(_libc.inotify_init1, flags) super().__init__(fd, mode='rb', closefd=closefd) + self._poller = poll() +- self._poller.register(self.fileno()) ++ self._poller.register(self.fileno(), POLLIN) + + def add_watch(self, path, mask): + """Wrapper around ``inotify_add_watch()``. Returns the watch