diff options
| author | Clayton Casciato <majortomtosourcecontrol@gmail.com> | 2025-05-19 18:06:42 -0600 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2025-06-23 09:05:21 -0400 |
| commit | 277bf8f9160540d582fec58f0f2139b4e4aebef0 (patch) | |
| tree | 889ad484e9b249cfc4114f3a6c8714ee909800d9 | |
| parent | 4082afb8a911a03d720a1be9aa35a5fa3678055f (diff) | |
| download | meta-security-277bf8f9160540d582fec58f0f2139b4e4aebef0.tar.gz | |
suricata: resolve TMPDIR QA issues in do_configure
ERROR: suricata-7.0.0-r0 do_package_qa: QA Issue: File /usr/bin/suricata
in package suricata contains reference to TMPDIR [buildpaths]
ERROR: suricata-7.0.0-r0 do_package_qa: QA Issue: File
/usr/src/debug/suricata/7.0.0/src/build-info.h in package suricata-src
contains reference to TMPDIR [buildpaths]
Address references when src/build-info.h is being written
This is similar to Debian's approach:
https://sources.debian.org/patches/suricata/1:7.0.10-1~bpo12%2B1/reproducible.patch/
Restore the "already-stripped" check and CFLAGS info
Original resolution in commit c0e3fecc3bea ("suricata: fix QA warnings")
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | recipes-ids/suricata/suricata_7.0.0.bb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/recipes-ids/suricata/suricata_7.0.0.bb b/recipes-ids/suricata/suricata_7.0.0.bb index 910e21e..dc55fdf 100644 --- a/recipes-ids/suricata/suricata_7.0.0.bb +++ b/recipes-ids/suricata/suricata_7.0.0.bb | |||
| @@ -68,6 +68,8 @@ do_configure:prepend () { | |||
| 68 | # use host for RUST_SURICATA_LIB_XC_DIR | 68 | # use host for RUST_SURICATA_LIB_XC_DIR |
| 69 | sed -i -e 's,\${host_alias},${RUST_HOST_SYS},' ${S}/configure.ac | 69 | sed -i -e 's,\${host_alias},${RUST_HOST_SYS},' ${S}/configure.ac |
| 70 | sed -i -e 's,libsuricata_rust.a,libsuricata.a,' ${S}/configure.ac | 70 | sed -i -e 's,libsuricata_rust.a,libsuricata.a,' ${S}/configure.ac |
| 71 | # Address build configuration written to src/build-info.h | ||
| 72 | sed -i -e 's,\(| sed -e '\''s/^/"/'\''\)\( |\),\1 -e '\''s#${WORKDIR}#\\.#g'\''\2,' ${S}/configure.ac | ||
| 71 | autotools_do_configure | 73 | autotools_do_configure |
| 72 | } | 74 | } |
| 73 | 75 | ||
| @@ -126,10 +128,6 @@ do_install () { | |||
| 126 | sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${bindir}/suricatasc | 128 | sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${bindir}/suricatasc |
| 127 | sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${bindir}/suricatactl | 129 | sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${bindir}/suricatactl |
| 128 | sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${libdir}/suricata/python/suricata/sc/suricatasc.py | 130 | sed -i -e "s:#!.*$:#!${USRBINPATH}/env python3:g" ${D}${libdir}/suricata/python/suricata/sc/suricatasc.py |
| 129 | # The build process dumps config logs into the binary, remove them. | ||
| 130 | sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${bindir}/suricata | ||
| 131 | sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' ${D}${bindir}/suricata | ||
| 132 | sed -i -e 's#CFLAGS.*##g' ${D}${bindir}/suricata | ||
| 133 | } | 131 | } |
| 134 | 132 | ||
| 135 | pkg_postinst_ontarget:${PN} () { | 133 | pkg_postinst_ontarget:${PN} () { |
| @@ -147,4 +145,3 @@ FILES:${PN} += "${systemd_unitdir} ${sysconfdir}/tmpfiles.d" | |||
| 147 | FILES:${PN}-python = "${bindir}/suricatasc ${PYTHON_SITEPACKAGES_DIR}" | 145 | FILES:${PN}-python = "${bindir}/suricatasc ${PYTHON_SITEPACKAGES_DIR}" |
| 148 | 146 | ||
| 149 | CONFFILES:${PN} = "${sysconfdir}/suricata/suricata.yaml" | 147 | CONFFILES:${PN} = "${sysconfdir}/suricata/suricata.yaml" |
| 150 | INSANE_SKIP:${PN} = "already-stripped" | ||
