depends: disable inotify in Freebsd Qt build
What changed, and why it matters
This commit changes how Bitcoin Core builds the Qt GUI library on FreeBSD. It disables Qt's inotify feature during the build process. Inotify is a Linux-style file-change notification mechanism that Qt tries to use on FreeBSD, but it can cause build or runtime problems because FreeBSD's support differs. The change is a build-system compatibility fix; there is no direct evidence in the commit that it fixes an exploitable security vulnerability.
Treat as a low-risk build/portability fix. No urgent security action is required based on this commit alone. FreeBSD builders should verify that Qt builds and that GUI file-change notifications still behave acceptably. If a security advisory is later published, re-evaluate.
Security signals we found
Disables a platform-specific feature (inotify) that could cause undefined behavior or build failures on FreeBSD
No direct security-relevant signal in the diff (no bounds check, no crypto change, no privilege change)
Build-system hardening for dependency consistency
Evidence from the diff
The patch adds -no-feature-inotify to the FreeBSD-specific Qt configure options in depends/packages/qt.mk. Qt’s inotify backend on FreeBSD relies on the libinotify compatibility library or kernel support, which may be unavailable, incomplete, or behave differently than on Linux. Disabling it forces Qt to fall back to another file-system monitoring mechanism (such as polling or kqueue where supported). This is a defensive portability/build fix rather than a patch for a known memory-safety or cryptographic bug.
Changed components
depends/packages/qt.mkFreeBSD Qt dependency buildBitcoin Core GUI (indirect, via Qt build configuration)Inspect captured patch +1 / −0
diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk
index 48f7e038..9b5069a5 100644
--- a/depends/packages/qt.mk
+++ b/depends/packages/qt.mk
@@ -156,6 +156,7 @@ ifneq ($(LTO),)
$(package)_config_opts_linux += -ltcg
endif
$(package)_config_opts_freebsd := $$($(package)_config_opts_linux)
+$(package)_config_opts_freebsd += -no-feature-inotify
$(package)_config_opts_mingw32 := -no-dbus
$(package)_config_opts_mingw32 += -no-feature-freetype
Why this scored 11/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.