Re: [PATCH kmod v2 3/4] kmod: Add config command to show compile time configuration as JSON

From: Jan Engelhardt
Date: Fri Jul 14 2023 - 10:12:29 EST



On Friday 2023-07-14 16:02, Michal Suchánek wrote:
>>
>> What about doing it like systemd and generate a .pc file instead
>> that can then be queried like so, e.g.:
>>
>> $ pkg-config kmod --variable=modulesdir
>
> - .pc files would be shipped with libkmod development package, not the
> kmod tool in a binary distribution

On that point: No, they would not.
Again, confer with systemd: systemd.rpm(SUSE) provides systemd.pc,
systemd-devel.rpm provides libsystemd.pc. kmod.rpm would provide
kmod.pc, kmod-devel.rpm would continue to provide libkmod.pc as
it does today.