summaryrefslogtreecommitdiff
path: root/dev-vcs/git/files/git-2.48.1-macos-no-fsmonitor.patch
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-05-08 07:13:11 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-05-08 07:13:11 +0000
commite79618d2286e15df4892b907b8f5fe63ebf4e62b (patch)
tree6ec94fcc8ec3fa3f8a1d14d30a867a9ad0a5e59f /dev-vcs/git/files/git-2.48.1-macos-no-fsmonitor.patch
parent299816f0c09b4fa9b0ed7e30ea69cbd6942edbf7 (diff)
downloadbaldeagleos-repo-e79618d2286e15df4892b907b8f5fe63ebf4e62b.tar.gz
baldeagleos-repo-e79618d2286e15df4892b907b8f5fe63ebf4e62b.tar.xz
baldeagleos-repo-e79618d2286e15df4892b907b8f5fe63ebf4e62b.zip
Adding metadata
Diffstat (limited to 'dev-vcs/git/files/git-2.48.1-macos-no-fsmonitor.patch')
-rw-r--r--dev-vcs/git/files/git-2.48.1-macos-no-fsmonitor.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-vcs/git/files/git-2.48.1-macos-no-fsmonitor.patch b/dev-vcs/git/files/git-2.48.1-macos-no-fsmonitor.patch
new file mode 100644
index 000000000000..f1b89e736f46
--- /dev/null
+++ b/dev-vcs/git/files/git-2.48.1-macos-no-fsmonitor.patch
@@ -0,0 +1,39 @@
+meson.build: allow to disable fsmonitor backend for macOS
+
+Gentoo Prefix toolchain and setup does not enable CoreServices Framework
+by default, so simply allow to disable the fsmonitor backend
+
+Signed-off-by: Fabian Groffen <grobian@gentoo.org>
+
+--- a/meson.build
++++ b/meson.build
+@@ -1117,11 +1117,13 @@
+ endif
+
+ fsmonitor_backend = ''
+-if host_machine.system() == 'windows'
+- fsmonitor_backend = 'win32'
+-elif host_machine.system() == 'darwin'
+- fsmonitor_backend = 'darwin'
+- libgit_dependencies += dependency('CoreServices')
++if get_option('fsmonitor')
++ if host_machine.system() == 'windows'
++ fsmonitor_backend = 'win32'
++ elif host_machine.system() == 'darwin'
++ fsmonitor_backend = 'darwin'
++ libgit_dependencies += dependency('CoreServices')
++ endif
+ endif
+ if fsmonitor_backend != ''
+ libgit_c_args += '-DHAVE_FSMONITOR_DAEMON_BACKEND'
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -57,6 +57,8 @@
+ # Build tweaks.
+ option('macos_use_homebrew_gettext', type: 'boolean', value: true,
+ description: 'Use gettext from Homebrew instead of the slightly-broken system-provided one.')
++option('fsmonitor', type: 'boolean', value: true,
++ description: 'Build fsmonitor backend on supported platforms.')
+
+ # gitweb configuration.
+ option('gitweb_config', type: 'string', value: 'gitweb_config.perl')