Skip to content

packaging/rpm: Be sure we pull in chcon (and util-linux) #1391

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

Merged
merged 2 commits into from
Jun 30, 2025

Conversation

cgwalters
Copy link
Collaborator

@cgwalters cgwalters commented Jun 30, 2025

We execute it, and Anaconda was somehow omitting this.

Also pull in util-linux-core because we also depend on that.

#1383 (comment)

This version is unused. At one time I accidentally bumped it
and then kept doing so occasionally. Fixate it so that doesn't
happen again.

The canonical version is in lib/Cargo.toml.
We execute it, and Anaconda was somehow omitting this.

Also pull in util-linux-core because we also depend on that.

bootc-dev#1383 (comment)
Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters changed the title ci: periodically run update-generated packaging/rpm: Be sure we pull in chcon (and util-linux) Jun 30, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates dependencies for bootc. It adds chcon as a binary dependency and updates the RPM spec file accordingly. It also changes the version of the bootc CLI crate to a stub value, presumably to help centralize versioning in the library crate.

My review focuses on the consistency of the dependency declarations. I've found that the RPM spec file is missing some runtime dependencies that are declared elsewhere, and I've suggested a change to make it complete. The other changes look reasonable.

Comment on lines +55 to +56
Requires: util-linux-core
Requires: /usr/bin/chcon

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Thanks for adding these dependencies. The new comment on lines 50-51 about keeping this in sync with workspace.metadata.binary-dependencies is very helpful.

Following that comment, I checked Cargo.toml and noticed zstd and systemctl are also listed as binary dependencies. To make the spec file fully consistent, we should probably add Requires for them as well. I've suggested adding file-path based Requires for them to be consistent with the addition of /usr/bin/chcon.

Requires: util-linux-core
Requires: /usr/bin/chcon
Requires: /usr/bin/systemctl
Requires: /usr/bin/zstd

Copy link
Contributor

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cgwalters cgwalters merged commit fe962b9 into bootc-dev:main Jun 30, 2025
31 of 33 checks passed
elkoniu added a commit to elkoniu/lorax that referenced this pull request Jul 2, 2025
chcon is being used by the bootc and recently added to bootc.spec
file as an explicite requirement: bootc-dev/bootc#1391
When it is not presented in the system the result is failure of the
`bootc install to-filesystem` command used by Anaconda installer.
bcl pushed a commit to weldr/lorax that referenced this pull request Jul 2, 2025
chcon is being used by the bootc and recently added to bootc.spec
file as an explicite requirement: bootc-dev/bootc#1391
When it is not presented in the system the result is failure of the
`bootc install to-filesystem` command used by Anaconda installer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants