diff options
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/files')
3 files changed, 10 insertions, 49 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/files/0001-macros-guard-ipv6-code-with-SYSLOG_NG_ENABLE_IPV6.patch b/meta-oe/recipes-support/syslog-ng/files/0001-macros-guard-ipv6-code-with-SYSLOG_NG_ENABLE_IPV6.patch deleted file mode 100644 index f21ad5d70f..0000000000 --- a/meta-oe/recipes-support/syslog-ng/files/0001-macros-guard-ipv6-code-with-SYSLOG_NG_ENABLE_IPV6.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 896d77dd949b52d6ea5798e5a038ba97d6b802be Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Marko <peter.marko@siemens.com> | ||
3 | Date: Thu, 4 Apr 2024 15:44:18 +0200 | ||
4 | Subject: [PATCH] macros: guard ipv6 code with SYSLOG_NG_ENABLE_IPV6 | ||
5 | |||
6 | With ipv6 disabled, there are linking errors currently. | ||
7 | This fixes it by not using the symbols when IPv6 is disabled. | ||
8 | |||
9 | Solves #4810 with my config options | ||
10 | https://github.com/openembedded/meta-openembedded/blob/2487e65ee3842b6ae0c7a2628985be6189ed9ebf/meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb | ||
11 | |||
12 | Upstream-Status: Submitted [https://github.com/syslog-ng/syslog-ng/pull/4880] | ||
13 | |||
14 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
15 | --- | ||
16 | lib/template/macros.c | 2 ++ | ||
17 | 1 file changed, 2 insertions(+) | ||
18 | |||
19 | diff --git a/lib/template/macros.c b/lib/template/macros.c | ||
20 | index 54142706c..fcb83637f 100644 | ||
21 | --- a/lib/template/macros.c | ||
22 | +++ b/lib/template/macros.c | ||
23 | @@ -277,12 +277,14 @@ _get_originating_ip_protocol(const LogMessage *msg) | ||
24 | return 0; | ||
25 | if (g_sockaddr_inet_check(msg->saddr)) | ||
26 | return 4; | ||
27 | +#if SYSLOG_NG_ENABLE_IPV6 | ||
28 | if (g_sockaddr_inet6_check(msg->saddr)) | ||
29 | { | ||
30 | if (g_sockaddr_inet6_is_v4_mapped(msg->saddr)) | ||
31 | return 4; | ||
32 | return 6; | ||
33 | } | ||
34 | +#endif | ||
35 | return 0; | ||
36 | } | ||
37 | |||
38 | -- | ||
39 | 2.30.2 | ||
40 | |||
diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd index 851bf252b7..d3f3730105 100644 --- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd +++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd | |||
@@ -1,5 +1,6 @@ | |||
1 | @version: 3.36 | 1 | @version: 4.8 |
2 | # | 2 | @include "scl.conf" |
3 | |||
3 | # Syslog-ng configuration file, compatible with default Debian syslogd | 4 | # Syslog-ng configuration file, compatible with default Debian syslogd |
4 | # installation. Originally written by anonymous (I can't find his name) | 5 | # installation. Originally written by anonymous (I can't find his name) |
5 | # Revised, and rewrited by me (SZALAY Attila <sasa@debian.org>) | 6 | # Revised, and rewrited by me (SZALAY Attila <sasa@debian.org>) |
@@ -10,9 +11,9 @@ | |||
10 | # Joe Slater <joe.slater@windriver.com> | 11 | # Joe Slater <joe.slater@windriver.com> |
11 | 12 | ||
12 | # First, set some global options. | 13 | # First, set some global options. |
13 | options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no); | 14 | options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no); |
14 | owner("root"); group("adm"); perm(0640); stats_freq(0); | 15 | dns_cache(no); owner("root"); group("adm"); perm(0640); |
15 | bad_hostname("^gconfd$"); | 16 | stats(freq(0)); bad_hostname("^gconfd$"); |
16 | }; | 17 | }; |
17 | 18 | ||
18 | ######################## | 19 | ######################## |
diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit index 70afd0da84..2b18dce89c 100644 --- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit +++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit | |||
@@ -1,4 +1,4 @@ | |||
1 | @version: 3.36 | 1 | @version: 4.8 |
2 | # | 2 | # |
3 | # Syslog-ng configuration file, compatible with default Debian syslogd | 3 | # Syslog-ng configuration file, compatible with default Debian syslogd |
4 | # installation. Originally written by anonymous (I can't find his name) | 4 | # installation. Originally written by anonymous (I can't find his name) |
@@ -10,9 +10,9 @@ | |||
10 | # Joe Slater <joe.slater@windriver.com> | 10 | # Joe Slater <joe.slater@windriver.com> |
11 | 11 | ||
12 | # First, set some global options. | 12 | # First, set some global options. |
13 | options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no); | 13 | options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no); |
14 | owner("root"); group("adm"); perm(0640); stats_freq(0); | 14 | dns_cache(no); owner("root"); group("adm"); perm(0640); |
15 | bad_hostname("^gconfd$"); | 15 | stats(freq(0)); bad_hostname("^gconfd$"); |
16 | }; | 16 | }; |
17 | 17 | ||
18 | ######################## | 18 | ######################## |