-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework vendoring #846
Rework vendoring #846
Conversation
cargo warns about this.
In particular now that we have a `git` dependency, this turns out to reveal some deficiencies in how e.g. the Fedora RPM vendoring support works. Sync the code from containers/bootc@58fa21e
- Use `rust-%{crate}` for name because that's what Fedora does; the previous spec file sync was just broken - Use a source archive generated from git, not a `.crate`; we will stop publishing to crates.io. Signed-off-by: Colin Walters <[email protected]>
@@ -2,14 +2,14 @@ | |||
|
|||
%global crate bootupd | |||
|
|||
Name: bootupd | |||
Name: rust-%{crate} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will not create a big issue in Fedora/RHEL? Changing the package name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just the source name, and it's already named this in Fedora https://src.fedoraproject.org/rpms/rust-bootupd but it isn't in RHEL https://gitlab.com/redhat/centos-stream/rpms/bootupd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #838 which introduced this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IOW, one pain point we are going to need to eat here is that because it'd be hugely painful (AFAIK) to rename the source package in RHEL, we will have spec file divergence for the forseeable future there.
xtask: Fix deprecated
default_features
cargo warns about this.
xtask: Sync with bootc
In particular now that we have a
git
dependency, this turnsout to reveal some deficiencies in how e.g. the Fedora RPM
vendoring support works.
Sync the code from containers/bootc@58fa21e
contrib/rpm: Sync vendor config from bootc
contrib/rpm: Two more fixes
rust-%{crate}
for name because that's what Fedoradoes; the previous spec file sync was just broken
.crate
; wewill stop publishing to crates.io.
Signed-off-by: Colin Walters [email protected]