diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 16:08:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 17:34:11 +0000 |
commit | 192d9e2a95f9602a3d492b88f742e8fa32be204b (patch) | |
tree | a2ffe04995916795f5cd1bc87fc82cbad9139e61 | |
parent | Addin patch to use system python modules rather than first trying embedded co... (diff) | |
download | netdata-192d9e2a95f9602a3d492b88f742e8fa32be204b.tar.xz netdata-192d9e2a95f9602a3d492b88f742e8fa32be204b.zip |
Adding patch to use system dlib.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | debian/control | 1 | ||||
-rw-r--r-- | debian/patches/debian/0008-use-dlib.patch | 37 | ||||
-rw-r--r-- | debian/patches/series | 1 |
3 files changed, 39 insertions, 0 deletions
diff --git a/debian/control b/debian/control index b23919d7a..4f63fc3d4 100644 --- a/debian/control +++ b/debian/control @@ -11,6 +11,7 @@ Build-Depends: dh-apache2, libcap-dev, libcups2-dev, + libdlib-dev, libelf-dev, libh2o-dev-common, libipmimonitoring-dev, diff --git a/debian/patches/debian/0008-use-dlib.patch b/debian/patches/debian/0008-use-dlib.patch new file mode 100644 index 000000000..83206e208 --- /dev/null +++ b/debian/patches/debian/0008-use-dlib.patch @@ -0,0 +1,37 @@ +Author: Daniel Baumann <daniel@debian.org> +Description: Use system dlib. + +diff -Naurp netdata.orig/CMakeLists.txt netdata/CMakeLists.txt +--- netdata.orig/CMakeLists.txt ++++ netdata/CMakeLists.txt +@@ -1194,7 +1194,6 @@ if(ENABLE_ML) + src/ml/ad_charts.h + src/ml/ad_charts.cc + src/ml/Config.cc +- src/ml/dlib/dlib/all/source.cpp + src/ml/ml.h + src/ml/ml.cc + src/ml/ml-private.h +diff -Naurp netdata.orig/src/ml/ml-private.h netdata/src/ml/ml-private.h +--- netdata.orig/src/ml/ml-private.h ++++ netdata/src/ml/ml-private.h +@@ -3,7 +3,7 @@ + #ifndef NETDATA_ML_PRIVATE_H + #define NETDATA_ML_PRIVATE_H + +-#include "dlib/dlib/matrix.h" ++#include <dlib/matrix.h> + + // CentOS 7 shenanigans + #include <cmath> +diff -Naurp netdata.orig/src/ml/ml.cc netdata/src/ml/ml.cc +--- netdata.orig/src/ml/ml.cc ++++ netdata/src/ml/ml.cc +@@ -1,6 +1,6 @@ + // SPDX-License-Identifier: GPL-3.0-or-later + +-#include "dlib/dlib/clustering.h" ++#include <dlib/clustering.h> + + #include "ml-private.h" + diff --git a/debian/patches/series b/debian/patches/series index b423565d3..44c048d32 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ debian/0004-use-bash.patch debian/0005-send-email.patch debian/0006-use-pyaml3.patch debian/0007-use-python-modules.patch +debian/0008-use-dlib.patch |