From 5a7a0eccb91894693b23950c2290ddb204c39cb5 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Tue, 29 Oct 2024 12:12:46 +0100 Subject: [PATCH] Problem: sevctl installation broken on Ubuntu sevctl 0.4.3 was refusing to compile on Ubuntu 22.04 and 24.02 because of some deps. This happened in the Github CI This prevented the build of package and the testing inside the CI Solution: Update sevctl to 0.6.0 Error logs Compiling structopt-derive v0.4.18 error[E0658]: `c".."` literals are experimental --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kvm-ioctls-0.19.0/src/ioctls/system.rs:99:24 | 99 | let kvm_path = c"/dev/kvm"; | ^^^^^^^^^^^ | = note: see issue #105723 for more information error[E0658]: `c".."` literals are experimental --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kvm-ioctls-0.19.0/src/ioctls/system.rs:744:24 | 744 | let kvm_path = c"/dev/kvm"; | ^^^^^^^^^^^ | = note: see issue #105723 for more information For more information about this error, try `rustc --explain E0658`. The following warnings were emitted during compilation: warning: kvm-ioctls@0.19.0: cargo:rustc-check-cfg requires -Zcheck-cfg flag error: could not compile `kvm-ioctls` (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish... error: failed to compile `sevctl v0.4.3 (https://github.com/virtee/sevctl.git?rev=c41c9172be013d6f10b9e1d7286fcb021805d5a5#c41c9172)`, intermediate artifacts can be found at `/tmp/cargo-installXhERbT`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. make: *** [Makefile:51: target/bin/sevctl] Error 101 make: *** [Makefile:89: all-podman-ubuntu-2204] Error 2 --- packaging/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packaging/Makefile b/packaging/Makefile index 8ed7861a..468ed722 100644 --- a/packaging/Makefile +++ b/packaging/Makefile @@ -47,8 +47,7 @@ download-ipfs-kubo: target-dir build-dir curl -fsSL https://github.com/ipfs/kubo/releases/download/v0.23.0/kubo_v0.23.0_linux-amd64.tar.gz | tar -xz --directory ./target/kubo target/bin/sevctl: - # Release 0.4.3 matches revision c41c9172be013d6f10b9e1d7286fcb021805d5a5 - cargo install --git https://github.com/virtee/sevctl.git --rev c41c9172be013d6f10b9e1d7286fcb021805d5a5 --target x86_64-unknown-linux-gnu --root ./target + cargo install --git https://github.com/virtee/sevctl.git --rev v0.6.0 --target x86_64-unknown-linux-gnu --root ./target ./target/bin/sevctl -V version: