Control: tags 1012918 + pending

Dear maintainer,

I've prepared an NMU for edb-debugger (versioned as 1.3.0-1.1) and 
uploaded it to DELAYED/14. Please feel free to tell me if I should 
cancel it.

cu
Adrian
diff -Nru edb-debugger-1.3.0/debian/changelog edb-debugger-1.3.0/debian/changelog
--- edb-debugger-1.3.0/debian/changelog	2021-01-26 16:01:19.000000000 +0200
+++ edb-debugger-1.3.0/debian/changelog	2022-09-16 22:27:35.000000000 +0300
@@ -1,3 +1,10 @@
+edb-debugger (1.3.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add upstream fix for FTBFS with gcc 12. (Closes: #1012918)
+
+ -- Adrian Bunk <b...@debian.org>  Fri, 16 Sep 2022 22:27:35 +0300
+
 edb-debugger (1.3.0-1) unstable; urgency=medium
 
   [ Marcio de Souza Oliveira ]
diff -Nru edb-debugger-1.3.0/debian/patches/0001-Gcc-12-includes-fix-815.patch edb-debugger-1.3.0/debian/patches/0001-Gcc-12-includes-fix-815.patch
--- edb-debugger-1.3.0/debian/patches/0001-Gcc-12-includes-fix-815.patch	1970-01-01 02:00:00.000000000 +0200
+++ edb-debugger-1.3.0/debian/patches/0001-Gcc-12-includes-fix-815.patch	2022-09-16 22:26:22.000000000 +0300
@@ -0,0 +1,100 @@
+From da04c339559f82257ff54ea62b1d403ee98c1ba0 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <sly...@gmail.com>
+Date: Sat, 2 Apr 2022 22:36:50 +0000
+Subject: Gcc 12 includes fix (#815)
+
+* RegisterViewModelBase.h: add <memory> for unique_ptr
+
+Without the change gcc-12 fails to build edb-debugger as:
+
+    [ 20%] Building CXX object src/CMakeFiles/edb.dir/RegisterViewModelBase.cpp.o
+    In file included from edb-debugger/src/RegisterViewModelBase.cpp:18:
+    edb-debugger/include/RegisterViewModelBase.h:162:14: error:
+      'unique_ptr' in namespace 'std' does not name a template type
+      162 |         std::unique_ptr<CategoriesHolder> rootItem;
+          |              ^~~~~~~~~~
+    edb-debugger/include/RegisterViewModelBase.h:9:1: note:
+      'std::unique_ptr' is defined in header '<memory>';
+        did you forget to '#include <memory>'?
+        8 | #include <deque>
+      +++ |+#include <memory>
+
+* State.h: add <memory> for unique_ptr
+
+Without the change gcc-12 fails to build edb-debugger as:
+
+    [ 21%] Building CXX object src/CMakeFiles/edb.dir/State.cpp.o
+    In file included from edb-debugger/src/State.cpp:19:
+    edb-debugger/include/State.h:93:14:
+      error: 'unique_ptr' in namespace 'std' does not name a template type
+       93 |         std::unique_ptr<IState> impl_;
+          |              ^~~~~~~~~~
+    edb-debugger/include/State.h:24:1:
+      note: 'std::unique_ptr' is defined in header '<memory>';
+        did you forget to '#include <memory>'?
+       23 | #include "Types.h"
+      +++ |+#include <memory>
+       24 |
+
+* IState.h: add <memory> for unique_ptr
+
+Without the change gcc-12 fails to build edb-debugger as:
+
+    [ 69%] Building CXX object plugins/DebuggerCore/CMakeFiles/DebuggerCore.dir/unix/linux/arch/x86-generic/PlatformState.cpp.o
+    In file included from edb-debugger/plugins/DebuggerCore/unix/linux/arch/x86-generic/PlatformState.h:22,
+                     from edb-debugger/plugins/DebuggerCore/unix/linux/arch/x86-generic/PlatformState.cpp:19:
+    edb-debugger/include/IState.h:33:22:
+      error: 'unique_ptr' in namespace 'std' does not name a template type
+       33 |         virtual std::unique_ptr<IState> clone() const = 0;
+          |                      ^~~~~~~~~~
+    edb-debugger/include/IState.h:23:1:
+      note: 'std::unique_ptr' is defined in header '<memory>';
+        did you forget to '#include <memory>'?
+       22 | #include "Register.h"
+      +++ |+#include <memory>
+       23 | #include "Types.h"
+---
+ include/IState.h                | 1 +
+ include/RegisterViewModelBase.h | 1 +
+ include/State.h                 | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/include/IState.h b/include/IState.h
+index e7cc9a2f..fa5387be 100644
+--- a/include/IState.h
++++ b/include/IState.h
+@@ -19,6 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ #ifndef ISTATE_H_20110315_
+ #define ISTATE_H_20110315_
+ 
++#include <memory>
+ #include "Register.h"
+ #include "Types.h"
+ 
+diff --git a/include/RegisterViewModelBase.h b/include/RegisterViewModelBase.h
+index 3ed1ccf0..fad80510 100644
+--- a/include/RegisterViewModelBase.h
++++ b/include/RegisterViewModelBase.h
+@@ -6,6 +6,7 @@
+ #include "util/Integer.h"
+ #include <QAbstractItemModel>
+ #include <deque>
++#include <memory>
+ #include <vector>
+ 
+ Q_DECLARE_METATYPE(std::vector<NumberDisplayMode>)
+diff --git a/include/State.h b/include/State.h
+index 13ef40bc..cfb7091e 100644
+--- a/include/State.h
++++ b/include/State.h
+@@ -19,6 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ #ifndef STATE_H_20060715_
+ #define STATE_H_20060715_
+ 
++#include <memory>
+ #include "API.h"
+ #include "Types.h"
+ 
+-- 
+2.30.2
+
diff -Nru edb-debugger-1.3.0/debian/patches/series edb-debugger-1.3.0/debian/patches/series
--- edb-debugger-1.3.0/debian/patches/series	2021-01-26 16:01:19.000000000 +0200
+++ edb-debugger-1.3.0/debian/patches/series	2022-09-16 22:27:34.000000000 +0300
@@ -2,3 +2,4 @@
 fix_desktop_entry.patch
 fix_cmakelists.txt.patch
 #0004-widgets-QDisassemblyView-include-QPainterPath.patch
+0001-Gcc-12-includes-fix-815.patch

Reply via email to