diff --git a/snapcraft.yaml b/snapcraft.yaml index 4ffd4119e..1d2841d5f 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -829,7 +829,6 @@ parts: - bin/qemu-system-* - bin/qemu-img* - bin/virtfs-proxy-helper* - - bin/virtiofsd* - lib/*/libatomic.so* - lib/*/libmagic*so* - lib/*/libnuma*so* @@ -955,6 +954,28 @@ parts: - bin/vim.tiny - etc/vimrc + virtiofsd: + build-attributes: [core22-step-dependencies] + source: https://gitlab.com/virtio-fs/virtiofsd + source-type: git + source-tag: v1.8.0 + source-depth: 1 + plugin: rust + build-packages: + - cargo + - libseccomp-dev + - rustc + organize: + usr/bin: bin/ + prime: + - bin/virtiofsd* + override-pull: |- + [ "$(uname -m)" != "x86_64" ] && [ "$(uname -m)" != "aarch64" ] && [ "$(uname -m)" != "ppc64le" ] && [ "$(uname -m)" != "s390x" ] && exit 0 + snapcraftctl pull + override-build: |- + [ "$(uname -m)" != "x86_64" ] && [ "$(uname -m)" != "aarch64" ] && [ "$(uname -m)" != "ppc64le" ] && [ "$(uname -m)" != "s390x" ] && exit 0 + snapcraftctl build + xfs: build-attributes: [core22-step-dependencies] source: snapcraft/empty