head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.28 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.26 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.24 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.22 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.20 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.18 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.16 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.14 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.12 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.10 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.8 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.6 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.4 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.2 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.4.0.34 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.32 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.30 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.28 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.26 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.24 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.22 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.20 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.18 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.16 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.12 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.14 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.10 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.8 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.6 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.4 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.2 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.3.0.4 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.2 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.2.0.8 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.6 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.2 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.1.0.4 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.2 pkgsrc-2016Q4-base:1.1; locks; strict; comment @# @; 1.5 date 2022.10.07.20.22.56; author he; state Exp; branches; next 1.4; commitid C4WSGvzWWodEgPWD; 1.4 date 2018.09.20.13.30.11; author fhajny; state Exp; branches; next 1.3; commitid 3NMcxWgG9sGcwQSA; 1.3 date 2018.02.23.11.18.08; author fhajny; state Exp; branches; next 1.2; commitid BThRYekyZcUovYrA; 1.2 date 2017.05.18.13.27.44; author fhajny; state Exp; branches; next 1.1; commitid b2oio5AXdVHQfSRz; 1.1 date 2016.12.05.10.36.46; author fhajny; state Exp; branches; next ; commitid mpdv6Z6SOxDAxMwz; desc @@ 1.5 log @sysutils/rsyslog: also test for atomic ops on time_t. This is to cater to 32-bit NetBSD ports, where time_t is also (and has been for a long time) __int64_t. Without this check, __sync_bool_compare_and_swap_8 would end up being undefined when linking rsyslog, since the compiler isn't obliged to supply that. This causes the pthread / locking variant to be chosen on these systems, but makes rsyslog build, at least. (An earlier attempt at doing this only for time_t was met with complications and was therefore abandoned.) There's also just a single use of ATOMIC_CAS_time_t() in rsyslog... Submitted upstream in https://github.com/rsyslog/rsyslog/pull/4994 @ text @$NetBSD: patch-configure,v 1.4 2018/09/20 13:30:11 fhajny Exp $ Portability. Also, test whether we can do atomics on time_t, not possible on 32-bit CPUs running NetBSD (where time_t is __int64_t) --- configure.orig 2018-09-17 11:27:47.000000000 +0000 +++ configure @@@@ -15579,7 +15579,7 @@@@ $as_echo "#define OS_AIX 1" >>confdefs.h ;; esac - if test x$os_type == xapple; then + if test x$os_type = xapple; then OS_APPLE_TRUE= OS_APPLE_FALSE='#' else @@@@ -15587,7 +15587,7 @@@@ else OS_APPLE_FALSE= fi - if test x$os_type == xlinux; then + if test x$os_type = xlinux; then OS_LINUX_TRUE= OS_LINUX_FALSE='#' else @@@@ -15595,7 +15595,7 @@@@ else OS_LINUX_FALSE= fi - if test x$os_type == xaix; then + if test x$os_type = xaix; then OS_AIX_TRUE= OS_AIX_FALSE='#' else @@@@ -17265,40 +17265,54 @@@@ else else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include int main() { unsigned long val = 1010, tmp, *mem = &val; + time_t tval = 1010, ttmp, *tmem = &tval; + if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020) return 1; - tmp = val; - if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010) return 1; - if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0) return 1; - tmp = 3030; - if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp) return 1; - if (__sync_lock_test_and_set(&val, 4040) != 3030) return 1; - mem = &tmp; - if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp) return 1; + if (__sync_fetch_and_add(&tval, 1010) != 1010 || tval != 2020) + return 1; + ttmp = tval; + if (__sync_fetch_and_sub(tmem, 1010) != ttmp || tval != 1010) + return 1; + if (__sync_sub_and_fetch(&tval, 1010) != 0 || tval != 0) + return 1; + ttmp = 3030; + if (__sync_val_compare_and_swap(tmem, 0, ttmp) != 0 || tval != ttmp) + return 1; + if (__sync_lock_test_and_set(&tval, 4040) != 3030) + return 1; + tmem = &ttmp; + if (__sync_val_compare_and_swap(&tmem, &ttmp, &tval) != &ttmp) + return 1; + __sync_synchronize(); if (mem != &val) return 1; + if (tmem != &tval) + return 1; + return 0; } _ACEOF @ 1.4 log @sysutils/rsyslog*: Update to 8.38.0. Version 8.38.0 [v8-stable] 2018-09-18 - AIX: make basic modules work again - make rsyslog build on AIX again - imfile: support for endmsg.regex - imkafka: add parameter "parseHostName" - im[p]tcp: improve error message on connect failure - imkafka: implement multithreading support for kafka consumers. - omelasticsearch: write all header metadata to $.omes for retries - core: improve error message on module load fail - core/queue: add error message if queue file cannot be accessed - imtcp/imudp: new option preservecase for managing the case of FROMHOST value - omprog: add feedback timeout and keep-alive feature - omprog: fix forceSingleInstance configuration option - imfile: implement file-id, used in state file - imfile: experimental input throtteling feature - core: emit TZ warning on startup not on Linux non-container - omkafka: - better debug information - Fixed minor issue in omkafka producing wrong kafka timestamps when msgTimestamp was NULL. - Setting RD_KAFKA_V_KEY(NULL, 0) in rd_kafka_producev now when KEY is not configured. - Fixed minor issue when rsyslog is compiled with --enable-debug and librdkafka is too old. - omfile bugfix: errant error message when dynafile param needed - omhttp: new contribued module - mmkubertnetes: action fails preparation cycle if kubernetes API destroys resource during bootup sequence - bugfix pmnormalize/core: several memory leaks, invld property handling - bugfix imptcp: fixed pointers for session counting - bugfix omprog: invalid memory access on partial writes to pipe - bugfix omprog: rsyslog's environment was not passed to script - bugfix omprog: severity of some log messages in waitForChild corrected - bugfix imfile: files which were loaded via symlink were not always followed - bugfix imfile: potential misadressing when processing symlinks - bugfix ommongodb: build issue if mongo-c-driver is not compiled with TLS @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.3 2018/02/23 11:18:08 fhajny Exp $ d4 2 d36 63 @ 1.3 log @sysutils/rsyslog: Update to 8.33.0. Version 8.33.0 [v8-stable] 2018-02-20 - auto-detect if running inside a container (as pid 1) - config: add include() script object - template: add option to generate json "container" - core/template: add format jsonf to constant template entries - config: add ability to disable config parameter ("config.enable") - script: permit to use environment variables during configuration - new global config parameter "shutdown.enable.ctl-c" - config optimizer: detect totally empty "if" statements and optimize them out - template: constant entry can now also be formatted as json field - omstdout: support for new-style configuration parameters added - core: set TZ on startup if not already set - imjournal bugfix: file handle leak during journal rotation - lmsig_ksils12 bugfix: dirOwner and dirGroup config was not respected - script bugfix: replace() function worked incorrectly in some cases - build system bugfix: --disable-libcurl did not work - fixed build issues on Alpine Linux - core bugfix: misadressing in external command parser - core bugfix: small memory leak in external command parser - core bugfix: string not properly terminated when RFC5424 MSGID is used - bugfix: strndup() compatibility layer func copies too much @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2017/05/18 13:27:44 fhajny Exp $ d5 1 a5 1 --- configure.orig 2018-01-25 07:37:29.000000000 +0000 d7 1 a7 1 @@@@ -15366,7 +15366,7 @@@@ $as_echo "#define OS_AIX 1" >>confdefs.h d16 1 a16 1 @@@@ -15374,7 +15374,7 @@@@ else d25 9 @ 1.2 log @Update sysutils/rsyslog to 8.27.0 Version 8.27.0 [v8-stable] 2017-05-16 - imkafka: add module - imptcp enhancements: * optionally emit an error message if incoming messages are truncated * optionally emit connection tracking message (on connection create and close) * add "maxFrameSize" parameter to specify the maximum size permitted in octet-counted mode * add parameter "discardTruncatedMsg" to permit truncation of oversize messages * improve octect-counted mode detection: if the octet count is larger then the set frame size (or overly large in general), it is now assumed that octet-stuffing mode is used. This probably solves a number of issues seen in real deployments. - imtcp enhancements: * add parameter "discardTruncatedMsg" to permit truncation of oversize messages * add "maxFrameSize" parameter to specify the maximum size permitted in octet-counted mode - imfile bugfix: "file not found error" repeatedly being reported for configured non-existing file. - imfile: in inotify mode, add error message if configured file cannot be found - imfile: add parameter "fileNotFoundError" to optinally disable "file not found" error messages - core: replaced gethostbyname() with getaddrinfo() call - omkafka: add "origin" field to stats output - imuxsock: rate-limiting also uses process name both for the actual limit procesing as well as warning messages emitted - Added new module: KSI log signing ver. 1.2 (lmsig_ksi_ls12) - rsylsog base functionality now builds on osx (Mac) - build now works on solaris again - imfile: fix cross-platform build issue - bugfix core: segfault when no parser could parse message - bugfix core: rate-limit internal messages when going to external log system - bugfix core: when obtaining local hostname, a NULL pointer could be accessed. - bugfix core: on shutdown, stderr was written to, even if alrady closed - bugfix core: perform MainqObj destruction only when not NULL already - bugfix core: memory leak when internal messages not processed internally - bugfix imptcp: potential overflow in octet count computation when a very large octet count was specified, the counter could overflow @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.1 2016/12/05 10:36:46 fhajny Exp $ d5 1 a5 1 --- configure.orig 2017-05-15 09:42:02.000000000 +0000 d7 1 a7 1 @@@@ -15337,7 +15337,7 @@@@ $as_echo "#define OS_AIX 1" >>confdefs.h d16 1 a16 1 @@@@ -15345,7 +15345,7 @@@@ else a21 9 xOS_LINUX_TRUE= xOS_LINUX_FALSE='#' else @@@@ -15353,7 +15353,7 @@@@ else xOS_LINUX_FALSE= fi - if test x$os_type == xlinux; then + if test x$os_type = xlinux; then @ 1.1 log @Update sysutils/rsyslog to 8.23.0. Changes in 8.23.0 (abridged): - KSI signatures: removed SHA2-224 hash algorithm This is considered insecure and no longer supported by the underlying KSI library. If still used within a configuration, a descriptive error message is emitted during config processing. - imfile: new timeout feature for multi-line reads - omfile: improve robustness against network file system failures in case of failure, a close and re-open is tried, which often solves the issue (and wasn't handle before this patch). - pmaixforwardedfrom: support for AIX syslogd -s option - omelasticsearch: add ability to specify max http request size - omelasticsearch: high availability addressing of ElasticSearch cluster allow to specify an array of servers, which is tried until a working one is found (and given up only if none works). - omelasticsearch: make compatible with ElasticSearch 2.x and 5.x fixes omelasticsearch logs response from ElasticSearch 5.0 _bulk endpoint as error - omhiredis: add dynakey attribute. - omtcl: new contributed module - RainerScript: provide a capability to set environment variables via 'global(environment="var=val")' config statement. - lookup tables: improved error checking - queue subsystem: add configuration parameter "queue.samplinginterval" - bugfix core: errmsg.LogError now switches to dfltErrLogger just before shutdown - bugfix core: fixed un-freed memory in non-transactional action using string-passing - rsgtutil: option to specify KSI publications file certificate constraints - omprog: bugfixes and enhancements - bugfix imfile: ReopenOnTruncate processing, file open processing - bugfix omlibdbi: libdbi-driver-sqlite3/2 requires to provide a path to database split into two strings: * absolute path, where the database file sits * database filename itself. - bugfix RainerScript: issue in prifilt() function Initialize func-data(and to-be-freed flag) correctly for prifilt function-node - bugfix omrelp: invalid module name imrelp was used in some error messages - bugfix core: abort when persisting object state - bugfix: segfault if hostname is unset on system - bugfix external module perl skeleton: did not work properly - bugfix build system: Fix detection of pthread_setschedparam() on platforms such as FreeBSD - bugfix omelasticsearch: modifies constant memory under some circumstances - "bugfix": theoretical queue file corruption when more than MAX_INT files - bug fix/KSI: LOGSIG11 missing in the beginning of KSI log signature file - bugfix template processor: missing escaping of backslash in json mode - testbench improvements @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- configure.orig 2016-11-13 15:48:32.000000000 +0000 d7 20 a26 2 @@@@ -15255,7 +15255,7 @@@@ if test -d "$srcdir"/.git && ! test -f in_git_src=yes @