[neon/extras/kreport/Neon/unstable] debian/patches: add patch advised by jstaiek

Jonathan Riddell null at kde.org
Wed Nov 11 10:53:50 GMT 2020


Git commit 35c0596689817bb0fb455d1744792debfe55c389 by Jonathan Riddell.
Committed on 11/11/2020 at 10:53.
Pushed by jriddell into branch 'Neon/unstable'.

add patch advised by jstaiek

A  +59   -0    debian/patches/scripting-linking.diff
A  +1    -0    debian/patches/series

https://invent.kde.org/neon/extras/kreport/commit/35c0596689817bb0fb455d1744792debfe55c389

diff --git a/debian/patches/scripting-linking.diff b/debian/patches/scripting-linking.diff
new file mode 100644
index 0000000..ba4362a
--- /dev/null
+++ b/debian/patches/scripting-linking.diff
@@ -0,0 +1,59 @@
+https://bugs.kde.org/show_bug.cgi?id=422886
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 1cf0b389d3..65bcf6e5e8 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -106,6 +106,7 @@ set(kreport_TARGET_INCLUDE_DIRS
+ 
+ if(KREPORT_SCRIPTING)
+     list(APPEND kreport_LIB_SRCS
++        renderer/scripting/KReportGroupTracker.cpp
+         renderer/scripting/KReportScriptHandler.cpp
+         renderer/scripting/KReportScriptConstants.cpp
+         renderer/scripting/KReportScriptDebug.cpp
+@@ -133,10 +134,6 @@ if(KREPORT_SCRIPTING)
+         items/text/KReportScriptText.cpp
+     )
+ 
+-    qt_wrap_cpp(KReport kreport_LIB_SRCS
+-        renderer/scripting/KReportGroupTracker.h
+-    )
+-
+     list(APPEND kreport_INCLUDE_DIRS
+         ${CMAKE_CURRENT_SOURCE_DIR}/renderer/scripting
+     )
+diff --git a/src/renderer/scripting/KReportGroupTracker.cpp b/src/renderer/scripting/KReportGroupTracker.cpp
+new file mode 100644
+index 0000000000..b96e8831b7
+--- /dev/null
++++ b/src/renderer/scripting/KReportGroupTracker.cpp
+@@ -0,0 +1,9 @@
++#include "KReportGroupTracker.h"
++
++KReportGroupTracker::KReportGroupTracker()
++{
++}
++
++KReportGroupTracker::~KReportGroupTracker()
++{
++}
+diff --git a/src/renderer/scripting/KReportGroupTracker.h b/src/renderer/scripting/KReportGroupTracker.h
+index e434e05ab3..4a12cc437d 100644
+--- a/src/renderer/scripting/KReportGroupTracker.h
++++ b/src/renderer/scripting/KReportGroupTracker.h
+@@ -11,12 +11,11 @@ class KREPORT_EXPORT KReportGroupTracker : public QObject {
+     Q_OBJECT
+ 
+ protected:
+-    KReportGroupTracker() {}
+-    ~KReportGroupTracker() override{}
++    KReportGroupTracker();
++    ~KReportGroupTracker() override;
+ 
+ public:
+     Q_SLOT virtual void setGroupData(const QMap<QString, QVariant> &groupData) = 0;
+ };
+ 
+ #endif // KREPORTGROUPTRACKER_H
+-
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b1b3476
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+scripting-linking.diff


More information about the Neon-commits mailing list