snort3: upgrade 3.6.1 -> 3.7.1
PATCH 1/1 snort3: upgrade 3.6.1 -> 3.7.1
From: Nguyen Dat Tho <[email protected]>
Changelog:
https://github.com/snort3/snort3/blob/master/ChangeLog.md
Add 0001-Fix-build-with-gcc-15.patch to fix build with gcc-15
Signed-off-by Nguyen Dat Tho <[email protected]>
---
.../snort3/0001-Fix-build-with-gcc-15.patch | 79 +++++++++++++++++++
.../{snort3_3.6.1.0.bb => snort3_3.7.1.0.bb} | 5 +-
2 files changed, 82 insertions(+), 2 deletions(-)
create mode 100644 meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch
rename meta-networking/recipes-connectivity/snort/{snort3_3.6.1.0.bb => snort3_3.7.1.0.bb} (87%)meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch new file +79 -0
@@ -0,0 +1,79 @@ +From 2bfb46b11d35f2fc5f3926376651cc936c6eab13 Mon Sep 17 00:00:00 2001 +From: Nguyen Dat Tho <[email protected]> +Date: Mon, 31 Mar 2025 15:59:51 +0900 +Subject: [PATCH] Fix build with gcc-15 + +Signed-off-by: Nguyen Dat Tho <[email protected]> + +Upstream-Status: Submitted <https://github.com/snort3/snort3/pull/408> +--- + tools/snort2lua/config_states/config_ignore_ports.cc | 1 + + tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc | 1 + + tools/snort2lua/preprocessor_states/pps_frag3_engine.cc | 1 + + tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc | 1 + + tools/snort2lua/rule_states/rule_gid_sid.cc | 1 + + 5 files changed, 5 insertions(+) + +diff --git a/tools/snort2lua/config_states/config_ignore_ports.cc b/tools/snort2lua/config_states/config_ignore_ports.cc +index 4ddfebb5d..ec180a558 100644 +--- a/tools/snort2lua/config_states/config_ignore_ports.cc ++++ b/tools/snort2lua/config_states/config_ignore_ports.cc +@@ -21,6 +21,7 @@ + #include <vector> + #include <string> + #include <stdexcept> ++#include <cstdint> + + #include "conversion_state.h" + #include "helpers/converter.h" +diff --git a/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc b/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc +index 2a41decb8..79e98dd2b 100644 +--- a/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc ++++ b/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc +@@ -25,6 +25,7 @@ + + #include <algorithm> + #include <cstring> ++#include <cstdint> + + namespace preprocessors + { +diff --git a/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc b/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc +index d5c1fcf4d..c0309cc6f 100644 +--- a/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc ++++ b/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc +@@ -19,6 +19,7 @@ + + #include <sstream> + #include <vector> ++#include <cstdint> + + #include "conversion_state.h" + #include "helpers/converter.h" +diff --git a/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc b/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc +index 1e97a58ad..3df35340e 100644 +--- a/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc ++++ b/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc +@@ -20,6 +20,7 @@ + #include <sstream> + #include <vector> + #include <string> ++#include <cstdint> + + #include "conversion_state.h" + #include "helpers/s2l_util.h" +diff --git a/tools/snort2lua/rule_states/rule_gid_sid.cc b/tools/snort2lua/rule_states/rule_gid_sid.cc +index 7f2b84ae4..d3215b655 100644 +--- a/tools/snort2lua/rule_states/rule_gid_sid.cc ++++ b/tools/snort2lua/rule_states/rule_gid_sid.cc +@@ -27,6 +27,7 @@ + + #include <sstream> + #include <unordered_map> ++#include <cstdint> + + #include "conversion_state.h" + #include "helpers/converter.h" +-- +2.34.1 +
meta-networking/recipes-connectivity/snort/snort3_3.7.1.0.bb renamed from meta-networking/recipes-connectivity/snort/snort3_3.6.1.0.bb +3 -2
@@ -9,9 +9,10 @@ DEPENDS = "flex-native hwloc libdaq libdnet libpcap libpcre libtirpc libunwind l SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \ file://0001-cmake-Check-for-HP-libunwind.patch \ - file://0001-cmake-Pass-noline-flag-to-flex.patch" + file://0001-cmake-Pass-noline-flag-to-flex.patch \ + file://0001-Fix-build-with-gcc-15.patch" -SRCREV = "2f8c230d6605279b19dac8fe59e27f034ee81510" +SRCREV = "6a11279883a8584e06ad9ab2df162c639961cd61" S = "${WORKDIR}/git"
Signature · 1 line
2.34.1