diff --git a/utils/appveyor/before_build.sh b/utils/appveyor/before_build.sh
index a8fe60aa5b1eeb6ec962dded6c6bfd046108035d..57873130f6796cfcf1c85e7feba1d419d8b3c275 100644
--- a/utils/appveyor/before_build.sh
+++ b/utils/appveyor/before_build.sh
@@ -10,7 +10,7 @@ export PATH=$PATH:$INSTALL_PREFIX/bin
 
 "$build" snoretoast "v$SNORETOAST_VERSION" "$SNORETOAST_BASE_URL"
 "$build" extra-cmake-modules
-"$build" kconfig "" "" "-DKCONFIG_USE_GUI=OFF"
+"$build" kconfig "" "" "-DKCONFIG_USE_GUI=OFF -DKCONFIG_USE_DBUS=OFF"
 "$build" kwindowsystem
 "$build" kcoreaddons
 "$build" knotifications
diff --git a/utils/github/homebrew/Formula/kf5-kconfig.rb b/utils/github/homebrew/Formula/kf5-kconfig.rb
index c00e46d6bbb1f44fba1b1ae64073cf640759e607..6b38d0bb8b43a61ace726efc7eb6160f5518923e 100644
--- a/utils/github/homebrew/Formula/kf5-kconfig.rb
+++ b/utils/github/homebrew/Formula/kf5-kconfig.rb
@@ -20,6 +20,7 @@ class Kf5Kconfig < Formula
     args << "-DKDE_INSTALL_QTPLUGINDIR=lib/qt5/plugins"
 
     args << "-DKCONFIG_USE_GUI=OFF"
+    args << "-DKCONFIG_USE_DBUS=OFF"
 
     mkdir "build" do
       system "cmake", "-G", "Ninja", "..", *args