-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Thu, 2018-02-15 at 18:35 -0800, Josh Stone wrote:
I'm updating to 1.24:
https://blog.rust-lang.org/2018/02/15/Rust-1.24.html
One of the headline features is that it's now shipping rustfmt along
with the rust distribution. (Although technically, the component is
still called rustfmt-preview.)
This differs from the rustfmt we already have packaged in Fedora,
because they've now embraced the use of internal rustc libraries.
That's OK when it's shipped along with rustc-src, but it means we really
need to package it all together too, so it's one ABI-compatible build.
The other awkwardness is that they reset the version when they branched
to this "rustfmt-nightly" style. So the old version we have packaged is
rustfmt 0.9, but the current version of the new binary is 0.3.4.
So, I think what I can do is have a subpackage of the rust.srpm, with
its own name, version, *and* epoch to supersede the old package.
Name: rust
Version: 1.24.0
%package -n rustfmt
Version: 0.3.4
Epoch: 1
Does that work? Is there a better way to handle this?
Yes. I don't think there is better way of doing this.. Do we actually want to
ship both versions of rustfmt just for users to be able to switch?
Note, in the near future this is also how rls and clippy will be
released. And technically, cargo already gets shipped in rustc-src too,
but it doesn't use unstable features, so that should be fine for us to
continue packaging on its own.
Meh..
- --
- -Igor Gnatenko
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEhLFO09aHZVqO+CM6aVcUvRu8X0wFAlqGdboACgkQaVcUvRu8
X0xNeQ//RNrvzb22qhMwRjRHcc9LGn7Fe6yMbcZtNb3n1ZgrYHyoO2vU5chK+vAt
Um1RA5lPKHYolqvV4jfPRsVNEnTtrZyXN8e+YUfSVZrdx7zly/brBWhtDgTIwDh1
90wkiMh2o3lTIIFUaYhkXhAvlNwfe1XVTSugviNcVOI3yIpFCSQ8XdPDbtQO9knj
T3hX7q0zWIrZZnFVvYXqpad+2rweJUComLGa4a/CFc12R0ZNPOew4ob3nnwg8pT9
iHUCr2XCswwPq1e+SGAnpq0R6M28t/cZmjJtRSJX4hsuY1sSCxYSXzfhdDCQzT9x
+uuUfCtR5zdcjo1G15ACZWaeYa2817ji1dc2FwgNutWu5kt4YeDzIBc6ME1Kl4J9
75UbUWYIW1z61eA5R1Yj69qCIOnWDnF5T49zrPbktsFX6+MU5XiWf5xsxfxaParp
RgvWvZCSmKX1C4e09ZrVkqoaqX2E8RiNgheQ9yylbUU60eG8Dblgkjf7gAeLHZkD
wI6oq7n/xJ7HkgTJjfU5c6vr9HD4kF5OL93HqxIpH2obQc2xhH65FviFXxNdiAW9
5fvaojKyHZkIF0VmNX83iYYoDXgB9FES9BB4QChvBgOS3KDHQAwSg2TVfWzaRYHS
6xwbXkxI8ZcVAP7Y/CJjZ1dS4z5N2cfaRqbnTuqxk4/uiBOtRyg=
=BTwX
-----END PGP SIGNATURE-----