Index: recipes-kf5/tier3/kinit.inc =================================================================== --- /dev/null +++ recipes-kf5/tier3/kinit.inc @@ -0,0 +1,35 @@ +DESCRIPTION = "KInit" +HOMEPAGE = "https://api.kde.org/frameworks/kinit/html/index.html" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" +PR = "r0" + +DEPENDS = " \ + qtbase \ + kservice \ + kio \ + ki18n \ + kwindowsystem \ + kcrash \ + kconfig \ +" + +SRC_URI = " \ + git://anongit.kde.org/kinit;nobranch=1 \ + file://0001-no-x11.patch \ +" +S = "${WORKDIR}/git" + +inherit cmake_kf5 +inherit gettext +inherit python3native + +FILES_SOLIBSDEV = "" +FILES_${PN} += " \ + ${libdir}/libkdeinit5_klauncher.so \ +" + +FILES_${PN}-dev += " \ + ${libdir}/cmake/KF5Init/kde5init_dummy.cpp.in \ + ${datadir}/dbus-1/interfaces/*.xml \ +" Index: recipes-kf5/tier3/kinit/0001-no-x11.patch =================================================================== --- /dev/null +++ recipes-kf5/tier3/kinit/0001-no-x11.patch @@ -0,0 +1,20 @@ +diff --git a/src/wrapper.cpp b/src/wrapper.cpp +index 21de52c..688c59a 100644 +--- a/src/wrapper.cpp ++++ b/src/wrapper.cpp +@@ -43,6 +43,7 @@ + extern char **environ; + + // copied from kdeinit/kinit.cpp ++#if HAVE_X11 || HAVE_XCB + static const char* displayEnvVarName_c() + { + // Can't use QGuiApplication::platformName() here, there is no app instance. +@@ -54,6 +55,7 @@ static const char* displayEnvVarName_c() + return "WIN_DISPLAY"; + #endif + } ++#endif + + // adapted from kdeinit/kinit.cpp + // WARNING, if you change the socket name, adjust kinit.cpp too Index: recipes-kf5/tier3/kinit_5.36.0.bb =================================================================== --- /dev/null +++ recipes-kf5/tier3/kinit_5.36.0.bb @@ -0,0 +1,2 @@ +require ${PN}.inc +SRCREV = "v${PV}"