Skip to content

ostree-ext: update ostree rust bindings and use new feature #1401

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmarrero
Copy link
Contributor

This allows us to enable soft-reboot

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

The pull request updates the ostree rust bindings and enables a new feature, v2025_3. It also downgrades the windows-sys dependency to version 0.52.0. The changes include updates to the Cargo.lock and ostree-ext/Cargo.toml files. It's important to verify the compatibility and functionality of the updated dependencies and the new feature.

Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

LGTM but this is going to fail until we have the new ostree upstream release shipped everywhere, which is going to be really painful 😢

So tempting again to just vendor ostree, or at least vendor the sysroot parts...

With some nontrivial work what we could do is detect at build time (via a build.rs script) whether a new enough ostree is available, and then only access the updated APIs via a #[cfg()].

@jmarrero
Copy link
Contributor Author

LGTM but this is going to fail until we have the new ostree upstream release shipped everywhere, which is going to be really painful 😢

So tempting again to just vendor ostree, or at least vendor the sysroot parts...

With some nontrivial work what we could do is detect at build time (via a build.rs script) whether a new enough ostree is available, and then only access the updated APIs via a #[cfg()].

We need to ship anywhere either way... I will go do that.

@jmarrero jmarrero force-pushed the update-ostree-ext branch from 8d9c2b5 to 4708643 Compare July 10, 2025 17:17
@jmarrero jmarrero marked this pull request as draft July 10, 2025 17:18
@jmarrero jmarrero marked this pull request as ready for review July 17, 2025 17:59
@jmarrero
Copy link
Contributor Author

jmarrero commented Jul 17, 2025

I think most rpms are in the stable repos now. I guess not... only rawhide 😢

@jmarrero jmarrero force-pushed the update-ostree-ext branch from 4708643 to 5c44b24 Compare July 17, 2025 18:02
@jmarrero jmarrero marked this pull request as draft July 17, 2025 19:43
@cgwalters
Copy link
Collaborator

I'm going to take a quick run at making this a build time conditional

Add machinery to do dynamic build time detection of ostree, and
only enable use of the feature if we have a new enough version.

Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters force-pushed the update-ostree-ext branch from 5c44b24 to d74531c Compare July 18, 2025 19:01
@cgwalters
Copy link
Collaborator

OK well, I made it work...except that it only works because we messed up the Since annotations, so I did ostreedev/ostree#3475

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