Re: Help packaging a "C" library written in Rust

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

 



On Wednesday, 7 September 2022 11:35:54 CEST Richard W.M. Jones wrote:
> On Wed, Sep 07, 2022 at 10:05:55AM +0100, Richard W.M. Jones wrote:
> 
> > 
> > https://gitlab.com/libblkio/libblkio
> > 
> > This is a library that offers a C API.  It happens to be implemented
> > in Rust, but it's not a "Crate" or anything like that.
> > 
> > I wrote a spec file for it assuming it's a C library and it works fine
> > when building locally:
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=2124697
> > 
> > However it turns out that it downloads stuff during the build and
> > therefore won't build in Koji.  Apart from reading the Rust packaging
> > guidelines which don't seem applicable here (as this is not a Rust
> > Crate), that's as far as I've got on this one.
> > 
> > Has anyone packaged anything like this for Fedora?
> 
> 
> It was pointed out on the bug that librsvg2 is in a similar situation.
> The answer there was to bundle ("vendor") all the Rust dependencies
> into the tarball.  The command "cargo vendor" does this.

I think rav1e is a good example. I provides a C library and is packaged well.

_______________________________________________
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