Skip to content

Commit

Permalink
snapcraft: replace liburing part by build/stage packages for QEMU (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomponline authored Sep 23, 2024
2 parents 0c3b2d6 + df76a27 commit b1aede3
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,28 +505,6 @@ parts:
prime:
- lib/libtpms*so*

liburing:
source: https://github.com/axboe/liburing
source-commit: f4e42a515cd78c8c9cac2be14222834be5f8df2b # liburing-2.5
source-depth: 1
source-type: git
plugin: autotools
autotools-configure-parameters:
- --prefix=
override-prime: |-
[ "$(uname -m)" != "x86_64" ] && [ "$(uname -m)" != "aarch64" ] && [ "$(uname -m)" != "ppc64le" ] && [ "$(uname -m)" != "s390x" ] && exit 0
craftctl default
override-pull: |-
[ "$(uname -m)" != "x86_64" ] && [ "$(uname -m)" != "aarch64" ] && [ "$(uname -m)" != "ppc64le" ] && [ "$(uname -m)" != "s390x" ] && exit 0
craftctl default
override-build: |-
[ "$(uname -m)" != "x86_64" ] && [ "$(uname -m)" != "aarch64" ] && [ "$(uname -m)" != "ppc64le" ] && [ "$(uname -m)" != "s390x" ] && exit 0
craftctl default
organize:
usr/lib/: lib/
prime:
- lib/liburing*so*

libusb:
source: https://github.com/libusb/libusb
source-commit: d52e355daa09f17ce64819122cb067b8a2ee0d4b # v1.0.27
Expand Down Expand Up @@ -815,7 +793,6 @@ parts:
qemu:
after:
- libatomic
- liburing
- libusb
- spice-protocol
- spice-server
Expand Down Expand Up @@ -874,6 +851,7 @@ parts:
- libnuma-dev
- libpixman-1-dev
- libseccomp-dev
- liburing-dev
- libusbredirhost-dev
- quilt
- on amd64: # workaround for armhf, because it lacks of librbd-dev
Expand All @@ -893,6 +871,7 @@ parts:
- libpixman-1-0
- libusbredirhost1t64
- libusbredirparser1t64
- liburing2
- seabios # This is needed due to --disable-install-blobs.
- qemu-system-data # This is needed due to --disable-install-blobs.
override-prime: |-
Expand Down Expand Up @@ -945,6 +924,7 @@ parts:
- lib/*/libmagic*so*
- lib/*/libnuma*so*
- lib/*/libpixman*so*
- lib/*/liburing*so*
- lib/*/libusbredir*so*
- lib/*/libfdt*.so*
- share/qemu/keymaps/*
Expand Down

0 comments on commit b1aede3

Please sign in to comment.