git: 17d819351f98 - main - net-mgmt/netdata: Fix ML option

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 12 Jul 2023 02:30:22 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=17d819351f980301b6ebe99d3865c211a290d67f

commit 17d819351f980301b6ebe99d3865c211a290d67f
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-07-05 18:55:25 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-07-12 02:30:20 +0000

    net-mgmt/netdata: Fix ML option
    
    Fix option that accidently broke during rebase
    
    PR:             272279
    Reported by:    Trond Endrestol <Trond.Endrestol@ximalas.info>
    Tested by:      Trond Endrestol <Trond.Endrestol@ximalas.info>
    Reviewed by:    Namkhai B <me@forkbomb9.ch> (private email)
---
 net-mgmt/netdata/files/patch-Makefile.am | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/net-mgmt/netdata/files/patch-Makefile.am b/net-mgmt/netdata/files/patch-Makefile.am
new file mode 100644
index 000000000000..367db902e3fb
--- /dev/null
+++ b/net-mgmt/netdata/files/patch-Makefile.am
@@ -0,0 +1,29 @@
+--- Makefile.am.orig	2023-06-17 06:42:31 UTC
++++ Makefile.am
+@@ -39,7 +39,6 @@ EXTRA_DIST = \
+     build/m4/ax_c__generic.m4 \
+     build/m4/ax_compiler_vendor.m4 \
+     build/m4/ax_cxx_compile_stdcxx.m4 \
+-    ml/dlib \
+     README.md \
+     LICENSE \
+     REDISTRIBUTED.md \
+@@ -256,16 +255,15 @@ ML_FILES += \
+     ml/ad_charts.h \
+     ml/ad_charts.cc \
+     ml/Config.cc \
+-    ml/dlib/dlib/all/source.cpp \
+     ml/ml-private.h \
+     ml/ml.cc \
+     $(NULL)
+ 
+ # Disable warnings from dlib library
+-ml/dlib/dlib/all/source.$(OBJEXT) : CXXFLAGS += -Wno-sign-compare -Wno-type-limits -Wno-aggressive-loop-optimizations -Wno-stringop-overflow -Wno-psabi
++# ml/dlib/dlib/all/source.$(OBJEXT) : CXXFLAGS += -Wno-sign-compare -Wno-type-limits -Wno-aggressive-loop-optimizations -Wno-stringop-overflow -Wno-psabi
+ 
+ # Disable ml warnings
+-ml/ml.$(OBJEXT) : CXXFLAGS += -Wno-psabi
++# ml/ml.$(OBJEXT) : CXXFLAGS += -Wno-psabi
+ 
+ endif
+