From 162287c26c5f9610ec4344414851ebe8ccccc8a7 Mon Sep 17 00:00:00 2001
From: "Austin S. Hemmelgarn" <austin@netdata.cloud>
Date: Fri, 22 Sep 2023 12:27:32 +0300
Subject: [PATCH] Disable mongodb exporter builds where broken. (#16033)

---
 netdata.spec.in                                   | 3 +++
 packaging/makeself/jobs/70-netdata-git.install.sh | 1 +
 2 files changed, 4 insertions(+)

diff --git a/netdata.spec.in b/netdata.spec.in
index fe4d19bd7b..777be68f93 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -286,6 +286,9 @@ autoreconf -ivf
 	--with-bundled-protobuf \
 	%endif
 	%endif
+	%if 0%{?oraclelinux}
+	--disable-exporting-mongodb \
+	%endif
 	--prefix="%{_prefix}" \
 	--sysconfdir="%{_sysconfdir}" \
 	--localstatedir="%{_localstatedir}" \
diff --git a/packaging/makeself/jobs/70-netdata-git.install.sh b/packaging/makeself/jobs/70-netdata-git.install.sh
index cba3466a3b..62f0c822db 100755
--- a/packaging/makeself/jobs/70-netdata-git.install.sh
+++ b/packaging/makeself/jobs/70-netdata-git.install.sh
@@ -31,6 +31,7 @@ run ./netdata-installer.sh \
   --install-prefix "${NETDATA_INSTALL_PARENT}" \
   --dont-wait \
   --dont-start-it \
+  --disable-exporting-mongodb \
   --require-cloud \
   --use-system-protobuf \
   --dont-scrub-cflags-even-though-it-may-break-things \