diff options
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/files/0001-macros-guard-ipv6-code-with-SYSLOG_NG_ENABLE_IPV6.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb (renamed from meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb) | 5 |
2 files changed, 2 insertions, 43 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/syslog-ng_4.6.0.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb index ab4a8d1825..588a38126b 100644 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.6.0.bb +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb | |||
@@ -13,7 +13,7 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only" | |||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=924958cefc9f7de3e0b818832b8a1cec" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=924958cefc9f7de3e0b818832b8a1cec" |
14 | 14 | ||
15 | # util-linux added to get libuuid | 15 | # util-linux added to get libuuid |
16 | DEPENDS = "libpcre flex glib-2.0 openssl util-linux bison-native curl" | 16 | DEPENDS = "libpcre flex glib-2.0 openssl util-linux bison-native curl json-c" |
17 | 17 | ||
18 | SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ | 18 | SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ |
19 | file://syslog-ng.conf.systemd \ | 19 | file://syslog-ng.conf.systemd \ |
@@ -23,11 +23,10 @@ SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.ta | |||
23 | file://syslog-ng-tmp.conf \ | 23 | file://syslog-ng-tmp.conf \ |
24 | file://syslog-ng.service-the-syslog-ng-service.patch \ | 24 | file://syslog-ng.service-the-syslog-ng-service.patch \ |
25 | file://0001-Fix-buildpaths-warning.patch \ | 25 | file://0001-Fix-buildpaths-warning.patch \ |
26 | file://0001-macros-guard-ipv6-code-with-SYSLOG_NG_ENABLE_IPV6.patch \ | ||
27 | " | 26 | " |
28 | SRC_URI:append:powerpc64le = " file://0001-plugin.c-workaround-powerpc64le-segfaults-error.patch" | 27 | SRC_URI:append:powerpc64le = " file://0001-plugin.c-workaround-powerpc64le-segfaults-error.patch" |
29 | 28 | ||
30 | SRC_URI[sha256sum] = "b69e3360dfb96a754a4e1cbead4daef37128b1152a23572356db4ab64a475d4f" | 29 | SRC_URI[sha256sum] = "b601265362c633a25f26c497a7e57592739d5a583b7963b722ff58f01b853506" |
31 | 30 | ||
32 | UPSTREAM_CHECK_URI = "https://github.com/balabit/syslog-ng/releases" | 31 | UPSTREAM_CHECK_URI = "https://github.com/balabit/syslog-ng/releases" |
33 | 32 | ||