From nobody Mon Feb 19 19:11:52 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TdsbY0qCxz545Ll; Mon, 19 Feb 2024 19:11:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TdsbX57zLz49v6; Mon, 19 Feb 2024 19:11:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708369912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l5w5DiYpunmMQtd1Xt+p7gqFwyUca/ukiCK+mep/EpA=; b=siG122oLnYWb6ik6A6pPioYOPZyjU6rr5WMDMyXIH23zLYLOimTD9LSbhgQCtMAsx9qC3F kcK7UKrhmOlKnuP1kthMoG2W7oc0dNBWiEk8ljUKiVS2jG7aGiA6J58jtDJqL4NNroKrOS 0kvah+f3piaXiZE6U0MZ1kj/sQdMP57QWA4K4UAnQxEMyo9iiOaagegXz+gPgfT1s+Pij7 mewoTNa3OV4FZFRxBa2jC6j3Tiag3wiI8NZ5H71JCWXA/Vy8aDyo9Jn6LPb7Cn2pRSULSk A3tU4OeD7v++A9Etz7dVzRkiM/Z5/0GG3m0M5pVAphCMfgZ19pmyNOH2VSFyJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708369912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l5w5DiYpunmMQtd1Xt+p7gqFwyUca/ukiCK+mep/EpA=; b=R8oy4Gj9h4bhXnHGmmymNt3uX4b2CC90mwpyHOo1x9eVRpxhfVHqQJqTcPIR5maLa0qOO3 oTtgZVf6fFddGqzU7A93yYzgRVqJbEFSFXEP6ZUlYXaZIgt7gkGdvnMwEK94cbS2CDT/O6 U74q728JXjhFMgrl17iVaNKgxdE7uJuOUEvVl7Gf4FuaBxxg+b+Sxn9ZVXm3B2Pz+yToS+ Zxv83igQSPCshGFmhgtkz7OtYw/0rxE254loermhaOWL5Aqqd7K2bCcTais7aeBfZy9gx6 QOuSl4oG/kfQOSzipy/m4FRYhUQQlT0E+JmN20h87w2tBK34LtVklMto/pyIXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708369912; a=rsa-sha256; cv=none; b=tcy5lBWR5QJA8mn0aJGfW+1j8KwTFQdYXPXXRkafRH6IYlvp4JP8o+Lg5wtvHwdYcQlbtW BheXAp9MAbPa3HB1rEQhsc/pKCeEoaD0AzPga51IAcT4NCifCfVTRsKRhQib/smNyXLb8f 8WEnHrEjb//ad5WPx41L+3Y/P2igC7wEhYaQhzbExTYV5Apw0CaLTAy6Ceyez9ee0AeWOY XV9xeJYZAZwSSfgGkwq3avIbzqesAYd7jgN8L7ba7OhUzi1aJG9ghBsXdPoBwfHqOJOI8o UGs+dKWHNLq27hb7mruTPU0FEL7tVvesurCT7JOWQh3HaoffbAV2fzAPwYTzTg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TdsbX4Bqvzmlq; Mon, 19 Feb 2024 19:11:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41JJBqtZ047130; Mon, 19 Feb 2024 19:11:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JJBqYC047127; Mon, 19 Feb 2024 19:11:52 GMT (envelope-from git) Date: Mon, 19 Feb 2024 19:11:52 GMT Message-Id: <202402191911.41JJBqYC047127@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Michael Gmelin Subject: git: ab060a910e25 - main - devel/py-inotify-simple: Bugfix List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: grembo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ab060a910e251cfbc4a7f709e26e8852a8bd4bde Auto-Submitted: auto-generated The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=ab060a910e251cfbc4a7f709e26e8852a8bd4bde commit ab060a910e251cfbc4a7f709e26e8852a8bd4bde Author: Michael Gmelin AuthorDate: 2024-02-19 17:32:48 +0000 Commit: Michael Gmelin CommitDate: 2024-02-19 19:10:25 +0000 devel/py-inotify-simple: Bugfix --- devel/py-inotify-simple/Makefile | 1 + .../files/patch-inotify__simple.py | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/devel/py-inotify-simple/Makefile b/devel/py-inotify-simple/Makefile index 8b558c4fd177..012aadf736b6 100644 --- a/devel/py-inotify-simple/Makefile +++ b/devel/py-inotify-simple/Makefile @@ -1,5 +1,6 @@ PORTNAME= inotify-simple PORTVERSION= 1.3.5 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-inotify-simple/files/patch-inotify__simple.py b/devel/py-inotify-simple/files/patch-inotify__simple.py index 6f4492d46d69..346f1722618b 100644 --- a/devel/py-inotify-simple/files/patch-inotify__simple.py +++ b/devel/py-inotify-simple/files/patch-inotify__simple.py @@ -1,6 +1,14 @@ ---- inotify_simple.py.orig 2024-02-11 00:28:11 UTC +--- inotify_simple.py.orig 2020-08-06 00:20:49 UTC +++ inotify_simple.py -@@ -82,7 +82,7 @@ class INotify(FileIO): +@@ -4,6 +4,7 @@ from enum import Enum, IntEnum + from collections import namedtuple + from struct import unpack_from, calcsize + from select import poll ++from select import POLLIN + from time import sleep + from ctypes import CDLL, get_errno, c_int + from ctypes.util import find_library +@@ -82,7 +83,7 @@ class INotify(FileIO): manually with ``os.read(fd)``) to raise ``BlockingIOError`` if no data is available.""" try: @@ -9,3 +17,12 @@ except RuntimeError: # Python on Synology NASs raises a RuntimeError libc_so = None global _libc; _libc = _libc or CDLL(libc_so or 'libc.so.6', use_errno=True) +@@ -90,7 +91,7 @@ class INotify(FileIO): + flags = (not inheritable) * O_CLOEXEC | bool(nonblocking) * os.O_NONBLOCK + FileIO.__init__(self, _libc_call(_libc.inotify_init1, flags), mode='rb') + 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