git: 91943263b3fa - main - net-mgmt/collectd5: Chase 31418910e0f4, update sysutils/nut to 2.8.0

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 09 May 2022 18:11:31 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=91943263b3fab0662169ae5b4a73488022ec6ee1

commit 91943263b3fab0662169ae5b4a73488022ec6ee1
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-05-07 02:22:31 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-05-09 17:49:53 +0000

    net-mgmt/collectd5: Chase 31418910e0f4, update sysutils/nut to 2.8.0
    
    Nut upsclient.h no longer includes time.h. Apps which build against
    upsclient.h must now include time.h or fail to detect nut libraries
    due to missing time_t.
    
    PR:             263791
    Reported by:    Petteri Valkonen <petteri.valkonen@iki.fi>
---
 net-mgmt/collectd5/files/patch-configure.ac | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/net-mgmt/collectd5/files/patch-configure.ac b/net-mgmt/collectd5/files/patch-configure.ac
index 870fc672c5ee..1d8e1e6c772e 100644
--- a/net-mgmt/collectd5/files/patch-configure.ac
+++ b/net-mgmt/collectd5/files/patch-configure.ac
@@ -1,6 +1,14 @@
---- configure.ac.orig	2020-03-19 09:52:56.280271200 +0100
-+++ configure.ac	2020-03-27 19:05:05.205060000 +0100
-@@ -6475,7 +6475,7 @@ AC_ARG_WITH([libslurm],
+--- configure.ac.orig	2020-09-03 04:09:35.126575027 -0700
++++ configure.ac	2022-05-06 19:19:22.707837000 -0700
+@@ -5810,6 +5810,7 @@
+     [],
+     [],
+     [[
++      #include <time.h>
+       #include <stdlib.h>
+       #include <stdio.h>
+       #include <upsclient.h>
+@@ -6507,7 +6508,7 @@
      else if test -d "$with_libslurm/lib"; then
        AC_MSG_NOTICE([Not checking for libslurm: Manually configured])
        with_libslurm_cflags="-I$withval/include"