[Bug 214338] [PATCH] devel/glib20: new kqueue() backend for file monitoring

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 30 01:57:34 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214338

--- Comment #54 from lightside <lightside at gmx.com> ---
Created attachment 195618
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=195618&action=edit
Alternative patch (since 473551 revision)

(In reply to comment #52)
> Probably, possible to propose these changes as an alternative backend,
> for example as an additional gio's sub-directory
I attached (obsoleted) patch, which adds/uses --enable-kqueue-fnm configure's
option, if FAM_ALTBACKEND port's option enabled.

But this may require to use autoreconf for current devel/glib20 version. I
converted changes for Makefile.in to Makefile.am changes, with using some sed
patches (similar to attachment #191861).

For example, this adds "--enable-kqueue-fnm" configure option:
-8<--
AC_ARG_ENABLE([kqueue-fnm], [AS_HELP_STRING([--enable-kqueue-fnm], [enable
gio/kqueue_fnm backend, if kqueue supported])])
AM_CONDITIONAL(ENABLE_KQUEUE_FNM, [test "$enable_kqueue_fnm" = "yes"])
-->8-
and "gio/kqueue_fnm/Makefile" to list of AC_CONFIG_FILES for configure.ac file.

The ENABLE_KQUEUE_FNM define checked in gio/Makefile.am:
-8<--
if HAVE_KQUEUE
if ENABLE_KQUEUE_FNM
SUBDIRS += kqueue_fnm
platform_libadd += kqueue_fnm/libkqueue.la
platform_deps += kqueue_fnm/libkqueue.la
else
SUBDIRS += kqueue
platform_libadd += kqueue/libkqueue.la
platform_deps += kqueue/libkqueue.la
endif
endif
-->8-

It's just to show that such a concept is possible.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-gnome mailing list