On 2019-09-19 08:20, Igor Gnatenko wrote:
On Tue, Sep 17, 2019 at 4:07 PM Anders Blomdell
<anders.blomdell(a)control.lth.se> wrote:
>
>
>
> On 2019-09-10 19:50, Josh Stone wrote:
>> We're still doing the same thing on rawhide, but we've been using
>> modules (referencing git master branches) for stable Fedora.
> Does this imply duplicating all crates used by an application in the
> source RPM?
>
>> Igor should be able to say more.
> Would be great to get a writeup of best practices...
We are still working on our tooling (more specifically, Robert
Fairley). It generates modulemd out of Rawhide repositories (with
disabled building of crates and filtered them out).
So basically, all crates are converted to the RPMs each time module is
built and used to build final application, but not shipped to the
users). Check example here:
https://src.fedoraproject.org/modules/ripgrep/blob/latest/f/ripgrep.yaml This link
is now dead :-/
Trying to mock build
https://archives.fedoraproject.org/pub/fedora/linux/releases/31/Modular/s...
gives the following error:
No matching package to install: '(crate(bstr/default) >= 0.2.0 with
crate(bstr/default) < 0.3.0)'
No matching package to install: '(crate(clap/suggestions) >= 2.32.0 with
crate(clap/suggestions) < 3.0.0)'
No matching package to install: '(crate(grep/default) >= 0.2.4 with
crate(grep/default) < 0.3.0)'
No matching package to install: '(crate(grep/pcre2) >= 0.2.4 with
crate(grep/pcre2) < 0.3.0)'
No matching package to install: '(crate(ignore/default) >= 0.4.7 with
crate(ignore/default) < 0.5.0)'
No matching package to install: '(crate(lazy_static/default) >= 1.1.0 with
crate(lazy_static/default) < 2.0.0)'
No matching package to install: '(crate(log/default) >= 0.4.5 with
crate(log/default) < 0.5.0)'
No matching package to install: '(crate(num_cpus/default) >= 1.8.0 with
crate(num_cpus/default) < 2.0.0)'
No matching package to install: '(crate(regex/default) >= 1.0.5 with
crate(regex/default) < 2.0.0)'
No matching package to install: '(crate(serde/default) >= 1.0.77 with
crate(serde/default) < 2.0.0)'
No matching package to install: '(crate(serde_derive/default) >= 1.0.77 with
crate(serde_derive/default) < 2.0.0)'
No matching package to install: '(crate(serde_json/default) >= 1.0.23 with
crate(serde_json/default) < 2.0.0)'
No matching package to install: '(crate(termcolor/default) >= 1.0.3 with
crate(termcolor/default) < 2.0.0)'
So, I'm missing some magic incantations :-(
Regards
Anders
--
Anders Blomdell Email: anders.blomdell(a)control.lth.se
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118
SE-221 00 Lund, Sweden