tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: checksum argmax fix



On Wed, Aug 07, 2024 at 10:32:13AM +0100, Jonathan Perkin wrote:
> It can be tested reasonably easily enough, something like:
> 
>   $ cd wip/grafana
>   $ awk 'NR > 2 && /^BLAKE2s/ {l += length($2) - 1} END{print l}' < $(bmake -v DISTINFO_FILE)
>   274119
> 
> but this would add an unacceptable performance impact to every package,
> especially if we also wanted to exec sysctl to compare it to kern.argmax or
> wherever each OS stores it, so I'd prefer to keep it manual for now.

I meant to test it in the grafana makefile and make it error out with
some reasonable message instead of cryptic failure.

I also hoped (b)make would have something like ${MAKE_VERSION} that could
be tested w/o additional processes.

Martin


Home | Main Index | Thread Index | Old Index