Skip to content

Commit

Permalink
snapcraft: have dqlite build raft
Browse files Browse the repository at this point in the history
canonical/dqlite#568

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Feb 20, 2024
1 parent 1ef2e0b commit 7e0f436
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,23 +283,27 @@ parts:

dqlite:
after:
- raft
- sqlite
source: https://github.com/canonical/dqlite
source-depth: 1
source-type: git
plugin: autotools
autotools-configure-parameters:
- --prefix=
- --enable-build-raft
stage-packages:
- liblz4-1
- libuv1
build-packages:
- liblz4-dev
- libuv1-dev
organize:
usr/lib/: lib/
prime:
- lib/libdqlite*so*
- lib/*/libuv*
- lib/libraft*so*
#- lib/*/liblz4.so* # use liblz4.so from the base snap

edk2:
after:
Expand Down Expand Up @@ -993,26 +997,6 @@ parts:
prime:
- share/qemu/*

raft:
source: https://github.com/canonical/raft
source-depth: 1
source-type: git
plugin: autotools
autotools-configure-parameters:
- --prefix=
stage-packages:
- libuv1
- liblz4-1
build-packages:
- libuv1-dev
- liblz4-dev
organize:
usr/lib/: lib/
prime:
- lib/libraft*so*
- lib/*/libuv.so*
#- lib/*/liblz4.so* # use liblz4.so from the base snap

sqlite:
source: https://github.com/sqlite/sqlite
source-depth: 1
Expand Down Expand Up @@ -1485,7 +1469,6 @@ parts:
- openvswitch
- ovn
- qemu-ovmf-secureboot
- raft
- spice-server
- sqlite
- squashfs-tools-ng
Expand Down

0 comments on commit 7e0f436

Please sign in to comment.