[Rpm-ecosystem] Feaders rewritten in Rust using Libhif
Colin Walters
walters at verbum.org
Tue Apr 19 20:05:02 UTC 2016
On Tue, Apr 19, 2016, at 03:30 PM, Pavel Odvody wrote:
> Hello,
>
> this is a reimplementation of the Feaders[0] project written in Rust.
> In short, Feaders is an application that can scan your C/C++ project
> for #include directives and figure out which package from distribution
> provides the included headers.
I would instead scan the build system metadata such as configure.ac and the like.
Those tend to reference e.g. pkg-config files, which in turn are already
Provides: of the relevant -devel package.
https://fedoraproject.org/wiki/PackagingDrafts/PkgConfigBuildRequires
To do this really right, you need to take as input the configure arguments,
so e.g. if --disable-selinux is provided, you don't require selinux. This
matters most when doing cross builds or self-hosted system bootstrapping.
Also, to make this all work if you think about it, you need to go
to generating spec files after scanning the upstream source code (which
IMO is indeed the right way to do things).
More information about the Rpm-ecosystem
mailing list