git: b6bbc802a004 - main - sysutils/rsyslog8: Upgrade to 8.2606.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jun 2026 21:07:37 UTC
The branch main has been updated by matthew:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b6bbc802a004081c34cab7799280aab0553912f4
commit b6bbc802a004081c34cab7799280aab0553912f4
Author: Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2026-06-28 20:59:43 +0000
Commit: Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2026-06-28 21:07:33 +0000
sysutils/rsyslog8: Upgrade to 8.2606.0
* Delete `extra-patch-sane-hostname` -- the file this was aimed at
no longer contains any code around hostnames.
* Update `extra-patch-mysql-microseconds` -- this had bit-rotted
somewhat, but could be recovered.
* New OPTION: BEATS -- accept a feed from any of the Elastic *beats
programs
* Fix a failure when running `autoreconf` from autoconfigure-2.72
(the default on FreeBSD) whereas upstream seems to be using
autoconfigure-2.71 successfully.
Changes: https://github.com/rsyslog/rsyslog/blob/v8.2606.0/ChangeLog
Reported by: repology, GitHub release notifications
---
sysutils/rsyslog8/Makefile | 14 ++---
sysutils/rsyslog8/distinfo | 6 +-
.../rsyslog8/files/extra-patch-mysql-microseconds | 69 ++++++++++++----------
sysutils/rsyslog8/files/extra-patch-sane-hostname | 40 -------------
sysutils/rsyslog8/files/patch-configure.ac | 12 ++++
.../files/patch-plugins_impstats_Makefile.am | 14 ++---
sysutils/rsyslog8/files/patch-runtime_nsd__ossl.c | 4 +-
7 files changed, 69 insertions(+), 90 deletions(-)
diff --git a/sysutils/rsyslog8/Makefile b/sysutils/rsyslog8/Makefile
index 61c3e112b291..885a7aee5527 100644
--- a/sysutils/rsyslog8/Makefile
+++ b/sysutils/rsyslog8/Makefile
@@ -1,5 +1,5 @@
PORTNAME= rsyslog
-PORTVERSION= 8.2604.0
+PORTVERSION= 8.2606.0
CATEGORIES= sysutils
MASTER_SITES= http://www.rsyslog.com/files/download/rsyslog/
@@ -24,13 +24,17 @@ USES= cpe libtool pkgconfig autoreconf python:env
PORTSCOUT= limit:^8\.
-OPTIONS_DEFINE= DBI DOCS DTLS ELASTIC GCRYPT GSSAPI HTTP JSONPARSE KAFKA \
- MYSQL NORMALIZE PGSQL RABBITMQ RELP SNMP
+OPTIONS_DEFINE= BEATS DBI DOCS DTLS ELASTIC GCRYPT GSSAPI HTTP JSONPARSE \
+ KAFKA MYSQL NORMALIZE PGSQL RABBITMQ RELP SNMP
OPTIONS_RADIO= SSLLIB
OPTIONS_RADIO_SSLLIB= GNUTLS OPENSSL
OPTIONS_DEFAULT=GCRYPT
OPTIONS_SUB= yes
+BEATS_DESC= Enable input from Elastic *Beats
+BEATS_CONFIGURE_ENABLE= imbeats
+BEATS_PLIST_FILES= lib/rsyslog/imbeats.so
+
DBI_DESC= LibDBI output module for rsyslog
DBI_LIB_DEPENDS= libdbi.so:databases/libdbi
DBI_CONFIGURE_ENABLE= libdbi
@@ -121,10 +125,6 @@ SNMP_PLIST_FILES= lib/rsyslog/omsnmp.so
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-mysql-microseconds
.endif
-.ifdef WITH_SANE_HOSTNAME
-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-sane-hostname
-.endif
-
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/sysutils/rsyslog8/distinfo b/sysutils/rsyslog8/distinfo
index b09e18431c1f..63690f4882cf 100644
--- a/sysutils/rsyslog8/distinfo
+++ b/sysutils/rsyslog8/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1776782088
-SHA256 (rsyslog-8.2604.0.tar.gz) = 2a04b1cd6f0a5e2b60eec231acce3cf9927c4ed02bc5fbbe5dc4c35fcf887b64
-SIZE (rsyslog-8.2604.0.tar.gz) = 11110778
+TIMESTAMP = 1782557309
+SHA256 (rsyslog-8.2606.0.tar.gz) = 2574b3f3068e6955eb94ef5643e2b6a5b8585cc8eaa77209ff5cbc1e2e5f71e5
+SIZE (rsyslog-8.2606.0.tar.gz) = 11379436
diff --git a/sysutils/rsyslog8/files/extra-patch-mysql-microseconds b/sysutils/rsyslog8/files/extra-patch-mysql-microseconds
index ec248b064741..ce91ec64048a 100644
--- a/sysutils/rsyslog8/files/extra-patch-mysql-microseconds
+++ b/sysutils/rsyslog8/files/extra-patch-mysql-microseconds
@@ -1,21 +1,21 @@
---- ./runtime/datetime.c.orig 2010-05-04 18:57:25.588028725 -0400
-+++ ./runtime/datetime.c 2010-05-04 18:59:12.390680038 -0400
-@@ -644,18 +644,30 @@
- pBuf[1] = (ts->year / 100) % 10 + '0';
- pBuf[2] = (ts->year / 10) % 10 + '0';
- pBuf[3] = ts->year % 10 + '0';
-- pBuf[4] = (ts->month / 10) % 10 + '0';
-- pBuf[5] = ts->month % 10 + '0';
-- pBuf[6] = (ts->day / 10) % 10 + '0';
-- pBuf[7] = ts->day % 10 + '0';
-- pBuf[8] = (ts->hour / 10) % 10 + '0';
-- pBuf[9] = ts->hour % 10 + '0';
-- pBuf[10] = (ts->minute / 10) % 10 + '0';
-- pBuf[11] = ts->minute % 10 + '0';
-- pBuf[12] = (ts->second / 10) % 10 + '0';
-- pBuf[13] = ts->second % 10 + '0';
-- pBuf[14] = '\0';
-- return 15;
+--- runtime/datetime.c.orig 2026-06-23 11:08:14 UTC
++++ runtime/datetime.c
+@@ -788,18 +788,30 @@ static int formatTimestampToMySQL(struct syslogTime *t
+ pBuf[1] = (ts->year / 100) % 10 + '0';
+ pBuf[2] = (ts->year / 10) % 10 + '0';
+ pBuf[3] = ts->year % 10 + '0';
+- pBuf[4] = (ts->month / 10) % 10 + '0';
+- pBuf[5] = ts->month % 10 + '0';
+- pBuf[6] = (ts->day / 10) % 10 + '0';
+- pBuf[7] = ts->day % 10 + '0';
+- pBuf[8] = (ts->hour / 10) % 10 + '0';
+- pBuf[9] = ts->hour % 10 + '0';
+- pBuf[10] = (ts->minute / 10) % 10 + '0';
+- pBuf[11] = ts->minute % 10 + '0';
+- pBuf[12] = (ts->second / 10) % 10 + '0';
+- pBuf[13] = ts->second % 10 + '0';
+- pBuf[14] = '\0';
+- return 15;
+ pBuf[4] = '-';
+ pBuf[5] = (ts->month / 10) % 10 + '0';
+ pBuf[6] = ts->month % 10 + '0';
@@ -39,18 +39,25 @@
+ pBuf[24] = (ts->secfrac / 10) % 10 + '0';
+ pBuf[25] = ts->secfrac % 10 + '0';
+ pBuf[26] = '\0';
-+ return 26;
-
++ return 26;
}
---- ./runtime/msg.c.orig 2010-05-04 19:00:20.241528788 -0400
-+++ ./runtime/msg.c 2010-05-04 19:00:06.136349680 -0400
-@@ -1293,7 +1293,7 @@
- case tplFmtMySQLDate:
- MsgLock(pM);
- if(pM->pszTIMESTAMP_MySQL == NULL) {
-- if((pM->pszTIMESTAMP_MySQL = MALLOC(15)) == NULL) {
-+ if((pM->pszTIMESTAMP_MySQL = MALLOC(26)) == NULL) {
- MsgUnlock(pM);
- return "";
- }
+ static int formatTimestampToPgSQL(struct syslogTime *ts, char *pBuf) {
+@@ -1385,4 +1397,4 @@ ENDObjClassInit(datetime)
+ ENDObjClassInit(datetime)
+
+ /* vi:set ai:
+- */
+\ No newline at end of file
++ */
+--- runtime/msg.c.orig 2026-06-23 11:08:14 UTC
++++ runtime/msg.c
+@@ -1624,7 +1624,7 @@ const char *getTimeReported(smsg_t *const pM, enum tpl
+ case tplFmtMySQLDate:
+ MsgLock(pM);
+ if (pM->pszTIMESTAMP_MySQL == NULL) {
+- if ((pM->pszTIMESTAMP_MySQL = malloc(15)) == NULL) {
++ if ((pM->pszTIMESTAMP_MySQL = malloc(26)) == NULL) {
+ MsgUnlock(pM);
+ return "";
+ }
diff --git a/sysutils/rsyslog8/files/extra-patch-sane-hostname b/sysutils/rsyslog8/files/extra-patch-sane-hostname
deleted file mode 100644
index bc7251475d81..000000000000
--- a/sysutils/rsyslog8/files/extra-patch-sane-hostname
+++ /dev/null
@@ -1,40 +0,0 @@
---- ./tools/syslogd.c.orig 2010-05-04 19:02:05.548362478 -0400
-+++ ./tools/syslogd.c 2010-05-04 19:02:27.452450741 -0400
-@@ -2611,37 +2611,6 @@
- net.getLocalHostname(&LocalFQDNName);
- CHKmalloc(LocalHostName = (uchar*) strdup((char*)LocalFQDNName));
- glbl.SetLocalFQDNName(LocalFQDNName); /* set the FQDN before we modify it */
-- if((p = (uchar*)strchr((char*)LocalHostName, '.'))) {
-- *p++ = '\0';
-- LocalDomain = p;
-- } else {
-- LocalDomain = (uchar*)"";
--
-- /* It's not clearly defined whether gethostname()
-- * should return the simple hostname or the fqdn. A
-- * good piece of software should be aware of both and
-- * we want to distribute good software. Joey
-- *
-- * Good software also always checks its return values...
-- * If syslogd starts up before DNS is up & /etc/hosts
-- * doesn't have LocalHostName listed, gethostbyname will
-- * return NULL.
-- */
-- /* TODO: gethostbyname() is not thread-safe, but replacing it is
-- * not urgent as we do not run on multiple threads here. rgerhards, 2007-09-25
-- */
-- hent = gethostbyname((char*)LocalHostName);
-- if(hent) {
-- free(LocalHostName);
-- CHKmalloc(LocalHostName = (uchar*)strdup(hent->h_name));
--
-- if((p = (uchar*)strchr((char*)LocalHostName, '.')))
-- {
-- *p++ = '\0';
-- LocalDomain = p;
-- }
-- }
-- }
-
- /* Convert to lower case to recognize the correct domain laterly */
- for(p = LocalDomain ; *p ; p++)
diff --git a/sysutils/rsyslog8/files/patch-configure.ac b/sysutils/rsyslog8/files/patch-configure.ac
new file mode 100644
index 000000000000..3cf9797b7bb8
--- /dev/null
+++ b/sysutils/rsyslog8/files/patch-configure.ac
@@ -0,0 +1,12 @@
+--- configure.ac.orig 2026-06-27 12:08:57 UTC
++++ configure.ac
+@@ -56,9 +56,6 @@ then
+
+ if test "$GCC" = "yes"
+ then
+- m4_pattern_forbid([^AX_])
+- AX_IS_RELEASE([git-directory])
+- AX_COMPILER_FLAGS(,,,,[-Wunused-parameter -Wmissing-field-initializers])
+ # unfortunately, AX_COMPILER_FLAGS does not provide a way to override
+ # the default -Wno-error=warning" flags. So we do this via sed below.
+ # Note: we *really* want to have this error out during CI testing!
diff --git a/sysutils/rsyslog8/files/patch-plugins_impstats_Makefile.am b/sysutils/rsyslog8/files/patch-plugins_impstats_Makefile.am
index ed3803f9d8dc..1d8422cda1d1 100644
--- a/sysutils/rsyslog8/files/patch-plugins_impstats_Makefile.am
+++ b/sysutils/rsyslog8/files/patch-plugins_impstats_Makefile.am
@@ -1,11 +1,11 @@
---- plugins/impstats/Makefile.am.orig 2026-02-16 13:33:21 UTC
+--- plugins/impstats/Makefile.am.orig 2026-06-23 11:08:14 UTC
+++ plugins/impstats/Makefile.am
-@@ -34,7 +34,7 @@ remote.pb-c.c remote.pb-c.h: remote.proto
- BUILT_SOURCES = remote.pb-c.c remote.pb-c.h
+@@ -35,7 +35,7 @@ remote.pb-c.stamp: remote.proto
+ remote.pb-c.c remote.pb-c.h: remote.pb-c.stamp
- remote.pb-c.c remote.pb-c.h: remote.proto
+ remote.pb-c.stamp: remote.proto
- $(PROTOC_C) --proto_path=$(srcdir) --c_out=. $<
+ $(PROTOC_C) --c_out=. $>
-
- CLEANFILES = remote.pb-c.c remote.pb-c.h
- endif
+ { \
+ echo '#if defined(__GNUC__)'; \
+ echo '#pragma GCC diagnostic push'; \
diff --git a/sysutils/rsyslog8/files/patch-runtime_nsd__ossl.c b/sysutils/rsyslog8/files/patch-runtime_nsd__ossl.c
index d51a0d2e1a31..04df56a387d9 100644
--- a/sysutils/rsyslog8/files/patch-runtime_nsd__ossl.c
+++ b/sysutils/rsyslog8/files/patch-runtime_nsd__ossl.c
@@ -1,6 +1,6 @@
---- runtime/nsd_ossl.c.orig 2026-02-07 11:43:26 UTC
+--- runtime/nsd_ossl.c.orig 2026-06-23 11:08:14 UTC
+++ runtime/nsd_ossl.c
-@@ -889,7 +889,7 @@ rsRetVal osslPostHandshakeCheck(nsd_ossl_t *pNsd) {
+@@ -921,7 +921,7 @@ rsRetVal osslPostHandshakeCheck(nsd_ossl_t *pNsd) {
if (SSL_get_shared_ciphers(pNsd->pNetOssl->ssl, szDbg, sizeof szDbg) != NULL)
dbgprintf("osslPostHandshakeCheck: Debug Shared ciphers = %s\n", szDbg);