[Bug 2124697] Review Request: libblkio - Block device I/O library

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=2124697

Kalev Lember <klember@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |klember@xxxxxxxxxx



--- Comment #5 from Kalev Lember <klember@xxxxxxxxxx> ---
There are broadly two ways to build rust packages such as this:

1) Package all the rust crates that it needs in Fedora instead of downloading
from the internet.

2) Use vendoring (another word for bundling in rust land) to include all the
required rust crates in the tarball.

Right now we are using option 2 in librsvg2, but over the last few days I've
been trying to get the missing rust crates that it requires (there are hundreds
of crates required for building librsvg2, but less than 10 are missing in
Fedora right now) packaged up in Fedora proper. It's actually surprising simple
to package a crate: we have a generator (rust2rpm) that spits out a ready spec
file to go and it's so good that it usually doesn't need any fixes at all
afterwards.

So coming from the perspective of someone who has historically much preferred
option 2, I think option 1 is actually very viable these days because it's so
easy to package rust dependencies and because we already have a large amount of
them pre-packaged.

There's a rust BuildRequires generator that makes all the dependency generation
automatic. See %generate_buildrequires section (currently %if'd out) in
librsvg2 spec file for details :)

https://src.fedoraproject.org/rpms/librsvg2/blob/rawhide/f/librsvg2.spec


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2124697
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-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/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux