Page MenuHomeFreeBSD

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/net-mgmt/collectd5/Makefile b/net-mgmt/collectd5/Makefile
index f455711bbbaa..e95f2867eda8 100644
--- a/net-mgmt/collectd5/Makefile
+++ b/net-mgmt/collectd5/Makefile
@@ -3 +3 @@ DISTVERSION= 5.12.0
-PORTREVISION= 24
+PORTREVISION= 25
@@ -157,2 +157,2 @@ MODBUS_CONFIGURE_WITH= libmodbus=use_pkgconfig
-MONGODB_LIB_DEPENDS= libbson-1.0.so:devel/libbson \
- libmongoc-1.0.so:devel/mongo-c-driver
+MONGODB_LIB_DEPENDS= libbson2.so:devel/libbson \
+ libmongoc2.so:devel/mongo-c-driver
diff --git a/net-mgmt/collectd5/files/patch-configure.ac b/net-mgmt/collectd5/files/patch-configure.ac
index a0a08e537d02..52604453e622 100644
--- a/net-mgmt/collectd5/files/patch-configure.ac
+++ b/net-mgmt/collectd5/files/patch-configure.ac
@@ -12 +12 @@
-@@ -725,7 +725,7 @@ AC_C_CONST
+@@ -725,7 +725,7 @@ AC_TYPE_UID_T
@@ -21 +21 @@
-@@ -757,7 +757,7 @@ AC_FUNC_STRERROR_R
+@@ -757,7 +757,7 @@ if test "x$GCC" = "xyes"; then
@@ -30 +30 @@
-@@ -929,7 +929,7 @@ AC_CHECK_FUNCS([thread_info], [have_thread_info="yes"]
+@@ -929,7 +929,7 @@ if test "x$GCC" = "xyes"; then
@@ -52 +52,19 @@
-@@ -3454,7 +3454,7 @@ if test "x$with_libmongoc" = "xyes"; then
+@@ -3430,7 +3430,7 @@ if test "x$with_libmongoc" = "xyes"; then
+ )
+
+ if test "x$with_libmongoc" = "xyes"; then
+- PKG_CHECK_MODULES([LIBMONGOC], [libmongoc-1.0],
++ PKG_CHECK_MODULES([LIBMONGOC], [mongoc2],
+ [with_libmongoc="yes"],
+ [with_libmongoc="no (pkg-config could not find libmongoc)"]
+ )
+@@ -3441,7 +3441,7 @@ if test "x$with_libmongoc" = "xyes"; then
+
+ CPPFLAGS="$CPPFLAGS $LIBMONGOC_CFLAGS"
+
+- AC_CHECK_HEADERS([mongoc.h],
++ AC_CHECK_HEADERS([mongoc/mongoc.h],
+ [with_libmongoc="yes"],
+ [with_libmongoc="no ('mongoc.h' not found)"]
+ )
+@@ -3454,9 +3454,9 @@ if test "x$with_libmongoc" = "xyes"; then
@@ -59 +77,2 @@
- AC_CHECK_LIB([mongoc-1.0], [mongoc_init],
+- AC_CHECK_LIB([mongoc-1.0], [mongoc_init],
++ AC_CHECK_LIB([mongoc2], [mongoc_init],
@@ -60,0 +80,2 @@
+ [with_libmongoc="no (symbol 'mongoc_init' not found)"]
+ )
@@ -96 +117 @@
-@@ -6579,7 +6580,7 @@ collectd features:])
+@@ -6579,7 +6580,7 @@ AC_COLLECTD([getifaddrs],[enable], [feature], [getifa
diff --git a/net-mgmt/collectd5/files/patch-src_write__mongodb.c b/net-mgmt/collectd5/files/patch-src_write__mongodb.c
new file mode 100644
index 000000000000..1892ff72d5b6
--- /dev/null
+++ b/net-mgmt/collectd5/files/patch-src_write__mongodb.c
@@ -0,0 +1,11 @@
+--- src/write_mongodb.c.orig 2026-07-07 01:39:52 UTC
++++ src/write_mongodb.c
+@@ -36,7 +36,7 @@
+ #include "utils/common/common.h"
+ #include "utils_cache.h"
+
+-#include <mongoc.h>
++#include <mongoc/mongoc.h>
+
+ struct wm_node_s {
+ char name[DATA_MAX_NAME_LEN];

File Metadata

Mime Type
text/x-diff
Expires
Thu, Aug 6, 11:47 AM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29349227
Default Alt Text
(2 KB)

Event Timeline