Merge pull request #5834 from mattarnoatibm/agent-target-dependencies

agent: Fix s390x agent build
This commit is contained in:
Fabiano Fidêncio
2022-12-05 14:15:28 +01:00
committed by GitHub
3 changed files with 9 additions and 11 deletions

2
src/agent/Cargo.lock generated
View File

@@ -1903,7 +1903,7 @@ dependencies = [
[[package]] [[package]]
name = "image-rs" name = "image-rs"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/confidential-containers/image-rs?rev=76e6abed950152f000d8f70026d11a86cf95fb0c#76e6abed950152f000d8f70026d11a86cf95fb0c" source = "git+https://github.com/confidential-containers/image-rs?rev=78a5114444629ad0af82174cb4bbaa1787b627a3#78a5114444629ad0af82174cb4bbaa1787b627a3"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",

View File

@@ -67,17 +67,23 @@ serde = { version = "1.0.129", features = ["derive"] }
toml = "0.5.8" toml = "0.5.8"
clap = { version = "3.0.1", features = ["derive"] } clap = { version = "3.0.1", features = ["derive"] }
# Image pull/decrypt
image-rs = { git = "https://github.com/confidential-containers/image-rs", rev = "76e6abed950152f000d8f70026d11a86cf95fb0c" }
# "vendored" feature for openssl is required by musl build # "vendored" feature for openssl is required by musl build
openssl = { version = "0.10.38", features = ["vendored"] } openssl = { version = "0.10.38", features = ["vendored"] }
# Image pull/decrypt
[target.'cfg(target_arch = "s390x")'.dependencies]
image-rs = { git = "https://github.com/confidential-containers/image-rs", rev = "78a5114444629ad0af82174cb4bbaa1787b627a3", default-features = false, features = ["default_s390x"] }
[target.'cfg(not(target_arch = "s390x"))'.dependencies]
image-rs = { git = "https://github.com/confidential-containers/image-rs", rev = "78a5114444629ad0af82174cb4bbaa1787b627a3", default-features = true }
[dev-dependencies] [dev-dependencies]
tempfile = "3.1.0" tempfile = "3.1.0"
test-utils = { path = "../libs/test-utils" } test-utils = { path = "../libs/test-utils" }
which = "4.3.0" which = "4.3.0"
[workspace] [workspace]
resolver = "2"
members = [ members = [
"rustjail", "rustjail",
] ]

View File

@@ -85,14 +85,6 @@ ifeq ($(INIT),no)
UNIT_FILES += kata-containers.target UNIT_FILES += kata-containers.target
endif endif
# The following will be reverted, after
# https://github.com/kata-containers/kata-containers/issues/5582
# is resolved.
IMAGE_RS_COMMIT = a1d7ba31201d9d7a575d05c5fed1f2cb2142a842
ifeq ($(ARCH),s390x)
$(shell sed -i -e "s/^\(image-rs.*\)tag\(.*\)/\1rev\2/" -e "s/^\(image-rs.*rev = \"\).*\(\".*\)/\1$(IMAGE_RS_COMMIT)\2/" Cargo.toml)
endif
# Display name of command and it's version (or a message if not available). # Display name of command and it's version (or a message if not available).
# #
# Arguments: # Arguments: