Skip to content

Commit

Permalink
snapcraft: Adds virtiofsd section for compatibility with QEMU 8.x
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Oct 5, 2023
1 parent cea79be commit 9b41f18
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9b41f18

Please sign in to comment.