Control: tags 1012912 + patch Control: tags 1012912 + pending -- Dear maintainer,
I've prepared an NMU for diagnostics (versioned as 0.3.3-12.3) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. -- Regards Sudip diff -Nru diagnostics-0.3.3/debian/changelog diagnostics-0.3.3/debian/changelog --- diagnostics-0.3.3/debian/changelog 2022-02-07 18:37:08.000000000 +0000 +++ diagnostics-0.3.3/debian/changelog 2022-09-19 21:46:06.000000000 +0100 @@ -1,3 +1,11 @@ +diagnostics (0.3.3-12.3) unstable; urgency=medium + + * Non-maintainer upload. + * Fix ftbfs with GCC-12. (Closes: #1012912) + - Thanks Adnan from Codethink for helping with the fix. + + -- Sudip Mukherjee <sudipm.mukher...@gmail.com> Mon, 19 Sep 2022 21:46:06 +0100 + diagnostics (0.3.3-12.2) unstable; urgency=medium * Non-maintainer upload. diff -Nru diagnostics-0.3.3/debian/patches/fix-ftbfs.patch diagnostics-0.3.3/debian/patches/fix-ftbfs.patch --- diagnostics-0.3.3/debian/patches/fix-ftbfs.patch 1970-01-01 01:00:00.000000000 +0100 +++ diagnostics-0.3.3/debian/patches/fix-ftbfs.patch 2022-09-19 21:45:20.000000000 +0100 @@ -0,0 +1,40 @@ +Description: Fix FTBFS with GCC-12. + Thanks Adnan for finding out the header file fix. + +Author: Sudip Mukherjee <sudipm.mukher...@gmail.com> + +--- + +Bug-Debian: https://bugs.debian.org/1012912 +Forwarded: no + +--- diagnostics-0.3.3.orig/diagnostics/util/marshaling.cpp ++++ diagnostics-0.3.3/diagnostics/util/marshaling.cpp +@@ -74,13 +74,13 @@ bool read(::std::istream & stream, ::std + char * const target_buffer(new char[length]); + stream.read(target_buffer,length); + if(!stream.good()) { +- delete target_buffer; ++ delete[] target_buffer; + return false; + } + + // convert + target= ::std::string(target_buffer,length); +- delete target_buffer; ++ delete[] target_buffer; + return true; + } + +--- diagnostics-0.3.3.orig/diagnostics/util/to_string.hpp ++++ diagnostics-0.3.3/diagnostics/util/to_string.hpp +@@ -45,6 +45,9 @@ + #define DIAGNOSTICS__UTIL__TO_STRING_HPP__INCLUDE_GUARD + + #include <diagnostics/frame/namespace.hpp> ++#include <diagnostics/frame/record.hpp> ++#include <diagnostics/unittest/test_system/test_list_result.hpp> ++#include <diagnostics/unittest/test_system/test_run_result.hpp> + + // used in the implementation by value + #include <sstream> diff -Nru diagnostics-0.3.3/debian/patches/series diagnostics-0.3.3/debian/patches/series --- diagnostics-0.3.3/debian/patches/series 2022-02-07 17:57:51.000000000 +0000 +++ diagnostics-0.3.3/debian/patches/series 2022-09-19 21:45:37.000000000 +0100 @@ -6,3 +6,4 @@ test-run-cleanup no-ltdl-convenience.patch remove-dynamic-exception.patch +fix-ftbfs.patch