Fix handling of control files for DEB packages. (#21940)
Due to a typo in the CPack configuration, the main `netdata` package control files were being included in any package that did not explicitly define own control files, causing uninstallation of those packages to mask the netdata service. Fix this so that we set the control files for the main package itself instead of specifying them as the default for any package that doesn’t define it’s own control files.
Austin S. Hemmelgarn committed
Mar 12, 2026 at 07:31 UTC
1bec654e1cff9f84d3b7bcf9cb1eaa28d93e3ea3
1 file changed
+1
-1
packaging/cmake/Modules/Packaging.cmake
+1
-1
@@ -148,7 +148,7 @@ endif()
148
149
list(JOIN _main_deps ", " CPACK_DEBIAN_NETDATA_PACKAGE_DEPENDS)
150
151
-set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
151
+set(CPACK_DEBIAN_NETDATA_PACKAGE_CONTROL_EXTRA
152
"${PKG_FILES_PATH}/deb/netdata/conffiles;"
153
"${PKG_FILES_PATH}/deb/netdata/postinst"
154
"${PKG_FILES_PATH}/deb/netdata/prerm"