On 2020/03/01 20:12, Sebastien Marie wrote:
> Hi,
> 
> The following diff adds few magic to devel/cargo module in order to use system
> libraries instead of building embedded version in crates in an automatic way.
> 
> It works by removing source library from a defined set of crates. So it will 
> be
> not possible to build the embedded library (the build will fail instead of
> silenciously build embedded version).
> 
> It also provides magic to help configuring crates to use system library.
> 
> Please note it is still the responsability of the maintainer to add 
> LIB_DEPENDS
> and WANTLIB in the port.

I think this makes sense, normally I think it would be "too much magic" but
in the case of rust ports, things are already so complicated I think they
need all the help we can give them ;)

> file + security/sn0int/Makefile
> --- security/sn0int/Makefile
> +++ security/sn0int/Makefile
> @@ -8,6 +8,7 @@ COMMENT =     semi-automatic OSINT framework and package m
>  GH_ACCOUNT = kpcyrd
>  GH_PROJECT = sn0int
>  GH_TAGNAME = v0.11.2
> +REVISION =   0
>  
>  CATEGORIES = security
>  
> @@ -15,8 +16,9 @@ CATEGORIES =        security
>  PERMIT_PACKAGE =     Yes
>  
>  # uses pledge()
> -LIB_DEPENDS =                databases/sqlite3
> -WANTLIB +=           c c++abi m pthread sqlite3
> +LIB_DEPENDS =                databases/sqlite3 \
> +                     lang/lua/5.2
> +WANTLIB +=           c c++abi m pthread sqlite3 lua5.2

This one should use something like:

MODULES=        lang/lua
MODLUA_VERSION= 5.2
MODLUA_SA=      Yes
LIB_DEPENDS=    ... ${MODLUA_LIB_DEPENDS}
WANTLIB+=       ... ${MODLUA_WANTLIB}

Reply via email to