Skip to content
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

build_container: install pipewire and virglrenderer from ubuntu repos and cleanups #128

Merged

Conversation

stefano-garzarella
Copy link
Member

Summary of the PR

We have recently moved to Ubuntu 24.04. The pipewire and virglrenderer libraries provided by the Ubuntu repos are now new enough to test vhost-device crates, so we can avoid installing them manually.

This fixes issue in rust-vmm/vhost-device#825
Already tested locally.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

The next commit removes calls to `ninja` that perhaps called `ldconfig`
autmatically. Without this, `vhost-device-gpu` is unable to find
`libgfxstream_backend.so.0`.

Signed-off-by: Stefano Garzarella <[email protected]>
We have recently moved to Ubuntu 24.04. The pipewire and virglrenderer
libraries provided by the Ubuntu repos are now new enough to test
vhost-device crates, so we can avoid installing them manually.

Signed-off-by: Stefano Garzarella <[email protected]>
Let's clean up the git clones a bit, always using depth=1 to be faster
and directly checkout the branch needed.

Let's make the script a little more readable by also adding some
comments, like the crate that needs the dependency.

Signed-off-by: Stefano Garzarella <[email protected]>
Copy link
Member

@RuoqingHe RuoqingHe left a comment

Choose a reason for hiding this comment

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

Great work - thanks @stefano-garzarella ❤️

@stefano-garzarella stefano-garzarella enabled auto-merge (rebase) March 6, 2025 15:56
@stefano-garzarella stefano-garzarella merged commit 82bd1a3 into rust-vmm:main Mar 7, 2025
2 of 3 checks passed
RuoqingHe added a commit to RuoqingHe/rust-vmm-ci that referenced this pull request Mar 7, 2025
We are missing `rsync` for `seccompiler`. And after bumping to
ubuntu:24.04, some dependencies required by `vhost-devices` could be
installed from ubuntu sources, so @@stefano-garzarella reworked the
preparation of `vhost-devices` dependencies in
rust-vmm/rust-vmm-container#128.

Update to g82bd1a3 dev image to apply the changes.

Signed-off-by: Ruoqing He <[email protected]>
RuoqingHe added a commit to RuoqingHe/rust-vmm-ci that referenced this pull request Mar 7, 2025
We are missing `rsync` for `seccompiler`. And after bumping to
ubuntu:24.04, some dependencies required by `vhost-devices` could be
installed from ubuntu sources, so @stefano-garzarella reworked the
preparation of `vhost-devices` dependencies in
rust-vmm/rust-vmm-container#128.

Update to g82bd1a3 dev image to apply the changes.

Signed-off-by: Ruoqing He <[email protected]>
stefano-garzarella pushed a commit to rust-vmm/rust-vmm-ci that referenced this pull request Mar 7, 2025
We are missing `rsync` for `seccompiler`. And after bumping to
ubuntu:24.04, some dependencies required by `vhost-devices` could be
installed from ubuntu sources, so @stefano-garzarella reworked the
preparation of `vhost-devices` dependencies in
rust-vmm/rust-vmm-container#128.

Update to g82bd1a3 dev image to apply the changes.

Signed-off-by: Ruoqing He <[email protected]>
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.

3 participants