[neon/sdk/heaptrack/Neon/stable] debian/patches: Revert "drop patches only needed on release edition"

Carlos De Maine null at kde.org
Tue Aug 25 22:57:06 BST 2026


Git commit bb06f2e32def068c69f912cddda131d0b3b2cc05 by Carlos De Maine.
Committed on 25/08/2026 at 21:55.
Pushed by carlosdem into branch 'Neon/stable'.

Revert "drop patches only needed on release edition"

This reverts commit 36dc4c0f970f2199c8a5986fecb773ad5da61ef6.

A  +64   -0    debian/patches/2de688e02fbc5ff96fcf29ad3af962e8035824eb.patch
A  +52   -0    debian/patches/99348321819fe8efb3771b2dcd9aaffbc598b271.patch
A  +47   -0    debian/patches/c6c45f3455a652c38aefa402aece5dafa492e8ab.patch
M  +3    -1    debian/patches/series

https://invent.kde.org/neon/sdk/heaptrack/-/commit/bb06f2e32def068c69f912cddda131d0b3b2cc05

diff --git a/debian/patches/2de688e02fbc5ff96fcf29ad3af962e8035824eb.patch b/debian/patches/2de688e02fbc5ff96fcf29ad3af962e8035824eb.patch
new file mode 100644
index 0000000..83fe53b
--- /dev/null
+++ b/debian/patches/2de688e02fbc5ff96fcf29ad3af962e8035824eb.patch
@@ -0,0 +1,64 @@
+From 2de688e02fbc5ff96fcf29ad3af962e8035824eb Mon Sep 17 00:00:00 2001
+From: Alessandro Astone <ales.astone at gmail.com>
+Date: Wed, 27 Dec 2023 19:21:06 +0100
+Subject: [PATCH] Support KChart6 for KF6
+
+---
+ src/analyze/CMakeLists.txt     | 14 ++++++++++++--
+ src/analyze/gui/CMakeLists.txt |  2 +-
+ 2 files changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/src/analyze/CMakeLists.txt b/src/analyze/CMakeLists.txt
+index e57d242..e71aee9 100644
+--- a/src/analyze/CMakeLists.txt
++++ b/src/analyze/CMakeLists.txt
+@@ -34,6 +34,12 @@ endif()
+ add_subdirectory(print)
+ 
+ if(HEAPTRACK_BUILD_GUI)
++    if(QT_VERSION_MAJOR EQUAL 6)
++        set(KChartName KChart6)
++    else()
++        set(KChartName KChart)
++    endif()
++
+     find_package(Qt${QT_VERSION_MAJOR} ${QT_MIN_VERSION} ${REQUIRED_IN_APPIMAGE} NO_MODULE OPTIONAL_COMPONENTS Widgets)
+     set_package_properties(Qt${QT_VERSION_MAJOR} PROPERTIES TYPE RECOMMENDED PURPOSE "Required for the heaptrack_gui executable.")
+     find_package(ECM 1.0.0 ${REQUIRED_IN_APPIMAGE} NO_MODULE)
+@@ -41,8 +47,8 @@ if(HEAPTRACK_BUILD_GUI)
+     if(Qt${QT_VERSION_MAJOR}_FOUND AND ECM_FOUND)
+         set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
+             find_package(KF${QT_VERSION_MAJOR} ${REQUIRED_IN_APPIMAGE} COMPONENTS CoreAddons I18n ItemModels ThreadWeaver ConfigWidgets KIO IconThemes)
+-            find_package(KChart ${REQUIRED_IN_APPIMAGE} "2.6.0")
+-            set_package_properties(KChart PROPERTIES TYPE RECOMMENDED PURPOSE "Required for the heaptrack_gui executable. Get it from the kdiagram module.")
++            find_package(${KChartName} ${REQUIRED_IN_APPIMAGE} "2.6.0")
++            set_package_properties(${KChartName} PROPERTIES TYPE RECOMMENDED PURPOSE "Required for the heaptrack_gui executable. Get it from the kdiagram module.")
+         if(KF${QT_VERSION_MAJOR}I18n_FOUND)
+             ki18n_install(../../po)
+         endif()
+@@ -51,6 +57,10 @@ if(HEAPTRACK_BUILD_GUI)
+     endif()
+ endif()
+ 
++if(KChart6_FOUND)
++    set(KChart_FOUND TRUE)
++endif()
++
+ if (KF${QT_VERSION_MAJOR}_FOUND)
+     add_subdirectory(gui)
+ endif()
+diff --git a/src/analyze/gui/CMakeLists.txt b/src/analyze/gui/CMakeLists.txt
+index f5803b6..2124683 100644
+--- a/src/analyze/gui/CMakeLists.txt
++++ b/src/analyze/gui/CMakeLists.txt
+@@ -92,7 +92,7 @@ if (KChart_FOUND)
+         histogrammodel.cpp
+     )
+     list(APPEND LIBRARIES
+-        KChart
++        ${KChartName}
+         Qt${QT_VERSION_MAJOR}::Svg
+     )
+ endif()
+-- 
+GitLab
diff --git a/debian/patches/99348321819fe8efb3771b2dcd9aaffbc598b271.patch b/debian/patches/99348321819fe8efb3771b2dcd9aaffbc598b271.patch
new file mode 100644
index 0000000..e32e6ab
--- /dev/null
+++ b/debian/patches/99348321819fe8efb3771b2dcd9aaffbc598b271.patch
@@ -0,0 +1,52 @@
+From 99348321819fe8efb3771b2dcd9aaffbc598b271 Mon Sep 17 00:00:00 2001
+From: David Faure <faure at kde.org>
+Date: Sun, 5 Oct 2025 12:27:29 +0200
+Subject: [PATCH] Fix build with boost 1.89
+
+boost_system has become a headers-only library, there is nothing to link
+to and nothing to find_package against (e.g. on OpenSUSE Tumbleweed
+its headers are provided by libboost_headers-devel).
+https://github.com/boostorg/system/commit/7a495bb46d7ccd808e4be2a6589260839b0fd3a3
+https://www.reddit.com/r/openSUSE/comments/1nwy4cw/libboost_system_missing_from_repos/
+
+src/analyze wasn't linking against Boost_SYSTEM_LIBRARY so there
+was no point in locating boost_system there.
+---
+ CMakeLists.txt             | 8 +++++++-
+ src/analyze/CMakeLists.txt | 2 +-
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b859fbd..adc08a3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,7 +25,13 @@ if (APPIMAGE_BUILD)
+ endif()
+ 
+ include(FeatureSummary)
+-find_package(Boost 1.60.0 ${REQUIRED_IN_APPIMAGE} COMPONENTS system filesystem iostreams container)
++find_package(Boost 1.60.0 ${REQUIRED_IN_APPIMAGE} COMPONENTS filesystem iostreams container)
++# boost_system no longer exists in 1.89
++if (Boost_VERSION VERSION_LESS 1.89.0)
++    find_package(Boost ${REQUIRED_IN_APPIMAGE} COMPONENTS system)
++else()
++    set(Boost_SYSTEM_FOUND TRUE)
++endif()
+ set_package_properties(Boost PROPERTIES TYPE RECOMMENDED PURPOSE "Boost container libraries can greatly improve performance (via pmr allocators)")
+ find_package(Threads REQUIRED)
+ find_package(ZLIB REQUIRED)
+diff --git a/src/analyze/CMakeLists.txt b/src/analyze/CMakeLists.txt
+index 8e16ff2..340eb7f 100644
+--- a/src/analyze/CMakeLists.txt
++++ b/src/analyze/CMakeLists.txt
+@@ -2,7 +2,7 @@ if (ECM_FOUND)
+     include(ECMEnableSanitizers)
+ endif()
+ 
+-find_package(Boost 1.41.0 REQUIRED COMPONENTS iostreams program_options system filesystem)
++find_package(Boost 1.41.0 REQUIRED COMPONENTS iostreams program_options filesystem)
+ 
+ configure_file(analyze_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/analyze_config.h)
+ 
+-- 
+GitLab
diff --git a/debian/patches/c6c45f3455a652c38aefa402aece5dafa492e8ab.patch b/debian/patches/c6c45f3455a652c38aefa402aece5dafa492e8ab.patch
new file mode 100644
index 0000000..60d48a3
--- /dev/null
+++ b/debian/patches/c6c45f3455a652c38aefa402aece5dafa492e8ab.patch
@@ -0,0 +1,47 @@
+From c6c45f3455a652c38aefa402aece5dafa492e8ab Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer at redhat.com>
+Date: Fri, 15 Dec 2023 22:53:19 +0100
+Subject: [PATCH] cmake: Fix C compatibility of libunwind probes
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Future compilers such as GCC 14 are likely to enforce C type
+compatibility rules by default and report errors like this one:
+
+…/TryCompile-aAxUZn/src.c: In function ‘main’:
+…/TryCompile-aAxUZn/src.c:3:43: error: passing argument 1 of ‘unw_backtrace’ from incompatible pointer type
+    3 | int main() { void* buf[10]; unw_backtrace(&buf, 10); return 0; }
+      |                                           ^~~~
+      |                                           |
+      |                                           void * (*)[10]
+In file included from /usr/include/libunwind-x86_64.h:129,
+                 from /usr/include/libunwind.h:23,
+                 from …/TryCompile-aAxUZn/src.c:2:
+/usr/include/libunwind-common.h:318:27: note: expected ‘void **’ but argument is of type ‘void * (*)[10]’
+  318 | extern int unw_backtrace (void **, int);
+      |                           ^~~~~~~
+
+Removing the address operator ensures that the array type decays to
+a pointer, and that the types are compatible.
+---
+ cmake/FindLibunwind.cmake | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/cmake/FindLibunwind.cmake b/cmake/FindLibunwind.cmake
+index 2dddfad..d597de9 100644
+--- a/cmake/FindLibunwind.cmake
++++ b/cmake/FindLibunwind.cmake
+@@ -57,8 +57,8 @@ if (LIBUNWIND_LIBRARY)
+                           LIBUNWIND_HAS_UNW_GETCONTEXT)
+   check_c_source_compiles("#define UNW_LOCAL_ONLY 1\n#include <libunwind.h>\nint main() { unw_context_t context; unw_cursor_t cursor; unw_getcontext(&context); unw_init_local(&cursor, &context); return 0; }"
+                           LIBUNWIND_HAS_UNW_INIT_LOCAL)
+-  check_c_source_compiles("#define UNW_LOCAL_ONLY 1\n#include <libunwind.h>\nint main() { void* buf[10]; unw_backtrace(&buf, 10); return 0; }" LIBUNWIND_HAS_UNW_BACKTRACE)
+-  check_c_source_compiles ("#define UNW_LOCAL_ONLY 1\n#include <libunwind.h>\nint main() { void* buf[10]; unw_backtrace_skip(&buf, 10, 2); return 0; }" LIBUNWIND_HAS_UNW_BACKTRACE_SKIP)
++  check_c_source_compiles("#define UNW_LOCAL_ONLY 1\n#include <libunwind.h>\nint main() { void* buf[10]; unw_backtrace(buf, 10); return 0; }" LIBUNWIND_HAS_UNW_BACKTRACE)
++  check_c_source_compiles ("#define UNW_LOCAL_ONLY 1\n#include <libunwind.h>\nint main() { void* buf[10]; unw_backtrace_skip(buf, 10, 2); return 0; }" LIBUNWIND_HAS_UNW_BACKTRACE_SKIP)
+   check_c_source_compiles ("#define UNW_LOCAL_ONLY 1\n#include <libunwind.h>\nint main() { return unw_set_cache_size(unw_local_addr_space, 1024, 0); }" LIBUNWIND_HAS_UNW_SET_CACHE_SIZE)
+   check_c_source_compiles ("#define UNW_LOCAL_ONLY 1\n#include <libunwind.h>\nint main() { return unw_set_caching_policy(unw_local_addr_space, UNW_CACHE_PER_THREAD); }" LIBUNWIND_HAS_UNW_CACHE_PER_THREAD)
+   set(CMAKE_REQUIRED_QUIET ${CMAKE_REQUIRED_QUIET_SAVE})
+-- 
+GitLab
diff --git a/debian/patches/series b/debian/patches/series
index 14b3a26..aa8d286 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
 20_disable_some_unreliable_tests.patch
-
+c6c45f3455a652c38aefa402aece5dafa492e8ab.patch
+2de688e02fbc5ff96fcf29ad3af962e8035824eb.patch
+99348321819fe8efb3771b2dcd9aaffbc598b271.patch



More information about the Neon-commits mailing list