Package Details: collectd 5.12.0-19

Git Clone URL: https://aur.archlinux.org/collectd.git (read-only, click to copy)
Package Base: collectd
Description: Daemon which collects system performance statistics periodically
Upstream URL: https://collectd.org/
Licenses: MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-only AND ISC AND MIT-0
Submitter: arojas
Maintainer: lilydjwg (lilac)
Last Packager: lilac
Votes: 10
Popularity: 0.008737
First Submitted: 2021-05-08 09:06 (UTC)
Last Updated: 2025-05-19 06:19 (UTC)

Dependencies (59)

Required by (1)

Sources (4)

Latest Comments

1 2 Next › Last »

lilydjwg commented on 2025-05-19 06:35 (UTC)

Thanks! It's been fixed.

winnie_ua commented on 2025-05-18 16:44 (UTC)

You can apply following patch to THIS aur repo, to fix the issue:

commit c4ac439399803572548aee1c8f6d61567f322146
Author: Bohdan Mart <mart.bogdan@foo.bar>
Date:   Sun May 18 19:41:32 2025 +0300

    Fix build on recent compiller toolchain

diff --git a/.SRCINFO b/.SRCINFO
index 68a1148..79cba86 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -68,9 +68,11 @@ pkgbase = collectd
    backup = etc/collectd.conf
    source = https://storage.googleapis.com/collectd-tarballs/collectd-5.12.0.tar.bz2
    source = https://github.com/collectd/collectd/commit/623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch
+   source = ansidecl.patch
    source = service
    sha256sums = 5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6
    sha256sums = 777544cbf803af4d08ea228b29619f8f6e7a4777a85e0fb30693d8240db7246b
+   sha256sums = 654ea6812c9c4d6b049d39c2b82b29e2e2ade6dd5220d47feae3b60e0d6b2ce9
    sha256sums = 83957b0b2cc7fa05a4d5f22e6c913ae2b0a4d7821f7b4e2d2e763054cc8c6c21

 pkgname = collectd
diff --git a/PKGBUILD b/PKGBUILD
index 0a960c8..156cff9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,9 +44,11 @@ depends=('libltdl' 'iptables' 'libnsl')

 source=("https://storage.googleapis.com/collectd-tarballs/${pkgname}-${pkgver}.tar.bz2"
         https://github.com/collectd/collectd/commit/623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch
+        ansidecl.patch
         'service')
 sha256sums=('5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6'
             '777544cbf803af4d08ea228b29619f8f6e7a4777a85e0fb30693d8240db7246b'
+            '654ea6812c9c4d6b049d39c2b82b29e2e2ade6dd5220d47feae3b60e0d6b2ce9'
             '83957b0b2cc7fa05a4d5f22e6c913ae2b0a4d7821f7b4e2d2e763054cc8c6c21')

 backup=('etc/collectd.conf')
@@ -55,6 +57,7 @@ prepare() {
    cd ${pkgname}-${pkgver}
    sed -i '/sys\/mount.h/d' src/utils/mount/mount.h
         patch -Np1 < ../623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch
+        patch -Np0 < ../ansidecl.patch
 }

 build() {
diff --git a/ansidecl.patch b/ansidecl.patch
new file mode 100644
index 0000000..441590e
--- /dev/null
+++ b/ansidecl.patch
@@ -0,0 +1,10 @@
+--- src/virt.c 2025-05-18 19:23:51.824279945 +0300
++++ src/virt.c 2025-05-18 19:24:15.811276218 +0300
+@@ -35,6 +35,7 @@
+ #include <libxml/xpath.h>
+ #include <libxml/xpathInternals.h>
+ #include <stdbool.h>
++#include <ansidecl.h>
+ 
+ /* Plugin name */
+ #define PLUGIN_NAME "virt"

so I've basically made this patch to apply to src:

--- src/virt.c  2025-05-18 19:23:51.824279945 +0300
+++ src/virt.c  2025-05-18 19:24:15.811276218 +0300
@@ -35,6 +35,7 @@
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
 #include <stdbool.h>
+#include <ansidecl.h>

 /* Plugin name */
 #define PLUGIN_NAME "virt"

winnie_ua commented on 2025-05-18 15:31 (UTC)

I'm getting following build errors:

src/virt.c:2208:49: error: expected ';', ',' or ')' before 'ATTRIBUTE_UNUSED'
 2208 | static void virt_eventloop_timeout_cb(int timer ATTRIBUTE_UNUSED,
      |                                                 ^~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/daemon -DPREFIX=\"/usr\" -DCONFIGFILE=\"/etc/collectd.conf\" -DLOCALSTATEDIR=\"/var\" -DPKGLOCALSTATEDIR=\"/var/lib/collectd\" -DPLUGINDIR=\"/usr/lib/collectd\" -DPKGDATADIR=\"/usr/share/collectd\" -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wno-incompatible-pointer-types -MT src/wireless.lo -MD -MP -MF src/.deps/wireless.Tpo -c src/wireless.c  -fPIC -DPIC -o src/.libs/wireless.o
src/virt.c: In function 'register_event_impl':
src/virt.c:2221:26: error: 'virt_eventloop_timeout_cb' undeclared (first use in this function)
 2221 |                          virt_eventloop_timeout_cb, NULL, NULL) < 0) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~

zork commented on 2024-08-28 11:19 (UTC)

Ok, my fault. I removed base-devel earlier.

lilydjwg commented on 2024-08-28 03:03 (UTC)

@zork do you mean build time dependency or runtime dependency? For build time, pkgconf is depended by base-devel, so it's implicitly assumed.

zork commented on 2024-08-27 16:48 (UTC)

Thanks, it works, but now pkgconf is a required dependency.

lilydjwg commented on 2024-06-21 11:11 (UTC)

Fixed. libgcrypt-config is gone: https://dev.gnupg.org/T5034. Upstream issue: https://github.com/collectd/collectd/issues/4310

zork commented on 2024-06-21 09:38 (UTC)

Currently failing with:

gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/write_log.exp
/usr/bin/ld: ./.libs/libcollectdclient.so: undefined reference to `gcry_md_close'
/usr/bin/ld: ./.libs/libcollectdclient.so: undefined reference to `gcry_cipher_close'

... and more gcry_... undefined references

lilydjwg commented on 2024-05-29 00:57 (UTC)

@Levitating yes, it's set by upstream. Search "Password" in the file and you can see why. You can change the permissions if you want of course.

Levitating commented on 2024-05-28 23:13 (UTC)

Is the config supposed to not be world-readable?