[glib: 4/5] gio: Remove fam file monitor support




commit 6aa210e6af965a972a1c3a03e9abd556c45872ac
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Mar 23 15:41:54 2022 +0000

    gio: Remove fam file monitor support
    
    libgamin was last released in 2007 and is dead
    [upstream](https://gitlab.gnome.org/Archive/gamin). Distributions may
    still ship it (although Fedora no longer does), but we want people to
    use inotify on Linux since it’s actively supported.
    
    BSDs use kqueue. Windows uses win32filemonitor.
    
    FAM might still be used on some commercial Unix distributions, but there
    are no contributors from those distributions, and certainly no CI for
    them to prevent regressions.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Fixes: #2614

 .gitlab-ci.yml                      |   1 -
 .gitlab-ci/debian-stable.Dockerfile |   1 -
 docs/reference/gio/meson.build      |   1 -
 docs/reference/gio/overview.xml     |   4 +-
 gio/fam/gfamfilemonitor.c           | 235 ------------------------------------
 gio/fam/gfamfilemonitor.map         |   8 --
 gio/fam/meson.build                 |  42 -------
 gio/meson.build                     |   1 -
 meson_options.txt                   |   5 -
 9 files changed, 2 insertions(+), 296 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b44008ab00..98f8a9cb54 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -135,7 +135,6 @@ debian-stable-x86_64:
             --libdir=lib
             -Dsystemtap=true
             -Ddtrace=true
-            -Dfam=true
             -Dinstalled_tests=true
             _build
     - ninja -C _build
diff --git a/.gitlab-ci/debian-stable.Dockerfile b/.gitlab-ci/debian-stable.Dockerfile
index 224003ba02..84aa98ba2e 100644
--- a/.gitlab-ci/debian-stable.Dockerfile
+++ b/.gitlab-ci/debian-stable.Dockerfile
@@ -24,7 +24,6 @@ RUN apt-get update -qq && apt-get install --no-install-recommends -qq -y \
     libdbus-1-dev \
     libelf-dev \
     libffi-dev \
-    libgamin-dev \
     libmount-dev \
     libpcre3-dev \
     libselinux1-dev \
diff --git a/docs/reference/gio/meson.build b/docs/reference/gio/meson.build
index 529185b12f..20e24ba091 100644
--- a/docs/reference/gio/meson.build
+++ b/docs/reference/gio/meson.build
@@ -3,7 +3,6 @@ if get_option('gtk_doc')
   subdir('xml')
 
   ignore_headers = [
-    'fam',
     'gdbus-2.0',
     'gvdb',
     'inotify',
diff --git a/docs/reference/gio/overview.xml b/docs/reference/gio/overview.xml
index 3214215edc..5f2afc65ed 100644
--- a/docs/reference/gio/overview.xml
+++ b/docs/reference/gio/overview.xml
@@ -392,7 +392,7 @@ Gvfs is also heavily distributed and relies on a session bus to be present.
         The #GFileMonitor implementation for local files that is included
         in GIO on Linux has the name <literal>inotify</literal>, others that are built
         are built as modules (depending on the platform) are called
-        <literal>fam</literal>, <literal>kqueue</literal> and <literal>win32filemonitor</literal>.
+        <literal>kqueue</literal> and <literal>win32filemonitor</literal>.
       </para><para>
         The special value <literal>help</literal> can be used to print a list of
         available implementations to standard output.
@@ -665,7 +665,7 @@ Gvfs is also heavily distributed and relies on a session bus to be present.
       </para>
       <para>
         GIO uses this extension point internally, to switch between
-        its fam-based and inotify-based file monitoring implementations.
+        its kqueue-based and inotify-based file monitoring implementations.
       </para>
    </formalpara>
 
diff --git a/gio/meson.build b/gio/meson.build
index 543763eeac..0d83414846 100644
--- a/gio/meson.build
+++ b/gio/meson.build
@@ -1033,7 +1033,6 @@ if enable_systemtap
   )
 endif
 
-subdir('fam')
 if build_tests
     subdir('tests')
 endif
diff --git a/meson_options.txt b/meson_options.txt
index 6cd7bc90ab..d1859e939d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -74,11 +74,6 @@ option('force_posix_threads',
        value : false,
        description : 'Also use posix threads in case the platform defaults to another implementation (on 
Windows for example)')
 
-option('fam',
-       type : 'boolean',
-       value : false,
-       description : 'Use fam for file system monitoring')
-
 option('tests',
        type : 'boolean',
        value : true,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]