https://bugs.kde.org/show_bug.cgi?id=469181

            Bug ID: 469181
           Summary: KWallet fails to compile on Linux without X11
    Classification: Frameworks and Libraries
           Product: frameworks-kwallet
           Version: 5.105.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: va...@kde.org
          Reporter: rinigus....@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY

On Sailfish OS, we use Wayland only and there are no X11 installed by default.
In this environment, KWalletd fails to compile and requires disabling X11 by a
patch. I presume that CMake check for X11 should be added and used to
enable/disable X11 support.

Used patch:

```
diff --git a/src/runtime/kwalletd/kwalletd.cpp
b/src/runtime/kwalletd/kwalletd.cpp
index 5914be9..bdbe172 100644
--- a/src/runtime/kwalletd/kwalletd.cpp
+++ b/src/runtime/kwalletd/kwalletd.cpp
@@ -35,12 +35,12 @@
 #include <kwalletentry.h>
 #include <kwindowsystem.h>

-#if !defined(Q_OS_WIN) && !defined(Q_OS_MAC)
-#define HAVE_X11 1
-#include <KX11Extras>
-#else
+// #if !defined(Q_OS_WIN) && !defined(Q_OS_MAC)
+// #define HAVE_X11 1
+// #include <KX11Extras>
+// #else
 #define HAVE_X11 0
-#endif
+// #endif

 #ifdef HAVE_GPGMEPP
 #include <gpgme++/key.h>
-- 
2.39.2
```

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Sailfish OS 4.5
(available in About System)
KDE Plasma Version: -
KDE Frameworks Version: 5.105.0 
Qt Version: 5.15

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to