As part of https://fedoraproject.org/wiki/Changes/Packaging_Rust_applications_and_libraries we promised to write guidelines, so here they are: https://fedoraproject.org/wiki/PackagingDrafts/Rust
They are not yet complete, but we will make sure that they are in good state for FPC review for this week (although some spec examples are there, so feel free to check them now).
cc @jistone @ngompa @grover @akien
Metadata Update from @james: - Issue tagged with: meeting
The rich dependencies usage conflicts with their prohibition https://fedoraproject.org/wiki/Packaging:Guidelines#Rich.2FBoolean_dependencies.
Question about these guidelines: you make use of the macros %cargo_build, %cargo_install, %cargo_prep, which is fine, but those macros are not included in the rust-srpm-macros on Rawhide.
The rust-srpm-macros spec file (http://pkgs.fedoraproject.org/rpms/rust-srpm-macros/blob/master/f/rust-srpm-macros.spec) only installs "data/macros.rust-srpm" but not the files containing the cargo-macros, "data/macros.cargo".
Is this an oversight or is the cargo macros provided by another package I am not aware of?
@ppisar Yes, Change Page explicitly say that release engineering folks should support it (and there is ticket linked into it) and FPC should allow rich deps (at least the ones which are used in packaging).
Question about these guidelines: you make use of the macros %cargo_build, %cargo_install, %cargo_prep, which is fine, but those macros are not included in the rust-srpm-macros on Rawhide. The rust-srpm-macros spec file (http://pkgs.fedoraproject.org/rpms/rust-srpm-macros/blob/master/f/rust-srpm-macros.spec) only installs "data/macros.rust-srpm" but not the files containing the cargo-macros, "data/macros.cargo". Is this an oversight or is the cargo macros provided by another package I am not aware of?
@eclipseo it is in rust-packaging..
rust-packaging
We discussed this at this weeks meeting (https://meetbot-raw.fedoraproject.org/fedora-meeting-2/2017-08-09/fpc.2017-08-09-17.00.txt):
Metadata Update from @james: - Issue untagged with: meeting - Issue assigned to tibbs - Issue tagged with: writeup
Of course I'm not actually going to write this up until the rest of the ecosystem is ready for it. Most important is that weak deps have to work. I have no idea when that will be but I assume someone will let us know.
@tibbs, how weak deps are related here? Probably you meant rich deps? ;)
Actually they do work for many years already, however rel-eng doesn't support that yet and I'm struggling with that since (sic!) February (i.e. more than half year)
Announcement text:
Packaging guidelines for Rust are now available.
Metadata Update from @tibbs: - Issue untagged with: writeup - Issue tagged with: announce
We discussed this at this weeks meeting (https://meetbot-raw.fedoraproject.org/fedora-meeting-1/2017-10-26/fpc.2017-10-26-16.00.txt):
Metadata Update from @james: - Issue untagged with: announce - Issue tagged with: writeup
Metadata Update from @tibbs: - Issue untagged with: announce - Issue close_status updated to: accepted - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.