pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/rsyslog



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Jun 16 17:34:55 UTC 2026

Modified Files:
        pkgsrc/sysutils/rsyslog: distinfo
Added Files:
        pkgsrc/sysutils/rsyslog/patches:
            patch-plugins_omelasticsearch_omelasticsearch.c

Log Message:
rsyslog: Build fix for recent gcc (netbsd-11 ish)

It's not just FreeBSD that needs <unistd.h> for write(2) and
close(2). The Standard demands that we must include it.

Fixes the build of rsyslog-elasticsearch with more recent GCC
versions, which don't like implicit function declarations.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 pkgsrc/sysutils/rsyslog/distinfo
cvs rdiff -u -r0 -r1.3 \
    pkgsrc/sysutils/rsyslog/patches/patch-plugins_omelasticsearch_omelasticsearch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/rsyslog/distinfo
diff -u pkgsrc/sysutils/rsyslog/distinfo:1.41 pkgsrc/sysutils/rsyslog/distinfo:1.42
--- pkgsrc/sysutils/rsyslog/distinfo:1.41       Fri Oct  7 20:22:56 2022
+++ pkgsrc/sysutils/rsyslog/distinfo    Tue Jun 16 17:34:55 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.41 2022/10/07 20:22:56 he Exp $
+$NetBSD: distinfo,v 1.42 2026/06/16 17:34:55 nia Exp $
 
 BLAKE2s (rsyslog-8.38.0.tar.gz) = 156eacb39772f84172a5d8ac0f95f09f324ea006ed648ec093779664dac00862
 SHA512 (rsyslog-8.38.0.tar.gz) = 9dc3bdc4ef01c2af433478e182704694cb50849d811d476a03e4ce03b3c5aecfb506e7f1c1e51fadcd63da60b067d8011b92b8c9354a688fe66f7b6ffd8f9254
@@ -6,6 +6,7 @@ Size (rsyslog-8.38.0.tar.gz) = 2721798 b
 SHA1 (patch-configure) = 8c27c4eae410050a82ae98f32343f980b06e5164
 SHA1 (patch-m4_atomic__operations.m4) = 8f9ca068552263fab12507c0861729c48df7275b
 SHA1 (patch-platform_redhat_rsyslog.conf) = 8cfce2df2551dc2ea81802c4cc1b52933cdda153
+SHA1 (patch-plugins_omelasticsearch_omelasticsearch.c) = 0a84317e3bede4d0360d4aebbfbdb5c39b8892b3
 SHA1 (patch-tools_iminternal.c) = 76e140343456b120cd9f0743e6f10e78f9baaa5d
 SHA1 (patch-tools_rsyslogd.8) = a0eea2ee7832fcb19babca24c7a198ca91386e53
 SHA1 (patch-tools_rsyslogd.c) = b2a295da0b6b667d8913bf9e73f6b2e87923e8be

Added files:

Index: pkgsrc/sysutils/rsyslog/patches/patch-plugins_omelasticsearch_omelasticsearch.c
diff -u /dev/null pkgsrc/sysutils/rsyslog/patches/patch-plugins_omelasticsearch_omelasticsearch.c:1.3
--- /dev/null   Tue Jun 16 17:34:55 2026
+++ pkgsrc/sysutils/rsyslog/patches/patch-plugins_omelasticsearch_omelasticsearch.c     Tue Jun 16 17:34:55 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-plugins_omelasticsearch_omelasticsearch.c,v 1.3 2026/06/16 17:34:55 nia Exp $
+
+It's not just FreeBSD that needs <unistd.h> for write(2) and
+close(2). The Standard demands that we must include it.
+
+Fixes the build of rsyslog-elasticsearch with more recent GCC
+versions, which don't like implicit function declarations.
+
+--- plugins/omelasticsearch/omelasticsearch.c.orig     2026-06-16 17:27:35.355077332 +0000
++++ plugins/omelasticsearch/omelasticsearch.c
+@@ -38,9 +38,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+-#if defined(__FreeBSD__)
+ #include <unistd.h>
+-#endif
+ #include <json.h>
+ #include "conf.h"
+ #include "syslogd-types.h"



Home | Main Index | Thread Index | Old Index