Bug#868132: Needless build dependency on kdelibs5-dev

Alexander Volkov a.volkov at rusbitech.ru
Mon Dec 4 10:50:59 UTC 2017

03.12.2017 18:09, Samuel Thibault пишет:
> Well, the build does fail ATM :)
> CMake Error at CMakeLists.txt:11 (include):
>    include could not find load file:
>      KDE4Defaults
> There are indeed kde things in CMakeLists files, I'm not sure I really
> want to spend time on crippling them just for avoiding the kdelibs5-dev,
> unless there is a compelling reason which wasn't reported?
Ah, sorry, nokde patch is really not enough.
I maintain this package in AstraLinux and we don't support KDE4.
Here is our extended nokde patch.
Feel free to close this bug if it's not suitable.

-------------- next part --------------
--- a/src/bridge.cpp
+++ b/src/bridge.cpp
@@ -21,7 +21,7 @@
 #include "bridge.h"
 #include <qaccessible2.h>
-#include <kcomponentdata.h>
+//#include <kcomponentdata.h>
 #include "atspiadaptor.h"
@@ -54,7 +54,7 @@
     // This gives us translations
-    KComponentData componentData("qtatspi_qt");
+    //KComponentData componentData("qtatspi_qt");
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -28,9 +28,9 @@
 # headers are needed from there for the types used in dbus
-kde4_add_library(qspiaccessiblebridge SHARED ${qspiaccessiblebridge_SRCS})
+add_library(qspiaccessiblebridge SHARED ${qspiaccessiblebridge_SRCS})
-target_link_libraries(qspiaccessiblebridge ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} ${X11_X11_LIB} ${KDE4_KDECORE_LIBS})
+target_link_libraries(qspiaccessiblebridge ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} ${X11_X11_LIB})
 install(TARGETS qspiaccessiblebridge DESTINATION ${QTATSPI_QT_PLUGIN_INSTALL_DIR}/accessiblebridge/)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,10 +7,8 @@
 #option(KDE4_BUILD_TESTS  "Build the tests" ON)
 find_package(Qt4 4.8 REQUIRED)
 # Require libatspi2-core headers for building:
@@ -23,6 +21,4 @@

More information about the Pkg-a11y-devel mailing list