Bug 260939 - Patch to devel/py-watchdog to enable inotify
Summary: Patch to devel/py-watchdog to enable inotify
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-04 21:04 UTC by Robert Kruus
Modified: 2022-11-20 14:27 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (nivit)


Attachments
Patch Makefile and src. (1.13 KB, text/plain)
2022-01-04 21:04 UTC, Robert Kruus
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Kruus 2022-01-04 21:04:12 UTC
Created attachment 230712 [details]
Patch Makefile and src.

The py-watchdog port does not currently work with the inotify observer as the inotify fucntions are no longer in the base system/libc.
The following patch adds a lib_depend on devel/libinotify and patches the appropriate file in the port.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-11-20 14:26:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c8332032ae22e82e5e60bd493ed697f9b8340cb1

commit c8332032ae22e82e5e60bd493ed697f9b8340cb1
Author:     Robert Kruus <rob.kruus@gmail.com>
AuthorDate: 2022-11-20 14:20:45 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2022-11-20 14:24:35 +0000

    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>

 devel/py-watchdog/Makefile                                    | 10 ++++++----
 .../files/patch-src_watchdog_observers_inotify__c.py (new)    | 11 +++++++++++
 2 files changed, 17 insertions(+), 4 deletions(-)
Comment 2 Nicola Vitale freebsd_committer freebsd_triage 2022-11-20 14:27:08 UTC
Committed. Thank you for the PR!