Skip to content

Commit 7132d7b

Browse files
committed
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 <[email protected]>
1 parent 9770011 commit 7132d7b

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 417ed0045b3d04f539a8eb18b07a208c75f6c7e1 Mon Sep 17 00:00:00 2001
2+
From: Khem Raj <[email protected]>
3+
Date: Tue, 20 Feb 2024 16:08:20 -0800
4+
Subject: [PATCH] cmake: Pass --noline flag to flex
5+
6+
This ensures that line directive is not emitted into lexer output which
7+
could be absolute build paths, since these files end up in dbg packages
8+
this can be flagged as a build/packaging warning.
9+
10+
Upstream-Status: Pending
11+
Signed-off-by: Khem Raj <[email protected]>
12+
---
13+
cmake/configure_options.cmake | 2 +-
14+
1 file changed, 1 insertion(+), 1 deletion(-)
15+
16+
diff --git a/cmake/configure_options.cmake b/cmake/configure_options.cmake
17+
index 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+
--
30+
2.43.2
31+

meta-networking/recipes-connectivity/snort/snort3_git.bb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5"
77

88
PV = "3+git${SRCPV}"
99

10-
DEPENDS = "flex hwloc libdaq libdnet libpcap libpcre libtirpc libunwind luajit zlib"
10+
DEPENDS = "flex-native hwloc libdaq libdnet libpcap libpcre libtirpc libunwind luajit zlib"
1111

1212
SRC_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"
1415
SRCREV = "e1760a8dbb829bb3fcf1a340ab6cc4bb80a47ecd"
1516

1617
S = "${WORKDIR}/git"
@@ -19,6 +20,10 @@ PACKAGES =+ "${PN}-scripts"
1920

2021
inherit cmake pkgconfig
2122

23+
do_install:append() {
24+
sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/pkgconfig/snort.pc
25+
}
26+
2227
FILES:${PN} += "${libdir}/snort/daq/*.so"
2328

2429
FILES:${PN}-scripts = "${bindir}/appid_detector_builder.sh"

0 commit comments

Comments
 (0)