From d6f8acab4f43cabb7e1e9b561192583e6bd4392e Mon Sep 17 00:00:00 2001 From: Gabriel Mougard Date: Fri, 8 Sep 2023 10:17:27 +0200 Subject: [PATCH] snapcraft: do not build embedded doc for LXD if arch is riscv Signed-off-by: Gabriel Mougard --- snapcraft.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 198c18ee7..aa29eccfa 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1403,16 +1403,18 @@ parts: go build -o "${CRAFT_PART_INSTALL}/bin/lxd-benchmark" github.com/canonical/lxd/lxd-benchmark go build -o "${CRAFT_PART_INSTALL}/bin/lxd-user" github.com/canonical/lxd/lxd-user + # Setup bash completion + mkdir -p ${CRAFT_PART_INSTALL}/etc/bash_completion.d/ + cp scripts/bash/lxd-client ${CRAFT_PART_INSTALL}/etc/bash_completion.d/snap.lxd.lxc + + [ "$(uname -m)" = "riscv64" ] && exit 0 + # Build the static website make doc # Copy the static website mkdir -p "${CRAFT_PART_INSTALL}/share/lxd-documentation" cp -a doc/html/. "$CRAFT_PART_INSTALL/share/lxd-documentation/" - - # Setup bash completion - mkdir -p ${CRAFT_PART_INSTALL}/etc/bash_completion.d/ - cp scripts/bash/lxd-client ${CRAFT_PART_INSTALL}/etc/bash_completion.d/snap.lxd.lxc organize: usr/bin/: bin/ usr/lib/: lib/