On Sat, Feb 18, 2023 at 9:03 PM Neal Gompa <ngompa13(a)gmail.com> wrote:
On Sat, Feb 18, 2023 at 2:59 PM Orion Poplawski <orion(a)nwra.com> wrote:
>
> Is there any possibility of reasonable rust support in EPEL8? At the
> moment we don't have rust-packaging or cargo2rpm/rust2rpm. CentOS
> stream 8 seems to have rust/carge 1.66.1 and rust-srpm-macros 5-2.
>
Not really. Fedora packaging of Rust stuff relies on dynamic build
dependency generation at package build time, which is not possible on
RHEL 8.
Technically, we didn't require this originally (and indeed the target
was originally for RPM 4.14+), but virtually no Fedora Rust packages
today operate at that level anymore, so in practice we need at least
RPM 4.16 now.
If you want to build Rust stuff on EPEL 8, you will need to fall back
to the RHEL toolchain for doing that (which is ... not great).
There's some packages in EPEL 8 that do that, you can take a look at
these for inspiration:
https://koschei.fedoraproject.org/groups/rust-sig?collection=epel8
Fabio