diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-02-20 15:52:13 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-02-21 19:59:51 -0800 |
commit | 7132d7b5713dca3ed5a1275d33b76db9cadb937d (patch) | |
tree | 1faaacd764da88ddb7c30152bf1e079d5480c8b6 | |
parent | 97700116c248fea659020090ae2a165b8a02eed1 (diff) | |
download | meta-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.patch | 31 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/snort/snort3_git.bb | 9 |
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 @@ | |||
1 | From 417ed0045b3d04f539a8eb18b07a208c75f6c7e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
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 <raj.khem@gmail.com> | ||
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 | |||
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 | ||
8 | PV = "3+git${SRCPV}" | 8 | PV = "3+git${SRCPV}" |
9 | 9 | ||
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" |
11 | 11 | ||
12 | SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \ | 12 | 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" | ||
14 | SRCREV = "e1760a8dbb829bb3fcf1a340ab6cc4bb80a47ecd" | 15 | SRCREV = "e1760a8dbb829bb3fcf1a340ab6cc4bb80a47ecd" |
15 | 16 | ||
16 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
@@ -19,6 +20,10 @@ PACKAGES =+ "${PN}-scripts" | |||
19 | 20 | ||
20 | inherit cmake pkgconfig | 21 | inherit cmake pkgconfig |
21 | 22 | ||
23 | do_install:append() { | ||
24 | sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/pkgconfig/snort.pc | ||
25 | } | ||
26 | |||
22 | FILES:${PN} += "${libdir}/snort/daq/*.so" | 27 | FILES:${PN} += "${libdir}/snort/daq/*.so" |
23 | 28 | ||
24 | FILES:${PN}-scripts = "${bindir}/appid_detector_builder.sh" | 29 | FILES:${PN}-scripts = "${bindir}/appid_detector_builder.sh" |