Hi,

I would like to commit the following diff to security/suricata.

It switches suricata to use MODULES+=lang/rust instead of
BUILD_DEPENDS+=lang/rust, and adds MODRUST_WANTLIB to WANTLIB.

It makes the ports to use _SYSTEM_VERSION-rust and be bumped
automatically when rust (compiler or stdlib) changes, and so get the
package updated.

Comments or OK ?
-- 
Sebastien Marie


Index: security/suricata/Makefile
===================================================================
RCS file: /cvs/ports/security/suricata/Makefile,v
diff -u -p -r1.63 Makefile
--- security/suricata/Makefile  17 Dec 2023 15:29:06 -0000      1.63
+++ security/suricata/Makefile  1 Jan 2024 16:14:29 -0000
@@ -21,15 +21,16 @@ PERMIT_PACKAGE=     Yes
 SITES =                https://www.openinfosecfoundation.org/download/
 
 # uses pledge()
-WANTLIB += ${COMPILER_LIBCXX} c elf iconv jansson lz4 m magic maxminddb
+WANTLIB += ${COMPILER_LIBCXX} ${MODRUST_WANTLIB}
+WANTLIB += elf iconv jansson lz4 m magic maxminddb
 WANTLIB += net pcap pcre2-8 yaml-0 z
 
-MODULES =      lang/python
+MODULES =      lang/python \
+               lang/rust
 
 BUILD_DEPENDS =        devel/py-setuptools${MODPY_FLAVOR} \
                textproc/py-sphinx${MODPY_FLAVOR} \
-               textproc/py-yaml${MODPY_FLAVOR} \
-               lang/rust
+               textproc/py-yaml${MODPY_FLAVOR}
 
 RUN_DEPENDS =  textproc/py-yaml${MODPY_FLAVOR}
 

Reply via email to