On Thu, Sep 09, 2021 at 01:19:21PM -0600, Aaron Bieber wrote:
> Hi,
> 
> Here is a port of cargo-audit:
> https://github.com/RustSec/rustsec/tree/main/cargo-audit
> 
> This isn't the latest version because that fails to build:
> https://github.com/rustsec/rustsec/issues/429
> 
> Unfortunately the program doesn't run unless you specify the full
> path. I tried creating a patch to fix it, but I can't make heads or
> tails of the code.
> 
> Thanks to tb@ and semarie@ for pointers on the Makefile!
> 
> Here is a git mirror as well:
> https://github.com/jasperla/openbsd-wip/tree/master/devel/cargo-audit
> 
> OK? Cluesticks?

Just few nits: crates.inc doesn't have $OpenBSD$ marker, and contains
no licence information (see make modcargo-gen-crates-licenses).

Regarding full path, you could look at env:current_exe() calls in the
source code. But what is the full path required ? ${LOCALBASE}/bin/cargo-audit ?

I also wonder if it is possible to redefine argv[0] (or more exactly
the rust equiv) at beginning of the program to properly set it (the
binary will be always at the same place if installed from ports).

Thanks.
-- 
Sebastien Marie

Reply via email to