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.
On Sat, Feb 18, 2023 at 2:59 PM Orion Poplawski orion@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.
On Sat, Feb 18, 2023 at 9:03 PM Neal Gompa ngompa13@gmail.com wrote:
On Sat, Feb 18, 2023 at 2:59 PM Orion Poplawski orion@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
On 2/19/23 12:06, Fabio Valentini wrote:
On Sat, Feb 18, 2023 at 9:03 PM Neal Gompa ngompa13@gmail.com wrote:
On Sat, Feb 18, 2023 at 2:59 PM Orion Poplawski orion@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
Thanks. Looks like many bundle their deps (among some other tweaks), which I suppose could be option if needed.
On Mon, Feb 20, 2023 at 12:22 AM Orion Poplawski orion@nwra.com wrote:
On 2/19/23 12:06, Fabio Valentini wrote:
On Sat, Feb 18, 2023 at 9:03 PM Neal Gompa ngompa13@gmail.com wrote:
On Sat, Feb 18, 2023 at 2:59 PM Orion Poplawski orion@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
Thanks. Looks like many bundle their deps (among some other tweaks), which I suppose could be option if needed.
Yes. There are no Rust crates (i.e. Rust libraries) packaged for EPEL 8 at all, so bundling dependencies is the only option.
Fabio