Re: Port tree linter

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Sun, 03 Mar 2024 08:22:58 UTC
Hello,

Is there plans to add it to our ports tree?

Seems that we don't have PNU deps ported yet.

Cheers

Hubert Tournier <hubert.tournier@gmail.com> escreveu (domingo,
3/03/2024 à(s) 01:23):
>
> Le 02/03/2024 à 18:22, Alexander Leidinger a écrit :
>
> Am 2024-03-02 09:24, schrieb Hubert Tournier:
>
> Now that this tool is a Python package, it's easier to use other Python libraries.
>
> Maybe a check for ports which could be flavourized? Most PHP and python packages could be flavourized. The issue may be false positives...
>
> PHP examples are baikal and tt-rss (for both I have patches, waiting a bit before declaring maintainer timeout).
>
> Unless there is a way to deduce that from a port's Makefile, I do not see how to implement it?
>
> For example, taking Python packages, it would require downloading the distfiles, analyzing their content (for example, sections [options.extras_require] in setup.cfg), and looking if there are corresponding port flavours (assuming they have been named similarly).
>
> But downloading all ports distfiles would be very long and would consume a lot of disk space (with a possible Denial of Service risk, should a file system be saturated!).
>
> If there's another simpler way, I would be happy to know about it.
>
> Best regards,
>
> Hubert
>
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)