[packages/collectd] more build deps and typee fixes

atler atler at pld-linux.org
Mon Jul 28 22:31:34 CEST 2025


commit 32b0aacf10920634b30da98d26edbf51354a22fb
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 28 22:27:15 2025 +0200

    more build deps and typee fixes
    
    for unpackaged prometheus writer

 collectd.spec |  2 ++
 types.patch   | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/collectd.spec b/collectd.spec
index 13e6258..97a86ed 100644
--- a/collectd.spec
+++ b/collectd.spec
@@ -218,6 +218,7 @@ BuildRequires:	libdbi-devel
 %{?with_libesmtp:BuildRequires:	libesmtp-devel}
 BuildRequires:	libltdl-devel
 BuildRequires:	libmemcached-devel
+BuildRequires:	libmicrohttpd-devel
 %{?with_modbus:BuildRequires:	libmodbus-devel}
 %{?with_netlink:BuildRequires:	libmnl-devel}
 %{?with_libvirt:BuildRequires:	libnl1-devel}
@@ -240,6 +241,7 @@ BuildRequires:	perl-devel
 BuildRequires:	pkgconfig
 %{?with_pgsql:BuildRequires:	postgresql-devel}
 BuildRequires:	protobuf-c
+BuildRequires:	protobuf-c-devel
 BuildRequires:	protobuf-devel
 BuildRequires:	python-devel
 BuildRequires:	python-modules
diff --git a/types.patch b/types.patch
index 968109e..33999b4 100644
--- a/types.patch
+++ b/types.patch
@@ -18,3 +18,14 @@
    int status;
  
    /* (Re-)Connect if we have no connection */
+--- collectd-5.9.2/src/write_prometheus.c.orig	2019-10-01 14:00:47.000000000 +0200
++++ collectd-5.9.2/src/write_prometheus.c	2025-07-28 22:24:38.006061329 +0200
+@@ -227,7 +227,7 @@
+ 
+ /* http_handler is the callback called by the microhttpd library. It essentially
+  * handles all HTTP request aspects and creates an HTTP response. */
+-static int http_handler(void *cls, struct MHD_Connection *connection,
++static enum MHD_Result http_handler(void *cls, struct MHD_Connection *connection,
+                         const char *url, const char *method,
+                         const char *version, const char *upload_data,
+                         size_t *upload_data_size, void **connection_state) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/collectd.git/commitdiff/32b0aacf10920634b30da98d26edbf51354a22fb



More information about the pld-cvs-commit mailing list