From 7b38ebd8e1b02a3eba516d4951894930e37498f4 Mon Sep 17 00:00:00 2001
From: "Austin S. Hemmelgarn" <austin@netdata.cloud>
Date: Sun, 23 Mar 2025 16:23:18 -0400
Subject: [PATCH] Disable generation of debuginfo packages for DEB distros.
 (#19948)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* Disable generation of debuginfo packages for DEB distros.

actually need to the debuginfo to work correctly, so split debug symbols don’t
Our automatic stacktrace logging and crash reporting functionality
really make sense for our use case.

* Only disable split debuginfo for core, not plugins.

We don’t do crash reporting or stack trace logging for plugins, so they
can still use the split debug info packages.

* Work around bugs in Debian 11 and Ubuntu 20.04.
---
 packaging/cmake/Modules/Packaging.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packaging/cmake/Modules/Packaging.cmake b/packaging/cmake/Modules/Packaging.cmake
index 523d489790..c551018b99 100644
--- a/packaging/cmake/Modules/Packaging.cmake
+++ b/packaging/cmake/Modules/Packaging.cmake
@@ -110,7 +110,7 @@ set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
 	  "${PKG_FILES_PATH}/deb/netdata/postinst"
 	  "${PKG_FILES_PATH}/deb/netdata/postrm")
 
-set(CPACK_DEBIAN_NETDATA_DEBUGINFO_PACKAGE On)
+set(CPACK_DEBIAN_NETDATA_DEBUGINFO_PACKAGE Off)
 
 #
 # dashboard