Re: Look for help: how to package Rust project

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 21, 2024 at 6:27 PM Fabio Valentini <decathorpe@xxxxxxxxx> wrote:
>
> On Thu, Mar 21, 2024 at 9:25 AM Richard W.M. Jones <rjones@xxxxxxxxxx> wrote:
> >
> > On Thu, Mar 21, 2024 at 11:04:13AM +0800, Ming Lei wrote:
> > > Hello Richard and Guys,
> > >
> > > I plan to package rublk to Fedora, and it is one Rust project.
> >
> > Hi, I'm on holiday at the moment, but please do look at how we
> > packaged libblkio in Fedora:
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=2124697
> >
> > > Can you provide a little guide about how to do that? such as,
> > > where can I find the guide doc? And is it github or crates which
> > > should be used as source for Fedora packaging?
> >
> > Everything has to start with a source tarball, so normally github
> > would be the best source.
> >
> > > [1] https://github.com/ublk-org/rublk
> > > [2] https://crates.io/crates/rublk
>
> If the project is a single "crate" (i.e. one compilation unit) and
> will continue to be published on crates.io, I would recommend using
> the sources published there instead of GitHub sources. Using files
> distributed via crates.io makes packaging a bit easier and avoids some
> work that is necessary for non-crate Rust packages.
>
> I would recommend reading the Rust packaging guidelines for this case:
> https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_rust_crates
> You should get a working spec file by just running "rust2rpm -s rublk".

Hello Fabio,

I love this easy way.

But when I try to build in this way, I got the following failure:

 Problem 1: nothing provides requested (crate(ilog/default) >= 1.0.1
with crate(ilog/default) < 2.0.0~)
 Problem 2: nothing provides requested (crate(libublk/default) >=
0.3.0 with crate(libublk/default) < 0.4.0~)
 Problem 3: nothing provides requested (crate(qcow2-rs/default) >=
0.1.2 with crate(qcow2-rs/default) < 0.2.0~)
 Problem 4: nothing provides requested (crate(shared_memory/default)
>= 0.12.4 with crate(shared_memory/default) < 0.13.0~)
 Problem 5: nothing provides requested (crate(smol/default) >= 1.3.0
with crate(smol/default) < 2.0.0~)

I guess it is because that all above crate aren't packaged in Fedora,
can you share how to
deal with this issue?

Thanks,
Ming
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux