diff --git a/recipes-plasma/kwin.inc b/recipes-plasma/kwin.inc index f1d4fe5..00f4170 100644 --- a/recipes-plasma/kwin.inc +++ b/recipes-plasma/kwin.inc @@ -59,6 +59,7 @@ SRC_URI:append = " \ SRC_URI:append:class-native = " \ file://0001-Add-install-operation-for-native-build.patch \ + file://0002-qtwaylandscanner-don-t-track-source-location.patch \ " OECMAKE_SOURCEPATH:class-native = "${S}/src/wayland/tools" diff --git a/recipes-plasma/kwin/0002-qtwaylandscanner-don-t-track-source-location.patch b/recipes-plasma/kwin/0002-qtwaylandscanner-don-t-track-source-location.patch new file mode 100644 index 0000000..e8e2caa --- /dev/null +++ b/recipes-plasma/kwin/0002-qtwaylandscanner-don-t-track-source-location.patch @@ -0,0 +1,38 @@ +From 12a2160868151a5dbc4a4077d02bda4a292c0d6e Mon Sep 17 00:00:00 2001 +From: Andreas Cord-Landwehr +Date: Sat, 16 Nov 2024 13:10:49 +0100 +Subject: [PATCH] qtwaylandscanner: don't track source location + +This is a backport of upstream fix for reproducible builds, see: +https://codereview.qt-project.org/c/qt/qtwayland/+/557799 + +Upstream-Status: Backport [https://invent.kde.org/plasma/kwin/-/merge_requests/6789] +Signed-Off-by: Andreas Cord-Landwehr +--- + src/wayland/tools/qtwaylandscanner.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/wayland/tools/qtwaylandscanner.cpp b/src/wayland/tools/qtwaylandscanner.cpp +index 2e0dd03577..9c5a957599 100644 +--- a/src/wayland/tools/qtwaylandscanner.cpp ++++ b/src/wayland/tools/qtwaylandscanner.cpp +@@ -39,6 +39,7 @@ + + #include + #include ++#include + #include + + #include +@@ -469,7 +470,7 @@ bool Scanner::process() + return false; + + printf("// This file was generated by qtwaylandscanner\n"); +- printf("// source file is %s\n\n", qPrintable(m_protocolFilePath)); ++ printf("// source file is %s\n\n", qPrintable(QFileInfo(file).fileName())); + + for (auto b : std::as_const(m_includes)) + printf("#include %s\n", b.constData()); +-- +2.43.0 +