From beb6030a3067300f3728faf67cf687f4299efa19 Mon Sep 17 00:00:00 2001
From: Lukas Holecek <hluk@email.cz>
Date: Tue, 13 Apr 2021 21:13:23 +0200
Subject: [PATCH] Avoid linking to Qt5 DBus library on Windows and macOS

---
 utils/appveyor/before_build.sh               | 2 +-
 utils/github/homebrew/Formula/kf5-kconfig.rb | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils/appveyor/before_build.sh b/utils/appveyor/before_build.sh
index a8fe60aa5..57873130f 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 c00e46d6b..6b38d0bb8 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
-- 
GitLab