Skip to content

Commit 5179b21

Browse files
authored
Merge pull request #3350 from dscho/trial-gfw-2.33.0.rc0-fsmonitor-pre-v4
Replace FSMonitor v2 with v4
2 parents 1abb447 + 56a0141 commit 5179b21

29 files changed

+1313
-298
lines changed

Makefile

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,13 @@ all::
473473
#
474474
# If your platform supports a built-in fsmonitor backend, set
475475
# FSMONITOR_DAEMON_BACKEND to the "<name>" of the corresponding
476-
# `compat/fsmonitor/fsmonitor-fs-listen-<name>.c` that implements the
477-
# `fsmonitor_fs_listen__*()` routines.
476+
# `compat/fsmonitor/fsm-listen-<name>.c` that implements the
477+
# `fsm_listen__*()` routines.
478+
#
479+
# If your platform has os-specific ways to tell if a repo is incompatible with
480+
# fsmonitor (whether the hook or ipc daemon version), set FSMONITOR_OS_SETTINGS
481+
# to the "<name>" of the corresponding `compat/fsmonitor/fsm-settings-<name>.c`
482+
# that implements the `fsm_os_settings__*()` routines.
478483
#
479484
# Define DEVELOPER to enable more compiler warnings. Compiler version
480485
# and family are auto detected, but could be overridden by defining
@@ -909,6 +914,7 @@ LIB_OBJS += fmt-merge-msg.o
909914
LIB_OBJS += fsck.o
910915
LIB_OBJS += fsmonitor.o
911916
LIB_OBJS += fsmonitor-ipc.o
917+
LIB_OBJS += fsmonitor-settings.o
912918
LIB_OBJS += gettext.o
913919
LIB_OBJS += gpg-interface.o
914920
LIB_OBJS += graph.o
@@ -1946,7 +1952,12 @@ endif
19461952

19471953
ifdef FSMONITOR_DAEMON_BACKEND
19481954
COMPAT_CFLAGS += -DHAVE_FSMONITOR_DAEMON_BACKEND
1949-
COMPAT_OBJS += compat/fsmonitor/fsmonitor-fs-listen-$(FSMONITOR_DAEMON_BACKEND).o
1955+
COMPAT_OBJS += compat/fsmonitor/fsm-listen-$(FSMONITOR_DAEMON_BACKEND).o
1956+
endif
1957+
1958+
ifdef FSMONITOR_OS_SETTINGS
1959+
COMPAT_CFLAGS += -DHAVE_FSMONITOR_OS_SETTINGS
1960+
COMPAT_OBJS += compat/fsmonitor/fsm-settings-$(FSMONITOR_OS_SETTINGS).o
19501961
endif
19511962

19521963
ifeq ($(TCLTK_PATH),)
@@ -2833,6 +2844,9 @@ GIT-BUILD-OPTIONS: FORCE
28332844
ifdef FSMONITOR_DAEMON_BACKEND
28342845
@echo FSMONITOR_DAEMON_BACKEND=\''$(subst ','\'',$(subst ','\'',$(FSMONITOR_DAEMON_BACKEND)))'\' >>$@+
28352846
endif
2847+
ifdef FSMONITOR_OS_SETTINGS
2848+
@echo FSMONITOR_OS_SETTINGS=\''$(subst ','\'',$(subst ','\'',$(FSMONITOR_OS_SETTINGS)))'\' >>$@+
2849+
endif
28362850
ifdef TEST_OUTPUT_DIRECTORY
28372851
@echo TEST_OUTPUT_DIRECTORY=\''$(subst ','\'',$(subst ','\'',$(TEST_OUTPUT_DIRECTORY)))'\' >>$@+
28382852
endif

0 commit comments

Comments
 (0)