#215 sort binaries by name in generated spec files
Closed: Fixed 2 years ago by decathorpe. Opened 2 years ago by decathorpe.

If a crate provides multiple binaries, the order in which they are listed in %files -n %{crate} is randomized every time rust2rpm is run. It would be better to sort them alphabetically.


Metadata Update from @decathorpe:
- Issue set to the milestone: 23

2 years ago

Couldn't you just replace

https://pagure.io/fedora-rust/rust2rpm/blob/main/f/rust2rpm/templates/main.spec#_118:

{% for bin in bins %}

with {% for bin in bins | sort %}?

Possibly, yes. Just wanted to file the issue so I don't forget about it :)

Metadata Update from @decathorpe:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata