summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-02-20 15:52:13 -0800
committerKhem Raj <raj.khem@gmail.com>2024-02-21 19:59:51 -0800
commit7132d7b5713dca3ed5a1275d33b76db9cadb937d (patch)
tree1faaacd764da88ddb7c30152bf1e079d5480c8b6
parent97700116c248fea659020090ae2a165b8a02eed1 (diff)
downloadmeta-openembedded-7132d7b5713dca3ed5a1275d33b76db9cadb937d.tar.gz
snort3: Fix contains reference to TMPDIR [buildpaths] warnings
Fixes WARNING: snort3-3+git-r0 do_package_qa: QA Issue: File /usr/lib/pkgconfig/snort.pc in package snort3-dev contains reference to TMPDIR [buildpaths] WARNING: snort3-3+git-r0 do_package_qa: QA Issue: File /usr/src/debug/snort3/3+git/src/js_norm/pdf_tokenizer.cc in package snort3-src contains reference to TMPDIR File /usr/src/debug/snort3/3+git/src/js_norm/js_tokenizer.cc in package snort3-src contains reference to TMPDIR [buildpaths] Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch31
-rw-r--r--meta-networking/recipes-connectivity/snort/snort3_git.bb9
2 files changed, 38 insertions, 2 deletions
diff --git a/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch b/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch
new file mode 100644
index 0000000000..ec7b90cfb4
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch
@@ -0,0 +1,31 @@
1From 417ed0045b3d04f539a8eb18b07a208c75f6c7e1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 20 Feb 2024 16:08:20 -0800
4Subject: [PATCH] cmake: Pass --noline flag to flex
5
6This ensures that line directive is not emitted into lexer output which
7could be absolute build paths, since these files end up in dbg packages
8this can be flagged as a build/packaging warning.
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 cmake/configure_options.cmake | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/cmake/configure_options.cmake b/cmake/configure_options.cmake
17index f3673f399..fbd0bd2c3 100644
18--- a/cmake/configure_options.cmake
19+++ b/cmake/configure_options.cmake
20@@ -28,7 +28,7 @@ if ( ENABLE_LARGE_PCAP )
21 endif ( ENABLE_LARGE_PCAP )
22
23 # Flex Lexer
24-set ( FLEX_FLAGS "-Ca" )
25+set ( FLEX_FLAGS "-Ca --noline" )
26
27 # documentation
28
29--
302.43.2
31
diff --git a/meta-networking/recipes-connectivity/snort/snort3_git.bb b/meta-networking/recipes-connectivity/snort/snort3_git.bb
index 0f4a86f61e..4bc2395fae 100644
--- a/meta-networking/recipes-connectivity/snort/snort3_git.bb
+++ b/meta-networking/recipes-connectivity/snort/snort3_git.bb
@@ -7,10 +7,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5"
7 7
8PV = "3+git${SRCPV}" 8PV = "3+git${SRCPV}"
9 9
10DEPENDS = "flex hwloc libdaq libdnet libpcap libpcre libtirpc libunwind luajit zlib" 10DEPENDS = "flex-native hwloc libdaq libdnet libpcap libpcre libtirpc libunwind luajit zlib"
11 11
12SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \ 12SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \
13 file://0001-cmake-Check-for-HP-libunwind.patch" 13 file://0001-cmake-Check-for-HP-libunwind.patch \
14 file://0001-cmake-Pass-noline-flag-to-flex.patch"
14SRCREV = "e1760a8dbb829bb3fcf1a340ab6cc4bb80a47ecd" 15SRCREV = "e1760a8dbb829bb3fcf1a340ab6cc4bb80a47ecd"
15 16
16S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
@@ -19,6 +20,10 @@ PACKAGES =+ "${PN}-scripts"
19 20
20inherit cmake pkgconfig 21inherit cmake pkgconfig
21 22
23do_install:append() {
24 sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/pkgconfig/snort.pc
25}
26
22FILES:${PN} += "${libdir}/snort/daq/*.so" 27FILES:${PN} += "${libdir}/snort/daq/*.so"
23 28
24FILES:${PN}-scripts = "${bindir}/appid_detector_builder.sh" 29FILES:${PN}-scripts = "${bindir}/appid_detector_builder.sh"