On Sat, Feb 25, 2023 at 7:23 AM Jan Engelhardt jengelh@inai.de wrote:
On Saturday 2023-02-25 11:22, Arjen de Korte wrote:
Would it be possible to have rpmlint check for these dependencies and emit a warning if the corresponding %bcond is not found in the specfile?
rpmlint cannot distinguish between
(a) xx is optional and the absence of %bcond_xx is unfortunate (b) the absence of %bcond_xx is legit due to package hard-requires xx and a conditional build makes no sense (c) the absence of %bcond_xx is legit due to software not exercising xx at all
Also, as a member of rpmlint upstream, even if it were possible, I don't want to see it there. If you want checks like that, use a tool actually *designed* for that. One such example is rpminspect[1]. Overloading rpmlint with all kinds of weird things isn't worth it.
[1]: https://github.com/rpminspect