Bug 2063941 - Feature request: Enable Mercurial rust extensions
Summary: Feature request: Enable Mercurial rust extensions
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mercurial
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mads Kiilerich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2005109 2012486 2027028 2064132 2064133 2064137 2064141 2064142 2064155
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-14 16:49 UTC by Mads Kiilerich
Modified: 2022-12-01 19:13 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-12-01 19:13:20 UTC
Type: Bug
Embargoed:
mads: needinfo+


Attachments (Terms of Use)

Description Mads Kiilerich 2022-03-14 16:49:44 UTC
Mercurial has some optional and experimental but useful rust parts. It would be nice to have them available in the Fedora package.

See https://www.mercurial-scm.org/repo/hg/file/tip/rust/README.rst

https://src.fedoraproject.org/fork/rom1dep/rpms/mercurial/c/6deb673ba23f6ab067bb823d9b6951305576d2e6?branch=rust was proposed ... but that doesn't work for reliably building from source or in a firewalled build farm.

It seems feasible to build with all cargo dependencies in Fedora packages and minimal amount of patching. https://copr.fedorainfracloud.org/coprs/alebastr/rhg/ was proposed as a draft.

Comment 1 Fabio Valentini 2022-04-14 18:34:19 UTC
cpython 0.7 and memmap2 0.5 are now built, are there any other dependencies you need?

Comment 2 Aleksei Bavshin 2022-04-14 18:55:40 UTC
Thank you, Fabio!

Last week's 6.1.1 release started requiring ouroboros = "0.15.0" (bug2027028). But it works with 0.13.0 we have, so it might not be necessary.

https://src.fedoraproject.org/fork/alebastr/rpms/mercurial/c/c393ac799466d84199f13592726057f397b30181?branch=rawhide builds on rawhide with --enablerepo latest, and I'm currently using a build with these versions of dependencies.

Comment 3 Mads Kiilerich 2022-05-03 13:13:02 UTC
mercurial-rust is now available in rawhide - thanks to Aleksei and Fabio.

Comment 4 Fabio Valentini 2022-05-04 08:57:39 UTC
Would you like to announce this in any way?
It's probably too small for a "Change", but you could submit it here:
https://pagure.io/feature-spotlight

Comment 5 Mads Kiilerich 2022-05-04 11:22:17 UTC
@decathorpe thanks for the encouragement. But the rust extensions are still experimental, and so far it doesn't seem to give visible benefits in many cases. It is thus not so much a feature that is worth mentioning, but more of enabling evaluation and preparing for the future.

Comment 6 Fabio Valentini 2022-05-04 11:29:32 UTC
Okay, makes sense to not announce them if they're still considered experimental. 👍

Comment 7 Ben Cotton 2022-11-29 18:33:52 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 8 Mads Kiilerich 2022-12-01 19:13:20 UTC
Fixed in f36


Note You need to log in before you can comment on or make changes to this bug.